1 // Copyright 2017 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Generated with: cat include/uapi/asm-generic/unistd.h | 6 // awk ' { print "SYS_" $2 " = " $2"," } ' 7 #[allow(dead_code)] 8 #[allow(non_camel_case_types)] 9 pub enum LinuxSyscall { 10 SYS_io_setup = 0, 11 SYS_io_destroy = 1, 12 SYS_io_submit = 2, 13 SYS_io_cancel = 3, 14 SYS_io_getevents = 4, 15 SYS_setxattr = 5, 16 SYS_lsetxattr = 6, 17 SYS_fsetxattr = 7, 18 SYS_getxattr = 8, 19 SYS_lgetxattr = 9, 20 SYS_fgetxattr = 10, 21 SYS_listxattr = 11, 22 SYS_llistxattr = 12, 23 SYS_flistxattr = 13, 24 SYS_removexattr = 14, 25 SYS_lremovexattr = 15, 26 SYS_fremovexattr = 16, 27 SYS_getcwd = 17, 28 SYS_lookup_dcookie = 18, 29 SYS_eventfd2 = 19, 30 SYS_epoll_create1 = 20, 31 SYS_epoll_ctl = 21, 32 SYS_epoll_pwait = 22, 33 SYS_dup = 23, 34 SYS_dup3 = 24, 35 SYS_inotify_init1 = 26, 36 SYS_inotify_add_watch = 27, 37 SYS_inotify_rm_watch = 28, 38 SYS_ioctl = 29, 39 SYS_ioprio_set = 30, 40 SYS_ioprio_get = 31, 41 SYS_flock = 32, 42 SYS_mknodat = 33, 43 SYS_mkdirat = 34, 44 SYS_unlinkat = 35, 45 SYS_symlinkat = 36, 46 SYS_linkat = 37, 47 SYS_renameat = 38, 48 SYS_umount2 = 39, 49 SYS_mount = 40, 50 SYS_pivot_root = 41, 51 SYS_nfsservctl = 42, 52 SYS_fallocate = 47, 53 SYS_faccessat = 48, 54 SYS_chdir = 49, 55 SYS_fchdir = 50, 56 SYS_chroot = 51, 57 SYS_fchmod = 52, 58 SYS_fchmodat = 53, 59 SYS_fchownat = 54, 60 SYS_fchown = 55, 61 SYS_openat = 56, 62 SYS_close = 57, 63 SYS_vhangup = 58, 64 SYS_pipe2 = 59, 65 SYS_quotactl = 60, 66 SYS_getdents64 = 61, 67 SYS_read = 63, 68 SYS_write = 64, 69 SYS_readv = 65, 70 SYS_writev = 66, 71 SYS_pread64 = 67, 72 SYS_pwrite64 = 68, 73 SYS_preadv = 69, 74 SYS_pwritev = 70, 75 SYS_pselect6 = 72, 76 SYS_ppoll = 73, 77 SYS_signalfd4 = 74, 78 SYS_vmsplice = 75, 79 SYS_splice = 76, 80 SYS_tee = 77, 81 SYS_readlinkat = 78, 82 SYS_sync = 81, 83 SYS_fsync = 82, 84 SYS_fdatasync = 83, 85 SYS_sync_file_range = 84, 86 SYS_timerfd_create = 85, 87 SYS_timerfd_settime = 86, 88 SYS_timerfd_gettime = 87, 89 SYS_utimensat = 88, 90 SYS_acct = 89, 91 SYS_capget = 90, 92 SYS_capset = 91, 93 SYS_personality = 92, 94 SYS_exit = 93, 95 SYS_exit_group = 94, 96 SYS_waitid = 95, 97 SYS_set_tid_address = 96, 98 SYS_unshare = 97, 99 SYS_futex = 98, 100 SYS_set_robust_list = 99, 101 SYS_get_robust_list = 100, 102 SYS_nanosleep = 101, 103 SYS_getitimer = 102, 104 SYS_setitimer = 103, 105 SYS_kexec_load = 104, 106 SYS_init_module = 105, 107 SYS_delete_module = 106, 108 SYS_timer_create = 107, 109 SYS_timer_gettime = 108, 110 SYS_timer_getoverrun = 109, 111 SYS_timer_settime = 110, 112 SYS_timer_delete = 111, 113 SYS_clock_settime = 112, 114 SYS_clock_gettime = 113, 115 SYS_clock_getres = 114, 116 SYS_clock_nanosleep = 115, 117 SYS_syslog = 116, 118 SYS_ptrace = 117, 119 SYS_sched_setparam = 118, 120 SYS_sched_setscheduler = 119, 121 SYS_sched_getscheduler = 120, 122 SYS_sched_getparam = 121, 123 SYS_sched_setaffinity = 122, 124 SYS_sched_getaffinity = 123, 125 SYS_sched_yield = 124, 126 SYS_sched_get_priority_max = 125, 127 SYS_sched_get_priority_min = 126, 128 SYS_sched_rr_get_interval = 127, 129 SYS_restart_syscall = 128, 130 SYS_kill = 129, 131 SYS_tkill = 130, 132 SYS_tgkill = 131, 133 SYS_sigaltstack = 132, 134 SYS_rt_sigsuspend = 133, 135 SYS_rt_sigaction = 134, 136 SYS_rt_sigprocmask = 135, 137 SYS_rt_sigpending = 136, 138 SYS_rt_sigtimedwait = 137, 139 SYS_rt_sigqueueinfo = 138, 140 SYS_rt_sigreturn = 139, 141 SYS_setpriority = 140, 142 SYS_getpriority = 141, 143 SYS_reboot = 142, 144 SYS_setregid = 143, 145 SYS_setgid = 144, 146 SYS_setreuid = 145, 147 SYS_setuid = 146, 148 SYS_setresuid = 147, 149 SYS_getresuid = 148, 150 SYS_setresgid = 149, 151 SYS_getresgid = 150, 152 SYS_setfsuid = 151, 153 SYS_setfsgid = 152, 154 SYS_times = 153, 155 SYS_setpgid = 154, 156 SYS_getpgid = 155, 157 SYS_getsid = 156, 158 SYS_setsid = 157, 159 SYS_getgroups = 158, 160 SYS_setgroups = 159, 161 SYS_uname = 160, 162 SYS_sethostname = 161, 163 SYS_setdomainname = 162, 164 SYS_getrlimit = 163, 165 SYS_setrlimit = 164, 166 SYS_getrusage = 165, 167 SYS_umask = 166, 168 SYS_prctl = 167, 169 SYS_getcpu = 168, 170 SYS_gettimeofday = 169, 171 SYS_settimeofday = 170, 172 SYS_adjtimex = 171, 173 SYS_getpid = 172, 174 SYS_getppid = 173, 175 SYS_getuid = 174, 176 SYS_geteuid = 175, 177 SYS_getgid = 176, 178 SYS_getegid = 177, 179 SYS_gettid = 178, 180 SYS_sysinfo = 179, 181 SYS_mq_open = 180, 182 SYS_mq_unlink = 181, 183 SYS_mq_timedsend = 182, 184 SYS_mq_timedreceive = 183, 185 SYS_mq_notify = 184, 186 SYS_mq_getsetattr = 185, 187 SYS_msgget = 186, 188 SYS_msgctl = 187, 189 SYS_msgrcv = 188, 190 SYS_msgsnd = 189, 191 SYS_semget = 190, 192 SYS_semctl = 191, 193 SYS_semtimedop = 192, 194 SYS_semop = 193, 195 SYS_shmget = 194, 196 SYS_shmctl = 195, 197 SYS_shmat = 196, 198 SYS_shmdt = 197, 199 SYS_socket = 198, 200 SYS_socketpair = 199, 201 SYS_bind = 200, 202 SYS_listen = 201, 203 SYS_accept = 202, 204 SYS_connect = 203, 205 SYS_getsockname = 204, 206 SYS_getpeername = 205, 207 SYS_sendto = 206, 208 SYS_recvfrom = 207, 209 SYS_setsockopt = 208, 210 SYS_getsockopt = 209, 211 SYS_shutdown = 210, 212 SYS_sendmsg = 211, 213 SYS_recvmsg = 212, 214 SYS_readahead = 213, 215 SYS_brk = 214, 216 SYS_munmap = 215, 217 SYS_mremap = 216, 218 SYS_add_key = 217, 219 SYS_request_key = 218, 220 SYS_keyctl = 219, 221 SYS_clone = 220, 222 SYS_execve = 221, 223 SYS_swapon = 224, 224 SYS_swapoff = 225, 225 SYS_mprotect = 226, 226 SYS_msync = 227, 227 SYS_mlock = 228, 228 SYS_munlock = 229, 229 SYS_mlockall = 230, 230 SYS_munlockall = 231, 231 SYS_mincore = 232, 232 SYS_madvise = 233, 233 SYS_remap_file_pages = 234, 234 SYS_mbind = 235, 235 SYS_get_mempolicy = 236, 236 SYS_set_mempolicy = 237, 237 SYS_migrate_pages = 238, 238 SYS_move_pages = 239, 239 SYS_rt_tgsigqueueinfo = 240, 240 SYS_perf_event_open = 241, 241 SYS_accept4 = 242, 242 SYS_recvmmsg = 243, 243 SYS_arch_specific_syscall = 244, 244 SYS_wait4 = 260, 245 SYS_prlimit64 = 261, 246 SYS_fanotify_init = 262, 247 SYS_fanotify_mark = 263, 248 SYS_name_to_handle_at = 264, 249 SYS_open_by_handle_at = 265, 250 SYS_clock_adjtime = 266, 251 SYS_syncfs = 267, 252 SYS_setns = 268, 253 SYS_sendmmsg = 269, 254 SYS_process_vm_readv = 270, 255 SYS_process_vm_writev = 271, 256 SYS_kcmp = 272, 257 SYS_finit_module = 273, 258 SYS_sched_setattr = 274, 259 SYS_sched_getattr = 275, 260 SYS_renameat2 = 276, 261 SYS_seccomp = 277, 262 SYS_getrandom = 278, 263 SYS_memfd_create = 279, 264 SYS_bpf = 280, 265 SYS_execveat = 281, 266 SYS_userfaultfd = 282, 267 SYS_membarrier = 283, 268 SYS_mlock2 = 284, 269 SYS_copy_file_range = 285, 270 SYS_preadv2 = 286, 271 SYS_pwritev2 = 287, 272 SYS_pkey_mprotect = 288, 273 SYS_pkey_alloc = 289, 274 SYS_pkey_free = 290, 275 SYS_syscalls = 291, 276 SYS_io_uring_setup = 425, 277 SYS_io_uring_enter = 426, 278 SYS_io_uring_register = 427, 279 SYS_open = 1024, 280 SYS_link = 1025, 281 SYS_unlink = 1026, 282 SYS_mknod = 1027, 283 SYS_chmod = 1028, 284 SYS_chown = 1029, 285 SYS_mkdir = 1030, 286 SYS_rmdir = 1031, 287 SYS_lchown = 1032, 288 SYS_access = 1033, 289 SYS_rename = 1034, 290 SYS_readlink = 1035, 291 SYS_symlink = 1036, 292 SYS_utimes = 1037, 293 SYS_pipe = 1040, 294 SYS_dup2 = 1041, 295 SYS_epoll_create = 1042, 296 SYS_inotify_init = 1043, 297 SYS_eventfd = 1044, 298 SYS_signalfd = 1045, 299 SYS_sendfile = 1046, 300 SYS_ftruncate = 1047, 301 SYS_truncate = 1048, 302 SYS_stat = 1049, 303 SYS_lstat = 1050, 304 SYS_fstat = 1051, 305 SYS_fcntl = 1052, 306 SYS_fadvise64 = 1053, 307 SYS_newfstatat = 1054, 308 SYS_fstatfs = 1055, 309 SYS_statfs = 1056, 310 SYS_lseek = 1057, 311 SYS_mmap = 1058, 312 SYS_alarm = 1059, 313 SYS_getpgrp = 1060, 314 SYS_pause = 1061, 315 SYS_time = 1062, 316 SYS_utime = 1063, 317 SYS_creat = 1064, 318 SYS_getdents = 1065, 319 SYS_futimesat = 1066, 320 SYS_select = 1067, 321 SYS_poll = 1068, 322 SYS_epoll_wait = 1069, 323 SYS_ustat = 1070, 324 SYS_vfork = 1071, 325 SYS_oldwait4 = 1072, 326 SYS_recv = 1073, 327 SYS_send = 1074, 328 SYS_bdflush = 1075, 329 SYS_umount = 1076, 330 SYS_uselib = 1077, 331 SYS__sysctl = 1078, 332 SYS_fork = 1079, 333 } 334