Skip to main content

Module posix

Module posix 

Source

Re-exports§

pub use crate::os::AccessMode;
pub use crate::os::F_OK;
pub use crate::os::R_OK;
pub use crate::os::W_OK;
pub use crate::os::X_OK;
pub use super::posix_unix_like::*;

Structs§

FdDirStream
Permissions
PosixSpawnConfig
PosixSpawnScheduler
RawDirEntry
StatVfsInfo
UnameDecodeError
UnameInfo

Enums§

AccessError
PosixSpawnFileAction

Constants§

CLD_CONTINUED
CLD_DUMPED
CLD_EXITED
CLD_KILLED
CLD_STOPPED
CLD_TRAPPED
CLONE_FILES
CLONE_FS
CLONE_NEWCGROUP
CLONE_NEWIPC
CLONE_NEWNET
CLONE_NEWNS
CLONE_NEWPID
CLONE_NEWUSER
CLONE_NEWUTS
CLONE_SIGHAND
CLONE_SYSVSEM
CLONE_THREAD
CLONE_VM
EFD_CLOEXEC
EFD_NONBLOCK
EFD_SEMAPHORE
EX_CANTCREAT
EX_CONFIG
EX_DATAERR
EX_IOERR
EX_NOHOST
EX_NOINPUT
EX_NOPERM
EX_NOUSER
EX_OK
<sysexits.h>. The libc crate does not bind these.
EX_OSERR
EX_OSFILE
EX_PROTOCOL
EX_SOFTWARE
EX_TEMPFAIL
EX_UNAVAILABLE
EX_USAGE
GRND_NONBLOCK
GRND_RANDOM
MFD_ALLOW_SEALING
MFD_CLOEXEC
MFD_HUGETLB
MFD_HUGE_MASK
MFD_HUGE_SHIFT
PIDFD_NONBLOCK
POSIX_FADV_DONTNEED
POSIX_FADV_NOREUSE
POSIX_FADV_NORMAL
POSIX_FADV_RANDOM
POSIX_FADV_SEQUENTIAL
POSIX_FADV_WILLNEED
PRIO_PGRP
Remaining posix integer names the VM still took from libc.
PRIO_PROCESS
Remaining posix integer names the VM still took from libc.
PRIO_USER
Remaining posix integer names the VM still took from libc.
P_ALL
P_PGID
P_PID
P_PIDFD
RTLD_DEEPBIND
RTLD_GLOBAL
RTLD_LAZY
RTLD_LOCAL
RTLD_NODELETE
RTLD_NOLOAD
RTLD_NOW
SCHED_BATCH
SCHED_DEADLINE
SCHED_FIFO
SCHED_IDLE
SCHED_NORMAL
SCHED_OTHER
SCHED_RESET_ON_FORK
SCHED_RR
SEEK_DATA
SEEK_HOLE
SPLICE_F_MORE
SPLICE_F_MOVE
SPLICE_F_NONBLOCK
TFD_CLOEXEC
TFD_NONBLOCK
TFD_TIMER_ABSTIME
TFD_TIMER_CANCEL_ON_SET
UTIME_NOW
UTIME_OMIT
WCONTINUED
WEXITED
WNOHANG
WNOWAIT
WSTOPPED
WUNTRACED
XATTR_CREATE
XATTR_REPLACE
_PC_2_SYMLINKS
_PC_ALLOC_SIZE_MIN
_PC_ASYNC_IO
_PC_CHOWN_RESTRICTED
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_FILESIZEBITS
_PC_LINK_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_MAX_CANON
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_MAX_INPUT
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_NAME_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_NO_TRUNC
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_PATH_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_PIPE_BUF
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_PC_PRIO_IO
_PC_REC_INCR_XFER_SIZE
_PC_REC_MAX_XFER_SIZE
_PC_REC_MIN_XFER_SIZE
_PC_REC_XFER_ALIGN
_PC_SYMLINK_MAX
_PC_SYNC_IO
_PC_VDISABLE
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_2_CHAR_TERM
_SC_2_C_BIND
_SC_2_C_DEV
_SC_2_FORT_DEV
_SC_2_FORT_RUN
_SC_2_LOCALEDEF
_SC_2_SW_DEV
_SC_2_UPE
_SC_2_VERSION
_SC_AIO_LISTIO_MAX
_SC_AIO_MAX
_SC_AIO_PRIO_DELTA_MAX
_SC_ARG_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_ASYNCHRONOUS_IO
_SC_ATEXIT_MAX
_SC_BC_BASE_MAX
_SC_BC_DIM_MAX
_SC_BC_SCALE_MAX
_SC_BC_STRING_MAX
_SC_CHILD_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_CLK_TCK
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_COLL_WEIGHTS_MAX
_SC_DELAYTIMER_MAX
_SC_EXPR_NEST_MAX
_SC_FSYNC
_SC_GETGR_R_SIZE_MAX
_SC_GETPW_R_SIZE_MAX
_SC_IOV_MAX
_SC_JOB_CONTROL
_SC_LINE_MAX
_SC_LOGIN_NAME_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_MAPPED_FILES
_SC_MEMLOCK
_SC_MEMLOCK_RANGE
_SC_MEMORY_PROTECTION
_SC_MESSAGE_PASSING
_SC_MQ_OPEN_MAX
_SC_MQ_PRIO_MAX
_SC_NGROUPS_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_NPROCESSORS_CONF
_SC_NPROCESSORS_ONLN
_SC_OPEN_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_PAGE_SIZE
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_PASS_MAX
_SC_PHYS_PAGES
_SC_PRIORITIZED_IO
_SC_PRIORITY_SCHEDULING
_SC_REALTIME_SIGNALS
_SC_RE_DUP_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_RTSIG_MAX
_SC_SAVED_IDS
_SC_SEMAPHORES
_SC_SEM_NSEMS_MAX
_SC_SEM_VALUE_MAX
_SC_SHARED_MEMORY_OBJECTS
_SC_SIGQUEUE_MAX
_SC_STREAM_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_SYNCHRONIZED_IO
_SC_THREADS
_SC_THREAD_ATTR_STACKADDR
_SC_THREAD_ATTR_STACKSIZE
_SC_THREAD_DESTRUCTOR_ITERATIONS
_SC_THREAD_KEYS_MAX
_SC_THREAD_PRIORITY_SCHEDULING
_SC_THREAD_PRIO_INHERIT
_SC_THREAD_PRIO_PROTECT
_SC_THREAD_PROCESS_SHARED
_SC_THREAD_SAFE_FUNCTIONS
_SC_THREAD_STACK_MIN
_SC_THREAD_THREADS_MAX
_SC_TIMERS
_SC_TIMER_MAX
_SC_TTY_NAME_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_TZNAME_MAX
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_VERSION
pathconf / sysconf names. The VM enum discriminants still took these from libc.
_SC_XBS5_ILP32_OFF32
_SC_XBS5_ILP32_OFFBIG
_SC_XBS5_LP64_OFF64
_SC_XBS5_LPBIG_OFFBIG
_SC_XOPEN_CRYPT
_SC_XOPEN_ENH_I18N
_SC_XOPEN_LEGACY
_SC_XOPEN_REALTIME
_SC_XOPEN_REALTIME_THREADS
_SC_XOPEN_SHM
_SC_XOPEN_UNIX
_SC_XOPEN_VERSION
_SC_XOPEN_XCU_VERSION

