2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LIBSYS 3LIB "May 22, 2003"
8 libsys \- system library
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lsys\fR [ \fIlibrary\fR... ]
18 Functions in this library provide basic system services. This library is
19 implemented as a filter on the C library (see \fBlibc\fR(3LIB)).
23 The shared object \fBlibsys.so.1\fR provides the public interfaces defined
24 below. See \fBIntro\fR(3) for additional information on shared object
32 \fB__ctype\fR \fB__huge_val\fR \fB_access\fR
33 \fB_acct\fR \fB_alarm\fR \fB_altzone\fR
34 \fB_catclose\fR \fB_catgets\fR \fB_catopen\fR
35 \fB_chdir\fR \fB_chmod\fR \fB_chown\fR
36 \fB_chroot\fR \fB_close\fR \fB_closedir\fR
37 \fB_creat\fR \fB_daylight\fR \fB_dup\fR
38 \fB_environ\fR \fB_execl\fR \fB_execle\fR
39 \fB_execlp\fR \fB_execv\fR \fB_execve\fR
40 \fB_execvp\fR \fB_exit\fR \fB_fattach\fR
41 \fB_fchdir\fR \fB_fchmod\fR \fB_fchown\fR
42 \fB_fcntl\fR \fB_fdetach\fR \fB_fork\fR
43 \fB_fpathconf\fR \fB_fstat\fR \fB_fstatvfs\fR
44 \fB_fsync\fR \fB_ftok\fR \fB_getcontext\fR
45 \fB_getcwd\fR \fB_getegid\fR \fB_geteuid\fR
46 \fB_getgid\fR \fB_getgrgid\fR \fB_getgrnam\fR
47 \fB_getgroups\fR \fB_getlogin\fR \fB_getmsg\fR
48 \fB_getpgid\fR \fB_getpgrp\fR \fB_getpid\fR
49 \fB_getpmsg\fR \fB_getppid\fR \fB_getpwnam\fR
50 \fB_getpwuid\fR \fB_getrlimit\fR \fB_getsid\fR
51 \fB_gettxt\fR \fB_getuid\fR \fB_grantpt\fR
52 \fB_initgroups\fR \fB_ioctl\fR \fB_isastream\fR
53 \fB_kill\fR \fB_lchown\fR \fB_link\fR
54 \fB_lseek\fR \fB_lstat\fR \fB_makecontext\fR
55 \fB_memcntl\fR \fB_mkdir\fR \fB_mknod\fR
56 \fB_mlock\fR \fB_mmap\fR \fB_mount\fR
57 \fB_mprotect\fR \fB_msgctl\fR \fB_msgget\fR
58 \fB_msgrcv\fR \fB_msgsnd\fR \fB_msync\fR
59 \fB_munlock\fR \fB_munmap\fR \fB_nice\fR
60 \fB_numeric\fR \fB_open\fR \fB_opendir\fR
61 \fB_pathconf\fR \fB_pause\fR \fB_pipe\fR
62 \fB_poll\fR \fB_profil\fR \fB_ptrace\fR
63 \fB_ptsname\fR \fB_putmsg\fR \fB_putpmsg\fR
64 \fB_read\fR \fB_readdir\fR \fB_readlink\fR
65 \fB_readv\fR \fB_rename\fR \fB_rewinddir\fR
66 \fB_rmdir\fR \fB_seekdir\fR \fB_semctl\fR
67 \fB_semget\fR \fB_semop\fR \fB_setcontext\fR
68 \fB_setgid\fR \fB_setgroups\fR \fB_setpgid\fR
69 \fB_setpgrp\fR \fB_setrlimit\fR \fB_setsid\fR
70 \fB_setuid\fR \fB_shmat\fR \fB_shmctl\fR
71 \fB_shmdt\fR \fB_shmget\fR \fB_sigaction\fR
72 \fB_sigaddset\fR \fB_sigaltstack\fR \fB_sigdelset\fR
73 \fB_sigemptyset\fR \fB_sigfillset\fR \fB_sighold\fR
74 \fB_sigignore\fR \fB_sigismember\fR \fB_siglongjmp\fR
75 \fB_sigpause\fR \fB_sigpending\fR \fB_sigprocmask\fR
76 \fB_sigrelse\fR \fB_sigsend\fR \fB_sigsendset\fR
77 \fB_sigset\fR \fB_sigsetjmp\fR \fB_sigsuspend\fR
78 \fB_stat\fR \fB_statvfs\fR \fB_stime\fR
79 \fB_swapcontext\fR \fB_symlink\fR \fB_sync\fR
80 \fB_sysconf\fR \fB_telldir\fR \fB_time\fR
81 \fB_times\fR \fB_timezone\fR \fB_ttyname\fR
82 \fB_tzname\fR \fB_ulimit\fR \fB_umask\fR
83 \fB_umount\fR \fB_uname\fR \fB_unlink\fR
84 \fB_unlockpt\fR \fB_utime\fR \fB_wait\fR
85 \fB_waitid\fR \fB_waitpid\fR \fB_write\fR
86 \fB_writev\fR \fBaccess\fR \fBacct\fR
87 \fBalarm\fR \fBatexit\fR \fBcalloc\fR
88 \fBcatclose\fR \fBcatgets\fR \fBcatopen\fR
89 \fBchdir\fR \fBchmod\fR \fBchown\fR
90 \fBchroot\fR \fBclose\fR \fBclosedir\fR
91 \fBcreat\fR \fBdaylight\fR \fBdup\fR
92 \fBenviron\fR \fBexecl\fR \fBexecle\fR
93 \fBexeclp\fR \fBexecv\fR \fBexecve\fR
94 \fBexecvp\fR \fBexit\fR \fBfattach\fR
95 \fBfchdir\fR \fBfchmod\fR \fBfchown\fR
96 \fBfcntl\fR \fBfdetach\fR \fBfork\fR
97 \fBfpathconf\fR \fBfree\fR \fBfstat\fR
98 \fBfstatvfs\fR \fBfsync\fR \fBftok\fR
99 \fBgetcontext\fR \fBgetcwd\fR \fBgetegid\fR
100 \fBgeteuid\fR \fBgetgid\fR \fBgetgrgid\fR
101 \fBgetgrnam\fR \fBgetgroups\fR \fBgetlogin\fR
102 \fBgetmsg\fR \fBgetpgid\fR \fBgetpgrp\fR
103 \fBgetpid\fR \fBgetpmsg\fR \fBgetppid\fR
104 \fBgetpwnam\fR \fBgetpwuid\fR \fBgetrlimit\fR
105 \fBgetsid\fR \fBgettxt\fR \fBgetuid\fR
106 \fBgrantpt\fR \fBinitgroups\fR \fBioctl\fR
107 \fBisastream\fR \fBkill\fR \fBlchown\fR
108 \fBlink\fR \fBlocaleconv\fR \fBlseek\fR
109 \fBlstat\fR \fBmakecontext\fR \fBmalloc\fR
110 \fBmemcntl\fR \fBmkdir\fR \fBmknod\fR
111 \fBmlock\fR \fBmmap\fR \fBmount\fR
112 \fBmprotect\fR \fBmsgctl\fR \fBmsgget\fR
113 \fBmsgrcv\fR \fBmsgsnd\fR \fBmsync\fR
114 \fBmunlock\fR \fBmunmap\fR \fBnice\fR
115 \fBopen\fR \fBopendir\fR \fBpathconf\fR
116 \fBpause\fR \fBpipe\fR \fBpoll\fR
117 \fBprofil\fR \fBptrace\fR \fBptsname\fR
118 \fBputmsg\fR \fBputpmsg\fR \fBread\fR
119 \fBreaddir\fR \fBreadlink\fR \fBreadv\fR
120 \fBrealloc\fR \fBremove\fR \fBrename\fR
121 \fBrewinddir\fR \fBrmdir\fR \fBseekdir\fR
122 \fBsemctl\fR \fBsemget\fR \fBsemop\fR
123 \fBsetcontext\fR \fBsetgid\fR \fBsetgroups\fR
124 \fBsetlocale\fR \fBsetpgid\fR \fBsetpgrp\fR
125 \fBsetrlimit\fR \fBsetsid\fR \fBsetuid\fR
126 \fBshmat\fR \fBshmctl\fR \fBshmdt\fR
127 \fBshmget\fR \fBsigaction\fR \fBsigaddset\fR
128 \fBsigaltstack\fR \fBsigdelset\fR \fBsigemptyset\fR
129 \fBsigfillset\fR \fBsighold\fR \fBsigignore\fR
130 \fBsigismember\fR \fBsiglongjmp\fR \fBsignal\fR
131 \fBsigpause\fR \fBsigpending\fR \fBsigprocmask\fR
132 \fBsigrelse\fR \fBsigsend\fR \fBsigsendset\fR
133 \fBsigset\fR \fBsigsetjmp\fR \fBsigsuspend\fR
134 \fBstat\fR \fBstatvfs\fR \fBstime\fR
135 \fBstrcoll\fR \fBstrerror\fR \fBstrftime\fR
136 \fBstrxfrm\fR \fBswapcontext\fR \fBsymlink\fR
137 \fBsync\fR \fBsysconf\fR \fBsystem\fR
138 \fBtelldir\fR \fBtime\fR \fBtimes\fR
139 \fBtimezone\fR \fBttyname\fR \fBtzname\fR
140 \fBulimit\fR \fBumask\fR \fBumount\fR
141 \fBuname\fR \fBunlink\fR \fBunlockpt\fR
142 \fButime\fR \fBwait\fR \fBwaitid\fR
143 \fBwaitpid\fR \fBwrite\fR \fBwritev\fR
148 The following interfaces are unique to the SPARC version of this library:
155 \fB\&.div\fR \fB\&.mul\fR \fB\&.rem\fR
156 \fB\&.stret1\fR \fB\&.stret2\fR \fB\&.stret4\fR
157 \fB\&.stret8\fR \fB\&.udiv\fR \fB\&.umul\fR
158 \fB\&.urem\fR \fB_Q_add\fR \fB_Q_cmp\fR
159 \fB_Q_cmpe\fR \fB_Q_div\fR \fB_Q_dtoq\fR
160 \fB_Q_feq\fR \fB_Q_fge\fR \fB_Q_fgt\fR
161 \fB_Q_fle\fR \fB_Q_flt\fR \fB_Q_fne\fR
162 \fB_Q_itoq\fR \fB_Q_mul\fR \fB_Q_neg\fR
163 \fB_Q_qtod\fR \fB_Q_qtoi\fR \fB_Q_qtos\fR
164 \fB_Q_qtou\fR \fB_Q_sqrt\fR \fB_Q_stoq\fR
165 \fB_Q_sub\fR \fB_Q_utoq\fR \fB__dtou\fR
171 The following interfaces are unique to the x86 version of this library:
178 \fB__flt_rounds\fR \fB_fp_hw\fR \fB_fpstart\fR
179 \fB_fxstat\fR \fB_lxstat\fR \fB_nuname\fR
180 \fB_sbrk\fR \fB_xmknod\fR \fB_xstat\fR
181 \fBnuname\fR \fBsbrk\fR
188 \fB\fB/usr/lib/libsys.so.1\fR\fR
197 See \fBattributes\fR(5) for descriptions of the following attributes:
205 ATTRIBUTE TYPE ATTRIBUTE VALUE
213 \fBpvs\fR(1), \fBIntro\fR(2), \fBIntro\fR(3), \fBlibc\fR(3LIB),