Module rsyscall.sys.syscall

#include <sys/syscall.h>

Expand source code Browse git
"`#include <sys/syscall.h>`"
from rsyscall._raw import ffi, lib # type: ignore
import enum

class SYS(enum.IntEnum):
    """The syscall number argument passed to the low-level `syscall` method and underlying instruction

    Passing one of these numbers is how a userspace program indicates to the kernel which
    syscall it wants to call.

    """
    accept4 = lib.SYS_accept4
    bind = lib.SYS_bind
    capget = lib.SYS_capget
    capset = lib.SYS_capset
    chdir = lib.SYS_chdir
    chroot = lib.SYS_chroot
    clone = lib.SYS_clone
    close = lib.SYS_close
    connect = lib.SYS_connect
    dup3 = lib.SYS_dup3
    epoll_create1 = lib.SYS_epoll_create1
    epoll_ctl = lib.SYS_epoll_ctl
    epoll_wait = lib.SYS_epoll_wait
    eventfd2 = lib.SYS_eventfd2
    execve = lib.SYS_execve
    execveat = lib.SYS_execveat
    exit = lib.SYS_exit
    faccessat = lib.SYS_faccessat
    fchdir = lib.SYS_fchdir
    fchmod = lib.SYS_fchmod
    fcntl = lib.SYS_fcntl
    fstat = lib.SYS_fstat
    ftruncate = lib.SYS_ftruncate
    getdents64 = lib.SYS_getdents64
    getgid = lib.SYS_getgid
    getpeername = lib.SYS_getpeername
    getpgid = lib.SYS_getpgid
    getpid = lib.SYS_getpid
    getpriority = lib.SYS_getpriority
    getsockname = lib.SYS_getsockname
    getsockopt = lib.SYS_getsockopt
    getuid = lib.SYS_getuid
    inotify_add_watch = lib.SYS_inotify_add_watch
    inotify_init1 = lib.SYS_inotify_init1
    inotify_rm_watch = lib.SYS_inotify_rm_watch
    ioctl = lib.SYS_ioctl
    kill = lib.SYS_kill
    linkat = lib.SYS_linkat
    listen = lib.SYS_listen
    lseek = lib.SYS_lseek
    memfd_create = lib.SYS_memfd_create
    mkdirat = lib.SYS_mkdirat
    mmap = lib.SYS_mmap
    mount = lib.SYS_mount
    munmap = lib.SYS_munmap
    openat = lib.SYS_openat
    pipe2 = lib.SYS_pipe2
    prctl = lib.SYS_prctl
    pread64 = lib.SYS_pread64
    preadv2 = lib.SYS_preadv2
    prlimit64 = lib.SYS_prlimit64
    pwrite64 = lib.SYS_pwrite64
    pwritev2 = lib.SYS_pwritev2
    read = lib.SYS_read
    readlinkat = lib.SYS_readlinkat
    recvfrom = lib.SYS_recvfrom
    recvmsg = lib.SYS_recvmsg
    renameat2 = lib.SYS_renameat2
    rt_sigaction = lib.SYS_rt_sigaction
    rt_sigprocmask = lib.SYS_rt_sigprocmask
    sched_setaffinity = lib.SYS_sched_setaffinity
    sched_getaffinity = lib.SYS_sched_getaffinity
    sendmsg = lib.SYS_sendmsg
    sendto = lib.SYS_sendto
    set_robust_list = lib.SYS_set_robust_list
    set_tid_address = lib.SYS_set_tid_address
    setns = lib.SYS_setns
    setpgid = lib.SYS_setpgid
    setpriority = lib.SYS_setpriority
    setsid = lib.SYS_setsid
    setsockopt = lib.SYS_setsockopt
    shutdown = lib.SYS_shutdown
    signalfd4 = lib.SYS_signalfd4
    socket = lib.SYS_socket
    socketpair = lib.SYS_socketpair
    symlinkat = lib.SYS_symlinkat
    timerfd_create = lib.SYS_timerfd_create
    timerfd_gettime = lib.SYS_timerfd_gettime
    timerfd_settime = lib.SYS_timerfd_settime
    umount2 = lib.SYS_umount2
    unlinkat = lib.SYS_unlinkat
    unshare = lib.SYS_unshare
    waitid = lib.SYS_waitid
    write = lib.SYS_write

Classes

class SYS (value, names=None, *, module=None, qualname=None, type=None, start=1)

The syscall number argument passed to the low-level syscall method and underlying instruction

Passing one of these numbers is how a userspace program indicates to the kernel which syscall it wants to call.

