core/sys/unix
unix
Types
14Perf_Capabilities
Perf_Capabilities :: struct #raw_union {
capabilities: u64,
flags: Perf_Event_Flags,
}SourcePerf_Event_Attr
Perf_Event_Attr :: struct #packed {
type: u32,
size: u32,
config: u64,
sample: Perf_Sample,
sample_type: u64,
read_format: u64,
flags: Perf_Flags,
wakeup: Perf_Wakeup,
breakpoint_type: u32,
field1: Perf_Field1,
field2: Perf_Field2,
branch_sample_type: u64,
sample_regs_user: u64,
sample_stack_user: u32,
clock_id: i32,
sample_regs_intr: u64,
aux_watermark: u32,
sample_max_stack: u16,
_padding: u16,
}SourcePerf_Event_Flag
Perf_Event_Flag :: enum u64 {
Bit0 = 0,
Bit0_Is_Deprecated = 1,
User_Rdpmc = 2,
User_Time = 3,
User_Time_Zero = 4,
User_Time_Short = 5,
}SourcePerf_Event_Flags
Perf_Event_Flags :: bit_set[Perf_Event_Flag; u64]SourcePerf_Event_mmap_Page
Perf_Event_mmap_Page :: struct #packed {
version: u32,
compat_version: u32,
lock: u32,
index: u32,
offset: i64,
time_enabled: u64,
time_running: u64,
cap: Perf_Capabilities,
pmc_width: u16,
time_shift: u16,
time_mult: u32,
time_offset: u64,
time_zero: u64,
size: u32,
reserved1: u32,
time_cycles: u64,
time_mask: u64,
reserved2: [928]u8,
data_head: u64,
data_tail: u64,
data_offset: u64,
data_size: u64,
aux_head: u64,
aux_tail: u64,
aux_offset: u64,
aux_size: u64,
}SourcePerf_Field1
Perf_Field1 :: struct #raw_union {
breakpoint_addr: u64,
kprobe_func: u64,
uprobe_path: u64,
config1: u64,
}SourcePerf_Field2
Perf_Field2 :: struct #raw_union {
breakpoint_len: u64,
kprobe_addr: u64,
uprobe_offset: u64,
config2: u64,
}SourcePerf_Flag
Perf_Flag :: enum u64 {
Disabled = 0,
Inherit = 1,
Pinned = 2,
Exclusive = 3,
Exclude_User = 4,
Exclude_Kernel = 5,
Exclude_HV = 6,
Exclude_Idle = 7,
mmap = 8,
Comm = 9,
Freq = 10,
Inherit_Stat = 11,
Enable_On_Exec = 12,
Task = 13,
Watermark = 14,
Precise_IP_0 = 15,
Precise_IP_1 = 16,
mmap_Data = 17,
Sample_Id_All = 18,
Exclude_Host = 19,
Exclude_Guest = 20,
Exclude_Callchain_Kernel = 21,
Exclude_Callchain_User = 22,
mmap2 = 23,
Comm_Exec = 24,
Use_Clockid = 25,
Context_Switch = 26,
Write_Backward = 27,
Namespaces = 28,
KSymbol = 29,
BPF_Event = 30,
Aux_Output = 31,
CGroup = 32,
Text_Poke = 33,
Build_Id = 34,
Inherit_Thread = 35,
Remove_On_Exec = 36,
Sigtrap = 37,
}SourcePerf_Flags
Perf_Flags :: bit_set[Perf_Flag; u64]SourcePerf_Hardware_Id
Perf_Hardware_Id :: enum u64 {
CPU_Cycles = 0,
Instructions = 1,
Cache_References = 2,
Cache_Misses = 3,
Branch_Instructions = 4,
Branch_Misses = 5,
Bus_Cycles = 6,
Stalled_Cycles_Frontend = 7,
Stalled_Cycles_Backend = 8,
Ref_CPU_Cycles = 9,
}SourcePerf_Sample
Perf_Sample :: struct #raw_union {
period: u64,
frequency: u64,
}Sourceperf event data
Perf_Type_Id
Perf_Type_Id :: enum u32 {
Hardware = 0,
Software = 1,
Tracepoint = 2,
HW_Cache = 3,
Raw = 4,
Breakpoint = 5,
}SourcePerf_Wakeup
Perf_Wakeup :: struct #raw_union {
events: u32,
watermark: u32,
}Sourcetimespec
timespec :: struct {
secs: i64,
nsecs: c.long,
}SourceConstants
410AT_FDCWD
AT_FDCWD :: _ = ~uintptr(99)Sourcesyscall related constants
AT_REMOVEDIR
AT_REMOVEDIR :: uintptr = uintptr(0x200)SourceAT_SYMLINK_FOLLOW
AT_SYMLINK_FOLLOW :: uintptr = uintptr(0x400)SourceAT_SYMLINK_NOFOLLOW
AT_SYMLINK_NOFOLLOW :: uintptr = uintptr(0x100)SourceMADV_DODUMP
MADV_DODUMP :: 17SourceMADV_DOFORK
MADV_DOFORK :: 11SourceMADV_DONTDUMP
MADV_DONTDUMP :: 16SourceMADV_DONTFORK
MADV_DONTFORK :: 10SourceMADV_DONTNEED
MADV_DONTNEED :: 4SourceMADV_FREE
MADV_FREE :: 8SourceMADV_HUGEPAGE
MADV_HUGEPAGE :: 14SourceMADV_HWPOISON
MADV_HWPOISON :: 100SourceMADV_KEEPONFORK
MADV_KEEPONFORK :: 19SourceMADV_MERGEABLE
MADV_MERGEABLE :: 12SourceMADV_NOHUGEPAGE
MADV_NOHUGEPAGE :: 15SourceMADV_NORMAL
MADV_NORMAL :: 0Sourcemadvise flags
MADV_RANDOM
MADV_RANDOM :: 1SourceMADV_REMOVE
MADV_REMOVE :: 9SourceMADV_SEQUENTIAL
MADV_SEQUENTIAL :: 2SourceMADV_UNMERGEABLE
MADV_UNMERGEABLE :: 13SourceMADV_WILLNEED
MADV_WILLNEED :: 3SourceMADV_WIPEONFORK
MADV_WIPEONFORK :: 18SourceMAP_ANONYMOUS
MAP_ANONYMOUS :: 0x20SourceMAP_FIXED
MAP_FIXED :: 0x10SourceMAP_PRIVATE
MAP_PRIVATE :: 0x2SourceMAP_SHARED
MAP_SHARED :: 0x1SourceMAP_SHARED_VALIDATE
MAP_SHARED_VALIDATE :: 0x3SourceMREMAP_DONTUNMAP
MREMAP_DONTUNMAP :: 4SourceMREMAP_FIXED
MREMAP_FIXED :: 2SourceMREMAP_MAYMOVE
MREMAP_MAYMOVE :: 1Sourcemremap flags
O_CLOEXEC
O_CLOEXEC :: 0o2000000Sourcepipe2 flags
POLLERR
POLLERR :: 0x0008SourcePOLLFREE
POLLFREE :: 0x4000SourcePOLLHUP
POLLHUP :: 0x0010SourcePOLLIN
POLLIN :: 0x0001Sourcepoll events
POLLMSG
POLLMSG :: 0x0400SourcePOLLNVAL
POLLNVAL :: 0x0020SourcePOLLOUT
POLLOUT :: 0x0004SourcePOLLPRI
POLLPRI :: 0x0002SourcePOLLRDBAND
POLLRDBAND :: 0x0080SourcePOLLRDHUP
POLLRDHUP :: 0x2000SourcePOLLRDNORM
POLLRDNORM :: 0x0040SourcePOLLREMOVE
POLLREMOVE :: 0x1000SourcePOLLWRBAND
POLLWRBAND :: 0x0200SourcePOLLWRNORM
POLLWRNORM :: 0x0100SourcePOLL_BUSY_LOOP
POLL_BUSY_LOOP :: 0x8000SourcePROT_EXEC
PROT_EXEC :: 0x4SourcePROT_GROWSDOWN
PROT_GROWSDOWN :: 0x01000000SourcePROT_GROWSUP
PROT_GROWSUP :: 0x02000000SourcePROT_NONE
PROT_NONE :: 0x0Sourcemmap flags
PROT_READ
PROT_READ :: 0x1SourcePROT_WRITE
PROT_WRITE :: 0x2SourceSYS__sysctl
SYS__sysctl :: uintptr = 156SourceSYS_accept
SYS_accept :: uintptr = 43SourceSYS_accept4
SYS_accept4 :: uintptr = 288SourceSYS_access
SYS_access :: uintptr = 21SourceSYS_acct
SYS_acct :: uintptr = 163SourceSYS_add_key
SYS_add_key :: uintptr = 248SourceSYS_adjtimex
SYS_adjtimex :: uintptr = 159SourceSYS_afs_syscall
SYS_afs_syscall :: uintptr = 183SourceSYS_alarm
SYS_alarm :: uintptr = 37SourceSYS_arch_prctl
SYS_arch_prctl :: uintptr = 158SourceSYS_bind
SYS_bind :: uintptr = 49SourceSYS_bpf
SYS_bpf :: uintptr = 321SourceSYS_brk
SYS_brk :: uintptr = 12SourceSYS_capget
SYS_capget :: uintptr = 125SourceSYS_capset
SYS_capset :: uintptr = 126SourceSYS_chdir
SYS_chdir :: uintptr = 80SourceSYS_chmod
SYS_chmod :: uintptr = 90SourceSYS_chown
SYS_chown :: uintptr = 92SourceSYS_chroot
SYS_chroot :: uintptr = 161SourceSYS_clock_adjtime
SYS_clock_adjtime :: uintptr = 305SourceSYS_clock_getres
SYS_clock_getres :: uintptr = 229SourceSYS_clock_gettime
SYS_clock_gettime :: uintptr = 228SourceSYS_clock_nanosleep
SYS_clock_nanosleep :: uintptr = 230SourceSYS_clock_settime
SYS_clock_settime :: uintptr = 227SourceSYS_clone
SYS_clone :: uintptr = 56SourceSYS_clone3
SYS_clone3 :: uintptr = 435SourceSYS_close
SYS_close :: uintptr = 3SourceSYS_close_range
SYS_close_range :: uintptr = 436SourceSYS_connect
SYS_connect :: uintptr = 42SourceSYS_copy_file_range
SYS_copy_file_range :: uintptr = 326SourceSYS_creat
SYS_creat :: uintptr = 85SourceSYS_create_module
SYS_create_module :: uintptr = 174SourceSYS_delete_module
SYS_delete_module :: uintptr = 176SourceSYS_dup
SYS_dup :: uintptr = 32SourceSYS_dup2
SYS_dup2 :: uintptr = 33SourceSYS_dup3
SYS_dup3 :: uintptr = 292SourceSYS_epoll_create
SYS_epoll_create :: uintptr = 213SourceSYS_epoll_create1
SYS_epoll_create1 :: uintptr = 291SourceSYS_epoll_ctl
SYS_epoll_ctl :: uintptr = 233SourceSYS_epoll_ctl_old
SYS_epoll_ctl_old :: uintptr = 214SourceSYS_epoll_pwait
SYS_epoll_pwait :: uintptr = 281SourceSYS_epoll_pwait2
SYS_epoll_pwait2 :: uintptr = 441SourceSYS_epoll_wait
SYS_epoll_wait :: uintptr = 232SourceSYS_epoll_wait_old
SYS_epoll_wait_old :: uintptr = 215SourceSYS_eventfd
SYS_eventfd :: uintptr = 284SourceSYS_eventfd2
SYS_eventfd2 :: uintptr = 290SourceSYS_execve
SYS_execve :: uintptr = 59SourceSYS_execveat
SYS_execveat :: uintptr = 322SourceSYS_exit
SYS_exit :: uintptr = 60SourceSYS_exit_group
SYS_exit_group :: uintptr = 231SourceSYS_faccessat
SYS_faccessat :: uintptr = 269SourceSYS_faccessat2
SYS_faccessat2 :: uintptr = 439SourceSYS_fadvise64
SYS_fadvise64 :: uintptr = 221SourceSYS_fallocate
SYS_fallocate :: uintptr = 285SourceSYS_fanotify_init
SYS_fanotify_init :: uintptr = 300SourceSYS_fanotify_mark
SYS_fanotify_mark :: uintptr = 301SourceSYS_fchdir
SYS_fchdir :: uintptr = 81SourceSYS_fchmod
SYS_fchmod :: uintptr = 91SourceSYS_fchmodat
SYS_fchmodat :: uintptr = 268SourceSYS_fchown
SYS_fchown :: uintptr = 93SourceSYS_fchownat
SYS_fchownat :: uintptr = 260SourceSYS_fcntl
SYS_fcntl :: uintptr = 72SourceSYS_fdatasync
SYS_fdatasync :: uintptr = 75SourceSYS_fgetxattr
SYS_fgetxattr :: uintptr = 193SourceSYS_finit_module
SYS_finit_module :: uintptr = 313SourceSYS_flistxattr
SYS_flistxattr :: uintptr = 196SourceSYS_flock
SYS_flock :: uintptr = 73SourceSYS_fork
SYS_fork :: uintptr = 57SourceSYS_fremovexattr
SYS_fremovexattr :: uintptr = 199SourceSYS_fsconfig
SYS_fsconfig :: uintptr = 431SourceSYS_fsetxattr
SYS_fsetxattr :: uintptr = 190SourceSYS_fsmount
SYS_fsmount :: uintptr = 432SourceSYS_fsopen
SYS_fsopen :: uintptr = 430SourceSYS_fspick
SYS_fspick :: uintptr = 433SourceSYS_fstat
SYS_fstat :: uintptr = 5SourceSYS_fstatat
SYS_fstatat :: uintptr = 262SourceSYS_fstatfs
SYS_fstatfs :: uintptr = 138SourceSYS_fsync
SYS_fsync :: uintptr = 74SourceSYS_ftruncate
SYS_ftruncate :: uintptr = 77SourceSYS_futex
SYS_futex :: uintptr = 202SourceSYS_futimesat
SYS_futimesat :: uintptr = 261SourceSYS_get_kernel_syms
SYS_get_kernel_syms :: uintptr = 177SourceSYS_get_mempolicy
SYS_get_mempolicy :: uintptr = 239SourceSYS_get_robust_list
SYS_get_robust_list :: uintptr = 274SourceSYS_get_thread_area
SYS_get_thread_area :: uintptr = 211SourceSYS_getcpu
SYS_getcpu :: uintptr = 309SourceSYS_getcwd
SYS_getcwd :: uintptr = 79SourceSYS_getdents
SYS_getdents :: uintptr = 78SourceSYS_getdents64
SYS_getdents64 :: uintptr = 217SourceSYS_getegid
SYS_getegid :: uintptr = 108SourceSYS_geteuid
SYS_geteuid :: uintptr = 107SourceSYS_getgid
SYS_getgid :: uintptr = 104SourceSYS_getgroups
SYS_getgroups :: uintptr = 115SourceSYS_getitimer
SYS_getitimer :: uintptr = 36SourceSYS_getpeername
SYS_getpeername :: uintptr = 52SourceSYS_getpgid
SYS_getpgid :: uintptr = 121SourceSYS_getpgrp
SYS_getpgrp :: uintptr = 111SourceSYS_getpid
SYS_getpid :: uintptr = 39SourceSYS_getpmsg
SYS_getpmsg :: uintptr = 181SourceSYS_getppid
SYS_getppid :: uintptr = 110SourceSYS_getpriority
SYS_getpriority :: uintptr = 140SourceSYS_getrandom
SYS_getrandom :: uintptr = 318SourceSYS_getresgid
SYS_getresgid :: uintptr = 120SourceSYS_getresuid
SYS_getresuid :: uintptr = 118SourceSYS_getrlimit
SYS_getrlimit :: uintptr = 97SourceSYS_getrusage
SYS_getrusage :: uintptr = 98SourceSYS_getsid
SYS_getsid :: uintptr = 124SourceSYS_getsockname
SYS_getsockname :: uintptr = 51SourceSYS_getsockopt
SYS_getsockopt :: uintptr = 55SourceSYS_gettid
SYS_gettid :: uintptr = 186SourceSYS_gettimeofday
SYS_gettimeofday :: uintptr = 96SourceSYS_getuid
SYS_getuid :: uintptr = 102SourceSYS_getxattr
SYS_getxattr :: uintptr = 191SourceSYS_init_module
SYS_init_module :: uintptr = 175SourceSYS_inotify_add_watch
SYS_inotify_add_watch :: uintptr = 254SourceSYS_inotify_init
SYS_inotify_init :: uintptr = 253SourceSYS_inotify_init1
SYS_inotify_init1 :: uintptr = 294SourceSYS_inotify_rm_watch
SYS_inotify_rm_watch :: uintptr = 255SourceSYS_io_cancel
SYS_io_cancel :: uintptr = 210SourceSYS_io_destroy
SYS_io_destroy :: uintptr = 207SourceSYS_io_getevents
SYS_io_getevents :: uintptr = 208SourceSYS_io_pgetevents
SYS_io_pgetevents :: uintptr = 333SourceSYS_io_setup
SYS_io_setup :: uintptr = 206SourceSYS_io_submit
SYS_io_submit :: uintptr = 209SourceSYS_io_uring_enter
SYS_io_uring_enter :: uintptr = 426SourceSYS_io_uring_register
SYS_io_uring_register :: uintptr = 427SourceSYS_io_uring_setup
SYS_io_uring_setup :: uintptr = 425SourceSYS_ioctl
SYS_ioctl :: uintptr = 16SourceSYS_ioperm
SYS_ioperm :: uintptr = 173SourceSYS_iopl
SYS_iopl :: uintptr = 172SourceSYS_ioprio_get
SYS_ioprio_get :: uintptr = 252SourceSYS_ioprio_set
SYS_ioprio_set :: uintptr = 251SourceSYS_kcmp
SYS_kcmp :: uintptr = 312SourceSYS_kexec_file_load
SYS_kexec_file_load :: uintptr = 320SourceSYS_kexec_load
SYS_kexec_load :: uintptr = 246SourceSYS_keyctl
SYS_keyctl :: uintptr = 250SourceSYS_kill
SYS_kill :: uintptr = 62SourceSYS_landlock_add_rule
SYS_landlock_add_rule :: uintptr = 445SourceSYS_landlock_create_ruleset
SYS_landlock_create_ruleset :: uintptr = 444SourceSYS_landlock_restrict_self
SYS_landlock_restrict_self :: uintptr = 446SourceSYS_lchown
SYS_lchown :: uintptr = 94SourceSYS_lgetxattr
SYS_lgetxattr :: uintptr = 192SourceSYS_link
SYS_link :: uintptr = 86SourceSYS_linkat
SYS_linkat :: uintptr = 265SourceSYS_listen
SYS_listen :: uintptr = 50SourceSYS_listxattr
SYS_listxattr :: uintptr = 194SourceSYS_llistxattr
SYS_llistxattr :: uintptr = 195SourceSYS_lookup_dcookie
SYS_lookup_dcookie :: uintptr = 212SourceSYS_lremovexattr
SYS_lremovexattr :: uintptr = 198SourceSYS_lseek
SYS_lseek :: uintptr = 8SourceSYS_lsetxattr
SYS_lsetxattr :: uintptr = 189SourceSYS_lstat
SYS_lstat :: uintptr = 6SourceSYS_madvise
SYS_madvise :: uintptr = 28SourceSYS_mbind
SYS_mbind :: uintptr = 237SourceSYS_membarrier
SYS_membarrier :: uintptr = 324SourceSYS_memfd_create
SYS_memfd_create :: uintptr = 319SourceSYS_memfd_secret
SYS_memfd_secret :: uintptr = 447SourceSYS_migrate_pages
SYS_migrate_pages :: uintptr = 256SourceSYS_mincore
SYS_mincore :: uintptr = 27SourceSYS_mkdir
SYS_mkdir :: uintptr = 83SourceSYS_mkdirat
SYS_mkdirat :: uintptr = 258SourceSYS_mknod
SYS_mknod :: uintptr = 133SourceSYS_mknodat
SYS_mknodat :: uintptr = 259SourceSYS_mlock
SYS_mlock :: uintptr = 149SourceSYS_mlock2
SYS_mlock2 :: uintptr = 325SourceSYS_mlockall
SYS_mlockall :: uintptr = 151SourceSYS_mmap
SYS_mmap :: uintptr = 9SourceSYS_modify_ldt
SYS_modify_ldt :: uintptr = 154SourceSYS_mount
SYS_mount :: uintptr = 165SourceSYS_mount_setattr
SYS_mount_setattr :: uintptr = 442SourceSYS_move_mount
SYS_move_mount :: uintptr = 429SourceSYS_move_pages
SYS_move_pages :: uintptr = 279SourceSYS_mprotect
SYS_mprotect :: uintptr = 10SourceSYS_mq_getsetattr
SYS_mq_getsetattr :: uintptr = 245SourceSYS_mq_notify
SYS_mq_notify :: uintptr = 244SourceSYS_mq_open
SYS_mq_open :: uintptr = 240SourceSYS_mq_timedreceive
SYS_mq_timedreceive :: uintptr = 243SourceSYS_mq_timedsend
SYS_mq_timedsend :: uintptr = 242SourceSYS_mq_unlink
SYS_mq_unlink :: uintptr = 241SourceSYS_mremap
SYS_mremap :: uintptr = 25SourceSYS_msgctl
SYS_msgctl :: uintptr = 71SourceSYS_msgget
SYS_msgget :: uintptr = 68SourceSYS_msgrcv
SYS_msgrcv :: uintptr = 70SourceSYS_msgsnd
SYS_msgsnd :: uintptr = 69SourceSYS_msync
SYS_msync :: uintptr = 26SourceSYS_munlock
SYS_munlock :: uintptr = 150SourceSYS_munlockall
SYS_munlockall :: uintptr = 152SourceSYS_munmap
SYS_munmap :: uintptr = 11SourceSYS_name_to_handle_at
SYS_name_to_handle_at :: uintptr = 303SourceSYS_nanosleep
SYS_nanosleep :: uintptr = 35SourceSYS_nfsservctl
SYS_nfsservctl :: uintptr = 180SourceSYS_open
SYS_open :: uintptr = 2SourceSYS_open_by_handle_at
SYS_open_by_handle_at :: uintptr = 304SourceSYS_open_tree
SYS_open_tree :: uintptr = 428SourceSYS_openat
SYS_openat :: uintptr = 257SourceSYS_openat2
SYS_openat2 :: uintptr = 437SourceSYS_pause
SYS_pause :: uintptr = 34SourceSYS_perf_event_open
SYS_perf_event_open :: uintptr = 298SourceSYS_personality
SYS_personality :: uintptr = 135SourceSYS_pidfd_getfd
SYS_pidfd_getfd :: uintptr = 438SourceSYS_pidfd_open
SYS_pidfd_open :: uintptr = 434SourceSYS_pidfd_send_signal
SYS_pidfd_send_signal :: uintptr = 424SourceSYS_pipe
SYS_pipe :: uintptr = 22SourceSYS_pipe2
SYS_pipe2 :: uintptr = 293SourceSYS_pivot_root
SYS_pivot_root :: uintptr = 155SourceSYS_pkey_alloc
SYS_pkey_alloc :: uintptr = 330SourceSYS_pkey_free
SYS_pkey_free :: uintptr = 331SourceSYS_pkey_mprotect
SYS_pkey_mprotect :: uintptr = 329SourceSYS_poll
SYS_poll :: uintptr = 7SourceSYS_ppoll
SYS_ppoll :: uintptr = 271SourceSYS_prctl
SYS_prctl :: uintptr = 157SourceSYS_pread64
SYS_pread64 :: uintptr = 17SourceSYS_preadv
SYS_preadv :: uintptr = 295SourceSYS_preadv2
SYS_preadv2 :: uintptr = 327SourceSYS_prlimit64
SYS_prlimit64 :: uintptr = 302SourceSYS_process_madvise
SYS_process_madvise :: uintptr = 440SourceSYS_process_vm_readv
SYS_process_vm_readv :: uintptr = 310SourceSYS_process_vm_writev
SYS_process_vm_writev :: uintptr = 311SourceSYS_pselect6
SYS_pselect6 :: uintptr = 270SourceSYS_ptrace
SYS_ptrace :: uintptr = 101SourceSYS_putpmsg
SYS_putpmsg :: uintptr = 182SourceSYS_pwrite64
SYS_pwrite64 :: uintptr = 18SourceSYS_pwritev
SYS_pwritev :: uintptr = 296SourceSYS_pwritev2
SYS_pwritev2 :: uintptr = 328SourceSYS_query_module
SYS_query_module :: uintptr = 178SourceSYS_quotactl
SYS_quotactl :: uintptr = 179SourceSYS_read
SYS_read :: uintptr = 0SourceSYS_readahead
SYS_readahead :: uintptr = 187SourceSYS_readlink
SYS_readlink :: uintptr = 89SourceSYS_readlinkat
SYS_readlinkat :: uintptr = 267SourceSYS_readv
SYS_readv :: uintptr = 19SourceSYS_reboot
SYS_reboot :: uintptr = 169SourceSYS_recvfrom
SYS_recvfrom :: uintptr = 45SourceSYS_recvmmsg
SYS_recvmmsg :: uintptr = 299SourceSYS_recvmsg
SYS_recvmsg :: uintptr = 47SourceSYS_remap_file_pages
SYS_remap_file_pages :: uintptr = 216SourceSYS_removexattr
SYS_removexattr :: uintptr = 197SourceSYS_rename
SYS_rename :: uintptr = 82SourceSYS_renameat
SYS_renameat :: uintptr = 264SourceSYS_renameat2
SYS_renameat2 :: uintptr = 316SourceSYS_request_key
SYS_request_key :: uintptr = 249SourceSYS_restart_syscall
SYS_restart_syscall :: uintptr = 219SourceSYS_rmdir
SYS_rmdir :: uintptr = 84SourceSYS_rseq
SYS_rseq :: uintptr = 334SourceSYS_rt_sigaction
SYS_rt_sigaction :: uintptr = 13SourceSYS_rt_sigpending
SYS_rt_sigpending :: uintptr = 127SourceSYS_rt_sigprocmask
SYS_rt_sigprocmask :: uintptr = 14SourceSYS_rt_sigqueueinfo
SYS_rt_sigqueueinfo :: uintptr = 129SourceSYS_rt_sigreturn
SYS_rt_sigreturn :: uintptr = 15SourceSYS_rt_sigsuspend
SYS_rt_sigsuspend :: uintptr = 130SourceSYS_rt_sigtimedwait
SYS_rt_sigtimedwait :: uintptr = 128SourceSYS_rt_tgsigqueueinfo
SYS_rt_tgsigqueueinfo :: uintptr = 297SourceSYS_sched_get_priority_max
SYS_sched_get_priority_max :: uintptr = 146SourceSYS_sched_get_priority_min
SYS_sched_get_priority_min :: uintptr = 147SourceSYS_sched_getaffinity
SYS_sched_getaffinity :: uintptr = 204SourceSYS_sched_getattr
SYS_sched_getattr :: uintptr = 315SourceSYS_sched_getparam
SYS_sched_getparam :: uintptr = 143SourceSYS_sched_getscheduler
SYS_sched_getscheduler :: uintptr = 145SourceSYS_sched_rr_get_interval
SYS_sched_rr_get_interval :: uintptr = 148SourceSYS_sched_setaffinity
SYS_sched_setaffinity :: uintptr = 203SourceSYS_sched_setattr
SYS_sched_setattr :: uintptr = 314SourceSYS_sched_setparam
SYS_sched_setparam :: uintptr = 142SourceSYS_sched_setscheduler
SYS_sched_setscheduler :: uintptr = 144SourceSYS_sched_yield
SYS_sched_yield :: uintptr = 24SourceSYS_seccomp
SYS_seccomp :: uintptr = 317SourceSYS_security
SYS_security :: uintptr = 185SourceSYS_select
SYS_select :: uintptr = 23SourceSYS_semctl
SYS_semctl :: uintptr = 66SourceSYS_semget
SYS_semget :: uintptr = 64SourceSYS_semop
SYS_semop :: uintptr = 65SourceSYS_semtimedop
SYS_semtimedop :: uintptr = 220SourceSYS_sendfile
SYS_sendfile :: uintptr = 40SourceSYS_sendmmsg
SYS_sendmmsg :: uintptr = 307SourceSYS_sendmsg
SYS_sendmsg :: uintptr = 46SourceSYS_sendto
SYS_sendto :: uintptr = 44SourceSYS_set_mempolicy
SYS_set_mempolicy :: uintptr = 238SourceSYS_set_robust_list
SYS_set_robust_list :: uintptr = 273SourceSYS_set_thread_area
SYS_set_thread_area :: uintptr = 205SourceSYS_set_tid_address
SYS_set_tid_address :: uintptr = 218SourceSYS_setdomainname
SYS_setdomainname :: uintptr = 171SourceSYS_setfsgid
SYS_setfsgid :: uintptr = 123SourceSYS_setfsuid
SYS_setfsuid :: uintptr = 122SourceSYS_setgid
SYS_setgid :: uintptr = 106SourceSYS_setgroups
SYS_setgroups :: uintptr = 116SourceSYS_sethostname
SYS_sethostname :: uintptr = 170SourceSYS_setitimer
SYS_setitimer :: uintptr = 38SourceSYS_setns
SYS_setns :: uintptr = 308SourceSYS_setpgid
SYS_setpgid :: uintptr = 109SourceSYS_setpriority
SYS_setpriority :: uintptr = 141SourceSYS_setregid
SYS_setregid :: uintptr = 114SourceSYS_setresgid
SYS_setresgid :: uintptr = 119SourceSYS_setresuid
SYS_setresuid :: uintptr = 117SourceSYS_setreuid
SYS_setreuid :: uintptr = 113SourceSYS_setrlimit
SYS_setrlimit :: uintptr = 160SourceSYS_setsid
SYS_setsid :: uintptr = 112SourceSYS_setsockopt
SYS_setsockopt :: uintptr = 54SourceSYS_settimeofday
SYS_settimeofday :: uintptr = 164SourceSYS_setuid
SYS_setuid :: uintptr = 105SourceSYS_setxattr
SYS_setxattr :: uintptr = 188SourceSYS_shmat
SYS_shmat :: uintptr = 30SourceSYS_shmctl
SYS_shmctl :: uintptr = 31SourceSYS_shmdt
SYS_shmdt :: uintptr = 67SourceSYS_shmget
SYS_shmget :: uintptr = 29SourceSYS_shutdown
SYS_shutdown :: uintptr = 48SourceSYS_sigaltstack
SYS_sigaltstack :: uintptr = 131SourceSYS_signalfd
SYS_signalfd :: uintptr = 282SourceSYS_signalfd4
SYS_signalfd4 :: uintptr = 289SourceSYS_socket
SYS_socket :: uintptr = 41SourceSYS_socketpair
SYS_socketpair :: uintptr = 53SourceSYS_splice
SYS_splice :: uintptr = 275SourceSYS_stat
SYS_stat :: uintptr = 4SourceSYS_statfs
SYS_statfs :: uintptr = 137SourceSYS_statx
SYS_statx :: uintptr = 332SourceSYS_swapoff
SYS_swapoff :: uintptr = 168SourceSYS_swapon
SYS_swapon :: uintptr = 167SourceSYS_symlink
SYS_symlink :: uintptr = 88SourceSYS_symlinkat
SYS_symlinkat :: uintptr = 266SourceSYS_sync
SYS_sync :: uintptr = 162SourceSYS_sync_file_range
SYS_sync_file_range :: uintptr = 277SourceSYS_syncfs
SYS_syncfs :: uintptr = 306SourceSYS_sysfs
SYS_sysfs :: uintptr = 139SourceSYS_sysinfo
SYS_sysinfo :: uintptr = 99SourceSYS_syslog
SYS_syslog :: uintptr = 103SourceSYS_tee
SYS_tee :: uintptr = 276SourceSYS_tgkill
SYS_tgkill :: uintptr = 234SourceSYS_time
SYS_time :: uintptr = 201SourceSYS_timer_create
SYS_timer_create :: uintptr = 222SourceSYS_timer_delete
SYS_timer_delete :: uintptr = 226SourceSYS_timer_getoverrun
SYS_timer_getoverrun :: uintptr = 225SourceSYS_timer_gettime
SYS_timer_gettime :: uintptr = 224SourceSYS_timer_settime
SYS_timer_settime :: uintptr = 223SourceSYS_timerfd_create
SYS_timerfd_create :: uintptr = 283SourceSYS_timerfd_gettime
SYS_timerfd_gettime :: uintptr = 287SourceSYS_timerfd_settime
SYS_timerfd_settime :: uintptr = 286SourceSYS_times
SYS_times :: uintptr = 100SourceSYS_tkill
SYS_tkill :: uintptr = 200SourceSYS_truncate
SYS_truncate :: uintptr = 76SourceSYS_tuxcall
SYS_tuxcall :: uintptr = 184SourceSYS_umask
SYS_umask :: uintptr = 95SourceSYS_umount2
SYS_umount2 :: uintptr = 166SourceSYS_uname
SYS_uname :: uintptr = 63SourceSYS_unlink
SYS_unlink :: uintptr = 87SourceSYS_unlinkat
SYS_unlinkat :: uintptr = 263SourceSYS_unshare
SYS_unshare :: uintptr = 272SourceSYS_uselib
SYS_uselib :: uintptr = 134SourceSYS_userfaultfd
SYS_userfaultfd :: uintptr = 323SourceSYS_ustat
SYS_ustat :: uintptr = 136SourceSYS_utime
SYS_utime :: uintptr = 132SourceSYS_utimensat
SYS_utimensat :: uintptr = 280SourceSYS_utimes
SYS_utimes :: uintptr = 235SourceSYS_vfork
SYS_vfork :: uintptr = 58SourceSYS_vhangup
SYS_vhangup :: uintptr = 153SourceSYS_vmsplice
SYS_vmsplice :: uintptr = 278SourceSYS_vserver
SYS_vserver :: uintptr = 236SourceSYS_wait4
SYS_wait4 :: uintptr = 61SourceSYS_waitid
SYS_waitid :: uintptr = 247SourceSYS_write
SYS_write :: uintptr = 1SourceSYS_writev
SYS_writev :: uintptr = 20SourceProcedures
61get_errno
get_errno :: proc(res: int) -> (i32)Sourcesys_accept
sys_accept :: proc(sd: int, addr: rawptr, len: rawptr) -> (int)Sourcesys_access
sys_access :: proc(path: cstring, mask: int) -> (int)Sourcesys_bind
sys_bind :: proc(sd: int, addr: rawptr, len: i32) -> (int)Sourcesys_chdir
sys_chdir :: proc(path: cstring) -> (int)Sourcesys_chmod
sys_chmod :: proc(path: cstring, mode: uint) -> (int)Sourcesys_chown
sys_chown :: proc(path: cstring, user: int, group: int) -> (int)Sourcesys_close
sys_close :: proc(fd: int) -> (int)Sourcesys_connect
sys_connect :: proc(sd: int, addr: rawptr, len: i32) -> (int)Sourcesys_dup2
sys_dup2 :: proc(oldfd: int, newfd: int) -> (int)Sourcesys_fchdir
sys_fchdir :: proc(fd: int) -> (int)Sourcesys_fchmod
sys_fchmod :: proc(fd: int, mode: uint) -> (int)Sourcesys_fchown
sys_fchown :: proc(fd: int, user: int, group: int) -> (int)Sourcesys_fcntl
sys_fcntl :: proc(fd: int, cmd: int, arg: int) -> (int)Sourcesys_fork
sys_fork :: proc() -> (int)Sourcesys_fstat
sys_fstat :: proc(fd: int, stat: rawptr) -> (int)Sourcesys_fsync
sys_fsync :: proc(fd: int) -> (int)Sourcesys_ftruncate
sys_ftruncate :: proc(fd: int, length: i64) -> (int)Sourcesys_getcwd
sys_getcwd :: proc(buf: rawptr, size: uint) -> (int)Sourcesys_getdents64
sys_getdents64 :: proc(fd: int, dirent: rawptr, count: int) -> (int)Sourcesys_getrandom
sys_getrandom :: proc(buf: [^]u8, buflen: uint, flags: int) -> (int)Sourcesys_gettid
sys_gettid :: proc() -> (int)Sourcesys_lchown
sys_lchown :: proc(path: cstring, user: int, group: int) -> (int)Sourcesys_link
sys_link :: proc(old_name: cstring, new_name: cstring) -> (int)Sourcesys_listen
sys_listen :: proc(sd: int, backlog: int) -> (int)Sourcesys_lseek
sys_lseek :: proc(fd: int, offset: i64, whence: int) -> (i64)Sourcesys_lstat
sys_lstat :: proc(path: cstring, stat: rawptr) -> (int)Sourcesys_madvise
sys_madvise :: proc(addr: rawptr, length: uint, advice: int) -> (int)Sourcesys_mkdir
sys_mkdir :: proc(path: cstring, mode: uint) -> (int)Sourcesys_mkdirat
sys_mkdirat :: proc(dfd: int, path: cstring, mode: uint) -> (int)Sourcesys_mknod
sys_mknod :: proc(path: cstring, mode: uint, dev: int) -> (int)Sourcesys_mknodat
sys_mknodat :: proc(dfd: int, path: cstring, mode: uint, dev: int) -> (int)Sourcesys_mmap
sys_mmap :: proc(
addr: rawptr,
length: uint,
prot: int,
flags: int,
fd: int,
offset: uintptr,
) -> (int)Sourcesys_mprotect
sys_mprotect :: proc(addr: rawptr, length: uint, prot: int) -> (int)Sourcesys_mremap
sys_mremap :: proc(addr: rawptr, old_length: uint, new_length: uint, flags: int, new_addr: rawptr) -> (int)Sourcesys_munmap
sys_munmap :: proc(addr: rawptr, length: uint) -> (int)Sourcesys_open
sys_open :: proc(path: cstring, flags: int, mode: uint) -> (int)Sourcesys_openat
sys_openat :: proc(dfd: int, path: cstring, flags: int, mode: uint) -> (int)Sourcesys_perf_event_open
sys_perf_event_open :: proc(event_attr: rawptr, pid: i32, cpu: i32, group_fd: i32, flags: u32) -> (int)Sourcesys_personality
sys_personality :: proc(persona: u64) -> (int)Sourcesys_pipe2
sys_pipe2 :: proc(fds: rawptr, flags: int) -> (int)Sourcesys_poll
sys_poll :: proc(fds: rawptr, nfds: uint, timeout: int) -> (int)Sourcesys_ppoll
sys_ppoll :: proc(fds: rawptr, nfds: uint, timeout: rawptr, sigmask: rawptr, sigsetsize: uint) -> (int)Sourcesys_pread
sys_pread :: proc(fd: int, buf: rawptr, size: uint, offset: i64) -> (int)Sourcesys_pwrite
sys_pwrite :: proc(fd: int, buf: rawptr, size: uint, offset: i64) -> (int)Sourcesys_read
sys_read :: proc(fd: int, buf: rawptr, size: uint) -> (int)Sourcesys_readlink
sys_readlink :: proc(path: cstring, buf: rawptr, bufsiz: uint) -> (int)Sourcesys_recvfrom
sys_recvfrom :: proc(
sd: int,
buf: rawptr,
len: uint,
flags: int,
addr: rawptr,
alen: uintptr,
) -> (i64)Sourcesys_rename
sys_rename :: proc(old: cstring, new: cstring) -> (int)Sourcesys_rmdir
sys_rmdir :: proc(path: cstring) -> (int)Sourcesys_sendto
sys_sendto :: proc(
sd: int,
buf: rawptr,
len: uint,
flags: int,
addr: rawptr,
alen: i32,
) -> (i64)Sourcesys_setsockopt
sys_setsockopt :: proc(sd: int, level: int, optname: int, optval: rawptr, optlen: i32) -> (int)Sourcesys_shutdown
sys_shutdown :: proc(sd: int, how: int) -> (int)Sourcesys_socket
sys_socket :: proc(domain: int, type: int, protocol: int) -> (int)Sourcesys_stat
sys_stat :: proc(path: cstring, stat: rawptr) -> (int)Sourcesys_symlink
sys_symlink :: proc(old_name: cstring, new_name: cstring) -> (int)Sourcesys_truncate
sys_truncate :: proc(path: cstring, length: i64) -> (int)Sourcesys_unlink
sys_unlink :: proc(path: cstring) -> (int)Sourcesys_unlinkat
sys_unlinkat :: proc(dfd: int, path: cstring, flag: int) -> (int)Sourcesys_utimensat
sys_utimensat :: proc(dfd: int, path: cstring, times: rawptr, flags: int) -> (int)SourceNOTE: Unsure about if this works directly on 32 bit archs. It may need 32 bit version of the time struct. As of Linux 5.1, there is a utimensat_time64 function. Maybe use this in the future?
sys_write
sys_write :: proc(fd: int, buf: rawptr, size: uint) -> (int)Source