Expand description
unistd.h implementation.
See https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/unistd.h.html.
Re-exports§
pub use crate::header::pthread::fork_hooks;pub use crate::header::stdio::ctermid;pub use crate::header::stdio::cuserid;Deprecated
Modules§
Constants§
- F_LOCK
- Lock a section for exclusive use.
- F_OK
- F_TEST
- Test section for locks by other processes.
- F_TLOCK
- Test and lock a section for exclusive use.
- F_ULOCK
- Unlock locked sections.
- L_
cuserid - R_OK
- SEEK_
CUR - SEEK_
END - SEEK_
SET - STDERR_
FILENO - STDIN_
FILENO - STDOUT_
FILENO - W_OK
- X_OK
- _CS_
PATH - _CS_
POSIX_ V5_ WIDTH_ RESTRICTED_ ENVS - _CS_
POSIX_ V6_ ILP32_ OFF32_ CFLAGS - _CS_
POSIX_ V6_ ILP32_ OFF32_ LDFLAGS - _CS_
POSIX_ V6_ ILP32_ OFF32_ LIBS - _CS_
POSIX_ V6_ ILP32_ OFF32_ LINTFLAGS - _CS_
POSIX_ V6_ ILP32_ OFFBIG_ CFLAGS - _CS_
POSIX_ V6_ ILP32_ OFFBIG_ LDFLAGS - _CS_
POSIX_ V6_ ILP32_ OFFBIG_ LIBS - _CS_
POSIX_ V6_ ILP32_ OFFBIG_ LINTFLAGS - _CS_
POSIX_ V6_ LP64_ OFF64_ CFLAGS - _CS_
POSIX_ V6_ LP64_ OFF64_ LDFLAGS - _CS_
POSIX_ V6_ LP64_ OFF64_ LIBS - _CS_
POSIX_ V6_ LP64_ OFF64_ LINTFLAGS - _CS_
POSIX_ V6_ LPBIG_ OFFBIG_ CFLAGS - _CS_
POSIX_ V6_ LPBIG_ OFFBIG_ LDFLAGS - _CS_
POSIX_ V6_ LPBIG_ OFFBIG_ LIBS - _CS_
POSIX_ V6_ LPBIG_ OFFBIG_ LINTFLAGS - _CS_
POSIX_ V6_ WIDTH_ RESTRICTED_ ENVS - _CS_
POSIX_ V7_ ILP32_ OFF32_ CFLAGS - _CS_
POSIX_ V7_ ILP32_ OFF32_ LDFLAGS - _CS_
POSIX_ V7_ ILP32_ OFF32_ LIBS - _CS_
POSIX_ V7_ ILP32_ OFF32_ LINTFLAGS - _CS_
POSIX_ V7_ ILP32_ OFFBIG_ CFLAGS - _CS_
POSIX_ V7_ ILP32_ OFFBIG_ LDFLAGS - _CS_
POSIX_ V7_ ILP32_ OFFBIG_ LIBS - _CS_
POSIX_ V7_ ILP32_ OFFBIG_ LINTFLAGS - _CS_
POSIX_ V7_ LP64_ OFF64_ CFLAGS - _CS_
POSIX_ V7_ LP64_ OFF64_ LDFLAGS - _CS_
POSIX_ V7_ LP64_ OFF64_ LIBS - _CS_
POSIX_ V7_ LP64_ OFF64_ LINTFLAGS - _CS_
POSIX_ V7_ LPBIG_ OFFBIG_ CFLAGS - _CS_
POSIX_ V7_ LPBIG_ OFFBIG_ LDFLAGS - _CS_
POSIX_ V7_ LPBIG_ OFFBIG_ LIBS - _CS_
POSIX_ V7_ LPBIG_ OFFBIG_ LINTFLAGS - _CS_
POSIX_ V7_ WIDTH_ RESTRICTED_ ENVS - _PC_
2_ SYMLINKS - _PC_
ALLOC_ SIZE_ MIN - _PC_
ASYNC_ IO - _PC_
CHOWN_ RESTRICTED - _PC_
FILESIZEBITS - _PC_
LINK_ MAX - _PC_
MAX_ CANON - _PC_
MAX_ INPUT - _PC_
NAME_ MAX - _PC_
NO_ TRUNC - _PC_
PATH_ MAX - _PC_
PIPE_ BUF - _PC_
PRIO_ IO - _PC_
REC_ INCR_ XFER_ SIZE - _PC_
REC_ MAX_ XFER_ SIZE - _PC_
REC_ MIN_ XFER_ SIZE - _PC_
REC_ XFER_ ALIGN - _PC_
SOCK_ MAXBUF - _PC_
SYMLINK_ MAX - _PC_
SYNC_ IO - _PC_
VDISABLE - Check if file (terminal) supports disabling control chars (CC)
- _SC_
ARG_ MAX - _SC_
AVPHYS_ PAGES - _SC_
BARRIERS - _SC_
CHILD_ MAX - _SC_
CLK_ TCK - _SC_
GETGR_ R_ SIZE_ MAX - _SC_
GETPW_ R_ SIZE_ MAX - _SC_
HOST_ NAME_ MAX - _SC_
LOGIN_ NAME_ MAX - _SC_
MONOTONIC_ CLOCK - _SC_
NGROUPS_ MAX - _SC_
NPROCESSORS_ CONF - _SC_
NPROCESSORS_ ONLN - _SC_
OPEN_ MAX - _SC_
PAGESIZE - _SC_
PAGE_ SIZE - _SC_
PHYS_ PAGES - _SC_
REALTIME_ SIGNALS - _SC_
RE_ DUP_ MAX - _SC_
SEMAPHORES - _SC_
SHARED_ MEMORY_ OBJECTS - _SC_
SHELL - _SC_
SIGQUEUE_ MAX - _SC_
STREAM_ MAX - _SC_
SYMLOOP_ MAX - _SC_
THREADS - _SC_
THREAD_ ATTR_ STACKADDR - _SC_
THREAD_ ATTR_ STACKSIZE - _SC_
TIMEOUTS - _SC_
TIMERS - _SC_
TTY_ NAME_ MAX - _SC_
TZNAME_ MAX - _SC_
VERSION
Statics§
- optarg
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getopt.html.
- opterr
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getopt.html.
- optind
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getopt.html.
- optopt
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getopt.html.
Functions§
- _Fork⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fork.html.
- _exit
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/_Exit.html.
- access⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/access.html.
- alarm
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/alarm.html.
- brk⚠
Deprecated - See https://pubs.opengroup.org/onlinepubs/7908799/xsh/brk.html.
- chdir⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/chdir.html.
- chown⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/chown.html.
- chroot⚠
Deprecated - See https://pubs.opengroup.org/onlinepubs/7908799/xsh/chroot.html.
- close
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/close.html.
- confstr⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/confstr.html.
- crypt⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/crypt.html.
- daemon
- Non-POSIX, see https://www.man7.org/linux/man-pages/man3/daemon.3.html.
- dup
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup.html.
- dup2
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup.html.
- dup3
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup.html.
- execl⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.
- execle⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.
- execlp⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.
- execv⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.
- execve⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.
- execvp⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.
- faccessat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/faccessat.html.
- fchdir
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchdir.html.
- fchown
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchown.html.
- fchownat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchownat.html.
- fdatasync
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fdatasync.html.
- fexecve⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fexecve.html.
- fork⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fork.html.
- fpathconf
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fpathconf.html.
- fsync
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fsync.html.
- ftruncate
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/ftruncate.html.
- get_
cpu_ count - get_
mem_ stat - getcwd⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getcwd.html.
- getdtablesize
Deprecated - See https://pubs.opengroup.org/onlinepubs/7908799/xsh/getdtablesize.html.
- getegid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getegid.html.
- getentropy
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getentropy.html.
- geteuid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/geteuid.html.
- getgid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getgid.html.
- getgroups⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getgroups.html.
- gethostid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/gethostid.html.
- gethostname⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/gethostname.html.
- getlogin⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getlogin.html.
- getlogin_
r - See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getlogin.html.
- getopt⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getopt.html.
- getpagesize
Deprecated - See https://pubs.opengroup.org/onlinepubs/7908799/xsh/getpagesize.html.
- getpgid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpgid.html.
- getpgrp
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpgrp.html.
- getpid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpid.html.
- getppid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getppid.html.
- getresgid⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getresgid.html.
- getresuid⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getresuid.html.
- getsid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getsid.html.
- getuid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getuid.html.
- getwd⚠
Deprecated - See https://pubs.opengroup.org/onlinepubs/009695399/functions/getwd.html.
- isatty
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/isatty.html.
- lchown⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/lchown.html.
- link⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/link.html.
- linkat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/linkat.html.
- lockf⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/lockf.html.
- lseek
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/lseek.html.
- nice
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/nice.html.
- pathconf
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fpathconf.html.
- pause⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/pause.html.
- pipe⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/pipe.html.
- pipe2⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/pipe.html.
- posix_
close - See https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_close.html.
- pread⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/read.html.
- pwrite⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html.
- read⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/read.html.
- readlink⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlink.html.
- readlinkat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html.
- rmdir⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/rmdir.html.
- sbrk⚠
Deprecated - See https://pubs.opengroup.org/onlinepubs/7908799/xsh/brk.html.
- setegid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setegid.html.
- seteuid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/seteuid.html.
- setgid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setgid.html.
- setpgid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpgid.html.
- setpgrp
Deprecated - See https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgrp.html.
- setregid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setregid.html.
- setresgid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setresgid.html.
- setresuid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setresuid.html.
- setreuid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setreuid.html.
- setsid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setsid.html.
- setuid
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setuid.html.
- sleep
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/sleep.html.
- swab⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/swab.html.
- symlink⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlink.html.
- symlinkat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlinkat.html.
- sync
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/sync.html.
- sysconf⚠
- tcgetpgrp
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcgetpgrp.html.
- tcsetpgrp
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcsetpgrp.html.
- truncate⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/truncate.html.
- ttyname⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/ttyname.html.
- ttyname_
r - See https://pubs.opengroup.org/onlinepubs/9799919799/functions/ttyname.html.
- ualarm
Deprecated - See https://pubs.opengroup.org/onlinepubs/009695399/functions/ualarm.html.
- unlink⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlink.html.
- unlinkat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlinkat.html.
- usleep
Deprecated - See https://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html.
- vfork
Deprecated - See https://pubs.opengroup.org/onlinepubs/009695399/functions/vfork.html.
- write⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html.