Expand source code Browse git
class SYS(enum.IntEnum):
    """The syscall number argument passed to the low-level `syscall` method and underlying instruction

    Passing one of these numbers is how a userspace program indicates to the kernel which
    syscall it wants to call.

    """
    accept4 = lib.SYS_accept4
    bind = lib.SYS_bind
    capget = lib.SYS_capget
    capset = lib.SYS_capset
    chdir = lib.SYS_chdir
    chroot = lib.SYS_chroot
    clone = lib.SYS_clone
    close = lib.SYS_close
    connect = lib.SYS_connect
    dup3 = lib.SYS_dup3
    epoll_create1 = lib.SYS_epoll_create1
    epoll_ctl = lib.SYS_epoll_ctl
    epoll_wait = lib.SYS_epoll_wait
    eventfd2 = lib.SYS_eventfd2
    execve = lib.SYS_execve
    execveat = lib.SYS_execveat
    exit = lib.SYS_exit
    faccessat = lib.SYS_faccessat
    fchdir = lib.SYS_fchdir
    fchmod = lib.SYS_fchmod
    fcntl = lib.SYS_fcntl
    fstat = lib.SYS_fstat
    ftruncate = lib.SYS_ftruncate
    getdents64 = lib.SYS_getdents64
    getgid = lib.SYS_getgid
    getpeername = lib.SYS_getpeername
    getpgid = lib.SYS_getpgid
    getpid = lib.SYS_getpid
    getpriority = lib.SYS_getpriority
    getsockname = lib.SYS_getsockname
    getsockopt = lib.SYS_getsockopt
    getuid = lib.SYS_getuid
    inotify_add_watch = lib.SYS_inotify_add_watch
    inotify_init1 = lib.SYS_inotify_init1
    inotify_rm_watch = lib.SYS_inotify_rm_watch
    ioctl = lib.SYS_ioctl
    kill = lib.SYS_kill
    linkat = lib.SYS_linkat
    listen = lib.SYS_listen
    lseek = lib.SYS_lseek
    memfd_create = lib.SYS_memfd_create
    mkdirat = lib.SYS_mkdirat
    mmap = lib.SYS_mmap
    mount = lib.SYS_mount
    munmap = lib.SYS_munmap
    openat = lib.SYS_openat
    pipe2 = lib.SYS_pipe2
    prctl = lib.SYS_prctl
    pread64 = lib.SYS_pread64
    preadv2 = lib.SYS_preadv2
    prlimit64 = lib.SYS_prlimit64
    pwrite64 = lib.SYS_pwrite64
    pwritev2 = lib.SYS_pwritev2
    read = lib.SYS_read
    readlinkat = lib.SYS_readlinkat
    recvfrom = lib.SYS_recvfrom
    recvmsg = lib.SYS_recvmsg
    renameat2 = lib.SYS_renameat2
    rt_sigaction = lib.SYS_rt_sigaction
    rt_sigprocmask = lib.SYS_rt_sigprocmask
    sched_setaffinity = lib.SYS_sched_setaffinity
    sched_getaffinity = lib.SYS_sched_getaffinity
    sendmsg = lib.SYS_sendmsg
    sendto = lib.SYS_sendto
    set_robust_list = lib.SYS_set_robust_list
    set_tid_address = lib.SYS_set_tid_address
    setns = lib.SYS_setns
    setpgid = lib.SYS_setpgid
    setpriority = lib.SYS_setpriority
    setsid = lib.SYS_setsid
    setsockopt = lib.SYS_setsockopt
    shutdown = lib.SYS_shutdown
    signalfd4 = lib.SYS_signalfd4
    socket = lib.SYS_socket
    socketpair = lib.SYS_socketpair
    symlinkat = lib.SYS_symlinkat
    timerfd_create = lib.SYS_timerfd_create
    timerfd_gettime = lib.SYS_timerfd_gettime
    timerfd_settime = lib.SYS_timerfd_settime
    umount2 = lib.SYS_umount2
    unlinkat = lib.SYS_unlinkat
    unshare = lib.SYS_unshare
    waitid = lib.SYS_waitid
    write = lib.SYS_write

Ancestors

  • enum.IntEnum
  • builtins.int
  • enum.Enum

Class variables

var accept4
var bind
var capget
var capset
var chdir
var chroot
var clone
var close
var connect
var dup3
var epoll_create1
var epoll_ctl
var epoll_wait
var eventfd2
var execve
var execveat
var exit
var faccessat
var fchdir
var fchmod
var fcntl
var fstat
var ftruncate
var getdents64
var getgid
var getpeername
var getpgid
var getpid
var getpriority
var getsockname
var getsockopt
var getuid
var inotify_add_watch
var inotify_init1
var inotify_rm_watch
var ioctl
var kill
var linkat
var listen
var lseek
var memfd_create
var mkdirat
var mmap
var mount
var munmap
var openat
var pipe2
var prctl
var pread64
var preadv2
var prlimit64
var pwrite64
var pwritev2
var read
var readlinkat
var recvfrom
var recvmsg
var renameat2
var rt_sigaction
var rt_sigprocmask
var sched_setaffinity
var sched_getaffinity
var sendmsg
var sendto
var set_robust_list
var set_tid_address
var setns
var setpgid
var setpriority
var setsid
var setsockopt
var shutdown
var signalfd4
var socket
var socketpair
var symlinkat
var timerfd_create
var timerfd_gettime
var timerfd_settime
var umount2
var unlinkat
var unshare
var waitid
var write