Expand description
This crate wraps raw u64 syscall arguments in stronger Rust types. This
has a number of useful side effects:
- Syscalls and their arguments can be easily displayed for debugging purposes.
- When intercepting syscalls, the Rust type can be accessed more safely.
- When injecting syscalls, it is easier and clearer to set the arguments
using the
with_*builder methods.
Modules§
- family
- This module provides groupings of closely related syscalls (i.e., “families”). These are useful when needing to handle families in very similar ways.
- ioctl
- Everything related to ioctl arguments.
- linux_
abi - Linux syscall-buffer ABI, independent of the tool’s target C library.
- reserved_
fds - The one rule for the descriptors a backend keeps for itself, shared by
every backend that runs inside the guest process (the in-guest runtime and
LiteInst, SaBRe and e9patch’s tool host): which syscalls name a descriptor,
how the kernel reads a descriptor argument, what a guest
epoll_waiton a descriptor it does not have returns, and how a guestclose_rangecloses everything in its range except the reserved descriptors.
Macros§
- displayable_
ptr - Macro that implements a wrapper for a pointer e.g. [‘AddrMut’] or [’Addr] with custom [‘Displayable’] implementation
- impl_
displayable - Macro that implements [‘Displayable’] trait for a given type based on another trait implementation e.g. [‘Debug’] or [‘Display’], etc
Structs§
- Accept
- See accept(2) for info on this syscall.
- Accept4
- See accept4(2) for info on this syscall.
- Access
- See access(2) for info on this syscall.
- Acct
- See acct(2) for info on this syscall.
- AddKey
- See add_key(2) for info on this syscall.
- Addr
- An address to some immutable memory. We don’t know where the memory lives; it can be either in the current process or a another process.
- AddrMut
- An address to some mutable memory. We don’t know where the memory lives; it can be either in the current process or a another process.
- Addr
Slice - A slice of some read-only memory. The memory can be in this process or in another process.
- Addr
Slice Mut - A slice of some writable memory. The memory can be in this process or in another process.
- Adjtimex
- See adjtimex(2) for info on this syscall.
- AfsSyscall
- Unimplemented in the kernel. See afs_syscall(2) for info on this syscall.
- Alarm
- See alarm(2) for info on this syscall.
- Arch
Prctl - See arch_prctl(2) for info on this syscall.
- AtFlags
- Flags that control how the various *at syscalls behave.
- Bind
- See bind(2) for info on this syscall.
- Bpf
- See bpf(2) for info on this syscall.
- Brk
- See brk(2) for info on this syscall.
- CArray
Ptr - An array of pointers.
- CStrPtr
- A pointer to a
CStringthat resides in the target address space. - Capget
- See capget(2) for info on this syscall.
- Capset
- See capset(2) for info on this syscall.
- Chdir
- See chdir(2) for info on this syscall.
- Chmod
- See chmod(2) for info on this syscall.
- Chown
- See chown(2) for info on this syscall.
- Chroot
- See chroot(2) for info on this syscall.
- Clock
Adjtime - See clock_adjtime(2) for info on this syscall.
- Clock
Getres - See clock_getres(2) for info on this syscall.
- Clock
Gettime - See clock_gettime(2) for info on this syscall.
- ClockId
- A clock ID. See the definitions in
kernel/include/uapi/linux/time.h. - Clock
Nanosleep - See clock_nanosleep(2) for info on this syscall.
- Clock
Settime - See clock_settime(2) for info on this syscall.
- Clone
- See clone(2) for info on this syscall.
- Clone3
- See clone3(2) for info on this syscall.
- Clone
Args - libc does not contain the definition of
clone_args. - Clone
Flags - Flags used with the
clone,clone3, orunsharesyscalls. - Close
- See close(2) for info on this syscall.
- Connect
- See connect(2) for info on this syscall.
- Copy
File Range - See copy_file_range(2) for info on this syscall.
- Creat
- See creat(2) for info on this syscall.
- Create
Module - Note: This system call is present only in kernels before Linux 2.6. See create_module(2) for info on this syscall.
- Delete
Module - See delete_module(2) for info on this syscall.
- Display
- A wrapper that combines an address space and a syscall. This is useful for displaying the contents of syscall pointer inputs.
- Dup
- See dup(2) for info on this syscall.
- Dup2
- See dup2(2) for info on this syscall.
- Dup3
- See dup3(2) for info on this syscall.
- EfdFlags
- Eventfd flags.
- Epoll
Create - See epoll_create(2) for info on this syscall.
- Epoll
Create1 - See epoll_create1(2) for info on this syscall.
- Epoll
Create Flags - Epoll
Ctl - See epoll_ctl(2) for info on this syscall.
- Epoll
CtlOld - Undocumented. See epoll_ctl_old(2) for info on this syscall.
- Epoll
Pwait - See epoll_pwait(2) for info on this syscall.
- Epoll
Wait - See epoll_wait(2) for info on this syscall.
- Epoll
Wait Old - Undocumented. See epoll_wait_old(2) for info on this syscall.
- Errno
- Eventfd
- See eventfd(2) for info on this syscall.
- Eventfd2
- See eventfd2(2) for info on this syscall.
- Execve
- See execve(2) for info on this syscall.
- Execveat
- See execveat(2) for info on this syscall.
- Exit
- See exit(2) for info on this syscall.
- Exit
Group - See exit_group(2) for info on this syscall.
- Faccessat
- See faccessat(2) for info on this syscall.
- Fadvise64
- See fadvise64(2) for info on this syscall.
- Fallocate
- See fallocate(2) for info on this syscall.
- Fanotify
Init - See fanotify_init(2) for info on this syscall.
- Fanotify
Mark - See fanotify_mark(2) for info on this syscall.
- Fchdir
- See fchdir(2) for info on this syscall.
- Fchmod
- See fchmod(2) for info on this syscall.
- Fchmodat
- See fchmodat(2) for info on this syscall.
- Fchmodat2
- See fchmodat2(2) for info on this syscall.
- Fchown
- See fchown(2) for info on this syscall.
- Fchownat
- See fchownat(2) for info on this syscall.
- Fcntl
- See fcntl(2) for info on this syscall.
- Fdatasync
- See fdatasync(2) for info on this syscall.
- Fgetxattr
- See fgetxattr(2) for info on this syscall.
- Finit
Module - See finit_module(2) for info on this syscall.
- Flistxattr
- See flistxattr(2) for info on this syscall.
- Flock
- See flock(2) for info on this syscall.
- Fork
- See fork(2) for info on this syscall.
- Fremovexattr
- See fremovexattr(2) for info on this syscall.
- Fsetxattr
- See fsetxattr(2) for info on this syscall.
- Fstat
- See fstat(2) for info on this syscall.
- Fstatfs
- See fstatfs(2) for info on this syscall.
- Fsync
- See fsync(2) for info on this syscall.
- Ftruncate
- See ftruncate(2) for info on this syscall.
- Futex
- See futex(2) for info on this syscall.
- Futimesat
- See futimesat(2) for info on this syscall.
- GetKernel
Syms - Note: This system call is present only in kernels before Linux 2.6. See get_kernel_syms(2) for info on this syscall.
- GetMempolicy
- See get_mempolicy(2) for info on this syscall.
- GetRobust
List - See get_robust_list(2) for info on this syscall.
- GetThread
Area - See get_thread_area(2) for info on this syscall.
- Getcpu
- See getcpu(2) for info on this syscall.
- Getcwd
- See getcwd(2) for info on this syscall.
- Getdents
- See getdents(2) for info on this syscall.
- Getdents64
- See getdents64(2) for info on this syscall.
- Getegid
- See getegid(2) for info on this syscall.
- Geteuid
- See geteuid(2) for info on this syscall.
- Getgid
- See getgid(2) for info on this syscall.
- Getgroups
- See getgroups(2) for info on this syscall.
- Getitimer
- See getitimer(2) for info on this syscall.
- Getpeername
- See getpeername(2) for info on this syscall.
- Getpgid
- See getpgid(2) for info on this syscall.
- Getpgrp
- See getpgrp(2) for info on this syscall.
- Getpid
- See getpid(2) for info on this syscall.
- Getpmsg
- Unimplemented in the kernel. See getpmsg(2) for info on this syscall.
- Getppid
- See getppid(2) for info on this syscall.
- Getpriority
- See getpriority(2) for info on this syscall.
- Getrandom
- See getrandom(2) for info on this syscall.
- Getresgid
- See getresgid(2) for info on this syscall.
- Getresuid
- See getresuid(2) for info on this syscall.
- Getrlimit
- See getrlimit(2) for info on this syscall.
- Getrusage
- See getrusage(2) for info on this syscall.
- Getsid
- See getsid(2) for info on this syscall.
- Getsockname
- See getsockname(2) for info on this syscall.
- Getsockopt
- See getsockopt(2) for info on this syscall.
- Gettid
- See gettid(2) for info on this syscall.
- Gettimeofday
- See gettimeofday(2) for info on this syscall.
- Getuid
- See getuid(2) for info on this syscall.
- Getxattr
- See getxattr(2) for info on this syscall.
- Init
Flags - Configuration options for
inotify_init1. - Init
Module - See init_module(2) for info on this syscall.
- Inotify
AddWatch - See inotify_add_watch(2) for info on this syscall.
- Inotify
Init - See inotify_init(2) for info on this syscall.
- Inotify
Init1 - See inotify_init1(2) for info on this syscall.
- Inotify
RmWatch - See inotify_rm_watch(2) for info on this syscall.
- IoCancel
- See io_cancel(2) for info on this syscall.
- IoCqring
Offsets io_cqring_offsets- IoDestroy
- See io_destroy(2) for info on this syscall.
- IoGetevents
- See io_getevents(2) for info on this syscall.
- IoSetup
- See io_setup(2) for info on this syscall.
- IoSqring
Offsets io_sqring_offsets- IoSubmit
- See io_submit(2) for info on this syscall.
- IoUring
Enter - See io_uring_enter(2) for info on this syscall.
- IoUring
Params io_uring_params- IoUring
Register - See io_uring_register(2) for info on this syscall.
- IoUring
Setup - See io_uring_setup(2) for info on this syscall.
- Ioctl
- See ioctl(2) for info on this syscall.
- Ioperm
- See ioperm(2) for info on this syscall.
- Iopl
- See iopl(2) for info on this syscall.
- Ioprio
Get - See ioprio_get(2) for info on this syscall.
- Ioprio
Set - See ioprio_set(2) for info on this syscall.
- Kcmp
- See kcmp(2) for info on this syscall.
- Kexec
File Load - See kexec_file_load(2) for info on this syscall.
- Kexec
Load - See kexec_load(2) for info on this syscall.
- Keyctl
- See keyctl(2) for info on this syscall.
- Kill
- See kill(2) for info on this syscall.
- Lchown
- See lchown(2) for info on this syscall.
- Lgetxattr
- See lgetxattr(2) for info on this syscall.
- Link
- See link(2) for info on this syscall.
- Linkat
- See linkat(2) for info on this syscall.
- Listen
- See listen(2) for info on this syscall.
- Listxattr
- See listxattr(2) for info on this syscall.
- Llistxattr
- See llistxattr(2) for info on this syscall.
- Local
Memory - A local address space.
- Lookup
Dcookie - See lookup_dcookie(2) for info on this syscall.
- Lremovexattr
- See lremovexattr(2) for info on this syscall.
- Lseek
- See lseek(2) for info on this syscall.
- Lsetxattr
- See lsetxattr(2) for info on this syscall.
- Lstat
- See lstat(2) for info on this syscall.
- Madvise
- See madvise(2) for info on this syscall.
- MapFlags
- Additional parameters for
mmap. - Mbind
- See mbind(2) for info on this syscall.
- Membarrier
- See membarrier(2) for info on this syscall.
- Memfd
Create - See memfd_create(2) for info on this syscall.
- Memory
Reader - A wrapper around both an address space and a pointer for sequential reads.
- Memory
Writer - A wrapper around both an address space and a pointer for sequential writes.
- Migrate
Pages - See migrate_pages(2) for info on this syscall.
- Mincore
- See mincore(2) for info on this syscall.
- Mkdir
- See mkdir(2) for info on this syscall.
- Mkdirat
- See mkdirat(2) for info on this syscall.
- Mknod
- See mknod(2) for info on this syscall.
- Mknodat
- See mknodat(2) for info on this syscall.
- Mlock
- See mlock(2) for info on this syscall.
- Mlock2
- See mlock2(2) for info on this syscall.
- Mlockall
- See mlockall(2) for info on this syscall.
- Mmap
- See mmap(2) for info on this syscall.
- Mode
- “File mode / permissions” flags.
- Modify
Ldt - See modify_ldt(2) for info on this syscall.
- Mount
- See mount(2) for info on this syscall.
- Move
Pages - See move_pages(2) for info on this syscall.
- Mprotect
- See mprotect(2) for info on this syscall.
- MqGetsetattr
- See mq_getsetattr(2) for info on this syscall.
- MqNotify
- See mq_notify(2) for info on this syscall.
- MqOpen
- See mq_open(2) for info on this syscall.
- MqTimedreceive
- See mq_timedreceive(2) for info on this syscall.
- MqTimedsend
- See mq_timedsend(2) for info on this syscall.
- MqUnlink
- See mq_unlink(2) for info on this syscall.
- Mremap
- See mremap(2) for info on this syscall.
- Msgctl
- See msgctl(2) for info on this syscall.
- Msgget
- See msgget(2) for info on this syscall.
- Msgrcv
- See msgrcv(2) for info on this syscall.
- Msgsnd
- See msgsnd(2) for info on this syscall.
- Msync
- See msync(2) for info on this syscall.
- Munlock
- See munlock(2) for info on this syscall.
- Munlockall
- See munlockall(2) for info on this syscall.
- Munmap
- See munmap(2) for info on this syscall.
- Name
ToHandle At - See name_to_handle_at(2) for info on this syscall.
- Nanosleep
- See nanosleep(2) for info on this syscall.
- Newfstatat
- See newfstatat(2) for info on this syscall.
- Nfsservctl
- Note: Since Linux 3.1, this system call no longer exists. It has been
replaced by a set of files in the nfsd filesystem; see
nfsd(7). See nfsservctl(2) for info on this syscall. - OFlag
- Configuration options for opened files.
- Open
- See open(2) for info on this syscall.
- Open
ByHandle At - See open_by_handle_at(2) for info on this syscall.
- OpenHow
- Represents the
struct open_howused by theopenat2syscall. This struct contains the flags, mode, and resolve parameters. - Openat
- See openat(2) for info on this syscall.
- Openat2
- The
openat2syscall provides extended file opening functionality with additional control over pathname resolution. - PathPtr
- A pointer to a
Paththat resides in the target address space. - Pause
- See pause(2) for info on this syscall.
- Perf
Event Open - See perf_event_open(2) for info on this syscall.
- Personality
- See personality(2) for info on this syscall.
- Pidfd
Open - See pidfd_open(2) for info on this syscall.
- Pipe
- See pipe(2) for info on this syscall.
- Pipe2
- See pipe2(2) for info on this syscall.
- Pivot
Root - See pivot_root(2) for info on this syscall.
- Pkey
Alloc - See pkey_alloc(2) for info on this syscall.
- Pkey
Free - See pkey_free(2) for info on this syscall.
- Pkey
Mprotect - See pkey_mprotect(2) for info on this syscall.
- Poll
- See poll(2) for info on this syscall.
- PollFd
- A serializable version of
libc::pollfd. - Poll
Flags - Flags for
PollFd. - Ppoll
- See ppoll(2) for info on this syscall.
- Prctl
- See prctl(2) for info on this syscall.
- Pread64
- See pread64(2) for info on this syscall.
- Preadv
- See preadv(2) for info on this syscall.
- Preadv2
- See preadv2(2) for info on this syscall.
- Prlimit64
- See prlimit64(2) for info on this syscall.
- Process
VmReadv - See process_vm_readv(2) for info on this syscall.
- Process
VmWritev - See process_vm_writev(2) for info on this syscall.
- Prot
Flags - Desired memory protection of a memory mapping.
- Pselect6
- See pselect6(2) for info on this syscall.
- Ptrace
- See ptrace(2) for info on this syscall.
- Putpmsg
- Unimplemented in the kernel. See putpmsg(2) for info on this syscall.
- Pwrite64
- See pwrite64(2) for info on this syscall.
- Pwritev
- See pwritev(2) for info on this syscall.
- Pwritev2
- See pwritev2(2) for info on this syscall.
- Query
Module - See query_module(2) for info on this syscall.
- Quotactl
- See quotactl(2) for info on this syscall.
- RawSyscall
- A syscall whose number the type-safe table cannot name: the raw number and arguments, exactly as the guest issued them.
- Read
- See read(2) for info on this syscall.
- Readahead
- See readahead(2) for info on this syscall.
- Readlink
- See readlink(2) for info on this syscall.
- Readlinkat
- See readlinkat(2) for info on this syscall.
- Readv
- See readv(2) for info on this syscall.
- Reboot
- See reboot(2) for info on this syscall.
- Recvfrom
- See recvfrom(2) for info on this syscall.
- Recvmmsg
- See recvmmsg(2) for info on this syscall.
- Recvmsg
- See recvmsg(2) for info on this syscall.
- Remap
File Pages - See remap_file_pages(2) for info on this syscall.
- Remote
IoVec - One numeric destination in another process’s address space.
- Removexattr
- See removexattr(2) for info on this syscall.
- Rename
- See rename(2) for info on this syscall.
- Renameat
- See renameat(2) for info on this syscall.
- Renameat2
- See renameat2(2) for info on this syscall.
- Request
Key - See request_key(2) for info on this syscall.
- Restart
Syscall - See restart_syscall(2) for info on this syscall.
- Rmdir
- See rmdir(2) for info on this syscall.
- RtSigaction
- See rt_sigaction(2) for info on this syscall.
- RtSigpending
- See rt_sigpending(2) for info on this syscall.
- RtSigprocmask
- See rt_sigprocmask(2) for info on this syscall.
- RtSigqueueinfo
- See rt_sigqueueinfo(2) for info on this syscall.
- RtSigreturn
- See rt_sigreturn(2) for info on this syscall.
- RtSigsuspend
- See rt_sigsuspend(2) for info on this syscall.
- RtSigtimedwait
- See rt_sigtimedwait(2) for info on this syscall.
- RtTgsigqueueinfo
- See rt_tgsigqueueinfo(2) for info on this syscall.
- Sched
GetPriority Max - See sched_get_priority_max(2) for info on this syscall.
- Sched
GetPriority Min - See sched_get_priority_min(2) for info on this syscall.
- Sched
Getaffinity - See sched_getaffinity(2) for info on this syscall.
- Sched
Getattr - See sched_getattr(2) for info on this syscall.
- Sched
Getparam - See sched_getparam(2) for info on this syscall.
- Sched
Getscheduler - See sched_getscheduler(2) for info on this syscall.
- Sched
RrGet Interval - See sched_rr_get_interval(2) for info on this syscall.
- Sched
Setaffinity - See sched_setaffinity(2) for info on this syscall.
- Sched
Setattr - See sched_setattr(2) for info on this syscall.
- Sched
Setparam - See sched_setparam(2) for info on this syscall.
- Sched
Setscheduler - See sched_setscheduler(2) for info on this syscall.
- Sched
Yield - See sched_yield(2) for info on this syscall.
- Seccomp
- See seccomp(2) for info on this syscall.
- Security
- Unimplemented in the kernel. See security(2) for info on this syscall.
- Select
- See select(2) for info on this syscall.
- Semctl
- See semctl(2) for info on this syscall.
- Semget
- See semget(2) for info on this syscall.
- Semop
- See semop(2) for info on this syscall.
- Semtimedop
- See semtimedop(2) for info on this syscall.
- Sendfile
- See sendfile(2) for info on this syscall.
- Sendmmsg
- See sendmmsg(2) for info on this syscall.
- Sendmsg
- See sendmsg(2) for info on this syscall.
- Sendto
- See sendto(2) for info on this syscall.
- SetMempolicy
- See set_mempolicy(2) for info on this syscall.
- SetRobust
List - See set_robust_list(2) for info on this syscall.
- SetThread
Area - See set_thread_area(2) for info on this syscall.
- SetTid
Address - See set_tid_address(2) for info on this syscall.
- Setdomainname
- See setdomainname(2) for info on this syscall.
- Setfsgid
- See setfsgid(2) for info on this syscall.
- Setfsuid
- See setfsuid(2) for info on this syscall.
- Setgid
- See setgid(2) for info on this syscall.
- Setgroups
- See setgroups(2) for info on this syscall.
- Sethostname
- See sethostname(2) for info on this syscall.
- Setitimer
- See setitimer(2) for info on this syscall.
- Setns
- See setns(2) for info on this syscall.
- Setpgid
- See setpgid(2) for info on this syscall.
- Setpriority
- See setpriority(2) for info on this syscall.
- Setregid
- See setregid(2) for info on this syscall.
- Setresgid
- See setresgid(2) for info on this syscall.
- Setresuid
- See setresuid(2) for info on this syscall.
- Setreuid
- See setreuid(2) for info on this syscall.
- Setrlimit
- See setrlimit(2) for info on this syscall.
- Setsid
- See setsid(2) for info on this syscall.
- Setsockopt
- See setsockopt(2) for info on this syscall.
- Settimeofday
- See settimeofday(2) for info on this syscall.
- Setuid
- See setuid(2) for info on this syscall.
- Setxattr
- See setxattr(2) for info on this syscall.
- SfdFlags
- Shmat
- See shmat(2) for info on this syscall.
- Shmctl
- See shmctl(2) for info on this syscall.
- Shmdt
- See shmdt(2) for info on this syscall.
- Shmget
- See shmget(2) for info on this syscall.
- Shutdown
- See shutdown(2) for info on this syscall.
- Sigaltstack
- See sigaltstack(2) for info on this syscall.
- Signalfd
- Naked signalfd(2) is not the same as glibc wrapper. see kernel fs/signalfd.c for more details. NB: kernel_sigset_t is 8 bytes (sizeof usize), we still use libc::sigset_t here because kernel access only the 1st 8 bytes. NB2: glibc wrapper will call signalfd4(2) instead, this this syscall is only possible when user calls libc::syscall directly. See signalfd(2) for info on this syscall.
- Signalfd4
- Naked signalfd4(2) is not the same as glibc wrapper. see kernel fs/signalfd.c for more details. NB: kernel_sigset_t is 8 bytes (sizeof usize), we still use libc::sigset_t here because kernel access only the 1st 8 bytes. See signalfd4(2) for info on this syscall.
- Sock
Flag - Additional socket options
- Socket
- See socket(2) for info on this syscall.
- Socketpair
- See socketpair(2) for info on this syscall.
- Splice
- See splice(2) for info on this syscall.
- Stat
- See stat(2) for info on this syscall.
- StatBuf
- A serializable version of
libc::stat. - StatPtr
- A pointer to a
statbuffer. - Statfs
- See statfs(2) for info on this syscall.
- Statx
- See statx(2) for info on this syscall.
- Statx
Buf - A serializable version of
libc::statx. - Statx
Mask - stx_mask from statx, see linux/stat.h
- Statx
Ptr - A pointer to a
statxbuffer. - Statx
Timestamp - A serializable version of
libc::statx. - Swapoff
- See swapoff(2) for info on this syscall.
- Swapon
- See swapon(2) for info on this syscall.
- Symlink
- See symlink(2) for info on this syscall.
- Symlinkat
- See symlinkat(2) for info on this syscall.
- Sync
- See sync(2) for info on this syscall.
- Sync
File Range - See sync_file_range(2) for info on this syscall.
- Syncfs
- See syncfs(2) for info on this syscall.
- SysInfo
- Type safe structure representing ‘sysinfo’ system call argument
- Syscall
Args - The 6 arguments of a syscall, raw untyped version.
- Sysfs
- See sysfs(2) for info on this syscall.
- Sysinfo
- See sysinfo(2) for info on this syscall.
- Syslog
- See syslog(2) for info on this syscall.
- Tee
- See tee(2) for info on this syscall.
- Tgkill
- See tgkill(2) for info on this syscall.
- Time
- See time(2) for info on this syscall.
- Timer
Create - See timer_create(2) for info on this syscall.
- Timer
Delete - See timer_delete(2) for info on this syscall.
- Timer
Flags - Additional flags to change the behaviour of the file descriptor at the time of creation.
- Timer
Getoverrun - See timer_getoverrun(2) for info on this syscall.
- Timer
Gettime - See timer_gettime(2) for info on this syscall.
- Timer
Settime - See timer_settime(2) for info on this syscall.
- Timerfd
Create - See timerfd_create(2) for info on this syscall.
- Timerfd
Gettime - See timerfd_gettime(2) for info on this syscall.
- Timerfd
Settime - See timerfd_settime(2) for info on this syscall.
- Times
- See times(2) for info on this syscall.
- Timespec
- A serializable version of
libc::timespec. - Timespec
MutPtr - A pointer to a
timevalbuffer. - Timeval
- A serializable version of
libc::timeval. - Timeval
MutPtr - A pointer to a
timevalbuffer. - Timezone
- A serializable version of
libc::timezone. - Tkill
- See tkill(2) for info on this syscall.
- Truncate
- See truncate(2) for info on this syscall.
- Tuxcall
- Unimplemented in the kernel. See tuxcall(2) for info on this syscall.
- Umask
- See umask(2) for info on this syscall.
- Umount2
- See umount2(2) for info on this syscall.
- Uname
- See uname(2) for info on this syscall.
- Unlink
- See unlink(2) for info on this syscall.
- Unlinkat
- See unlinkat(2) for info on this syscall.
- Unshare
- See unshare(2) for info on this syscall.
- Uselib
- See uselib(2) for info on this syscall.
- Userfaultfd
- See userfaultfd(2) for info on this syscall.
- Ustat
- See ustat(2) for info on this syscall.
- Utime
- See utime(2) for info on this syscall.
- Utimensat
- See utimensat(2) for info on this syscall.
- Utimes
- See utimes(2) for info on this syscall.
- Vfork
- See vfork(2) for info on this syscall.
- Vhangup
- See vhangup(2) for info on this syscall.
- Vmsplice
- See vmsplice(2) for info on this syscall.
- Vserver
- Unimplemented in the kernel. See vserver(2) for info on this syscall.
- Wait4
- See wait4(2) for info on this syscall.
- Wait
PidFlag - Controls the behavior of
waitpid. - Waitid
- See waitid(2) for info on this syscall.
- Whence
- Directives that tell
lseekandlseek64what the offset is relative to. - Write
- See write(2) for info on this syscall.
- Writev
- See writev(2) for info on this syscall.
- _sysctl
- See _sysctl(2) for info on this syscall.
Enums§
- Arch
Prctl Cmd - The argument pairs of
arch_prctl(2). - Fcntl
Cmd - A
fcntlcommand paired with its argument. - Syscall
- Full list of type-safe syscalls.
- Sysno
- Complete list of Linux syscalls.
Traits§
- Displayable
- Trait that all syscalls and their arguments need to implement in order to be printed out.
- From
ToRaw - Trait representing a raw value. Note that the assertion
assert_eq!(T::from_raw(x).into_raw(), x)should hold true for every possible value ofTandx. In other words, there should be no loss of information and conversions should never fail. This ensures that adding type information to a value will always be forward compatible. - Memory
Access - Trait for accessing potentially remote memory.
- Read
Addr - Helper trait for reading a specific value from an address.
- Syscall
Info - A trait that all syscalls implement.
Type Aliases§
- Fstatat
- Alias for Newfstatat. Architectures other than x86-64 usually name this
syscall
fstatat.