Struct SyscallNum

Source
pub struct SyscallNum(/* private fields */);
Expand description

Linux x86-64 syscall number.

Implementations§

Source§

impl SyscallNum

Source

pub const NR_read: Self

Source

pub const NR_write: Self

Source

pub const NR_open: Self

Source

pub const NR_close: Self

Source

pub const NR_stat: Self

Source

pub const NR_fstat: Self

Source

pub const NR_lstat: Self

Source

pub const NR_poll: Self

Source

pub const NR_lseek: Self

Source

pub const NR_mmap: Self

Source

pub const NR_mprotect: Self

Source

pub const NR_munmap: Self

Source

pub const NR_brk: Self

Source

pub const NR_rt_sigaction: Self

Source

pub const NR_rt_sigprocmask: Self

Source

pub const NR_rt_sigreturn: Self

Source

pub const NR_ioctl: Self

Source

pub const NR_pread64: Self

Source

pub const NR_pwrite64: Self

Source

pub const NR_readv: Self

Source

pub const NR_writev: Self

Source

pub const NR_access: Self

Source

pub const NR_pipe: Self

Source

pub const NR_select: Self

Source

pub const NR_sched_yield: Self

Source

pub const NR_mremap: Self

Source

pub const NR_msync: Self

Source

pub const NR_mincore: Self

Source

pub const NR_madvise: Self

Source

pub const NR_shmget: Self

Source

pub const NR_shmat: Self

Source

pub const NR_shmctl: Self

Source

pub const NR_dup: Self

Source

pub const NR_dup2: Self

Source

pub const NR_pause: Self

Source

pub const NR_nanosleep: Self

Source

pub const NR_getitimer: Self

Source

pub const NR_alarm: Self

Source

pub const NR_setitimer: Self

Source

pub const NR_getpid: Self

Source

pub const NR_sendfile: Self

Source

pub const NR_socket: Self

Source

pub const NR_connect: Self

Source

pub const NR_accept: Self

Source

pub const NR_sendto: Self

Source

pub const NR_recvfrom: Self

Source

pub const NR_sendmsg: Self

Source

pub const NR_recvmsg: Self

Source

pub const NR_shutdown: Self

Source

pub const NR_bind: Self

Source

pub const NR_listen: Self

Source

pub const NR_getsockname: Self

Source

pub const NR_getpeername: Self

Source

pub const NR_socketpair: Self

Source

pub const NR_setsockopt: Self

Source

pub const NR_getsockopt: Self

Source

pub const NR_clone: Self

Source

pub const NR_fork: Self

Source

pub const NR_vfork: Self

Source

pub const NR_execve: Self

Source

pub const NR_exit: Self

Source

pub const NR_wait4: Self

Source

pub const NR_kill: Self

Source

pub const NR_uname: Self

Source

pub const NR_semget: Self

Source

pub const NR_semop: Self

Source

pub const NR_semctl: Self

Source

pub const NR_shmdt: Self

Source

pub const NR_msgget: Self

Source

pub const NR_msgsnd: Self

Source

pub const NR_msgrcv: Self

Source

pub const NR_msgctl: Self

Source

pub const NR_fcntl: Self

Source

pub const NR_flock: Self

Source

pub const NR_fsync: Self

Source

pub const NR_fdatasync: Self

Source

pub const NR_truncate: Self

Source

pub const NR_ftruncate: Self

Source

pub const NR_getdents: Self

Source

pub const NR_getcwd: Self

Source

pub const NR_chdir: Self

Source

pub const NR_fchdir: Self

Source

pub const NR_rename: Self

Source

pub const NR_mkdir: Self

Source

pub const NR_rmdir: Self

Source

pub const NR_creat: Self

Source

pub const NR_chmod: Self

Source

pub const NR_fchmod: Self

Source

pub const NR_chown: Self

Source

pub const NR_fchown: Self

Source

pub const NR_lchown: Self

Source

pub const NR_umask: Self

Source

pub const NR_gettimeofday: Self

Source

pub const NR_getrlimit: Self

Source

pub const NR_getrusage: Self

Source

pub const NR_sysinfo: Self

Source

pub const NR_times: Self

Source

pub const NR_ptrace: Self

Source

pub const NR_getuid: Self

Source

pub const NR_syslog: Self

Source

pub const NR_getgid: Self

Source

