[][src]Crate uapi

Unix API crate

NOTE: The crate documentation is in the docs module.

Modules

c

Re-export of the libc crate with missing items added

docs

Module containing the crate documentation

Macros

format_ustr

Forwards its arguments to format! and wraps the result in a Ustring

map_err

fn(<integer type>) -> Result<integer type>

ustr

fn(<string literal>) -> &'static Ustr

Structs

AssertPacked

Transparent wrapper that asserts that a type is Packed

AssertPod

Transparent wrapper that asserts that a type is Pod

Bstr

Thin wrapper for a [u8]

Dir

Wrapper for *mut libc::DIR

Dirent

Wrapper for *const libc::dirent

Errno

c_int newtype which wraps ERRNO values

Fd

A borrowed file descriptor

InotifyEvent

Wrapper for libc::inotify_event

Msghdr

Rusty version of an immutable c::msghdr

MsghdrMut

Rusty version of a mutable c::msghdr

OwnedFd

An owned file descriptor

Ustr

Thin wrapper for a [u8] that has a trailing nul byte

UstrPtr

Wrapper for a *const *const libc::c_char with a terminating null pointer

Ustring

Thin wrapper for a Vec<u8> that has a trailing nul byte

UtsName

Wrapper for libc::utsname

Constants

IOCSIZE_MASK

IOCSIZE_MASK

IOCSIZE_SHIFT

IOCSIZE_SHIFT

IOC_IN

IOC_IN

IOC_INOUT

IOC_INOUT

IOC_OUT

IOC_OUT

_IOC_DIRBITS

_IOC_DIRBITS

_IOC_DIRMASK

_IOC_DIRMASK

_IOC_DIRSHIFT

_IOC_DIRSHIFT

_IOC_NONE

_IOC_NONE

_IOC_NRBITS

_IOC_NRBITS

_IOC_NRMASK

_IOC_NRMASK

_IOC_NRSHIFT

_IOC_NRSHIFT

_IOC_READ

_IOC_READ

_IOC_SIZEBITS

_IOC_SIZEBITS

_IOC_SIZEMASK

_IOC_SIZEMASK

_IOC_SIZESHIFT

_IOC_SIZESHIFT

_IOC_TYPEBITS

_IOC_TYPEBITS

_IOC_TYPEMASK

_IOC_TYPEMASK

_IOC_TYPESHIFT

_IOC_TYPESHIFT

_IOC_WRITE

_IOC_WRITE

Traits

AsUstr

Used for cheap conversion from into &Ustr

Bytes

Trait for objects which can be turned into bytes

IntoUstr

Trait for objects which can be turned into Cow<'a, Ustr>

Packed

Marker trait for types without padding

Pod

Marker trait for Pod types

SockAddr

Marker trait for socket address types

UapiReadExt

Read extensions

Functions

WCOREDUMP

wait(2)

WEXITSTATUS

wait(2)

WIFCONTINUED

wait(2)

WIFEXITED

wait(2)

WIFSIGNALED

wait(2)

WIFSTOPPED

wait(2)

WSTOPSIG

wait(2)

WTERMSIG

wait(2)

_IO

_IO

_IOC

_IOC

_IOC_DIR

_IOC_DIR

_IOC_NR

_IOC_NR

_IOC_SIZE

_IOC_SIZE

_IOC_TYPE

_IOC_TYPE

_IOR

_IOR

_IOW

_IOW

_IOWR

_IOWR

accept

accept(2)

accept4

accept4(2)

access

access(2)

as_bytes

Returns the object representation of t

assert_packed

Asserts that T is Packed

assert_pod

Asserts that T is Pod

bind

bind(2)

chdir

chdir(2)

chmod

chmod(2)

chown

chown(2)

chroot

chroot(2)

clock_getres

clock_getres(2)

clock_gettime

clock_gettime(2)

clock_nanosleep

clock_nanosleep(2)

clock_settime

clock_settime(2)

close

close(2)

cmsg_read

Reads a cmsg from a buffer

cmsg_space

Returns the number of bytes needed to store a cmsg with data-length data_len

cmsg_write

Writes a cmsg to a buffer

connect

connect(2)

copy_file_range

copy_file_range(2)

