633 lines
21 KiB
C
633 lines
21 KiB
C
/* $NetBSD: linux_syscall.h,v 1.10 2023/08/19 17:50:24 christos Exp $ */
|
|
|
|
/*
|
|
* System call numbers.
|
|
*
|
|
* DO NOT EDIT-- this file is automatically generated.
|
|
* created from NetBSD: syscalls.master,v 1.11 2023/08/19 17:49:49 christos Exp
|
|
*/
|
|
|
|
#ifndef _LINUX_SYS_SYSCALL_H_
|
|
#define _LINUX_SYS_SYSCALL_H_
|
|
|
|
#define LINUX_SYS_MAXSYSARGS 8
|
|
|
|
/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
|
|
#define LINUX_SYS_setxattr 5
|
|
|
|
/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
|
|
#define LINUX_SYS_lsetxattr 6
|
|
|
|
/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
|
|
#define LINUX_SYS_fsetxattr 7
|
|
|
|
/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
|
|
#define LINUX_SYS_getxattr 8
|
|
|
|
/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
|
|
#define LINUX_SYS_lgetxattr 9
|
|
|
|
/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
|
|
#define LINUX_SYS_fgetxattr 10
|
|
|
|
/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
|
|
#define LINUX_SYS_listxattr 11
|
|
|
|
/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
|
|
#define LINUX_SYS_llistxattr 12
|
|
|
|
/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
|
|
#define LINUX_SYS_flistxattr 13
|
|
|
|
/* syscall: "removexattr" ret: "int" args: "char *" "char *" */
|
|
#define LINUX_SYS_removexattr 14
|
|
|
|
/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
|
|
#define LINUX_SYS_lremovexattr 15
|
|
|
|
/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
|
|
#define LINUX_SYS_fremovexattr 16
|
|
|
|
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
|
|
#define LINUX_SYS___getcwd 17
|
|
|
|
/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */
|
|
#define LINUX_SYS_eventfd2 19
|
|
|
|
/* syscall: "epoll_create1" ret: "int" args: "int" */
|
|
#define LINUX_SYS_epoll_create1 20
|
|
|
|
/* syscall: "epoll_ctl" ret: "int" args: "int" "int" "int" "struct linux_epoll_event *" */
|
|
#define LINUX_SYS_epoll_ctl 21
|
|
|
|
/* syscall: "epoll_pwait" ret: "int" args: "int" "struct linux_epoll_event *" "int" "int" "const linux_sigset_t *" */
|
|
#define LINUX_SYS_epoll_pwait 22
|
|
|
|
/* syscall: "dup" ret: "int" args: "int" */
|
|
#define LINUX_SYS_dup 23
|
|
|
|
/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
|
|
#define LINUX_SYS_dup3 24
|
|
|
|
/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
|
|
#define LINUX_SYS_fcntl 25
|
|
|
|
/* syscall: "inotify_init1" ret: "int" args: "int" */
|
|
#define LINUX_SYS_inotify_init1 26
|
|
|
|
/* syscall: "inotify_add_watch" ret: "int" args: "int" "const char *" "uint32_t" */
|
|
#define LINUX_SYS_inotify_add_watch 27
|
|
|
|
/* syscall: "inotify_rm_watch" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_inotify_rm_watch 28
|
|
|
|
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
|
|
#define LINUX_SYS_ioctl 29
|
|
|
|
/* syscall: "flock" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_flock 32
|
|
|
|
/* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */
|
|
#define LINUX_SYS_mknodat 33
|
|
|
|
/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */
|
|
#define LINUX_SYS_mkdirat 34
|
|
|
|
/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
|
|
#define LINUX_SYS_unlinkat 35
|
|
|
|
/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
|
|
#define LINUX_SYS_symlinkat 36
|
|
|
|
/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
|
|
#define LINUX_SYS_linkat 37
|
|
|
|
/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
|
|
#define LINUX_SYS_renameat 38
|
|
|
|
/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
|
|
#define LINUX_SYS_statfs 43
|
|
|
|
/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
|
|
#define LINUX_SYS_fstatfs 44
|
|
|
|
/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
|
|
#define LINUX_SYS_truncate64 45
|
|
|
|
/* syscall: "ftruncate64" ret: "int" args: "unsigned int" "off_t" */
|
|
#define LINUX_SYS_ftruncate64 46
|
|
|
|
/* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
|
|
#define LINUX_SYS_fallocate 47
|
|
|
|
/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */
|
|
#define LINUX_SYS_faccessat 48
|
|
|
|
/* syscall: "chdir" ret: "int" args: "const char *" */
|
|
#define LINUX_SYS_chdir 49
|
|
|
|
/* syscall: "fchdir" ret: "int" args: "int" */
|
|
#define LINUX_SYS_fchdir 50
|
|
|
|
/* syscall: "chroot" ret: "int" args: "char *" */
|
|
#define LINUX_SYS_chroot 51
|
|
|
|
/* syscall: "fchmod" ret: "int" args: "int" "linux_umode_t" */
|
|
#define LINUX_SYS_fchmod 52
|
|
|
|
/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */
|
|
#define LINUX_SYS_fchmodat 53
|
|
|
|
/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
|
|
#define LINUX_SYS_fchownat 54
|
|
|
|
/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
|
|
#define LINUX_SYS___posix_fchown 55
|
|
|
|
/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
|
|
#define LINUX_SYS_openat 56
|
|
|
|
/* syscall: "close" ret: "int" args: "int" */
|
|
#define LINUX_SYS_close 57
|
|
|
|
/* syscall: "pipe2" ret: "int" args: "int *" "int" */
|
|
#define LINUX_SYS_pipe2 59
|
|
|
|
/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
|
|
#define LINUX_SYS_getdents64 61
|
|
|
|
/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
|
|
#define LINUX_SYS_lseek 62
|
|
|
|
/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
|
|
#define LINUX_SYS_read 63
|
|
|
|
/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
|
|
#define LINUX_SYS_write 64
|
|
|
|
/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
|
|
#define LINUX_SYS_readv 65
|
|
|
|
/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
|
|
#define LINUX_SYS_writev 66
|
|
|
|
/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */
|
|
#define LINUX_SYS_pread 67
|
|
|
|
/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */
|
|
#define LINUX_SYS_pwrite 68
|
|
|
|
/* syscall: "preadv" ret: "int" args: "int" "const struct iovec *" "int" "unsigned long" "unsigned long" */
|
|
#define LINUX_SYS_preadv 69
|
|
|
|
/* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
|
|
#define LINUX_SYS_pwritev 70
|
|
|
|
/* syscall: "pselect6" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct linux_timespec *" "linux_sized_sigset_t *" */
|
|
#define LINUX_SYS_pselect6 72
|
|
|
|
/* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "struct linux_timespec *" "linux_sigset_t *" */
|
|
#define LINUX_SYS_ppoll 73
|
|
|
|
/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
|
|
#define LINUX_SYS_readlinkat 78
|
|
|
|
/* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat *" "int" */
|
|
#define LINUX_SYS_fstatat64 79
|
|
|
|
/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat *" */
|
|
#define LINUX_SYS_fstat64 80
|
|
|
|
/* syscall: "sync" ret: "int" args: */
|
|
#define LINUX_SYS_sync 81
|
|
|
|
/* syscall: "fsync" ret: "int" args: "int" */
|
|
#define LINUX_SYS_fsync 82
|
|
|
|
/* syscall: "fdatasync" ret: "int" args: "int" */
|
|
#define LINUX_SYS_fdatasync 83
|
|
|
|
/* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */
|
|
#define LINUX_SYS_timerfd_create 85
|
|
|
|
/* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
|
|
#define LINUX_SYS_timerfd_settime 86
|
|
|
|
/* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */
|
|
#define LINUX_SYS_timerfd_gettime 87
|
|
|
|
/* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
|
|
#define LINUX_SYS_utimensat 88
|
|
|
|
/* syscall: "acct" ret: "int" args: "char *" */
|
|
#define LINUX_SYS_acct 89
|
|
|
|
/* syscall: "personality" ret: "int" args: "unsigned long" */
|
|
#define LINUX_SYS_personality 92
|
|
|
|
/* syscall: "exit" ret: "int" args: "int" */
|
|
#define LINUX_SYS_exit 93
|
|
|
|
/* syscall: "exit_group" ret: "int" args: "int" */
|
|
#define LINUX_SYS_exit_group 94
|
|
|
|
/* syscall: "waitid" ret: "int" args: "int" "id_t" "linux_siginfo_t *" "int" "struct rusage50 *" */
|
|
#define LINUX_SYS_waitid 95
|
|
|
|
/* syscall: "set_tid_address" ret: "int" args: "int *" */
|
|
#define LINUX_SYS_set_tid_address 96
|
|
|
|
/* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct linux_timespec *" "int *" "int" */
|
|
#define LINUX_SYS_futex 98
|
|
|
|
/* syscall: "__futex_set_robust_list" ret: "int" args: "void *" "size_t" */
|
|
#define LINUX_SYS___futex_set_robust_list 99
|
|
|
|
/* syscall: "__futex_get_robust_list" ret: "int" args: "lwpid_t" "void **" "size_t *" */
|
|
#define LINUX_SYS___futex_get_robust_list 100
|
|
|
|
/* syscall: "nanosleep" ret: "int" args: "const struct linux_timespec *" "struct linux_timespec *" */
|
|
#define LINUX_SYS_nanosleep 101
|
|
|
|
/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */
|
|
#define LINUX_SYS_getitimer 102
|
|
|
|
/* syscall: "setitimer" ret: "int" args: "int" "struct itimerval50 *" "struct itimerval50 *" */
|
|
#define LINUX_SYS_setitimer 103
|
|
|
|
/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct linux_sigevent *" "timer_t *" */
|
|
#define LINUX_SYS_timer_create 107
|
|
|
|
/* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct linux_itimerspec *" */
|
|
#define LINUX_SYS_timer_gettime 108
|
|
|
|
/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
|
|
#define LINUX_SYS_timer_getoverrun 109
|
|
|
|
/* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
|
|
#define LINUX_SYS_timer_settime 110
|
|
|
|
/* syscall: "timer_delete" ret: "int" args: "timer_t" */
|
|
#define LINUX_SYS_timer_delete 111
|
|
|
|
/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
|
|
#define LINUX_SYS_clock_settime 112
|
|
|
|
/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
|
|
#define LINUX_SYS_clock_gettime 113
|
|
|
|
/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
|
|
#define LINUX_SYS_clock_getres 114
|
|
|
|
/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
|
|
#define LINUX_SYS_clock_nanosleep 115
|
|
|
|
/* syscall: "ptrace" ret: "int" args: "long" "long" "long" "long" */
|
|
#define LINUX_SYS_ptrace 117
|
|
|
|
/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
|
|
#define LINUX_SYS_sched_setparam 118
|
|
|
|
/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
|
|
#define LINUX_SYS_sched_setscheduler 119
|
|
|
|
/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
|
|
#define LINUX_SYS_sched_getscheduler 120
|
|
|
|
/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
|
|
#define LINUX_SYS_sched_getparam 121
|
|
|
|
/* syscall: "sched_setaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
|
|
#define LINUX_SYS_sched_setaffinity 122
|
|
|
|
/* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
|
|
#define LINUX_SYS_sched_getaffinity 123
|
|
|
|
/* syscall: "sched_yield" ret: "int" args: */
|
|
#define LINUX_SYS_sched_yield 124
|
|
|
|
/* syscall: "sched_get_priority_max" ret: "int" args: "int" */
|
|
#define LINUX_SYS_sched_get_priority_max 125
|
|
|
|
/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
|
|
#define LINUX_SYS_sched_get_priority_min 126
|
|
|
|
/* syscall: "kill" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_kill 129
|
|
|
|
/* syscall: "tkill" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_tkill 130
|
|
|
|
/* syscall: "tgkill" ret: "int" args: "int" "int" "int" */
|
|
#define LINUX_SYS_tgkill 131
|
|
|
|
/* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */
|
|
#define LINUX_SYS_sigaltstack 132
|
|
|
|
/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
|
|
#define LINUX_SYS_rt_sigsuspend 133
|
|
|
|
/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
|
|
#define LINUX_SYS_rt_sigaction 134
|
|
|
|
/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
|
|
#define LINUX_SYS_rt_sigprocmask 135
|
|
|
|
/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
|
|
#define LINUX_SYS_rt_sigpending 136
|
|
|
|
/* syscall: "rt_sigtimedwait" ret: "int" args: "const linux_sigset_t *" "linux_siginfo_t *" "const struct linux_timespec *" */
|
|
#define LINUX_SYS_rt_sigtimedwait 137
|
|
|
|
/* syscall: "rt_sigreturn" ret: "int" args: */
|
|
#define LINUX_SYS_rt_sigreturn 139
|
|
|
|
/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
|
|
#define LINUX_SYS_setpriority 140
|
|
|
|
/* syscall: "getpriority" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_getpriority 141
|
|
|
|
/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
|
|
#define LINUX_SYS_reboot 142
|
|
|
|
/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
|
|
#define LINUX_SYS_setregid 143
|
|
|
|
/* syscall: "setgid" ret: "int" args: "gid_t" */
|
|
#define LINUX_SYS_setgid 144
|
|
|
|
/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
|
|
#define LINUX_SYS_setreuid 145
|
|
|
|
/* syscall: "setuid" ret: "int" args: "uid_t" */
|
|
#define LINUX_SYS_setuid 146
|
|
|
|
/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
|
|
#define LINUX_SYS_setresuid 147
|
|
|
|
/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
|
|
#define LINUX_SYS_getresuid 148
|
|
|
|
/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
|
|
#define LINUX_SYS_setresgid 149
|
|
|
|
/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
|
|
#define LINUX_SYS_getresgid 150
|
|
|
|
/* syscall: "setfsuid" ret: "int" args: "uid_t" */
|
|
#define LINUX_SYS_setfsuid 151
|
|
|
|
/* syscall: "setfsgid" ret: "int" args: "gid_t" */
|
|
#define LINUX_SYS_setfsgid 152
|
|
|
|
/* syscall: "times" ret: "int" args: "struct times *" */
|
|
#define LINUX_SYS_times 153
|
|
|
|
/* syscall: "setpgid" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_setpgid 154
|
|
|
|
/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
|
|
#define LINUX_SYS_getpgid 155
|
|
|
|
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
|
|
#define LINUX_SYS_getsid 156
|
|
|
|
/* syscall: "setsid" ret: "int" args: */
|
|
#define LINUX_SYS_setsid 157
|
|
|
|
/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
|
|
#define LINUX_SYS_getgroups 158
|
|
|
|
/* syscall: "setgroups" ret: "int" args: "int" "gid_t *" */
|
|
#define LINUX_SYS_setgroups 159
|
|
|
|
/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
|
|
#define LINUX_SYS_uname 160
|
|
|
|
/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
|
|
#define LINUX_SYS_sethostname 161
|
|
|
|
/* syscall: "setdomainname" ret: "int" args: "char *" "int" */
|
|
#define LINUX_SYS_setdomainname 162
|
|
|
|
/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
|
|
#define LINUX_SYS_getrlimit 163
|
|
|
|
/* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */
|
|
#define LINUX_SYS_setrlimit 164
|
|
|
|
/* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
|
|
#define LINUX_SYS_getrusage 165
|
|
|
|
/* syscall: "umask" ret: "int" args: "int" */
|
|
#define LINUX_SYS_umask 166
|
|
|
|
/* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
|
|
#define LINUX_SYS_gettimeofday 169
|
|
|
|
/* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
|
|
#define LINUX_SYS_settimeofday 170
|
|
|
|
/* syscall: "getpid" ret: "pid_t" args: */
|
|
#define LINUX_SYS_getpid 172
|
|
|
|
/* syscall: "getppid" ret: "pid_t" args: */
|
|
#define LINUX_SYS_getppid 173
|
|
|
|
/* syscall: "getuid" ret: "uid_t" args: */
|
|
#define LINUX_SYS_getuid 174
|
|
|
|
/* syscall: "geteuid" ret: "uid_t" args: */
|
|
#define LINUX_SYS_geteuid 175
|
|
|
|
/* syscall: "getgid" ret: "gid_t" args: */
|
|
#define LINUX_SYS_getgid 176
|
|
|
|
/* syscall: "getegid" ret: "gid_t" args: */
|
|
#define LINUX_SYS_getegid 177
|
|
|
|
/* syscall: "gettid" ret: "pid_t" args: */
|
|
#define LINUX_SYS_gettid 178
|
|
|
|
/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
|
|
#define LINUX_SYS_sysinfo 179
|
|
|
|
#ifdef SYSVMSG
|
|
/* syscall: "msgget" ret: "int" args: "key_t" "int" */
|
|
#define LINUX_SYS_msgget 186
|
|
|
|
/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
|
|
#define LINUX_SYS_msgctl 187
|
|
|
|
/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
|
|
#define LINUX_SYS_msgrcv 188
|
|
|
|
/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
|
|
#define LINUX_SYS_msgsnd 189
|
|
|
|
#else
|
|
#endif
|
|
#ifdef SYSVSEM
|
|
/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
|
|
#define LINUX_SYS_semget 190
|
|
|
|
/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
|
|
#define LINUX_SYS_semctl 191
|
|
|
|
/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
|
|
#define LINUX_SYS_semop 193
|
|
|
|
#else
|
|
#endif
|
|
#ifdef SYSVSEM
|
|
/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
|
|
#define LINUX_SYS_shmget 194
|
|
|
|
/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */
|
|
#define LINUX_SYS_shmctl 195
|
|
|
|
/* syscall: "shmat" ret: "int" args: "int" "void *" "int" */
|
|
#define LINUX_SYS_shmat 196
|
|
|
|
/* syscall: "shmdt" ret: "int" args: "const void *" */
|
|
#define LINUX_SYS_shmdt 197
|
|
|
|
#else
|
|
#endif
|
|
/* syscall: "socket" ret: "int" args: "int" "int" "int" */
|
|
#define LINUX_SYS_socket 198
|
|
|
|
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
|
|
#define LINUX_SYS_socketpair 199
|
|
|
|
/* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
|
|
#define LINUX_SYS_bind 200
|
|
|
|
/* syscall: "listen" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_listen 201
|
|
|
|
/* syscall: "oaccept" ret: "int" args: "int" "struct osockaddr *" "int *" */
|
|
#define LINUX_SYS_oaccept 202
|
|
|
|
/* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
|
|
#define LINUX_SYS_connect 203
|
|
|
|
/* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
|
|
#define LINUX_SYS_getsockname 204
|
|
|
|
/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
|
|
#define LINUX_SYS_getpeername 205
|
|
|
|
/* syscall: "sendto" ret: "ssize_t" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */
|
|
#define LINUX_SYS_sendto 206
|
|
|
|
/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct osockaddr *" "unsigned int *" */
|
|
#define LINUX_SYS_recvfrom 207
|
|
|
|
/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
|
|
#define LINUX_SYS_setsockopt 208
|
|
|
|
/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
|
|
#define LINUX_SYS_getsockopt 209
|
|
|
|
/* syscall: "shutdown" ret: "int" args: "int" "int" */
|
|
#define LINUX_SYS_shutdown 210
|
|
|
|
/* syscall: "sendmsg" ret: "int" args: "int" "const struct linux_msghdr *" "int" */
|
|
#define LINUX_SYS_sendmsg 211
|
|
|
|
/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct linux_msghdr *" "int" */
|
|
#define LINUX_SYS_recvmsg 212
|
|
|
|
/* syscall: "readahead" ret: "ssize_t" args: "int" "off_t" "size_t" */
|
|
#define LINUX_SYS_readahead 213
|
|
|
|
/* syscall: "brk" ret: "int" args: "char *" */
|
|
#define LINUX_SYS_brk 214
|
|
|
|
/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
|
|
#define LINUX_SYS_munmap 215
|
|
|
|
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
|
|
#define LINUX_SYS_mremap 216
|
|
|
|
/* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" "void *" */
|
|
#define LINUX_SYS_clone 220
|
|
|
|
/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
|
|
#define LINUX_SYS_execve 221
|
|
|
|
/* syscall: "mmap" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
|
|
#define LINUX_SYS_mmap 222
|
|
|
|
/* syscall: "fadvise64" ret: "int" args: "int" "off_t" "size_t" "int" */
|
|
#define LINUX_SYS_fadvise64 223
|
|
|
|
/* syscall: "swapon" ret: "int" args: "char *" */
|
|
#define LINUX_SYS_swapon 224
|
|
|
|
/* syscall: "swapoff" ret: "int" args: "const char *" */
|
|
#define LINUX_SYS_swapoff 225
|
|
|
|
/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
|
|
#define LINUX_SYS_mprotect 226
|
|
|
|
/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
|
|
#define LINUX_SYS___msync13 227
|
|
|
|
/* syscall: "mlock" ret: "int" args: "void *" "size_t" */
|
|
#define LINUX_SYS_mlock 228
|
|
|
|
/* syscall: "munlock" ret: "int" args: "void *" "size_t" */
|
|
#define LINUX_SYS_munlock 229
|
|
|
|
/* syscall: "mlockall" ret: "int" args: "int" */
|
|
#define LINUX_SYS_mlockall 230
|
|
|
|
/* syscall: "munlockall" ret: "int" args: */
|
|
#define LINUX_SYS_munlockall 231
|
|
|
|
/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
|
|
#define LINUX_SYS_mincore 232
|
|
|
|
/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
|
|
#define LINUX_SYS_madvise 233
|
|
|
|
/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
|
|
#define LINUX_SYS_accept4 242
|
|
|
|
/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
|
|
#define LINUX_SYS_recvmmsg 243
|
|
|
|
/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
|
|
#define LINUX_SYS_wait4 260
|
|
|
|
/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */
|
|
#define LINUX_SYS_prlimit64 261
|
|
|
|
/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
|
|
#define LINUX_SYS_sendmmsg 269
|
|
|
|
/* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
|
|
#define LINUX_SYS_getrandom 278
|
|
|
|
/* syscall: "memfd_create" ret: "int" args: "const char *" "unsigned int" */
|
|
#define LINUX_SYS_memfd_create 279
|
|
|
|
/* syscall: "statx" ret: "int" args: "int" "const char *" "int" "unsigned int" "struct linux_statx *" */
|
|
#define LINUX_SYS_statx 291
|
|
|
|
/* syscall: "close_range" ret: "int" args: "unsigned int" "unsigned int" "unsigned int" */
|
|
#define LINUX_SYS_close_range 436
|
|
|
|
/* syscall: "nosys" ret: "int" args: */
|
|
#define LINUX_SYS_nosys 440
|
|
|
|
/* syscall: "epoll_pwait2" ret: "int" args: "int" "struct linux_epoll_event *" "int" "const struct linux_timespec *" "const linux_sigset_t *" */
|
|
#define LINUX_SYS_epoll_pwait2 441
|
|
|
|
#define LINUX_SYS_MAXSYSCALL 442
|
|
#define LINUX_SYS_NSYSENT 512
|
|
#endif /* _LINUX_SYS_SYSCALL_H_ */
|