pub const NR_setuid: Self

Source

pub const NR_setgid: Self

Source

pub const NR_geteuid: Self

Source

pub const NR_getegid: Self

Source

pub const NR_setpgid: Self

Source

pub const NR_getppid: Self

Source

pub const NR_getpgrp: Self

Source

pub const NR_setsid: Self

Source

pub const NR_setreuid: Self

Source

pub const NR_setregid: Self

Source

pub const NR_getgroups: Self

Source

pub const NR_setgroups: Self

Source

pub const NR_setresuid: Self

Source

pub const NR_getresuid: Self

Source

pub const NR_setresgid: Self

Source

pub const NR_getresgid: Self

Source

pub const NR_getpgid: Self

Source

pub const NR_setfsuid: Self

Source

pub const NR_setfsgid: Self

Source

pub const NR_getsid: Self

Source

pub const NR_capget: Self

Source

pub const NR_capset: Self

Source

pub const NR_rt_sigpending: Self

Source

pub const NR_rt_sigtimedwait: Self

Source

pub const NR_rt_sigqueueinfo: Self

Source

pub const NR_rt_sigsuspend: Self

Source

pub const NR_sigaltstack: Self

Source

pub const NR_utime: Self

Source

pub const NR_mknod: Self

Source

pub const NR_uselib: Self

Source

pub const NR_personality: Self

Source

pub const NR_ustat: Self

Source

pub const NR_statfs: Self

Source

pub const NR_fstatfs: Self

Source

pub const NR_sysfs: Self

Source

pub const NR_getpriority: Self

Source

pub const NR_setpriority: Self

Source

pub const NR_sched_setparam: Self

Source

pub const NR_sched_getparam: Self

Source

pub const NR_sched_setscheduler: Self

Source

pub const NR_sched_getscheduler: Self

Source

pub const NR_sched_get_priority_max: Self

Source

pub const NR_sched_get_priority_min: Self

Source

pub const NR_sched_rr_get_interval: Self

Source

pub const NR_mlock: Self

Source

pub const NR_munlock: Self

Source

pub const NR_mlockall: Self

Source

pub const NR_munlockall: Self

Source

pub const NR_vhangup: Self

Source

pub const NR_modify_ldt: Self

Source

pub const NR_pivot_root: Self

Source

pub const NR__sysctl: Self

Source

pub const NR_prctl: Self

Source

pub const NR_arch_prctl: Self

Source

pub const NR_adjtimex: Self

Source

pub const NR_setrlimit: Self

Source

pub const NR_chroot: Self

Source

pub const NR_sync: Self

Source

pub const NR_acct: Self

Source

pub const NR_settimeofday: Self

Source

pub const NR_mount: Self

Source

pub const NR_umount2: Self

Source

pub const NR_swapon: Self

Source

pub const NR_swapoff: Self

Source

pub const NR_reboot: Self

Source

pub const NR_sethostname: Self

Source

pub const NR_setdomainname: Self

Source

pub const NR_iopl: Self

Source

pub const NR_ioperm: Self

Source

pub const NR_create_module: Self

Source

pub const NR_init_module: Self

Source

pub const NR_delete_module: Self

Source

pub const NR_get_kernel_syms: Self

Source

pub const NR_query_module: Self

Source

pub const NR_quotactl: Self

Source

pub const NR_nfsservctl: Self

Source

pub const NR_getpmsg: Self

Source

pub const NR_putpmsg: Self

Source

pub const NR_afs_syscall: Self

Source

pub const NR_tuxcall: Self

Source

pub const NR_security: Self

Source

pub const NR_gettid: Self

Source

pub const NR_readahead: Self

Source

pub const NR_setxattr: Self

Source

pub const NR_lsetxattr: Self

Source

pub const NR_fsetxattr: Self

Source

pub const NR_getxattr: Self

Source

pub const NR_lgetxattr: Self

Source

pub const NR_fgetxattr: Self

Source

pub const NR_listxattr: Self

Source

pub const NR_llistxattr: Self

Source

pub const NR_flistxattr: Self

Source

pub const NR_removexattr: Self

Source

pub const NR_lremovexattr: Self

Source

pub const NR_fremovexattr: Self

Source

pub const NR_tkill: Self

Source

pub const NR_time: Self

Source

pub const NR_futex: Self

Source