Functions§

chdir
check_access
chroot
close_fds
dup2
dup_fd
dup_noninheritable
exec_replace
execv
execve
fchdir
fchmod
fchmodat
fchown
fchownat
fork
forkpty
forkpty(3). The child is a session leader with the slave as its controlling terminal. The parent receives the master fd. The child may see master_fd == -1 (Apple’s forkpty); that is returned as -1.
fpathconf
get_number_of_os_threads
get_right_permission
get_terminal_size
getegid
geteuid
getgid
getgrouplist
getgroups
getlogin
getpgid
getpgrp
getpid
getppid
getpriority
getrandom⚠
Safety
getresgid
getresuid
getsid
getuid
initgroups
is_session_leader
kill
killpg
killpg(2): signal every process in a process group.
link_paths
login_tty
madvise
mknod
mknodat
nice
openpty
pathconf
pidfd_open
pipe
pipe2
posix_spawn
pread
pwrite
restore_signals
sched_get_priority_max
sched_get_priority_min
sched_getparam
sched_getscheduler
sched_setparam
sched_setscheduler
sched_yield
sendfile
set_file_times_at
set_inheritable
set_umask
setegid
seteuid
setgid
setgroups_if_needed
setgroups_raw
setpgid
setpgid_if_needed
setpgrp
setpriority
setregid
setregid_if_needed
setresgid
setresuid
setreuid
setreuid_if_needed
setsid
setsid_if_needed
setuid
setup_child_fds
stat_fd
statvfs_fd
statvfs_path
supports_posix_spawn_setsid
symlinkat
sync
sysconf
tcgetpgrp
tcsetpgrp
ttyname
umask
uname_info
validate_posix_spawn_signal
wait3
wait3(2) is wait4(-1, ...).
wait4
wait4(2). rusage is zeroed when pid == 0 (WNOHANG, no child ready).
waitpid
wcoredump
wexitstatus
wifcontinued
wifexited
wifsignaled
wifstopped
write_fd
wstopsig
wtermsig

Type Aliases§

PriorityWhichType
PriorityWhoType
c_char
Equivalent to C’s char type.
pid_t