[−][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 |
map_err |
|
ustr |
|
Structs
AssertPacked | Transparent wrapper that asserts that a type is |
AssertPod | Transparent wrapper that asserts that a type is |
Bstr | Thin wrapper for a |
Dir | Wrapper for |
Dirent | Wrapper for |
Errno |
|
Fd | A borrowed file descriptor |
Msghdr | Rusty version of an immutable |
MsghdrMut | Rusty version of a mutable |
OwnedFd | An owned file descriptor |
Ustr | Thin wrapper for a |
UstrPtr | Wrapper for a |
Ustring | Thin wrapper for a |
UtsName | Wrapper for |
Constants
IOCPARM_MASK | [ |
IOCPARM_MAX | [ |
IOCPARM_SHIFT | [ |
IOC_DIRMASK | [ |
IOC_IN | [ |
IOC_INOUT | [ |
IOC_OUT | [ |
IOC_VOID | [ |
Traits
AsUstr | Used for cheap conversion from into |
Bytes | Trait for objects which can be turned into bytes |
IntoUstr | Trait for objects which can be turned into |
Packed | Marker trait for types without padding |
Pod | Marker trait for Pod types |
SockAddr | Marker trait for socket address types |
UapiReadExt |
|
Functions
IOCBASECMD | [ |
IOCGROUP | [ |
IOCPARM_LEN | [ |
WCOREDUMP | |
WEXITSTATUS | |
WIFCONTINUED | |
WIFEXITED | |
WIFSIGNALED | |
WIFSTOPPED | |
WSTOPSIG | |
WTERMSIG | |
_IO | [ |
_IOC | [ |
_IOR | [ |
_IOW | [ |
_IOWINT | [ |
_IOWR | [ |
accept | |
access | |
as_bytes | Returns the object representation of |
assert_packed⚠ | Asserts that |
assert_pod⚠ | Asserts that |
bind | |
chdir | |
chmod | |
chown | |
chroot | |
clock_getres | |
clock_gettime | |
close | |
cmsg_read | Reads a cmsg from a buffer |
cmsg_space | Returns the number of bytes needed to store a cmsg with data-length |
cmsg_write | Writes a cmsg to a buffer |
connect | |
daemon | |
dirfd | |
dup | |
dup2 | |
empty_sig_set | Returns an empty sig set |
errno_location | Gets a pointer to the current thread's errno |
execv | |
execve | |
execvp | |
faccessat | |
fchdir | |
fchmod | |
fchmodat | |
fchown | |
fchownat | |
fcntl_dupfd |
|
fcntl_dupfd_cloexec |
|
fcntl_getfd |
|
fcntl_getfl |
|
fcntl_getlk |
|
fcntl_setfd |
|
fcntl_setfl |
|
fcntl_setlk |
|
fcntl_setlkw |
|
fdopendir | |
flock | |
fork⚠ | |
fpathconf | |
fstat | |
fstatat | |
fstatvfs | |
fsync | |
ftruncate | |
futimens | |
futimes | |
get_errno | Gets the current thread's errno |
getcwd | |
getegid | |
geteuid | |
getgid | |
getgroups | |
gethostname | |
getpeername | |
getpgrp | |
getpid | |
getppid | |
getsid | |
getsockname | |
getsockopt | |
getuid | |
isatty | |
kill | |
lchown | |
link | |
linkat | |
listen | |
lseek | |
lstat | |
lutimes | |
mkdir | |
mkdirat | |
mkfifo | |
mknod | |
open | |
openat | |
opendir | |
pathconf | |
pause | |
pipe | |
pod_iter | Converts |
pod_read | Converts |
pod_read_init | Converts an initial port of |
pod_write | Writes |
pod_zeroed | Returns an instance of |
poll | |
pread | |
pthread_sigmask | |
pwrite | |
raise | |
read | |
read_link_to_new_ustring | Shortcut for |
read_link_to_ustring | Uses |
readdir | |
readlink | |
readlinkat | |
readv | |
recv | |
recvfrom | |
recvmsg | |
rename | |
renameat | |
rewinddir | |
seekdir | |
send | |
sendmsg | |
sendto | |
set_errno | Sets the current thread's errno |
setegid | |
seteuid | |
setgid | |
setgroups | |
sethostname | |
setpgid | |
setsid | |
setsockopt | |
setuid | |
shutdown | |
sigaddset | |
sigdelset | |
sigemptyset | |
sigfillset | |
sigismember | |
sigwait | |
sockaddr_none_mut | Returns |
sockaddr_none_ref | Returns |
socket | |
socketpair | |
stat | |
statvfs | |
symlink | |
symlinkat | |
sync | |
sysconf | |
telldir | |
truncate | |
umask | |
uname | |
unlink | |
unlinkat | |
utimensat | |
wait | |
waitpid | |
write | |
writev |
Type Definitions
Result |