pub const NR_sched_setaffinity: Self

Source

pub const NR_sched_getaffinity: Self

Source

pub const NR_set_thread_area: Self

Source

pub const NR_io_setup: Self

Source

pub const NR_io_destroy: Self

Source

pub const NR_io_getevents: Self

Source

pub const NR_io_submit: Self

Source

pub const NR_io_cancel: Self

Source

pub const NR_get_thread_area: Self

Source

pub const NR_lookup_dcookie: Self

Source

pub const NR_epoll_create: Self

Source

pub const NR_epoll_ctl_old: Self

Source

pub const NR_epoll_wait_old: Self

Source

pub const NR_remap_file_pages: Self

Source

pub const NR_getdents64: Self

Source

pub const NR_set_tid_address: Self

Source

pub const NR_restart_syscall: Self

Source

pub const NR_semtimedop: Self

Source

pub const NR_fadvise64: Self

Source

pub const NR_timer_create: Self

Source

pub const NR_timer_settime: Self

Source

pub const NR_timer_gettime: Self

Source

pub const NR_timer_getoverrun: Self

Source

pub const NR_timer_delete: Self

Source

pub const NR_clock_settime: Self

Source

pub const NR_clock_gettime: Self

Source

pub const NR_clock_getres: Self

Source

pub const NR_clock_nanosleep: Self

Source

pub const NR_exit_group: Self

Source

pub const NR_epoll_wait: Self

Source

pub const NR_epoll_ctl: Self

Source

pub const NR_tgkill: Self

Source

pub const NR_utimes: Self

Source

pub const NR_vserver: Self

Source

pub const NR_mbind: Self

Source

pub const NR_set_mempolicy: Self

Source

pub const NR_get_mempolicy: Self

Source

pub const NR_mq_open: Self

Source

pub const NR_mq_timedsend: Self

Source

pub const NR_mq_timedreceive: Self

Source

pub const NR_mq_notify: Self

Source

pub const NR_mq_getsetattr: Self

Source

pub const NR_kexec_load: Self

Source

pub const NR_waitid: Self

Source

pub const NR_add_key: Self

Source

pub const NR_request_key: Self

Source

pub const NR_keyctl: Self

Source

pub const NR_ioprio_set: Self

Source

pub const NR_ioprio_get: Self

Source

pub const NR_inotify_init: Self

Source

pub const NR_inotify_add_watch: Self

Source

pub const NR_inotify_rm_watch: Self

Source

pub const NR_migrate_pages: Self

Source

pub const NR_openat: Self

Source

pub const NR_mkdirat: Self

Source

pub const NR_mknodat: Self

Source

pub const NR_fchownat: Self

Source

pub const NR_futimesat: Self

Source

pub const NR_newfstatat: Self

Source

pub const NR_unlinkat: Self

Source

pub const NR_renameat: Self

Source

pub const NR_linkat: Self

Source

pub const NR_symlinkat: Self

Source

pub const NR_readlinkat: Self

Source

pub const NR_fchmodat: Self

Source

pub const NR_faccessat: Self

Source

pub const NR_pselect6: Self

Source

pub const NR_ppoll: Self

Source

pub const NR_unshare: Self

Source

pub const NR_set_robust_list: Self

Source

pub const NR_get_robust_list: Self

Source

pub const NR_splice: Self

Source

pub const NR_tee: Self

Source

pub const NR_sync_file_range: Self

Source

pub const NR_vmsplice: Self

Source

pub const NR_move_pages: Self

Source

pub const NR_utimensat: Self

Source

pub const NR_epoll_pwait: Self

Source

pub const NR_signalfd: Self

Source

pub const NR_timerfd_create: Self

Source

pub const NR_eventfd: Self

Source

pub const NR_fallocate: Self

Source

pub const NR_timerfd_settime: Self

Source

pub const NR_timerfd_gettime: Self

Source

pub const NR_accept4: Self

Source

pub const NR_signalfd4: Self

Source

pub const NR_eventfd2: Self

Source

pub const NR_epoll_create1: Self

Source

pub const NR_dup3: Self

Source

pub const NR_pipe2: Self

Source

pub const NR_inotify_init1: Self

Source

pub const NR_preadv: Self

Source

pub const NR_pwritev: Self

Source

pub const NR_rt_tgsigqueueinfo: Self

Source

