Skip to main content

Crate reverie_syscalls

Crate reverie_syscalls 

Source
Expand description

This crate wraps raw u64 syscall arguments in stronger Rust types. This has a number of useful side effects:

  1. Syscalls and their arguments can be easily displayed for debugging purposes.
  2. When intercepting syscalls, the Rust type can be accessed more safely.
  3. 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_wait on a descriptor it does not have returns, and how a guest close_range closes 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.
AddrSlice
A slice of some read-only memory. The memory can be in this process or in another process.
AddrSliceMut
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.
ArchPrctl
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.
CArrayPtr
An array of pointers.
CStrPtr
A pointer to a CString that 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.
ClockAdjtime
See clock_adjtime(2) for info on this syscall.
ClockGetres
See clock_getres(2) for info on this syscall.
ClockGettime
See clock_gettime(2) for info on this syscall.
ClockId
A clock ID. See the definitions in kernel/include/uapi/linux/time.h.
ClockNanosleep
See clock_nanosleep(2) for info on this syscall.
ClockSettime
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.
CloneArgs
libc does not contain the definition of clone_args.
CloneFlags
Flags used with the clone, clone3, or unshare syscalls.
Close
See close(2) for info on this syscall.
Connect
See connect(2) for info on this syscall.
CopyFileRange
See copy_file_range(2) for info on this syscall.
Creat
See creat(2) for info on this syscall.
CreateModule
Note: This system call is present only in kernels before Linux 2.6. See create_module(2) for info on this syscall.
DeleteModule
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.
EpollCreate
See epoll_create(2) for info on this syscall.
EpollCreate1
See epoll_create1(2) for info on this syscall.
EpollCreateFlags
EpollCtl
See epoll_ctl(2) for info on this syscall.
EpollCtlOld
Undocumented. See epoll_ctl_old(2) for info on this syscall.
EpollPwait
See epoll_pwait(2) for info on this syscall.
EpollWait
See epoll_wait(2) for info on this syscall.
EpollWaitOld
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.
ExitGroup
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.
FanotifyInit
See fanotify_init(2) for info on this syscall.
FanotifyMark
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.
FinitModule
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.
GetKernelSyms
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.
GetRobustList
See get_robust_list(2) for info on this syscall.
GetThreadArea
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.
InitFlags
Configuration options for inotify_init1.
InitModule
See init_module(2) for info on this syscall.
InotifyAddWatch
See inotify_add_watch(2) for info on this syscall.
InotifyInit
See inotify_init(2) for info on this syscall.
InotifyInit1
See inotify_init1(2) for info on this syscall.
InotifyRmWatch
See inotify_rm_watch(2) for info on this syscall.
IoCancel
See io_cancel(2) for info on this syscall.
IoCqringOffsets
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.
IoSqringOffsets
io_sqring_offsets
IoSubmit
See io_submit(2) for info on this syscall.
IoUringEnter
See io_uring_enter(2) for info on this syscall.
IoUringParams
io_uring_params
IoUringRegister
See io_uring_register(2) for info on this syscall.
IoUringSetup
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.
IoprioGet
See ioprio_get(2) for info on this syscall.
IoprioSet
See ioprio_set(2) for info on this syscall.
Kcmp
See kcmp(2) for info on this syscall.
KexecFileLoad
See kexec_file_load(2) for info on this syscall.
KexecLoad
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.
LocalMemory
A local address space.
LookupDcookie
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.
MemfdCreate
See memfd_create(2) for info on this syscall.
MemoryReader
A wrapper around both an address space and a pointer for sequential reads.
MemoryWriter
A wrapper around both an address space and a pointer for sequential writes.
MigratePages
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.
ModifyLdt
See modify_ldt(2) for info on this syscall.
Mount
See mount(2) for info on this syscall.
MovePages
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.
NameToHandleAt
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.
OpenByHandleAt
See open_by_handle_at(2) for info on this syscall.
OpenHow
Represents the struct open_how used by the openat2 syscall. This struct contains the flags, mode, and resolve parameters.
Openat
See openat(2) for info on this syscall.
Openat2
The openat2 syscall provides extended file opening functionality with additional control over pathname resolution.
PathPtr
A pointer to a Path that resides in the target address space.
Pause
See pause(2) for info on this syscall.
PerfEventOpen
See perf_event_open(2) for info on this syscall.
Personality
See personality(2) for info on this syscall.
PidfdOpen
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.
PivotRoot
See pivot_root(2) for info on this syscall.
PkeyAlloc
See pkey_alloc(2) for info on this syscall.
PkeyFree
See pkey_free(2) for info on this syscall.
PkeyMprotect
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.
PollFlags
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.
ProcessVmReadv
See process_vm_readv(2) for info on this syscall.
ProcessVmWritev
See process_vm_writev(2) for info on this syscall.
ProtFlags
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.
QueryModule
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.
RemapFilePages
See remap_file_pages(2) for info on this syscall.
RemoteIoVec
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.
RequestKey
See request_key(2) for info on this syscall.
RestartSyscall
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.
SchedGetPriorityMax
See sched_get_priority_max(2) for info on this syscall.
SchedGetPriorityMin
See sched_get_priority_min(2) for info on this syscall.
SchedGetaffinity
See sched_getaffinity(2) for info on this syscall.
SchedGetattr
See sched_getattr(2) for info on this syscall.
SchedGetparam
See sched_getparam(2) for info on this syscall.
SchedGetscheduler
See sched_getscheduler(2) for info on this syscall.
SchedRrGetInterval
See sched_rr_get_interval(2) for info on this syscall.
SchedSetaffinity
See sched_setaffinity(2) for info on this syscall.
SchedSetattr
See sched_setattr(2) for info on this syscall.
SchedSetparam
See sched_setparam(2) for info on this syscall.
SchedSetscheduler
See sched_setscheduler(2) for info on this syscall.
SchedYield
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.
SetRobustList
See set_robust_list(2) for info on this syscall.
SetThreadArea
See set_thread_area(2) for info on this syscall.
SetTidAddress
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.
SockFlag
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 stat buffer.
Statfs
See statfs(2) for info on this syscall.
Statx
See statx(2) for info on this syscall.
StatxBuf
A serializable version of libc::statx.
StatxMask
stx_mask from statx, see linux/stat.h
StatxPtr
A pointer to a statx buffer.
StatxTimestamp
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.
SyncFileRange
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
SyscallArgs
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.
TimerCreate
See timer_create(2) for info on this syscall.
TimerDelete
See timer_delete(2) for info on this syscall.
TimerFlags
Additional flags to change the behaviour of the file descriptor at the time of creation.
TimerGetoverrun
See timer_getoverrun(2) for info on this syscall.
TimerGettime
See timer_gettime(2) for info on this syscall.
TimerSettime
See timer_settime(2) for info on this syscall.
TimerfdCreate
See timerfd_create(2) for info on this syscall.
TimerfdGettime
See timerfd_gettime(2) for info on this syscall.
TimerfdSettime
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.
TimespecMutPtr
A pointer to a timeval buffer.
Timeval
A serializable version of libc::timeval.
TimevalMutPtr
A pointer to a timeval buffer.
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.
WaitPidFlag
Controls the behavior of waitpid.
Waitid
See waitid(2) for info on this syscall.
Whence
Directives that tell lseek and lseek64 what 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§

ArchPrctlCmd
The argument pairs of arch_prctl(2).
FcntlCmd
A fcntl command 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.
FromToRaw
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 of T and x. 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.
MemoryAccess
Trait for accessing potentially remote memory.
ReadAddr
Helper trait for reading a specific value from an address.
SyscallInfo
A trait that all syscalls implement.

Type Aliases§

Fstatat
Alias for Newfstatat. Architectures other than x86-64 usually name this syscall fstatat.