daemon

daemon(3)

dirfd

dirfd(3)

dup

dup(2)

dup2

dup2(2)

dup3

dup3(2)

empty_sig_set

Returns an empty sig set

epoll_create1

epoll_create1(2)

epoll_ctl

epoll_ctl(2)

epoll_wait

epoll_wait(2)

errno_location

Gets a pointer to the current thread's errno

eventfd

eventfd(2)

eventfd_read

Reads from an eventfd file descriptor

eventfd_write

Writes to an eventfd file descriptor

execv

execv(3)

execve

execve(2)

execveat

execveat(2)

execvp

execvp(3)

execvpe

execvpe(3)

faccessat

faccessat(2)

fallocate

fallocate(2)

fchdir

fchdir(2)

fchmod

fchmod(2)

fchmodat

fchmodat(2)

fchown

fchown(2)

fchownat

fchownat(2)

fcntl_add_seals

fcntl(2) with cmd = F_ADD_SEALS

fcntl_dupfd

fcntl(2) with cmd = F_DUPFD

fcntl_dupfd_cloexec

fcntl(2) with cmd = F_DUPFD_CLOEXEC

fcntl_get_seals

fcntl(2) with cmd = F_GET_SEALS

fcntl_getfd

fcntl(2) with cmd = F_GETFD

fcntl_getfl

fcntl(2) with cmd = F_GETFL

fcntl_getlk

fcntl(2) with cmd = F_GETLK

fcntl_getpipe_sz

fcntl(2) with cmd = F_GETPIPE_SZ

fcntl_ofd_getlk

fcntl(2) with cmd = F_OFD_GETLK

fcntl_ofd_setlk

fcntl(2) with cmd = F_OFD_SETLK

fcntl_ofd_setlkw

fcntl(2) with cmd = F_OFD_SETLKW

fcntl_setfd

fcntl(2) with cmd = F_SETFD

fcntl_setfl

fcntl(2) with cmd = F_SETFL

fcntl_setlk

fcntl(2) with cmd = F_SETLK

fcntl_setlkw

fcntl(2) with cmd = F_SETLKW

fcntl_setpipe_sz

fcntl(2) with cmd = F_SETPIPE_SZ

fdatasync

fdatasync(2)

fdopendir

fdopendir(3)

fexecve

fexecve(3)

flock

flock(2)

fork

fork(2)

fpathconf

fpathconf(3)

fsconfig_cmd_create

fsconfig(2) with cmd = FSCONFIG_CMD_CREATE

fsconfig_cmd_reconfigure

fsconfig(2) with cmd = FSCONFIG_CMD_RECONFIGURE

fsconfig_set_binary

fsconfig(2) with cmd = FSCONFIG_SET_BINARY

fsconfig_set_fd

fsconfig(2) with cmd = FSCONFIG_SET_FD

fsconfig_set_flag

fsconfig(2) with cmd = FSCONFIG_SET_FLAG

fsconfig_set_path

fsconfig(2) with cmd = FSCONFIG_SET_PATH

fsconfig_set_path_empty

fsconfig(2) with cmd = FSCONFIG_SET_PATH_EMPTY

fsconfig_set_string

fsconfig(2) with cmd = FSCONFIG_SET_STRING

fsmount

fsmount(2)

fsopen

fsopen(2)

fspick

fspick(2)

fstat

fstat(2)

fstatat

fstatat(2)

fstatfs

fstatfs(2)

fstatvfs

fstatvfs(3)

fsync

fsync(2)

ftruncate

ftruncate(2)

futimens

futimens(2)

futimes

futimes(3)

get_errno

Gets the current thread's errno

getcwd

getcwd(3)

getegid

getegid(2)

geteuid

geteuid(2)

getgid

getgid(2)

getgroups

getgroups(2)

gethostname

gethostname(2)

getpeername

getpeername(2)

getpgrp

getpgrp(2)

getpid

getpid(2)

getppid

getppid(2)

getresgid

getresgid(2)

getresuid

getresuid(2)

getsid

getsid(2)

getsockname

getsockname(2)

getsockopt

getsockopt(2)

gettid

gettid(2)

getuid

getuid(2)

inotify_add_watch

inotify_add_watch(2)