pub const NR_perf_event_open: Self

Source

pub const NR_recvmmsg: Self

Source

pub const NR_fanotify_init: Self

Source

pub const NR_fanotify_mark: Self

Source

pub const NR_prlimit64: Self

Source

pub const NR_name_to_handle_at: Self

Source

pub const NR_open_by_handle_at: Self

Source

pub const NR_clock_adjtime: Self

Source

pub const NR_syncfs: Self

Source

pub const NR_sendmmsg: Self

Source

pub const NR_setns: Self

Source

pub const NR_getcpu: Self

Source

pub const NR_process_vm_readv: Self

Source

pub const NR_process_vm_writev: Self

Source

pub const NR_kcmp: Self

Source

pub const NR_finit_module: Self

Source

pub const NR_sched_setattr: Self

Source

pub const NR_sched_getattr: Self

Source

pub const NR_renameat2: Self

Source

pub const NR_seccomp: Self

Source

pub const NR_getrandom: Self

Source

pub const NR_memfd_create: Self

Source

pub const NR_kexec_file_load: Self

Source

pub const NR_bpf: Self

Source

pub const NR_execveat: Self

Source

pub const NR_userfaultfd: Self

Source

pub const NR_membarrier: Self

Source

pub const NR_mlock2: Self

Source

pub const NR_copy_file_range: Self

Source

pub const NR_preadv2: Self

Source

pub const NR_pwritev2: Self

Source

pub const NR_pkey_mprotect: Self

Source

pub const NR_pkey_alloc: Self

Source

pub const NR_pkey_free: Self

Source

pub const NR_statx: Self

Source

pub const NR_io_pgetevents: Self

Source

pub const NR_rseq: Self

Source

pub const NR_uretprobe: Self

Source

pub const NR_pidfd_send_signal: Self

Source

pub const NR_io_uring_setup: Self

Source

pub const NR_io_uring_enter: Self

Source

pub const NR_io_uring_register: Self

Source

pub const NR_open_tree: Self

Source

pub const NR_move_mount: Self

Source

pub const NR_fsopen: Self

Source

pub const NR_fsconfig: Self

Source

pub const NR_fsmount: Self

Source

pub const NR_fspick: Self

Source

pub const NR_pidfd_open: Self

Source

pub const NR_clone3: Self

Source

pub const NR_close_range: Self

Source

pub const NR_openat2: Self

Source

pub const NR_pidfd_getfd: Self

Source

pub const NR_faccessat2: Self

Source

pub const NR_process_madvise: Self

Source

pub const NR_epoll_pwait2: Self

Source

pub const NR_mount_setattr: Self

Source

pub const NR_quotactl_fd: Self

Source

pub const NR_landlock_create_ruleset: Self

Source

pub const NR_landlock_add_rule: Self

Source

pub const NR_landlock_restrict_self: Self

Source

pub const NR_memfd_secret: Self

Source

pub const NR_process_mrelease: Self

Source

pub const NR_futex_waitv: Self

Source

pub const NR_set_mempolicy_home_node: Self

Source

pub const NR_cachestat: Self

Source

pub const NR_fchmodat2: Self

Source

pub const NR_map_shadow_stack: Self

Source

pub const NR_futex_wake: Self

Source

pub const NR_futex_wait: Self

Source

pub const NR_futex_requeue: Self

Source

pub const NR_statmount: Self

Source

pub const NR_listmount: Self

Source

pub const NR_lsm_get_self_attr: Self

Source

pub const NR_lsm_set_self_attr: Self

Source

pub const NR_lsm_list_modules: Self

Source

pub const NR_mseal: Self

Source

pub const fn new(val: u32) -> Self

Source

pub const fn val(&self) -> u32

Source

pub const fn to_str(&self) -> Option<&'static str>

Trait Implementations§

Source§

impl Clone for SyscallNum

Source§

fn clone(&self) -> SyscallNum

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SyscallNum

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for SyscallNum

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<SyscallNum> for u32

Source§

fn from(val: SyscallNum) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for SyscallNum

Source§

fn from(val: u32) -> Self

Converts to this type from the input type.
Source§

impl Hash for SyscallNum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SyscallNum

Source§

fn eq(&self, other: &SyscallNum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for SyscallNum

Source§

impl Eq for SyscallNum

Source§

impl StructuralPartialEq for SyscallNum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.