1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef BERBERIS_GUEST_OS_PRIMITIVES_GEN_SYSCALL_NUMBERS_ARCH_H_ 18 #define BERBERIS_GUEST_OS_PRIMITIVES_GEN_SYSCALL_NUMBERS_ARCH_H_ 19 20 namespace berberis { 21 22 enum { 23 GUEST_NR_accept = 202, 24 GUEST_NR_accept4 = 242, 25 GUEST_NR_acct = 89, 26 GUEST_NR_add_key = 217, 27 GUEST_NR_adjtimex = 171, 28 GUEST_NR_bind = 200, 29 GUEST_NR_bpf = 280, 30 GUEST_NR_brk = 214, 31 GUEST_NR_capget = 90, 32 GUEST_NR_capset = 91, 33 GUEST_NR_chdir = 49, 34 GUEST_NR_chroot = 51, 35 GUEST_NR_clock_adjtime = 266, 36 GUEST_NR_clock_getres = 114, 37 GUEST_NR_clock_gettime = 113, 38 GUEST_NR_clock_nanosleep = 115, 39 GUEST_NR_clock_settime = 112, 40 GUEST_NR_clone = 220, 41 GUEST_NR_clone3 = 435, 42 GUEST_NR_close = 57, 43 GUEST_NR_close_range = 436, 44 GUEST_NR_connect = 203, 45 GUEST_NR_copy_file_range = 285, 46 GUEST_NR_delete_module = 106, 47 GUEST_NR_dup = 23, 48 GUEST_NR_dup3 = 24, 49 GUEST_NR_epoll_create1 = 20, 50 GUEST_NR_epoll_ctl = 21, 51 GUEST_NR_epoll_pwait = 22, 52 GUEST_NR_epoll_pwait2 = 441, 53 GUEST_NR_eventfd2 = 19, 54 GUEST_NR_execve = 221, 55 GUEST_NR_execveat = 281, 56 GUEST_NR_exit = 93, 57 GUEST_NR_exit_group = 94, 58 GUEST_NR_faccessat = 48, 59 GUEST_NR_faccessat2 = 439, 60 GUEST_NR_fadvise64 = 223, 61 GUEST_NR_fallocate = 47, 62 GUEST_NR_fanotify_init = 262, 63 GUEST_NR_fanotify_mark = 263, 64 GUEST_NR_fchdir = 50, 65 GUEST_NR_fchmod = 52, 66 GUEST_NR_fchmodat = 53, 67 GUEST_NR_fchown = 55, 68 GUEST_NR_fchownat = 54, 69 GUEST_NR_fcntl = 25, 70 GUEST_NR_fdatasync = 83, 71 GUEST_NR_fgetxattr = 10, 72 GUEST_NR_finit_module = 273, 73 GUEST_NR_flistxattr = 13, 74 GUEST_NR_flock = 32, 75 GUEST_NR_fremovexattr = 16, 76 GUEST_NR_fsconfig = 431, 77 GUEST_NR_fsetxattr = 7, 78 GUEST_NR_fsmount = 432, 79 GUEST_NR_fsopen = 430, 80 GUEST_NR_fspick = 433, 81 GUEST_NR_fstat = 80, 82 GUEST_NR_fstatfs = 44, 83 GUEST_NR_fsync = 82, 84 GUEST_NR_ftruncate = 46, 85 GUEST_NR_futex = 98, 86 GUEST_NR_futex_waitv = 449, 87 GUEST_NR_get_mempolicy = 236, 88 GUEST_NR_get_robust_list = 100, 89 GUEST_NR_getcpu = 168, 90 GUEST_NR_getcwd = 17, 91 GUEST_NR_getdents64 = 61, 92 GUEST_NR_getegid = 177, 93 GUEST_NR_geteuid = 175, 94 GUEST_NR_getgid = 176, 95 GUEST_NR_getgroups = 158, 96 GUEST_NR_getitimer = 102, 97 GUEST_NR_getpeername = 205, 98 GUEST_NR_getpgid = 155, 99 GUEST_NR_getpid = 172, 100 GUEST_NR_getppid = 173, 101 GUEST_NR_getpriority = 141, 102 GUEST_NR_getrandom = 278, 103 GUEST_NR_getresgid = 150, 104 GUEST_NR_getresuid = 148, 105 GUEST_NR_getrlimit = 163, 106 GUEST_NR_getrusage = 165, 107 GUEST_NR_getsid = 156, 108 GUEST_NR_getsockname = 204, 109 GUEST_NR_getsockopt = 209, 110 GUEST_NR_gettid = 178, 111 GUEST_NR_gettimeofday = 169, 112 GUEST_NR_getuid = 174, 113 GUEST_NR_getxattr = 8, 114 GUEST_NR_init_module = 105, 115 GUEST_NR_inotify_add_watch = 27, 116 GUEST_NR_inotify_init1 = 26, 117 GUEST_NR_inotify_rm_watch = 28, 118 GUEST_NR_io_cancel = 3, 119 GUEST_NR_io_destroy = 1, 120 GUEST_NR_io_getevents = 4, 121 GUEST_NR_io_pgetevents = 292, 122 GUEST_NR_io_setup = 0, 123 GUEST_NR_io_submit = 2, 124 GUEST_NR_io_uring_enter = 426, 125 GUEST_NR_io_uring_register = 427, 126 GUEST_NR_io_uring_setup = 425, 127 GUEST_NR_ioctl = 29, 128 GUEST_NR_ioprio_get = 31, 129 GUEST_NR_ioprio_set = 30, 130 GUEST_NR_kcmp = 272, 131 GUEST_NR_kexec_file_load = 294, 132 GUEST_NR_kexec_load = 104, 133 GUEST_NR_keyctl = 219, 134 GUEST_NR_kill = 129, 135 GUEST_NR_landlock_add_rule = 445, 136 GUEST_NR_landlock_create_ruleset = 444, 137 GUEST_NR_landlock_restrict_self = 446, 138 GUEST_NR_lgetxattr = 9, 139 GUEST_NR_linkat = 37, 140 GUEST_NR_listen = 201, 141 GUEST_NR_listxattr = 11, 142 GUEST_NR_llistxattr = 12, 143 GUEST_NR_lookup_dcookie = 18, 144 GUEST_NR_lremovexattr = 15, 145 GUEST_NR_lseek = 62, 146 GUEST_NR_lsetxattr = 6, 147 GUEST_NR_madvise = 233, 148 GUEST_NR_mbind = 235, 149 GUEST_NR_membarrier = 283, 150 GUEST_NR_memfd_create = 279, 151 GUEST_NR_memfd_secret = 447, 152 GUEST_NR_migrate_pages = 238, 153 GUEST_NR_mincore = 232, 154 GUEST_NR_mkdirat = 34, 155 GUEST_NR_mknodat = 33, 156 GUEST_NR_mlock = 228, 157 GUEST_NR_mlock2 = 284, 158 GUEST_NR_mlockall = 230, 159 GUEST_NR_mmap = 222, 160 GUEST_NR_mount = 40, 161 GUEST_NR_mount_setattr = 442, 162 GUEST_NR_move_mount = 429, 163 GUEST_NR_move_pages = 239, 164 GUEST_NR_mprotect = 226, 165 GUEST_NR_mq_getsetattr = 185, 166 GUEST_NR_mq_notify = 184, 167 GUEST_NR_mq_open = 180, 168 GUEST_NR_mq_timedreceive = 183, 169 GUEST_NR_mq_timedsend = 182, 170 GUEST_NR_mq_unlink = 181, 171 GUEST_NR_mremap = 216, 172 GUEST_NR_msgctl = 187, 173 GUEST_NR_msgget = 186, 174 GUEST_NR_msgrcv = 188, 175 GUEST_NR_msgsnd = 189, 176 GUEST_NR_msync = 227, 177 GUEST_NR_munlock = 229, 178 GUEST_NR_munlockall = 231, 179 GUEST_NR_munmap = 215, 180 GUEST_NR_name_to_handle_at = 264, 181 GUEST_NR_nanosleep = 101, 182 GUEST_NR_newfstatat = 79, 183 GUEST_NR_nfsservctl = 42, 184 GUEST_NR_open_by_handle_at = 265, 185 GUEST_NR_open_tree = 428, 186 GUEST_NR_openat = 56, 187 GUEST_NR_openat2 = 437, 188 GUEST_NR_perf_event_open = 241, 189 GUEST_NR_personality = 92, 190 GUEST_NR_pidfd_getfd = 438, 191 GUEST_NR_pidfd_open = 434, 192 GUEST_NR_pidfd_send_signal = 424, 193 GUEST_NR_pipe2 = 59, 194 GUEST_NR_pivot_root = 41, 195 GUEST_NR_pkey_alloc = 289, 196 GUEST_NR_pkey_free = 290, 197 GUEST_NR_pkey_mprotect = 288, 198 GUEST_NR_ppoll = 73, 199 GUEST_NR_prctl = 167, 200 GUEST_NR_pread64 = 67, 201 GUEST_NR_preadv = 69, 202 GUEST_NR_preadv2 = 286, 203 GUEST_NR_prlimit64 = 261, 204 GUEST_NR_process_madvise = 440, 205 GUEST_NR_process_mrelease = 448, 206 GUEST_NR_process_vm_readv = 270, 207 GUEST_NR_process_vm_writev = 271, 208 GUEST_NR_pselect6 = 72, 209 GUEST_NR_ptrace = 117, 210 GUEST_NR_pwrite64 = 68, 211 GUEST_NR_pwritev = 70, 212 GUEST_NR_pwritev2 = 287, 213 GUEST_NR_quotactl = 60, 214 GUEST_NR_quotactl_fd = 443, 215 GUEST_NR_read = 63, 216 GUEST_NR_readahead = 213, 217 GUEST_NR_readlinkat = 78, 218 GUEST_NR_readv = 65, 219 GUEST_NR_reboot = 142, 220 GUEST_NR_recvfrom = 207, 221 GUEST_NR_recvmmsg = 243, 222 GUEST_NR_recvmsg = 212, 223 GUEST_NR_remap_file_pages = 234, 224 GUEST_NR_removexattr = 14, 225 GUEST_NR_renameat = 38, 226 GUEST_NR_renameat2 = 276, 227 GUEST_NR_request_key = 218, 228 GUEST_NR_restart_syscall = 128, 229 GUEST_NR_rseq = 293, 230 GUEST_NR_rt_sigaction = 134, 231 GUEST_NR_rt_sigpending = 136, 232 GUEST_NR_rt_sigprocmask = 135, 233 GUEST_NR_rt_sigqueueinfo = 138, 234 GUEST_NR_rt_sigreturn = 139, 235 GUEST_NR_rt_sigsuspend = 133, 236 GUEST_NR_rt_sigtimedwait = 137, 237 GUEST_NR_rt_tgsigqueueinfo = 240, 238 GUEST_NR_sched_get_priority_max = 125, 239 GUEST_NR_sched_get_priority_min = 126, 240 GUEST_NR_sched_getaffinity = 123, 241 GUEST_NR_sched_getattr = 275, 242 GUEST_NR_sched_getparam = 121, 243 GUEST_NR_sched_getscheduler = 120, 244 GUEST_NR_sched_rr_get_interval = 127, 245 GUEST_NR_sched_setaffinity = 122, 246 GUEST_NR_sched_setattr = 274, 247 GUEST_NR_sched_setparam = 118, 248 GUEST_NR_sched_setscheduler = 119, 249 GUEST_NR_sched_yield = 124, 250 GUEST_NR_seccomp = 277, 251 GUEST_NR_semctl = 191, 252 GUEST_NR_semget = 190, 253 GUEST_NR_semop = 193, 254 GUEST_NR_semtimedop = 192, 255 GUEST_NR_sendfile = 71, 256 GUEST_NR_sendmmsg = 269, 257 GUEST_NR_sendmsg = 211, 258 GUEST_NR_sendto = 206, 259 GUEST_NR_set_mempolicy = 237, 260 GUEST_NR_set_mempolicy_home_node = 450, 261 GUEST_NR_set_robust_list = 99, 262 GUEST_NR_set_tid_address = 96, 263 GUEST_NR_setdomainname = 162, 264 GUEST_NR_setfsgid = 152, 265 GUEST_NR_setfsuid = 151, 266 GUEST_NR_setgid = 144, 267 GUEST_NR_setgroups = 159, 268 GUEST_NR_sethostname = 161, 269 GUEST_NR_setitimer = 103, 270 GUEST_NR_setns = 268, 271 GUEST_NR_setpgid = 154, 272 GUEST_NR_setpriority = 140, 273 GUEST_NR_setregid = 143, 274 GUEST_NR_setresgid = 149, 275 GUEST_NR_setresuid = 147, 276 GUEST_NR_setreuid = 145, 277 GUEST_NR_setrlimit = 164, 278 GUEST_NR_setsid = 157, 279 GUEST_NR_setsockopt = 208, 280 GUEST_NR_settimeofday = 170, 281 GUEST_NR_setuid = 146, 282 GUEST_NR_setxattr = 5, 283 GUEST_NR_shmat = 196, 284 GUEST_NR_shmctl = 195, 285 GUEST_NR_shmdt = 197, 286 GUEST_NR_shmget = 194, 287 GUEST_NR_shutdown = 210, 288 GUEST_NR_sigaltstack = 132, 289 GUEST_NR_signalfd4 = 74, 290 GUEST_NR_socket = 198, 291 GUEST_NR_socketpair = 199, 292 GUEST_NR_splice = 76, 293 GUEST_NR_statfs = 43, 294 GUEST_NR_statx = 291, 295 GUEST_NR_swapoff = 225, 296 GUEST_NR_swapon = 224, 297 GUEST_NR_symlinkat = 36, 298 GUEST_NR_sync = 81, 299 GUEST_NR_sync_file_range = 84, 300 GUEST_NR_syncfs = 267, 301 GUEST_NR_sysinfo = 179, 302 GUEST_NR_syslog = 116, 303 GUEST_NR_tee = 77, 304 GUEST_NR_tgkill = 131, 305 GUEST_NR_timer_create = 107, 306 GUEST_NR_timer_delete = 111, 307 GUEST_NR_timer_getoverrun = 109, 308 GUEST_NR_timer_gettime = 108, 309 GUEST_NR_timer_settime = 110, 310 GUEST_NR_timerfd_create = 85, 311 GUEST_NR_timerfd_gettime = 87, 312 GUEST_NR_timerfd_settime = 86, 313 GUEST_NR_times = 153, 314 GUEST_NR_tkill = 130, 315 GUEST_NR_truncate = 45, 316 GUEST_NR_umask = 166, 317 GUEST_NR_umount2 = 39, 318 GUEST_NR_uname = 160, 319 GUEST_NR_unlinkat = 35, 320 GUEST_NR_unshare = 97, 321 GUEST_NR_userfaultfd = 282, 322 GUEST_NR_utimensat = 88, 323 GUEST_NR_vhangup = 58, 324 GUEST_NR_vmsplice = 75, 325 GUEST_NR_wait4 = 260, 326 GUEST_NR_waitid = 95, 327 GUEST_NR_write = 64, 328 GUEST_NR_writev = 66, 329 }; 330 331 } // namespace berberis 332 333 #endif // BERBERIS_GUEST_OS_PRIMITIVES_GEN_SYSCALL_NUMBERS_ARCH_H_ 334