inotify_init1

inotify_init1(2)

inotify_read

Reads from an inotify file descriptor and returns an iterator over the results

inotify_rm_watch

inotify_rm_watch(2)

isatty

isatty(3)

kill

kill(2)

lchown

lchown(2)

link

link(2)

linkat

linkat(2)

listen

listen(2)

lseek

lseek(2)

lstat

lstat(2)

lutimes

lutimes(3)

major

major(3)

makedev

makedev(3)

memfd_create

memfd_create(2)

minor

minor(3)

mkdir

mkdir(2)

mkdirat

mkdirat(2)

mkfifo

mkfifo(3)

mkfifoat

mkfifoat(3)

mknod

mknod(2)

mknodat

mknodat(2)

mount

mount(2)

move_mount

move_mount(2)

open

open(2)

open_tree

open_tree(2)

openat

openat(2)

opendir

opendir(3)

pathconf

pathconf(3)

pause

pause(2)

pipe

pipe(2)

pipe2

pipe2(2)

pivot_root

pivot_root(2)

pod_iter

Converts u into an iterator of T

pod_read

Converts u to T

pod_read_init

Converts an initial port of u to T

pod_write

Writes u to t

pod_zeroed

Returns an instance of T whose object representation is 0 in all non-padding bytes

poll

poll(2)

posix_fadvise

posix_fadvise(2)

posix_fallocate

posix_fallocate(3)

pread

pread(2)

preadv

preadv(2)

preadv2

preadv2(2)

pthread_sigmask

pthread_sigmask(3)

pwrite

pwrite(2)

pwritev

pwritev(2)

pwritev2

pwritev2(2)

raise

raise(3)

read

read(2)

read_link_to_new_ustring

Shortcut for read_link_to_ustring with a new Ustring

read_link_to_ustring

Uses readlinkat(2) on (fd, path) and appends the result to buf

readdir

readdir(3)

readlink

readlink(2)

readlinkat

readlinkat(2)

readv

readv(2)

recv

recv(2)

recvfrom

recvfrom(2)

recvmsg

recvmsg(2)

rename

rename(2)

renameat

renameat(2)

renameat2

renameat2(2)

rewinddir

rewinddir(3)

seekdir

seekdir(3)

send

send(2)

sendfile

sendfile(2)

sendmsg

sendmsg(2)

sendto

sendto(2)

set_errno

Sets the current thread's errno

setegid

setegid(2)

seteuid

seteuid(2)

setgid

setgid(2)

setgroups

setgroups(2)

sethostname

sethostname(2)

setns

setns(2)

setpgid

setpgid(2)

setresgid

setresgid(2)

setresuid

setresuid(2)

setsid

setsid(2)

setsockopt

setsockopt(2)

setuid

setuid(2)

shutdown

shutdown(2)

sigaddset

sigsetops(3)

sigdelset

sigsetops(3)

sigemptyset

sigsetops(3)

sigfillset

sigsetops(3)

sigismember

sigsetops(3)

signalfd_mod

signalfd(2) with fd != -1

signalfd_new

signalfd(2) with fd = -1

signalfd_read

Reads from a signalfd file descriptor and returns the elements read

sigtimedwait

sigtimedwait(2)

sigwait

sigwait(3)

sigwaitinfo

sigwaitinfo(2)

sockaddr_none_mut

Returns Option::<&mut c::sockaddr>::None

sockaddr_none_ref

Returns Option::<&c::sockaddr>::None

socket

socket(2)

socketpair

socketpair(2)

splice

splice(2)

stat

stat(2)

statfs

statfs(2)

statvfs

statvfs(3)

symlink

symlink(2)

symlinkat

symlinkat(2)

sync

sync(2)

syncfs

syncfs(2)

sysconf

sysconf(3)

sysinfo

sysinfo(2)

tee

tee(2)

telldir

telldir(3)

truncate

truncate(2)

umask

umask(2)

umount2

umount2(2)

uname

uname(2)

unlink

unlink(2)

unlinkat

unlinkat(2)

unshare

unshare(2)

utimensat

utimensat(2)

wait

wait(2)

waitpid

waitpid(2)

write

write(2)

writev

writev(2)

Type Definitions

Result