The unistd.h header file declares a number of implementation-specific
functions:
__atoe() |
__atoe_l() |
__check_resource_auth_np() |
__convert_id_np() |
__etoa() |
__etoa_l() |
__isPosixOn() |
__smf_record() |
__wsinit() |
|
|
XPLINK |
|
|
|
__a2e_l() |
__a2e_s() |
__e2a_l() |
__e2a_s() |
There are also a large number of POSIX and UNIX functions declared, shown below with the
minimum feature test macro needed to expose them:
access() |
alarm() |
chdir() |
chown() |
close() |
ctermid() |
dup() |
dup2() |
execl() |
execle() |
execlp() |
execv() |
execve() |
execvp() |
_exit() |
fork() |
fpathconf() |
getcwd() |
getegid() |
geteuid() |
getgid() |
getgroups() |
getlogin() |
getpgrp() |
getpid() |
getppid() |
getuid() |
isatty() |
link() |
lseek() |
pathconf() |
pause() |
pipe() |
read() |
rmdir() |
setgid() |
setpgid() |
setsid() |
setuid() |
sleep() |
sysconf() |
tcgetpgrp() |
tcsetpgrp() |
ttyname() |
unlink() |
write() |
|
|
|
|
|
|
__certificate() |
__getlogin1() |
__login() |
__pid_affinity() |
POSIX1_SOURCE = 2 fchown() |
fsync() |
ftruncate() |
readlink() |
setegid() |
setgeuid() |
symlink() |
|
POSIX_C_SOURCE = 2 optarg |
opterr |
optind |
optopt |
External Variables
_XOPEN_SOURCE chroot() |
confstr() |
crypt() |
cuserid() |
encrypt() |
getopt() |
getpass() |
nice() |
swab() |
|
|
|
_XOPEN_SOURCE = 500 brk() |
fchdir() |
getdtablesize() |
gethostid() |
gethostname() |
getlogin_r() |
getpagesize() |
getpgid() |
getsid() |
getwd() |
lchown() |
lockf() |
pread() |
pwrite() |
sbrk() |
setpgrp() |
setregid() |
setreuid() |
sync() |
truncate() |
ttyname_r() |
ualarm() |
usleep() |
vfork() |
The unistd.h header file also defines many symbols to represent
configuration variables and implementation features provided. Some
of these are used at compile time, while others are used to interrogate
the system at run time, using sysconf(), confstr(), pathconf(), or
fpathconf().