qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-headers: add unistd.h

New syscalls are not yet widely distributed. Add them to qemu
linux-headers include directory. Update based on v4.3-rc3 kernel headers.

Exclude mips for now, which is more problematic due to extra header
inclusion and probably unnecessary here.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>

authored by

Marc-André Lureau and committed by
Michael S. Tsirkin
1842bdfd 751bcc39

+3404 -4
+448
linux-headers/asm-arm/unistd.h
··· 1 + /* 2 + * arch/arm/include/asm/unistd.h 3 + * 4 + * Copyright (C) 2001-2005 Russell King 5 + * 6 + * This program is free software; you can redistribute it and/or modify 7 + * it under the terms of the GNU General Public License version 2 as 8 + * published by the Free Software Foundation. 9 + * 10 + * Please forward _all_ changes to this file to rmk@arm.linux.org.uk, 11 + * no matter what the change is. Thanks! 12 + */ 13 + #ifndef __ASM_ARM_UNISTD_H 14 + #define __ASM_ARM_UNISTD_H 15 + 16 + #define __NR_OABI_SYSCALL_BASE 0x900000 17 + 18 + #if defined(__thumb__) || defined(__ARM_EABI__) 19 + #define __NR_SYSCALL_BASE 0 20 + #else 21 + #define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE 22 + #endif 23 + 24 + /* 25 + * This file contains the system call numbers. 26 + */ 27 + 28 + #define __NR_restart_syscall (__NR_SYSCALL_BASE+ 0) 29 + #define __NR_exit (__NR_SYSCALL_BASE+ 1) 30 + #define __NR_fork (__NR_SYSCALL_BASE+ 2) 31 + #define __NR_read (__NR_SYSCALL_BASE+ 3) 32 + #define __NR_write (__NR_SYSCALL_BASE+ 4) 33 + #define __NR_open (__NR_SYSCALL_BASE+ 5) 34 + #define __NR_close (__NR_SYSCALL_BASE+ 6) 35 + /* 7 was sys_waitpid */ 36 + #define __NR_creat (__NR_SYSCALL_BASE+ 8) 37 + #define __NR_link (__NR_SYSCALL_BASE+ 9) 38 + #define __NR_unlink (__NR_SYSCALL_BASE+ 10) 39 + #define __NR_execve (__NR_SYSCALL_BASE+ 11) 40 + #define __NR_chdir (__NR_SYSCALL_BASE+ 12) 41 + #define __NR_time (__NR_SYSCALL_BASE+ 13) 42 + #define __NR_mknod (__NR_SYSCALL_BASE+ 14) 43 + #define __NR_chmod (__NR_SYSCALL_BASE+ 15) 44 + #define __NR_lchown (__NR_SYSCALL_BASE+ 16) 45 + /* 17 was sys_break */ 46 + /* 18 was sys_stat */ 47 + #define __NR_lseek (__NR_SYSCALL_BASE+ 19) 48 + #define __NR_getpid (__NR_SYSCALL_BASE+ 20) 49 + #define __NR_mount (__NR_SYSCALL_BASE+ 21) 50 + #define __NR_umount (__NR_SYSCALL_BASE+ 22) 51 + #define __NR_setuid (__NR_SYSCALL_BASE+ 23) 52 + #define __NR_getuid (__NR_SYSCALL_BASE+ 24) 53 + #define __NR_stime (__NR_SYSCALL_BASE+ 25) 54 + #define __NR_ptrace (__NR_SYSCALL_BASE+ 26) 55 + #define __NR_alarm (__NR_SYSCALL_BASE+ 27) 56 + /* 28 was sys_fstat */ 57 + #define __NR_pause (__NR_SYSCALL_BASE+ 29) 58 + #define __NR_utime (__NR_SYSCALL_BASE+ 30) 59 + /* 31 was sys_stty */ 60 + /* 32 was sys_gtty */ 61 + #define __NR_access (__NR_SYSCALL_BASE+ 33) 62 + #define __NR_nice (__NR_SYSCALL_BASE+ 34) 63 + /* 35 was sys_ftime */ 64 + #define __NR_sync (__NR_SYSCALL_BASE+ 36) 65 + #define __NR_kill (__NR_SYSCALL_BASE+ 37) 66 + #define __NR_rename (__NR_SYSCALL_BASE+ 38) 67 + #define __NR_mkdir (__NR_SYSCALL_BASE+ 39) 68 + #define __NR_rmdir (__NR_SYSCALL_BASE+ 40) 69 + #define __NR_dup (__NR_SYSCALL_BASE+ 41) 70 + #define __NR_pipe (__NR_SYSCALL_BASE+ 42) 71 + #define __NR_times (__NR_SYSCALL_BASE+ 43) 72 + /* 44 was sys_prof */ 73 + #define __NR_brk (__NR_SYSCALL_BASE+ 45) 74 + #define __NR_setgid (__NR_SYSCALL_BASE+ 46) 75 + #define __NR_getgid (__NR_SYSCALL_BASE+ 47) 76 + /* 48 was sys_signal */ 77 + #define __NR_geteuid (__NR_SYSCALL_BASE+ 49) 78 + #define __NR_getegid (__NR_SYSCALL_BASE+ 50) 79 + #define __NR_acct (__NR_SYSCALL_BASE+ 51) 80 + #define __NR_umount2 (__NR_SYSCALL_BASE+ 52) 81 + /* 53 was sys_lock */ 82 + #define __NR_ioctl (__NR_SYSCALL_BASE+ 54) 83 + #define __NR_fcntl (__NR_SYSCALL_BASE+ 55) 84 + /* 56 was sys_mpx */ 85 + #define __NR_setpgid (__NR_SYSCALL_BASE+ 57) 86 + /* 58 was sys_ulimit */ 87 + /* 59 was sys_olduname */ 88 + #define __NR_umask (__NR_SYSCALL_BASE+ 60) 89 + #define __NR_chroot (__NR_SYSCALL_BASE+ 61) 90 + #define __NR_ustat (__NR_SYSCALL_BASE+ 62) 91 + #define __NR_dup2 (__NR_SYSCALL_BASE+ 63) 92 + #define __NR_getppid (__NR_SYSCALL_BASE+ 64) 93 + #define __NR_getpgrp (__NR_SYSCALL_BASE+ 65) 94 + #define __NR_setsid (__NR_SYSCALL_BASE+ 66) 95 + #define __NR_sigaction (__NR_SYSCALL_BASE+ 67) 96 + /* 68 was sys_sgetmask */ 97 + /* 69 was sys_ssetmask */ 98 + #define __NR_setreuid (__NR_SYSCALL_BASE+ 70) 99 + #define __NR_setregid (__NR_SYSCALL_BASE+ 71) 100 + #define __NR_sigsuspend (__NR_SYSCALL_BASE+ 72) 101 + #define __NR_sigpending (__NR_SYSCALL_BASE+ 73) 102 + #define __NR_sethostname (__NR_SYSCALL_BASE+ 74) 103 + #define __NR_setrlimit (__NR_SYSCALL_BASE+ 75) 104 + #define __NR_getrlimit (__NR_SYSCALL_BASE+ 76) /* Back compat 2GB limited rlimit */ 105 + #define __NR_getrusage (__NR_SYSCALL_BASE+ 77) 106 + #define __NR_gettimeofday (__NR_SYSCALL_BASE+ 78) 107 + #define __NR_settimeofday (__NR_SYSCALL_BASE+ 79) 108 + #define __NR_getgroups (__NR_SYSCALL_BASE+ 80) 109 + #define __NR_setgroups (__NR_SYSCALL_BASE+ 81) 110 + #define __NR_select (__NR_SYSCALL_BASE+ 82) 111 + #define __NR_symlink (__NR_SYSCALL_BASE+ 83) 112 + /* 84 was sys_lstat */ 113 + #define __NR_readlink (__NR_SYSCALL_BASE+ 85) 114 + #define __NR_uselib (__NR_SYSCALL_BASE+ 86) 115 + #define __NR_swapon (__NR_SYSCALL_BASE+ 87) 116 + #define __NR_reboot (__NR_SYSCALL_BASE+ 88) 117 + #define __NR_readdir (__NR_SYSCALL_BASE+ 89) 118 + #define __NR_mmap (__NR_SYSCALL_BASE+ 90) 119 + #define __NR_munmap (__NR_SYSCALL_BASE+ 91) 120 + #define __NR_truncate (__NR_SYSCALL_BASE+ 92) 121 + #define __NR_ftruncate (__NR_SYSCALL_BASE+ 93) 122 + #define __NR_fchmod (__NR_SYSCALL_BASE+ 94) 123 + #define __NR_fchown (__NR_SYSCALL_BASE+ 95) 124 + #define __NR_getpriority (__NR_SYSCALL_BASE+ 96) 125 + #define __NR_setpriority (__NR_SYSCALL_BASE+ 97) 126 + /* 98 was sys_profil */ 127 + #define __NR_statfs (__NR_SYSCALL_BASE+ 99) 128 + #define __NR_fstatfs (__NR_SYSCALL_BASE+100) 129 + /* 101 was sys_ioperm */ 130 + #define __NR_socketcall (__NR_SYSCALL_BASE+102) 131 + #define __NR_syslog (__NR_SYSCALL_BASE+103) 132 + #define __NR_setitimer (__NR_SYSCALL_BASE+104) 133 + #define __NR_getitimer (__NR_SYSCALL_BASE+105) 134 + #define __NR_stat (__NR_SYSCALL_BASE+106) 135 + #define __NR_lstat (__NR_SYSCALL_BASE+107) 136 + #define __NR_fstat (__NR_SYSCALL_BASE+108) 137 + /* 109 was sys_uname */ 138 + /* 110 was sys_iopl */ 139 + #define __NR_vhangup (__NR_SYSCALL_BASE+111) 140 + /* 112 was sys_idle */ 141 + #define __NR_syscall (__NR_SYSCALL_BASE+113) /* syscall to call a syscall! */ 142 + #define __NR_wait4 (__NR_SYSCALL_BASE+114) 143 + #define __NR_swapoff (__NR_SYSCALL_BASE+115) 144 + #define __NR_sysinfo (__NR_SYSCALL_BASE+116) 145 + #define __NR_ipc (__NR_SYSCALL_BASE+117) 146 + #define __NR_fsync (__NR_SYSCALL_BASE+118) 147 + #define __NR_sigreturn (__NR_SYSCALL_BASE+119) 148 + #define __NR_clone (__NR_SYSCALL_BASE+120) 149 + #define __NR_setdomainname (__NR_SYSCALL_BASE+121) 150 + #define __NR_uname (__NR_SYSCALL_BASE+122) 151 + /* 123 was sys_modify_ldt */ 152 + #define __NR_adjtimex (__NR_SYSCALL_BASE+124) 153 + #define __NR_mprotect (__NR_SYSCALL_BASE+125) 154 + #define __NR_sigprocmask (__NR_SYSCALL_BASE+126) 155 + /* 127 was sys_create_module */ 156 + #define __NR_init_module (__NR_SYSCALL_BASE+128) 157 + #define __NR_delete_module (__NR_SYSCALL_BASE+129) 158 + /* 130 was sys_get_kernel_syms */ 159 + #define __NR_quotactl (__NR_SYSCALL_BASE+131) 160 + #define __NR_getpgid (__NR_SYSCALL_BASE+132) 161 + #define __NR_fchdir (__NR_SYSCALL_BASE+133) 162 + #define __NR_bdflush (__NR_SYSCALL_BASE+134) 163 + #define __NR_sysfs (__NR_SYSCALL_BASE+135) 164 + #define __NR_personality (__NR_SYSCALL_BASE+136) 165 + /* 137 was sys_afs_syscall */ 166 + #define __NR_setfsuid (__NR_SYSCALL_BASE+138) 167 + #define __NR_setfsgid (__NR_SYSCALL_BASE+139) 168 + #define __NR__llseek (__NR_SYSCALL_BASE+140) 169 + #define __NR_getdents (__NR_SYSCALL_BASE+141) 170 + #define __NR__newselect (__NR_SYSCALL_BASE+142) 171 + #define __NR_flock (__NR_SYSCALL_BASE+143) 172 + #define __NR_msync (__NR_SYSCALL_BASE+144) 173 + #define __NR_readv (__NR_SYSCALL_BASE+145) 174 + #define __NR_writev (__NR_SYSCALL_BASE+146) 175 + #define __NR_getsid (__NR_SYSCALL_BASE+147) 176 + #define __NR_fdatasync (__NR_SYSCALL_BASE+148) 177 + #define __NR__sysctl (__NR_SYSCALL_BASE+149) 178 + #define __NR_mlock (__NR_SYSCALL_BASE+150) 179 + #define __NR_munlock (__NR_SYSCALL_BASE+151) 180 + #define __NR_mlockall (__NR_SYSCALL_BASE+152) 181 + #define __NR_munlockall (__NR_SYSCALL_BASE+153) 182 + #define __NR_sched_setparam (__NR_SYSCALL_BASE+154) 183 + #define __NR_sched_getparam (__NR_SYSCALL_BASE+155) 184 + #define __NR_sched_setscheduler (__NR_SYSCALL_BASE+156) 185 + #define __NR_sched_getscheduler (__NR_SYSCALL_BASE+157) 186 + #define __NR_sched_yield (__NR_SYSCALL_BASE+158) 187 + #define __NR_sched_get_priority_max (__NR_SYSCALL_BASE+159) 188 + #define __NR_sched_get_priority_min (__NR_SYSCALL_BASE+160) 189 + #define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE+161) 190 + #define __NR_nanosleep (__NR_SYSCALL_BASE+162) 191 + #define __NR_mremap (__NR_SYSCALL_BASE+163) 192 + #define __NR_setresuid (__NR_SYSCALL_BASE+164) 193 + #define __NR_getresuid (__NR_SYSCALL_BASE+165) 194 + /* 166 was sys_vm86 */ 195 + /* 167 was sys_query_module */ 196 + #define __NR_poll (__NR_SYSCALL_BASE+168) 197 + #define __NR_nfsservctl (__NR_SYSCALL_BASE+169) 198 + #define __NR_setresgid (__NR_SYSCALL_BASE+170) 199 + #define __NR_getresgid (__NR_SYSCALL_BASE+171) 200 + #define __NR_prctl (__NR_SYSCALL_BASE+172) 201 + #define __NR_rt_sigreturn (__NR_SYSCALL_BASE+173) 202 + #define __NR_rt_sigaction (__NR_SYSCALL_BASE+174) 203 + #define __NR_rt_sigprocmask (__NR_SYSCALL_BASE+175) 204 + #define __NR_rt_sigpending (__NR_SYSCALL_BASE+176) 205 + #define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE+177) 206 + #define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE+178) 207 + #define __NR_rt_sigsuspend (__NR_SYSCALL_BASE+179) 208 + #define __NR_pread64 (__NR_SYSCALL_BASE+180) 209 + #define __NR_pwrite64 (__NR_SYSCALL_BASE+181) 210 + #define __NR_chown (__NR_SYSCALL_BASE+182) 211 + #define __NR_getcwd (__NR_SYSCALL_BASE+183) 212 + #define __NR_capget (__NR_SYSCALL_BASE+184) 213 + #define __NR_capset (__NR_SYSCALL_BASE+185) 214 + #define __NR_sigaltstack (__NR_SYSCALL_BASE+186) 215 + #define __NR_sendfile (__NR_SYSCALL_BASE+187) 216 + /* 188 reserved */ 217 + /* 189 reserved */ 218 + #define __NR_vfork (__NR_SYSCALL_BASE+190) 219 + #define __NR_ugetrlimit (__NR_SYSCALL_BASE+191) /* SuS compliant getrlimit */ 220 + #define __NR_mmap2 (__NR_SYSCALL_BASE+192) 221 + #define __NR_truncate64 (__NR_SYSCALL_BASE+193) 222 + #define __NR_ftruncate64 (__NR_SYSCALL_BASE+194) 223 + #define __NR_stat64 (__NR_SYSCALL_BASE+195) 224 + #define __NR_lstat64 (__NR_SYSCALL_BASE+196) 225 + #define __NR_fstat64 (__NR_SYSCALL_BASE+197) 226 + #define __NR_lchown32 (__NR_SYSCALL_BASE+198) 227 + #define __NR_getuid32 (__NR_SYSCALL_BASE+199) 228 + #define __NR_getgid32 (__NR_SYSCALL_BASE+200) 229 + #define __NR_geteuid32 (__NR_SYSCALL_BASE+201) 230 + #define __NR_getegid32 (__NR_SYSCALL_BASE+202) 231 + #define __NR_setreuid32 (__NR_SYSCALL_BASE+203) 232 + #define __NR_setregid32 (__NR_SYSCALL_BASE+204) 233 + #define __NR_getgroups32 (__NR_SYSCALL_BASE+205) 234 + #define __NR_setgroups32 (__NR_SYSCALL_BASE+206) 235 + #define __NR_fchown32 (__NR_SYSCALL_BASE+207) 236 + #define __NR_setresuid32 (__NR_SYSCALL_BASE+208) 237 + #define __NR_getresuid32 (__NR_SYSCALL_BASE+209) 238 + #define __NR_setresgid32 (__NR_SYSCALL_BASE+210) 239 + #define __NR_getresgid32 (__NR_SYSCALL_BASE+211) 240 + #define __NR_chown32 (__NR_SYSCALL_BASE+212) 241 + #define __NR_setuid32 (__NR_SYSCALL_BASE+213) 242 + #define __NR_setgid32 (__NR_SYSCALL_BASE+214) 243 + #define __NR_setfsuid32 (__NR_SYSCALL_BASE+215) 244 + #define __NR_setfsgid32 (__NR_SYSCALL_BASE+216) 245 + #define __NR_getdents64 (__NR_SYSCALL_BASE+217) 246 + #define __NR_pivot_root (__NR_SYSCALL_BASE+218) 247 + #define __NR_mincore (__NR_SYSCALL_BASE+219) 248 + #define __NR_madvise (__NR_SYSCALL_BASE+220) 249 + #define __NR_fcntl64 (__NR_SYSCALL_BASE+221) 250 + /* 222 for tux */ 251 + /* 223 is unused */ 252 + #define __NR_gettid (__NR_SYSCALL_BASE+224) 253 + #define __NR_readahead (__NR_SYSCALL_BASE+225) 254 + #define __NR_setxattr (__NR_SYSCALL_BASE+226) 255 + #define __NR_lsetxattr (__NR_SYSCALL_BASE+227) 256 + #define __NR_fsetxattr (__NR_SYSCALL_BASE+228) 257 + #define __NR_getxattr (__NR_SYSCALL_BASE+229) 258 + #define __NR_lgetxattr (__NR_SYSCALL_BASE+230) 259 + #define __NR_fgetxattr (__NR_SYSCALL_BASE+231) 260 + #define __NR_listxattr (__NR_SYSCALL_BASE+232) 261 + #define __NR_llistxattr (__NR_SYSCALL_BASE+233) 262 + #define __NR_flistxattr (__NR_SYSCALL_BASE+234) 263 + #define __NR_removexattr (__NR_SYSCALL_BASE+235) 264 + #define __NR_lremovexattr (__NR_SYSCALL_BASE+236) 265 + #define __NR_fremovexattr (__NR_SYSCALL_BASE+237) 266 + #define __NR_tkill (__NR_SYSCALL_BASE+238) 267 + #define __NR_sendfile64 (__NR_SYSCALL_BASE+239) 268 + #define __NR_futex (__NR_SYSCALL_BASE+240) 269 + #define __NR_sched_setaffinity (__NR_SYSCALL_BASE+241) 270 + #define __NR_sched_getaffinity (__NR_SYSCALL_BASE+242) 271 + #define __NR_io_setup (__NR_SYSCALL_BASE+243) 272 + #define __NR_io_destroy (__NR_SYSCALL_BASE+244) 273 + #define __NR_io_getevents (__NR_SYSCALL_BASE+245) 274 + #define __NR_io_submit (__NR_SYSCALL_BASE+246) 275 + #define __NR_io_cancel (__NR_SYSCALL_BASE+247) 276 + #define __NR_exit_group (__NR_SYSCALL_BASE+248) 277 + #define __NR_lookup_dcookie (__NR_SYSCALL_BASE+249) 278 + #define __NR_epoll_create (__NR_SYSCALL_BASE+250) 279 + #define __NR_epoll_ctl (__NR_SYSCALL_BASE+251) 280 + #define __NR_epoll_wait (__NR_SYSCALL_BASE+252) 281 + #define __NR_remap_file_pages (__NR_SYSCALL_BASE+253) 282 + /* 254 for set_thread_area */ 283 + /* 255 for get_thread_area */ 284 + #define __NR_set_tid_address (__NR_SYSCALL_BASE+256) 285 + #define __NR_timer_create (__NR_SYSCALL_BASE+257) 286 + #define __NR_timer_settime (__NR_SYSCALL_BASE+258) 287 + #define __NR_timer_gettime (__NR_SYSCALL_BASE+259) 288 + #define __NR_timer_getoverrun (__NR_SYSCALL_BASE+260) 289 + #define __NR_timer_delete (__NR_SYSCALL_BASE+261) 290 + #define __NR_clock_settime (__NR_SYSCALL_BASE+262) 291 + #define __NR_clock_gettime (__NR_SYSCALL_BASE+263) 292 + #define __NR_clock_getres (__NR_SYSCALL_BASE+264) 293 + #define __NR_clock_nanosleep (__NR_SYSCALL_BASE+265) 294 + #define __NR_statfs64 (__NR_SYSCALL_BASE+266) 295 + #define __NR_fstatfs64 (__NR_SYSCALL_BASE+267) 296 + #define __NR_tgkill (__NR_SYSCALL_BASE+268) 297 + #define __NR_utimes (__NR_SYSCALL_BASE+269) 298 + #define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE+270) 299 + #define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271) 300 + #define __NR_pciconfig_read (__NR_SYSCALL_BASE+272) 301 + #define __NR_pciconfig_write (__NR_SYSCALL_BASE+273) 302 + #define __NR_mq_open (__NR_SYSCALL_BASE+274) 303 + #define __NR_mq_unlink (__NR_SYSCALL_BASE+275) 304 + #define __NR_mq_timedsend (__NR_SYSCALL_BASE+276) 305 + #define __NR_mq_timedreceive (__NR_SYSCALL_BASE+277) 306 + #define __NR_mq_notify (__NR_SYSCALL_BASE+278) 307 + #define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279) 308 + #define __NR_waitid (__NR_SYSCALL_BASE+280) 309 + #define __NR_socket (__NR_SYSCALL_BASE+281) 310 + #define __NR_bind (__NR_SYSCALL_BASE+282) 311 + #define __NR_connect (__NR_SYSCALL_BASE+283) 312 + #define __NR_listen (__NR_SYSCALL_BASE+284) 313 + #define __NR_accept (__NR_SYSCALL_BASE+285) 314 + #define __NR_getsockname (__NR_SYSCALL_BASE+286) 315 + #define __NR_getpeername (__NR_SYSCALL_BASE+287) 316 + #define __NR_socketpair (__NR_SYSCALL_BASE+288) 317 + #define __NR_send (__NR_SYSCALL_BASE+289) 318 + #define __NR_sendto (__NR_SYSCALL_BASE+290) 319 + #define __NR_recv (__NR_SYSCALL_BASE+291) 320 + #define __NR_recvfrom (__NR_SYSCALL_BASE+292) 321 + #define __NR_shutdown (__NR_SYSCALL_BASE+293) 322 + #define __NR_setsockopt (__NR_SYSCALL_BASE+294) 323 + #define __NR_getsockopt (__NR_SYSCALL_BASE+295) 324 + #define __NR_sendmsg (__NR_SYSCALL_BASE+296) 325 + #define __NR_recvmsg (__NR_SYSCALL_BASE+297) 326 + #define __NR_semop (__NR_SYSCALL_BASE+298) 327 + #define __NR_semget (__NR_SYSCALL_BASE+299) 328 + #define __NR_semctl (__NR_SYSCALL_BASE+300) 329 + #define __NR_msgsnd (__NR_SYSCALL_BASE+301) 330 + #define __NR_msgrcv (__NR_SYSCALL_BASE+302) 331 + #define __NR_msgget (__NR_SYSCALL_BASE+303) 332 + #define __NR_msgctl (__NR_SYSCALL_BASE+304) 333 + #define __NR_shmat (__NR_SYSCALL_BASE+305) 334 + #define __NR_shmdt (__NR_SYSCALL_BASE+306) 335 + #define __NR_shmget (__NR_SYSCALL_BASE+307) 336 + #define __NR_shmctl (__NR_SYSCALL_BASE+308) 337 + #define __NR_add_key (__NR_SYSCALL_BASE+309) 338 + #define __NR_request_key (__NR_SYSCALL_BASE+310) 339 + #define __NR_keyctl (__NR_SYSCALL_BASE+311) 340 + #define __NR_semtimedop (__NR_SYSCALL_BASE+312) 341 + #define __NR_vserver (__NR_SYSCALL_BASE+313) 342 + #define __NR_ioprio_set (__NR_SYSCALL_BASE+314) 343 + #define __NR_ioprio_get (__NR_SYSCALL_BASE+315) 344 + #define __NR_inotify_init (__NR_SYSCALL_BASE+316) 345 + #define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317) 346 + #define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318) 347 + #define __NR_mbind (__NR_SYSCALL_BASE+319) 348 + #define __NR_get_mempolicy (__NR_SYSCALL_BASE+320) 349 + #define __NR_set_mempolicy (__NR_SYSCALL_BASE+321) 350 + #define __NR_openat (__NR_SYSCALL_BASE+322) 351 + #define __NR_mkdirat (__NR_SYSCALL_BASE+323) 352 + #define __NR_mknodat (__NR_SYSCALL_BASE+324) 353 + #define __NR_fchownat (__NR_SYSCALL_BASE+325) 354 + #define __NR_futimesat (__NR_SYSCALL_BASE+326) 355 + #define __NR_fstatat64 (__NR_SYSCALL_BASE+327) 356 + #define __NR_unlinkat (__NR_SYSCALL_BASE+328) 357 + #define __NR_renameat (__NR_SYSCALL_BASE+329) 358 + #define __NR_linkat (__NR_SYSCALL_BASE+330) 359 + #define __NR_symlinkat (__NR_SYSCALL_BASE+331) 360 + #define __NR_readlinkat (__NR_SYSCALL_BASE+332) 361 + #define __NR_fchmodat (__NR_SYSCALL_BASE+333) 362 + #define __NR_faccessat (__NR_SYSCALL_BASE+334) 363 + #define __NR_pselect6 (__NR_SYSCALL_BASE+335) 364 + #define __NR_ppoll (__NR_SYSCALL_BASE+336) 365 + #define __NR_unshare (__NR_SYSCALL_BASE+337) 366 + #define __NR_set_robust_list (__NR_SYSCALL_BASE+338) 367 + #define __NR_get_robust_list (__NR_SYSCALL_BASE+339) 368 + #define __NR_splice (__NR_SYSCALL_BASE+340) 369 + #define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341) 370 + #define __NR_sync_file_range2 __NR_arm_sync_file_range 371 + #define __NR_tee (__NR_SYSCALL_BASE+342) 372 + #define __NR_vmsplice (__NR_SYSCALL_BASE+343) 373 + #define __NR_move_pages (__NR_SYSCALL_BASE+344) 374 + #define __NR_getcpu (__NR_SYSCALL_BASE+345) 375 + #define __NR_epoll_pwait (__NR_SYSCALL_BASE+346) 376 + #define __NR_kexec_load (__NR_SYSCALL_BASE+347) 377 + #define __NR_utimensat (__NR_SYSCALL_BASE+348) 378 + #define __NR_signalfd (__NR_SYSCALL_BASE+349) 379 + #define __NR_timerfd_create (__NR_SYSCALL_BASE+350) 380 + #define __NR_eventfd (__NR_SYSCALL_BASE+351) 381 + #define __NR_fallocate (__NR_SYSCALL_BASE+352) 382 + #define __NR_timerfd_settime (__NR_SYSCALL_BASE+353) 383 + #define __NR_timerfd_gettime (__NR_SYSCALL_BASE+354) 384 + #define __NR_signalfd4 (__NR_SYSCALL_BASE+355) 385 + #define __NR_eventfd2 (__NR_SYSCALL_BASE+356) 386 + #define __NR_epoll_create1 (__NR_SYSCALL_BASE+357) 387 + #define __NR_dup3 (__NR_SYSCALL_BASE+358) 388 + #define __NR_pipe2 (__NR_SYSCALL_BASE+359) 389 + #define __NR_inotify_init1 (__NR_SYSCALL_BASE+360) 390 + #define __NR_preadv (__NR_SYSCALL_BASE+361) 391 + #define __NR_pwritev (__NR_SYSCALL_BASE+362) 392 + #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363) 393 + #define __NR_perf_event_open (__NR_SYSCALL_BASE+364) 394 + #define __NR_recvmmsg (__NR_SYSCALL_BASE+365) 395 + #define __NR_accept4 (__NR_SYSCALL_BASE+366) 396 + #define __NR_fanotify_init (__NR_SYSCALL_BASE+367) 397 + #define __NR_fanotify_mark (__NR_SYSCALL_BASE+368) 398 + #define __NR_prlimit64 (__NR_SYSCALL_BASE+369) 399 + #define __NR_name_to_handle_at (__NR_SYSCALL_BASE+370) 400 + #define __NR_open_by_handle_at (__NR_SYSCALL_BASE+371) 401 + #define __NR_clock_adjtime (__NR_SYSCALL_BASE+372) 402 + #define __NR_syncfs (__NR_SYSCALL_BASE+373) 403 + #define __NR_sendmmsg (__NR_SYSCALL_BASE+374) 404 + #define __NR_setns (__NR_SYSCALL_BASE+375) 405 + #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) 406 + #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) 407 + #define __NR_kcmp (__NR_SYSCALL_BASE+378) 408 + #define __NR_finit_module (__NR_SYSCALL_BASE+379) 409 + #define __NR_sched_setattr (__NR_SYSCALL_BASE+380) 410 + #define __NR_sched_getattr (__NR_SYSCALL_BASE+381) 411 + #define __NR_renameat2 (__NR_SYSCALL_BASE+382) 412 + #define __NR_seccomp (__NR_SYSCALL_BASE+383) 413 + #define __NR_getrandom (__NR_SYSCALL_BASE+384) 414 + #define __NR_memfd_create (__NR_SYSCALL_BASE+385) 415 + #define __NR_bpf (__NR_SYSCALL_BASE+386) 416 + #define __NR_execveat (__NR_SYSCALL_BASE+387) 417 + #define __NR_userfaultfd (__NR_SYSCALL_BASE+388) 418 + #define __NR_membarrier (__NR_SYSCALL_BASE+389) 419 + 420 + /* 421 + * The following SWIs are ARM private. 422 + */ 423 + #define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000) 424 + #define __ARM_NR_breakpoint (__ARM_NR_BASE+1) 425 + #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) 426 + #define __ARM_NR_usr26 (__ARM_NR_BASE+3) 427 + #define __ARM_NR_usr32 (__ARM_NR_BASE+4) 428 + #define __ARM_NR_set_tls (__ARM_NR_BASE+5) 429 + 430 + /* 431 + * The following syscalls are obsolete and no longer available for EABI. 432 + */ 433 + #if defined(__ARM_EABI__) 434 + #undef __NR_time 435 + #undef __NR_umount 436 + #undef __NR_stime 437 + #undef __NR_alarm 438 + #undef __NR_utime 439 + #undef __NR_getrlimit 440 + #undef __NR_select 441 + #undef __NR_readdir 442 + #undef __NR_mmap 443 + #undef __NR_socketcall 444 + #undef __NR_syscall 445 + #undef __NR_ipc 446 + #endif 447 + 448 + #endif /* __ASM_ARM_UNISTD_H */
+35 -2
linux-headers/asm-arm64/kvm.h
··· 53 53 struct user_fpsimd_state fp_regs; 54 54 }; 55 55 56 - /* Supported Processor Types */ 56 + /* 57 + * Supported CPU Targets - Adding a new target type is not recommended, 58 + * unless there are some special registers not supported by the 59 + * genericv8 syreg table. 60 + */ 57 61 #define KVM_ARM_TARGET_AEM_V8 0 58 62 #define KVM_ARM_TARGET_FOUNDATION_V8 1 59 63 #define KVM_ARM_TARGET_CORTEX_A57 2 60 64 #define KVM_ARM_TARGET_XGENE_POTENZA 3 61 65 #define KVM_ARM_TARGET_CORTEX_A53 4 66 + /* Generic ARM v8 target */ 67 + #define KVM_ARM_TARGET_GENERIC_V8 5 62 68 63 - #define KVM_ARM_NUM_TARGETS 5 69 + #define KVM_ARM_NUM_TARGETS 6 64 70 65 71 /* KVM_ARM_SET_DEVICE_ADDR ioctl id encoding */ 66 72 #define KVM_ARM_DEVICE_TYPE_SHIFT 0 ··· 100 106 struct kvm_fpu { 101 107 }; 102 108 109 + /* 110 + * See v8 ARM ARM D7.3: Debug Registers 111 + * 112 + * The architectural limit is 16 debug registers of each type although 113 + * in practice there are usually less (see ID_AA64DFR0_EL1). 114 + * 115 + * Although the control registers are architecturally defined as 32 116 + * bits wide we use a 64 bit structure here to keep parity with 117 + * KVM_GET/SET_ONE_REG behaviour which treats all system registers as 118 + * 64 bit values. It also allows for the possibility of the 119 + * architecture expanding the control registers without having to 120 + * change the userspace ABI. 121 + */ 122 + #define KVM_ARM_MAX_DBG_REGS 16 103 123 struct kvm_guest_debug_arch { 124 + __u64 dbg_bcr[KVM_ARM_MAX_DBG_REGS]; 125 + __u64 dbg_bvr[KVM_ARM_MAX_DBG_REGS]; 126 + __u64 dbg_wcr[KVM_ARM_MAX_DBG_REGS]; 127 + __u64 dbg_wvr[KVM_ARM_MAX_DBG_REGS]; 104 128 }; 105 129 106 130 struct kvm_debug_exit_arch { 131 + __u32 hsr; 132 + __u64 far; /* used for watchpoints */ 107 133 }; 134 + 135 + /* 136 + * Architecture specific defines for kvm_guest_debug->control 137 + */ 138 + 139 + #define KVM_GUESTDBG_USE_SW_BP (1 << 16) 140 + #define KVM_GUESTDBG_USE_HW (1 << 17) 108 141 109 142 struct kvm_sync_regs { 110 143 };
+16
linux-headers/asm-arm64/unistd.h
··· 1 + /* 2 + * Copyright (C) 2012 ARM Ltd. 3 + * 4 + * This program is free software; you can redistribute it and/or modify 5 + * it under the terms of the GNU General Public License version 2 as 6 + * published by the Free Software Foundation. 7 + * 8 + * This program is distributed in the hope that it will be useful, 9 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 + * GNU General Public License for more details. 12 + * 13 + * You should have received a copy of the GNU General Public License 14 + * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 + */ 16 + #include <asm-generic/unistd.h>
+1063
linux-headers/asm-mips/unistd.h
··· 1 + /* 2 + * This file is subject to the terms and conditions of the GNU General Public 3 + * License. See the file "COPYING" in the main directory of this archive 4 + * for more details. 5 + * 6 + * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle 7 + * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 8 + * 9 + * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto 10 + * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A 11 + */ 12 + #ifndef _ASM_UNISTD_H 13 + #define _ASM_UNISTD_H 14 + 15 + #include <asm/sgidefs.h> 16 + 17 + #if _MIPS_SIM == _MIPS_SIM_ABI32 18 + 19 + /* 20 + * Linux o32 style syscalls are in the range from 4000 to 4999. 21 + */ 22 + #define __NR_Linux 4000 23 + #define __NR_syscall (__NR_Linux + 0) 24 + #define __NR_exit (__NR_Linux + 1) 25 + #define __NR_fork (__NR_Linux + 2) 26 + #define __NR_read (__NR_Linux + 3) 27 + #define __NR_write (__NR_Linux + 4) 28 + #define __NR_open (__NR_Linux + 5) 29 + #define __NR_close (__NR_Linux + 6) 30 + #define __NR_waitpid (__NR_Linux + 7) 31 + #define __NR_creat (__NR_Linux + 8) 32 + #define __NR_link (__NR_Linux + 9) 33 + #define __NR_unlink (__NR_Linux + 10) 34 + #define __NR_execve (__NR_Linux + 11) 35 + #define __NR_chdir (__NR_Linux + 12) 36 + #define __NR_time (__NR_Linux + 13) 37 + #define __NR_mknod (__NR_Linux + 14) 38 + #define __NR_chmod (__NR_Linux + 15) 39 + #define __NR_lchown (__NR_Linux + 16) 40 + #define __NR_break (__NR_Linux + 17) 41 + #define __NR_unused18 (__NR_Linux + 18) 42 + #define __NR_lseek (__NR_Linux + 19) 43 + #define __NR_getpid (__NR_Linux + 20) 44 + #define __NR_mount (__NR_Linux + 21) 45 + #define __NR_umount (__NR_Linux + 22) 46 + #define __NR_setuid (__NR_Linux + 23) 47 + #define __NR_getuid (__NR_Linux + 24) 48 + #define __NR_stime (__NR_Linux + 25) 49 + #define __NR_ptrace (__NR_Linux + 26) 50 + #define __NR_alarm (__NR_Linux + 27) 51 + #define __NR_unused28 (__NR_Linux + 28) 52 + #define __NR_pause (__NR_Linux + 29) 53 + #define __NR_utime (__NR_Linux + 30) 54 + #define __NR_stty (__NR_Linux + 31) 55 + #define __NR_gtty (__NR_Linux + 32) 56 + #define __NR_access (__NR_Linux + 33) 57 + #define __NR_nice (__NR_Linux + 34) 58 + #define __NR_ftime (__NR_Linux + 35) 59 + #define __NR_sync (__NR_Linux + 36) 60 + #define __NR_kill (__NR_Linux + 37) 61 + #define __NR_rename (__NR_Linux + 38) 62 + #define __NR_mkdir (__NR_Linux + 39) 63 + #define __NR_rmdir (__NR_Linux + 40) 64 + #define __NR_dup (__NR_Linux + 41) 65 + #define __NR_pipe (__NR_Linux + 42) 66 + #define __NR_times (__NR_Linux + 43) 67 + #define __NR_prof (__NR_Linux + 44) 68 + #define __NR_brk (__NR_Linux + 45) 69 + #define __NR_setgid (__NR_Linux + 46) 70 + #define __NR_getgid (__NR_Linux + 47) 71 + #define __NR_signal (__NR_Linux + 48) 72 + #define __NR_geteuid (__NR_Linux + 49) 73 + #define __NR_getegid (__NR_Linux + 50) 74 + #define __NR_acct (__NR_Linux + 51) 75 + #define __NR_umount2 (__NR_Linux + 52) 76 + #define __NR_lock (__NR_Linux + 53) 77 + #define __NR_ioctl (__NR_Linux + 54) 78 + #define __NR_fcntl (__NR_Linux + 55) 79 + #define __NR_mpx (__NR_Linux + 56) 80 + #define __NR_setpgid (__NR_Linux + 57) 81 + #define __NR_ulimit (__NR_Linux + 58) 82 + #define __NR_unused59 (__NR_Linux + 59) 83 + #define __NR_umask (__NR_Linux + 60) 84 + #define __NR_chroot (__NR_Linux + 61) 85 + #define __NR_ustat (__NR_Linux + 62) 86 + #define __NR_dup2 (__NR_Linux + 63) 87 + #define __NR_getppid (__NR_Linux + 64) 88 + #define __NR_getpgrp (__NR_Linux + 65) 89 + #define __NR_setsid (__NR_Linux + 66) 90 + #define __NR_sigaction (__NR_Linux + 67) 91 + #define __NR_sgetmask (__NR_Linux + 68) 92 + #define __NR_ssetmask (__NR_Linux + 69) 93 + #define __NR_setreuid (__NR_Linux + 70) 94 + #define __NR_setregid (__NR_Linux + 71) 95 + #define __NR_sigsuspend (__NR_Linux + 72) 96 + #define __NR_sigpending (__NR_Linux + 73) 97 + #define __NR_sethostname (__NR_Linux + 74) 98 + #define __NR_setrlimit (__NR_Linux + 75) 99 + #define __NR_getrlimit (__NR_Linux + 76) 100 + #define __NR_getrusage (__NR_Linux + 77) 101 + #define __NR_gettimeofday (__NR_Linux + 78) 102 + #define __NR_settimeofday (__NR_Linux + 79) 103 + #define __NR_getgroups (__NR_Linux + 80) 104 + #define __NR_setgroups (__NR_Linux + 81) 105 + #define __NR_reserved82 (__NR_Linux + 82) 106 + #define __NR_symlink (__NR_Linux + 83) 107 + #define __NR_unused84 (__NR_Linux + 84) 108 + #define __NR_readlink (__NR_Linux + 85) 109 + #define __NR_uselib (__NR_Linux + 86) 110 + #define __NR_swapon (__NR_Linux + 87) 111 + #define __NR_reboot (__NR_Linux + 88) 112 + #define __NR_readdir (__NR_Linux + 89) 113 + #define __NR_mmap (__NR_Linux + 90) 114 + #define __NR_munmap (__NR_Linux + 91) 115 + #define __NR_truncate (__NR_Linux + 92) 116 + #define __NR_ftruncate (__NR_Linux + 93) 117 + #define __NR_fchmod (__NR_Linux + 94) 118 + #define __NR_fchown (__NR_Linux + 95) 119 + #define __NR_getpriority (__NR_Linux + 96) 120 + #define __NR_setpriority (__NR_Linux + 97) 121 + #define __NR_profil (__NR_Linux + 98) 122 + #define __NR_statfs (__NR_Linux + 99) 123 + #define __NR_fstatfs (__NR_Linux + 100) 124 + #define __NR_ioperm (__NR_Linux + 101) 125 + #define __NR_socketcall (__NR_Linux + 102) 126 + #define __NR_syslog (__NR_Linux + 103) 127 + #define __NR_setitimer (__NR_Linux + 104) 128 + #define __NR_getitimer (__NR_Linux + 105) 129 + #define __NR_stat (__NR_Linux + 106) 130 + #define __NR_lstat (__NR_Linux + 107) 131 + #define __NR_fstat (__NR_Linux + 108) 132 + #define __NR_unused109 (__NR_Linux + 109) 133 + #define __NR_iopl (__NR_Linux + 110) 134 + #define __NR_vhangup (__NR_Linux + 111) 135 + #define __NR_idle (__NR_Linux + 112) 136 + #define __NR_vm86 (__NR_Linux + 113) 137 + #define __NR_wait4 (__NR_Linux + 114) 138 + #define __NR_swapoff (__NR_Linux + 115) 139 + #define __NR_sysinfo (__NR_Linux + 116) 140 + #define __NR_ipc (__NR_Linux + 117) 141 + #define __NR_fsync (__NR_Linux + 118) 142 + #define __NR_sigreturn (__NR_Linux + 119) 143 + #define __NR_clone (__NR_Linux + 120) 144 + #define __NR_setdomainname (__NR_Linux + 121) 145 + #define __NR_uname (__NR_Linux + 122) 146 + #define __NR_modify_ldt (__NR_Linux + 123) 147 + #define __NR_adjtimex (__NR_Linux + 124) 148 + #define __NR_mprotect (__NR_Linux + 125) 149 + #define __NR_sigprocmask (__NR_Linux + 126) 150 + #define __NR_create_module (__NR_Linux + 127) 151 + #define __NR_init_module (__NR_Linux + 128) 152 + #define __NR_delete_module (__NR_Linux + 129) 153 + #define __NR_get_kernel_syms (__NR_Linux + 130) 154 + #define __NR_quotactl (__NR_Linux + 131) 155 + #define __NR_getpgid (__NR_Linux + 132) 156 + #define __NR_fchdir (__NR_Linux + 133) 157 + #define __NR_bdflush (__NR_Linux + 134) 158 + #define __NR_sysfs (__NR_Linux + 135) 159 + #define __NR_personality (__NR_Linux + 136) 160 + #define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */ 161 + #define __NR_setfsuid (__NR_Linux + 138) 162 + #define __NR_setfsgid (__NR_Linux + 139) 163 + #define __NR__llseek (__NR_Linux + 140) 164 + #define __NR_getdents (__NR_Linux + 141) 165 + #define __NR__newselect (__NR_Linux + 142) 166 + #define __NR_flock (__NR_Linux + 143) 167 + #define __NR_msync (__NR_Linux + 144) 168 + #define __NR_readv (__NR_Linux + 145) 169 + #define __NR_writev (__NR_Linux + 146) 170 + #define __NR_cacheflush (__NR_Linux + 147) 171 + #define __NR_cachectl (__NR_Linux + 148) 172 + #define __NR_sysmips (__NR_Linux + 149) 173 + #define __NR_unused150 (__NR_Linux + 150) 174 + #define __NR_getsid (__NR_Linux + 151) 175 + #define __NR_fdatasync (__NR_Linux + 152) 176 + #define __NR__sysctl (__NR_Linux + 153) 177 + #define __NR_mlock (__NR_Linux + 154) 178 + #define __NR_munlock (__NR_Linux + 155) 179 + #define __NR_mlockall (__NR_Linux + 156) 180 + #define __NR_munlockall (__NR_Linux + 157) 181 + #define __NR_sched_setparam (__NR_Linux + 158) 182 + #define __NR_sched_getparam (__NR_Linux + 159) 183 + #define __NR_sched_setscheduler (__NR_Linux + 160) 184 + #define __NR_sched_getscheduler (__NR_Linux + 161) 185 + #define __NR_sched_yield (__NR_Linux + 162) 186 + #define __NR_sched_get_priority_max (__NR_Linux + 163) 187 + #define __NR_sched_get_priority_min (__NR_Linux + 164) 188 + #define __NR_sched_rr_get_interval (__NR_Linux + 165) 189 + #define __NR_nanosleep (__NR_Linux + 166) 190 + #define __NR_mremap (__NR_Linux + 167) 191 + #define __NR_accept (__NR_Linux + 168) 192 + #define __NR_bind (__NR_Linux + 169) 193 + #define __NR_connect (__NR_Linux + 170) 194 + #define __NR_getpeername (__NR_Linux + 171) 195 + #define __NR_getsockname (__NR_Linux + 172) 196 + #define __NR_getsockopt (__NR_Linux + 173) 197 + #define __NR_listen (__NR_Linux + 174) 198 + #define __NR_recv (__NR_Linux + 175) 199 + #define __NR_recvfrom (__NR_Linux + 176) 200 + #define __NR_recvmsg (__NR_Linux + 177) 201 + #define __NR_send (__NR_Linux + 178) 202 + #define __NR_sendmsg (__NR_Linux + 179) 203 + #define __NR_sendto (__NR_Linux + 180) 204 + #define __NR_setsockopt (__NR_Linux + 181) 205 + #define __NR_shutdown (__NR_Linux + 182) 206 + #define __NR_socket (__NR_Linux + 183) 207 + #define __NR_socketpair (__NR_Linux + 184) 208 + #define __NR_setresuid (__NR_Linux + 185) 209 + #define __NR_getresuid (__NR_Linux + 186) 210 + #define __NR_query_module (__NR_Linux + 187) 211 + #define __NR_poll (__NR_Linux + 188) 212 + #define __NR_nfsservctl (__NR_Linux + 189) 213 + #define __NR_setresgid (__NR_Linux + 190) 214 + #define __NR_getresgid (__NR_Linux + 191) 215 + #define __NR_prctl (__NR_Linux + 192) 216 + #define __NR_rt_sigreturn (__NR_Linux + 193) 217 + #define __NR_rt_sigaction (__NR_Linux + 194) 218 + #define __NR_rt_sigprocmask (__NR_Linux + 195) 219 + #define __NR_rt_sigpending (__NR_Linux + 196) 220 + #define __NR_rt_sigtimedwait (__NR_Linux + 197) 221 + #define __NR_rt_sigqueueinfo (__NR_Linux + 198) 222 + #define __NR_rt_sigsuspend (__NR_Linux + 199) 223 + #define __NR_pread64 (__NR_Linux + 200) 224 + #define __NR_pwrite64 (__NR_Linux + 201) 225 + #define __NR_chown (__NR_Linux + 202) 226 + #define __NR_getcwd (__NR_Linux + 203) 227 + #define __NR_capget (__NR_Linux + 204) 228 + #define __NR_capset (__NR_Linux + 205) 229 + #define __NR_sigaltstack (__NR_Linux + 206) 230 + #define __NR_sendfile (__NR_Linux + 207) 231 + #define __NR_getpmsg (__NR_Linux + 208) 232 + #define __NR_putpmsg (__NR_Linux + 209) 233 + #define __NR_mmap2 (__NR_Linux + 210) 234 + #define __NR_truncate64 (__NR_Linux + 211) 235 + #define __NR_ftruncate64 (__NR_Linux + 212) 236 + #define __NR_stat64 (__NR_Linux + 213) 237 + #define __NR_lstat64 (__NR_Linux + 214) 238 + #define __NR_fstat64 (__NR_Linux + 215) 239 + #define __NR_pivot_root (__NR_Linux + 216) 240 + #define __NR_mincore (__NR_Linux + 217) 241 + #define __NR_madvise (__NR_Linux + 218) 242 + #define __NR_getdents64 (__NR_Linux + 219) 243 + #define __NR_fcntl64 (__NR_Linux + 220) 244 + #define __NR_reserved221 (__NR_Linux + 221) 245 + #define __NR_gettid (__NR_Linux + 222) 246 + #define __NR_readahead (__NR_Linux + 223) 247 + #define __NR_setxattr (__NR_Linux + 224) 248 + #define __NR_lsetxattr (__NR_Linux + 225) 249 + #define __NR_fsetxattr (__NR_Linux + 226) 250 + #define __NR_getxattr (__NR_Linux + 227) 251 + #define __NR_lgetxattr (__NR_Linux + 228) 252 + #define __NR_fgetxattr (__NR_Linux + 229) 253 + #define __NR_listxattr (__NR_Linux + 230) 254 + #define __NR_llistxattr (__NR_Linux + 231) 255 + #define __NR_flistxattr (__NR_Linux + 232) 256 + #define __NR_removexattr (__NR_Linux + 233) 257 + #define __NR_lremovexattr (__NR_Linux + 234) 258 + #define __NR_fremovexattr (__NR_Linux + 235) 259 + #define __NR_tkill (__NR_Linux + 236) 260 + #define __NR_sendfile64 (__NR_Linux + 237) 261 + #define __NR_futex (__NR_Linux + 238) 262 + #define __NR_sched_setaffinity (__NR_Linux + 239) 263 + #define __NR_sched_getaffinity (__NR_Linux + 240) 264 + #define __NR_io_setup (__NR_Linux + 241) 265 + #define __NR_io_destroy (__NR_Linux + 242) 266 + #define __NR_io_getevents (__NR_Linux + 243) 267 + #define __NR_io_submit (__NR_Linux + 244) 268 + #define __NR_io_cancel (__NR_Linux + 245) 269 + #define __NR_exit_group (__NR_Linux + 246) 270 + #define __NR_lookup_dcookie (__NR_Linux + 247) 271 + #define __NR_epoll_create (__NR_Linux + 248) 272 + #define __NR_epoll_ctl (__NR_Linux + 249) 273 + #define __NR_epoll_wait (__NR_Linux + 250) 274 + #define __NR_remap_file_pages (__NR_Linux + 251) 275 + #define __NR_set_tid_address (__NR_Linux + 252) 276 + #define __NR_restart_syscall (__NR_Linux + 253) 277 + #define __NR_fadvise64 (__NR_Linux + 254) 278 + #define __NR_statfs64 (__NR_Linux + 255) 279 + #define __NR_fstatfs64 (__NR_Linux + 256) 280 + #define __NR_timer_create (__NR_Linux + 257) 281 + #define __NR_timer_settime (__NR_Linux + 258) 282 + #define __NR_timer_gettime (__NR_Linux + 259) 283 + #define __NR_timer_getoverrun (__NR_Linux + 260) 284 + #define __NR_timer_delete (__NR_Linux + 261) 285 + #define __NR_clock_settime (__NR_Linux + 262) 286 + #define __NR_clock_gettime (__NR_Linux + 263) 287 + #define __NR_clock_getres (__NR_Linux + 264) 288 + #define __NR_clock_nanosleep (__NR_Linux + 265) 289 + #define __NR_tgkill (__NR_Linux + 266) 290 + #define __NR_utimes (__NR_Linux + 267) 291 + #define __NR_mbind (__NR_Linux + 268) 292 + #define __NR_get_mempolicy (__NR_Linux + 269) 293 + #define __NR_set_mempolicy (__NR_Linux + 270) 294 + #define __NR_mq_open (__NR_Linux + 271) 295 + #define __NR_mq_unlink (__NR_Linux + 272) 296 + #define __NR_mq_timedsend (__NR_Linux + 273) 297 + #define __NR_mq_timedreceive (__NR_Linux + 274) 298 + #define __NR_mq_notify (__NR_Linux + 275) 299 + #define __NR_mq_getsetattr (__NR_Linux + 276) 300 + #define __NR_vserver (__NR_Linux + 277) 301 + #define __NR_waitid (__NR_Linux + 278) 302 + /* #define __NR_sys_setaltroot (__NR_Linux + 279) */ 303 + #define __NR_add_key (__NR_Linux + 280) 304 + #define __NR_request_key (__NR_Linux + 281) 305 + #define __NR_keyctl (__NR_Linux + 282) 306 + #define __NR_set_thread_area (__NR_Linux + 283) 307 + #define __NR_inotify_init (__NR_Linux + 284) 308 + #define __NR_inotify_add_watch (__NR_Linux + 285) 309 + #define __NR_inotify_rm_watch (__NR_Linux + 286) 310 + #define __NR_migrate_pages (__NR_Linux + 287) 311 + #define __NR_openat (__NR_Linux + 288) 312 + #define __NR_mkdirat (__NR_Linux + 289) 313 + #define __NR_mknodat (__NR_Linux + 290) 314 + #define __NR_fchownat (__NR_Linux + 291) 315 + #define __NR_futimesat (__NR_Linux + 292) 316 + #define __NR_fstatat64 (__NR_Linux + 293) 317 + #define __NR_unlinkat (__NR_Linux + 294) 318 + #define __NR_renameat (__NR_Linux + 295) 319 + #define __NR_linkat (__NR_Linux + 296) 320 + #define __NR_symlinkat (__NR_Linux + 297) 321 + #define __NR_readlinkat (__NR_Linux + 298) 322 + #define __NR_fchmodat (__NR_Linux + 299) 323 + #define __NR_faccessat (__NR_Linux + 300) 324 + #define __NR_pselect6 (__NR_Linux + 301) 325 + #define __NR_ppoll (__NR_Linux + 302) 326 + #define __NR_unshare (__NR_Linux + 303) 327 + #define __NR_splice (__NR_Linux + 304) 328 + #define __NR_sync_file_range (__NR_Linux + 305) 329 + #define __NR_tee (__NR_Linux + 306) 330 + #define __NR_vmsplice (__NR_Linux + 307) 331 + #define __NR_move_pages (__NR_Linux + 308) 332 + #define __NR_set_robust_list (__NR_Linux + 309) 333 + #define __NR_get_robust_list (__NR_Linux + 310) 334 + #define __NR_kexec_load (__NR_Linux + 311) 335 + #define __NR_getcpu (__NR_Linux + 312) 336 + #define __NR_epoll_pwait (__NR_Linux + 313) 337 + #define __NR_ioprio_set (__NR_Linux + 314) 338 + #define __NR_ioprio_get (__NR_Linux + 315) 339 + #define __NR_utimensat (__NR_Linux + 316) 340 + #define __NR_signalfd (__NR_Linux + 317) 341 + #define __NR_timerfd (__NR_Linux + 318) 342 + #define __NR_eventfd (__NR_Linux + 319) 343 + #define __NR_fallocate (__NR_Linux + 320) 344 + #define __NR_timerfd_create (__NR_Linux + 321) 345 + #define __NR_timerfd_gettime (__NR_Linux + 322) 346 + #define __NR_timerfd_settime (__NR_Linux + 323) 347 + #define __NR_signalfd4 (__NR_Linux + 324) 348 + #define __NR_eventfd2 (__NR_Linux + 325) 349 + #define __NR_epoll_create1 (__NR_Linux + 326) 350 + #define __NR_dup3 (__NR_Linux + 327) 351 + #define __NR_pipe2 (__NR_Linux + 328) 352 + #define __NR_inotify_init1 (__NR_Linux + 329) 353 + #define __NR_preadv (__NR_Linux + 330) 354 + #define __NR_pwritev (__NR_Linux + 331) 355 + #define __NR_rt_tgsigqueueinfo (__NR_Linux + 332) 356 + #define __NR_perf_event_open (__NR_Linux + 333) 357 + #define __NR_accept4 (__NR_Linux + 334) 358 + #define __NR_recvmmsg (__NR_Linux + 335) 359 + #define __NR_fanotify_init (__NR_Linux + 336) 360 + #define __NR_fanotify_mark (__NR_Linux + 337) 361 + #define __NR_prlimit64 (__NR_Linux + 338) 362 + #define __NR_name_to_handle_at (__NR_Linux + 339) 363 + #define __NR_open_by_handle_at (__NR_Linux + 340) 364 + #define __NR_clock_adjtime (__NR_Linux + 341) 365 + #define __NR_syncfs (__NR_Linux + 342) 366 + #define __NR_sendmmsg (__NR_Linux + 343) 367 + #define __NR_setns (__NR_Linux + 344) 368 + #define __NR_process_vm_readv (__NR_Linux + 345) 369 + #define __NR_process_vm_writev (__NR_Linux + 346) 370 + #define __NR_kcmp (__NR_Linux + 347) 371 + #define __NR_finit_module (__NR_Linux + 348) 372 + #define __NR_sched_setattr (__NR_Linux + 349) 373 + #define __NR_sched_getattr (__NR_Linux + 350) 374 + #define __NR_renameat2 (__NR_Linux + 351) 375 + #define __NR_seccomp (__NR_Linux + 352) 376 + #define __NR_getrandom (__NR_Linux + 353) 377 + #define __NR_memfd_create (__NR_Linux + 354) 378 + #define __NR_bpf (__NR_Linux + 355) 379 + #define __NR_execveat (__NR_Linux + 356) 380 + 381 + /* 382 + * Offset of the last Linux o32 flavoured syscall 383 + */ 384 + #define __NR_Linux_syscalls 356 385 + 386 + #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ 387 + 388 + #define __NR_O32_Linux 4000 389 + #define __NR_O32_Linux_syscalls 356 390 + 391 + #if _MIPS_SIM == _MIPS_SIM_ABI64 392 + 393 + /* 394 + * Linux 64-bit syscalls are in the range from 5000 to 5999. 395 + */ 396 + #define __NR_Linux 5000 397 + #define __NR_read (__NR_Linux + 0) 398 + #define __NR_write (__NR_Linux + 1) 399 + #define __NR_open (__NR_Linux + 2) 400 + #define __NR_close (__NR_Linux + 3) 401 + #define __NR_stat (__NR_Linux + 4) 402 + #define __NR_fstat (__NR_Linux + 5) 403 + #define __NR_lstat (__NR_Linux + 6) 404 + #define __NR_poll (__NR_Linux + 7) 405 + #define __NR_lseek (__NR_Linux + 8) 406 + #define __NR_mmap (__NR_Linux + 9) 407 + #define __NR_mprotect (__NR_Linux + 10) 408 + #define __NR_munmap (__NR_Linux + 11) 409 + #define __NR_brk (__NR_Linux + 12) 410 + #define __NR_rt_sigaction (__NR_Linux + 13) 411 + #define __NR_rt_sigprocmask (__NR_Linux + 14) 412 + #define __NR_ioctl (__NR_Linux + 15) 413 + #define __NR_pread64 (__NR_Linux + 16) 414 + #define __NR_pwrite64 (__NR_Linux + 17) 415 + #define __NR_readv (__NR_Linux + 18) 416 + #define __NR_writev (__NR_Linux + 19) 417 + #define __NR_access (__NR_Linux + 20) 418 + #define __NR_pipe (__NR_Linux + 21) 419 + #define __NR__newselect (__NR_Linux + 22) 420 + #define __NR_sched_yield (__NR_Linux + 23) 421 + #define __NR_mremap (__NR_Linux + 24) 422 + #define __NR_msync (__NR_Linux + 25) 423 + #define __NR_mincore (__NR_Linux + 26) 424 + #define __NR_madvise (__NR_Linux + 27) 425 + #define __NR_shmget (__NR_Linux + 28) 426 + #define __NR_shmat (__NR_Linux + 29) 427 + #define __NR_shmctl (__NR_Linux + 30) 428 + #define __NR_dup (__NR_Linux + 31) 429 + #define __NR_dup2 (__NR_Linux + 32) 430 + #define __NR_pause (__NR_Linux + 33) 431 + #define __NR_nanosleep (__NR_Linux + 34) 432 + #define __NR_getitimer (__NR_Linux + 35) 433 + #define __NR_setitimer (__NR_Linux + 36) 434 + #define __NR_alarm (__NR_Linux + 37) 435 + #define __NR_getpid (__NR_Linux + 38) 436 + #define __NR_sendfile (__NR_Linux + 39) 437 + #define __NR_socket (__NR_Linux + 40) 438 + #define __NR_connect (__NR_Linux + 41) 439 + #define __NR_accept (__NR_Linux + 42) 440 + #define __NR_sendto (__NR_Linux + 43) 441 + #define __NR_recvfrom (__NR_Linux + 44) 442 + #define __NR_sendmsg (__NR_Linux + 45) 443 + #define __NR_recvmsg (__NR_Linux + 46) 444 + #define __NR_shutdown (__NR_Linux + 47) 445 + #define __NR_bind (__NR_Linux + 48) 446 + #define __NR_listen (__NR_Linux + 49) 447 + #define __NR_getsockname (__NR_Linux + 50) 448 + #define __NR_getpeername (__NR_Linux + 51) 449 + #define __NR_socketpair (__NR_Linux + 52) 450 + #define __NR_setsockopt (__NR_Linux + 53) 451 + #define __NR_getsockopt (__NR_Linux + 54) 452 + #define __NR_clone (__NR_Linux + 55) 453 + #define __NR_fork (__NR_Linux + 56) 454 + #define __NR_execve (__NR_Linux + 57) 455 + #define __NR_exit (__NR_Linux + 58) 456 + #define __NR_wait4 (__NR_Linux + 59) 457 + #define __NR_kill (__NR_Linux + 60) 458 + #define __NR_uname (__NR_Linux + 61) 459 + #define __NR_semget (__NR_Linux + 62) 460 + #define __NR_semop (__NR_Linux + 63) 461 + #define __NR_semctl (__NR_Linux + 64) 462 + #define __NR_shmdt (__NR_Linux + 65) 463 + #define __NR_msgget (__NR_Linux + 66) 464 + #define __NR_msgsnd (__NR_Linux + 67) 465 + #define __NR_msgrcv (__NR_Linux + 68) 466 + #define __NR_msgctl (__NR_Linux + 69) 467 + #define __NR_fcntl (__NR_Linux + 70) 468 + #define __NR_flock (__NR_Linux + 71) 469 + #define __NR_fsync (__NR_Linux + 72) 470 + #define __NR_fdatasync (__NR_Linux + 73) 471 + #define __NR_truncate (__NR_Linux + 74) 472 + #define __NR_ftruncate (__NR_Linux + 75) 473 + #define __NR_getdents (__NR_Linux + 76) 474 + #define __NR_getcwd (__NR_Linux + 77) 475 + #define __NR_chdir (__NR_Linux + 78) 476 + #define __NR_fchdir (__NR_Linux + 79) 477 + #define __NR_rename (__NR_Linux + 80) 478 + #define __NR_mkdir (__NR_Linux + 81) 479 + #define __NR_rmdir (__NR_Linux + 82) 480 + #define __NR_creat (__NR_Linux + 83) 481 + #define __NR_link (__NR_Linux + 84) 482 + #define __NR_unlink (__NR_Linux + 85) 483 + #define __NR_symlink (__NR_Linux + 86) 484 + #define __NR_readlink (__NR_Linux + 87) 485 + #define __NR_chmod (__NR_Linux + 88) 486 + #define __NR_fchmod (__NR_Linux + 89) 487 + #define __NR_chown (__NR_Linux + 90) 488 + #define __NR_fchown (__NR_Linux + 91) 489 + #define __NR_lchown (__NR_Linux + 92) 490 + #define __NR_umask (__NR_Linux + 93) 491 + #define __NR_gettimeofday (__NR_Linux + 94) 492 + #define __NR_getrlimit (__NR_Linux + 95) 493 + #define __NR_getrusage (__NR_Linux + 96) 494 + #define __NR_sysinfo (__NR_Linux + 97) 495 + #define __NR_times (__NR_Linux + 98) 496 + #define __NR_ptrace (__NR_Linux + 99) 497 + #define __NR_getuid (__NR_Linux + 100) 498 + #define __NR_syslog (__NR_Linux + 101) 499 + #define __NR_getgid (__NR_Linux + 102) 500 + #define __NR_setuid (__NR_Linux + 103) 501 + #define __NR_setgid (__NR_Linux + 104) 502 + #define __NR_geteuid (__NR_Linux + 105) 503 + #define __NR_getegid (__NR_Linux + 106) 504 + #define __NR_setpgid (__NR_Linux + 107) 505 + #define __NR_getppid (__NR_Linux + 108) 506 + #define __NR_getpgrp (__NR_Linux + 109) 507 + #define __NR_setsid (__NR_Linux + 110) 508 + #define __NR_setreuid (__NR_Linux + 111) 509 + #define __NR_setregid (__NR_Linux + 112) 510 + #define __NR_getgroups (__NR_Linux + 113) 511 + #define __NR_setgroups (__NR_Linux + 114) 512 + #define __NR_setresuid (__NR_Linux + 115) 513 + #define __NR_getresuid (__NR_Linux + 116) 514 + #define __NR_setresgid (__NR_Linux + 117) 515 + #define __NR_getresgid (__NR_Linux + 118) 516 + #define __NR_getpgid (__NR_Linux + 119) 517 + #define __NR_setfsuid (__NR_Linux + 120) 518 + #define __NR_setfsgid (__NR_Linux + 121) 519 + #define __NR_getsid (__NR_Linux + 122) 520 + #define __NR_capget (__NR_Linux + 123) 521 + #define __NR_capset (__NR_Linux + 124) 522 + #define __NR_rt_sigpending (__NR_Linux + 125) 523 + #define __NR_rt_sigtimedwait (__NR_Linux + 126) 524 + #define __NR_rt_sigqueueinfo (__NR_Linux + 127) 525 + #define __NR_rt_sigsuspend (__NR_Linux + 128) 526 + #define __NR_sigaltstack (__NR_Linux + 129) 527 + #define __NR_utime (__NR_Linux + 130) 528 + #define __NR_mknod (__NR_Linux + 131) 529 + #define __NR_personality (__NR_Linux + 132) 530 + #define __NR_ustat (__NR_Linux + 133) 531 + #define __NR_statfs (__NR_Linux + 134) 532 + #define __NR_fstatfs (__NR_Linux + 135) 533 + #define __NR_sysfs (__NR_Linux + 136) 534 + #define __NR_getpriority (__NR_Linux + 137) 535 + #define __NR_setpriority (__NR_Linux + 138) 536 + #define __NR_sched_setparam (__NR_Linux + 139) 537 + #define __NR_sched_getparam (__NR_Linux + 140) 538 + #define __NR_sched_setscheduler (__NR_Linux + 141) 539 + #define __NR_sched_getscheduler (__NR_Linux + 142) 540 + #define __NR_sched_get_priority_max (__NR_Linux + 143) 541 + #define __NR_sched_get_priority_min (__NR_Linux + 144) 542 + #define __NR_sched_rr_get_interval (__NR_Linux + 145) 543 + #define __NR_mlock (__NR_Linux + 146) 544 + #define __NR_munlock (__NR_Linux + 147) 545 + #define __NR_mlockall (__NR_Linux + 148) 546 + #define __NR_munlockall (__NR_Linux + 149) 547 + #define __NR_vhangup (__NR_Linux + 150) 548 + #define __NR_pivot_root (__NR_Linux + 151) 549 + #define __NR__sysctl (__NR_Linux + 152) 550 + #define __NR_prctl (__NR_Linux + 153) 551 + #define __NR_adjtimex (__NR_Linux + 154) 552 + #define __NR_setrlimit (__NR_Linux + 155) 553 + #define __NR_chroot (__NR_Linux + 156) 554 + #define __NR_sync (__NR_Linux + 157) 555 + #define __NR_acct (__NR_Linux + 158) 556 + #define __NR_settimeofday (__NR_Linux + 159) 557 + #define __NR_mount (__NR_Linux + 160) 558 + #define __NR_umount2 (__NR_Linux + 161) 559 + #define __NR_swapon (__NR_Linux + 162) 560 + #define __NR_swapoff (__NR_Linux + 163) 561 + #define __NR_reboot (__NR_Linux + 164) 562 + #define __NR_sethostname (__NR_Linux + 165) 563 + #define __NR_setdomainname (__NR_Linux + 166) 564 + #define __NR_create_module (__NR_Linux + 167) 565 + #define __NR_init_module (__NR_Linux + 168) 566 + #define __NR_delete_module (__NR_Linux + 169) 567 + #define __NR_get_kernel_syms (__NR_Linux + 170) 568 + #define __NR_query_module (__NR_Linux + 171) 569 + #define __NR_quotactl (__NR_Linux + 172) 570 + #define __NR_nfsservctl (__NR_Linux + 173) 571 + #define __NR_getpmsg (__NR_Linux + 174) 572 + #define __NR_putpmsg (__NR_Linux + 175) 573 + #define __NR_afs_syscall (__NR_Linux + 176) 574 + #define __NR_reserved177 (__NR_Linux + 177) 575 + #define __NR_gettid (__NR_Linux + 178) 576 + #define __NR_readahead (__NR_Linux + 179) 577 + #define __NR_setxattr (__NR_Linux + 180) 578 + #define __NR_lsetxattr (__NR_Linux + 181) 579 + #define __NR_fsetxattr (__NR_Linux + 182) 580 + #define __NR_getxattr (__NR_Linux + 183) 581 + #define __NR_lgetxattr (__NR_Linux + 184) 582 + #define __NR_fgetxattr (__NR_Linux + 185) 583 + #define __NR_listxattr (__NR_Linux + 186) 584 + #define __NR_llistxattr (__NR_Linux + 187) 585 + #define __NR_flistxattr (__NR_Linux + 188) 586 + #define __NR_removexattr (__NR_Linux + 189) 587 + #define __NR_lremovexattr (__NR_Linux + 190) 588 + #define __NR_fremovexattr (__NR_Linux + 191) 589 + #define __NR_tkill (__NR_Linux + 192) 590 + #define __NR_reserved193 (__NR_Linux + 193) 591 + #define __NR_futex (__NR_Linux + 194) 592 + #define __NR_sched_setaffinity (__NR_Linux + 195) 593 + #define __NR_sched_getaffinity (__NR_Linux + 196) 594 + #define __NR_cacheflush (__NR_Linux + 197) 595 + #define __NR_cachectl (__NR_Linux + 198) 596 + #define __NR_sysmips (__NR_Linux + 199) 597 + #define __NR_io_setup (__NR_Linux + 200) 598 + #define __NR_io_destroy (__NR_Linux + 201) 599 + #define __NR_io_getevents (__NR_Linux + 202) 600 + #define __NR_io_submit (__NR_Linux + 203) 601 + #define __NR_io_cancel (__NR_Linux + 204) 602 + #define __NR_exit_group (__NR_Linux + 205) 603 + #define __NR_lookup_dcookie (__NR_Linux + 206) 604 + #define __NR_epoll_create (__NR_Linux + 207) 605 + #define __NR_epoll_ctl (__NR_Linux + 208) 606 + #define __NR_epoll_wait (__NR_Linux + 209) 607 + #define __NR_remap_file_pages (__NR_Linux + 210) 608 + #define __NR_rt_sigreturn (__NR_Linux + 211) 609 + #define __NR_set_tid_address (__NR_Linux + 212) 610 + #define __NR_restart_syscall (__NR_Linux + 213) 611 + #define __NR_semtimedop (__NR_Linux + 214) 612 + #define __NR_fadvise64 (__NR_Linux + 215) 613 + #define __NR_timer_create (__NR_Linux + 216) 614 + #define __NR_timer_settime (__NR_Linux + 217) 615 + #define __NR_timer_gettime (__NR_Linux + 218) 616 + #define __NR_timer_getoverrun (__NR_Linux + 219) 617 + #define __NR_timer_delete (__NR_Linux + 220) 618 + #define __NR_clock_settime (__NR_Linux + 221) 619 + #define __NR_clock_gettime (__NR_Linux + 222) 620 + #define __NR_clock_getres (__NR_Linux + 223) 621 + #define __NR_clock_nanosleep (__NR_Linux + 224) 622 + #define __NR_tgkill (__NR_Linux + 225) 623 + #define __NR_utimes (__NR_Linux + 226) 624 + #define __NR_mbind (__NR_Linux + 227) 625 + #define __NR_get_mempolicy (__NR_Linux + 228) 626 + #define __NR_set_mempolicy (__NR_Linux + 229) 627 + #define __NR_mq_open (__NR_Linux + 230) 628 + #define __NR_mq_unlink (__NR_Linux + 231) 629 + #define __NR_mq_timedsend (__NR_Linux + 232) 630 + #define __NR_mq_timedreceive (__NR_Linux + 233) 631 + #define __NR_mq_notify (__NR_Linux + 234) 632 + #define __NR_mq_getsetattr (__NR_Linux + 235) 633 + #define __NR_vserver (__NR_Linux + 236) 634 + #define __NR_waitid (__NR_Linux + 237) 635 + /* #define __NR_sys_setaltroot (__NR_Linux + 238) */ 636 + #define __NR_add_key (__NR_Linux + 239) 637 + #define __NR_request_key (__NR_Linux + 240) 638 + #define __NR_keyctl (__NR_Linux + 241) 639 + #define __NR_set_thread_area (__NR_Linux + 242) 640 + #define __NR_inotify_init (__NR_Linux + 243) 641 + #define __NR_inotify_add_watch (__NR_Linux + 244) 642 + #define __NR_inotify_rm_watch (__NR_Linux + 245) 643 + #define __NR_migrate_pages (__NR_Linux + 246) 644 + #define __NR_openat (__NR_Linux + 247) 645 + #define __NR_mkdirat (__NR_Linux + 248) 646 + #define __NR_mknodat (__NR_Linux + 249) 647 + #define __NR_fchownat (__NR_Linux + 250) 648 + #define __NR_futimesat (__NR_Linux + 251) 649 + #define __NR_newfstatat (__NR_Linux + 252) 650 + #define __NR_unlinkat (__NR_Linux + 253) 651 + #define __NR_renameat (__NR_Linux + 254) 652 + #define __NR_linkat (__NR_Linux + 255) 653 + #define __NR_symlinkat (__NR_Linux + 256) 654 + #define __NR_readlinkat (__NR_Linux + 257) 655 + #define __NR_fchmodat (__NR_Linux + 258) 656 + #define __NR_faccessat (__NR_Linux + 259) 657 + #define __NR_pselect6 (__NR_Linux + 260) 658 + #define __NR_ppoll (__NR_Linux + 261) 659 + #define __NR_unshare (__NR_Linux + 262) 660 + #define __NR_splice (__NR_Linux + 263) 661 + #define __NR_sync_file_range (__NR_Linux + 264) 662 + #define __NR_tee (__NR_Linux + 265) 663 + #define __NR_vmsplice (__NR_Linux + 266) 664 + #define __NR_move_pages (__NR_Linux + 267) 665 + #define __NR_set_robust_list (__NR_Linux + 268) 666 + #define __NR_get_robust_list (__NR_Linux + 269) 667 + #define __NR_kexec_load (__NR_Linux + 270) 668 + #define __NR_getcpu (__NR_Linux + 271) 669 + #define __NR_epoll_pwait (__NR_Linux + 272) 670 + #define __NR_ioprio_set (__NR_Linux + 273) 671 + #define __NR_ioprio_get (__NR_Linux + 274) 672 + #define __NR_utimensat (__NR_Linux + 275) 673 + #define __NR_signalfd (__NR_Linux + 276) 674 + #define __NR_timerfd (__NR_Linux + 277) 675 + #define __NR_eventfd (__NR_Linux + 278) 676 + #define __NR_fallocate (__NR_Linux + 279) 677 + #define __NR_timerfd_create (__NR_Linux + 280) 678 + #define __NR_timerfd_gettime (__NR_Linux + 281) 679 + #define __NR_timerfd_settime (__NR_Linux + 282) 680 + #define __NR_signalfd4 (__NR_Linux + 283) 681 + #define __NR_eventfd2 (__NR_Linux + 284) 682 + #define __NR_epoll_create1 (__NR_Linux + 285) 683 + #define __NR_dup3 (__NR_Linux + 286) 684 + #define __NR_pipe2 (__NR_Linux + 287) 685 + #define __NR_inotify_init1 (__NR_Linux + 288) 686 + #define __NR_preadv (__NR_Linux + 289) 687 + #define __NR_pwritev (__NR_Linux + 290) 688 + #define __NR_rt_tgsigqueueinfo (__NR_Linux + 291) 689 + #define __NR_perf_event_open (__NR_Linux + 292) 690 + #define __NR_accept4 (__NR_Linux + 293) 691 + #define __NR_recvmmsg (__NR_Linux + 294) 692 + #define __NR_fanotify_init (__NR_Linux + 295) 693 + #define __NR_fanotify_mark (__NR_Linux + 296) 694 + #define __NR_prlimit64 (__NR_Linux + 297) 695 + #define __NR_name_to_handle_at (__NR_Linux + 298) 696 + #define __NR_open_by_handle_at (__NR_Linux + 299) 697 + #define __NR_clock_adjtime (__NR_Linux + 300) 698 + #define __NR_syncfs (__NR_Linux + 301) 699 + #define __NR_sendmmsg (__NR_Linux + 302) 700 + #define __NR_setns (__NR_Linux + 303) 701 + #define __NR_process_vm_readv (__NR_Linux + 304) 702 + #define __NR_process_vm_writev (__NR_Linux + 305) 703 + #define __NR_kcmp (__NR_Linux + 306) 704 + #define __NR_finit_module (__NR_Linux + 307) 705 + #define __NR_getdents64 (__NR_Linux + 308) 706 + #define __NR_sched_setattr (__NR_Linux + 309) 707 + #define __NR_sched_getattr (__NR_Linux + 310) 708 + #define __NR_renameat2 (__NR_Linux + 311) 709 + #define __NR_seccomp (__NR_Linux + 312) 710 + #define __NR_getrandom (__NR_Linux + 313) 711 + #define __NR_memfd_create (__NR_Linux + 314) 712 + #define __NR_bpf (__NR_Linux + 315) 713 + #define __NR_execveat (__NR_Linux + 316) 714 + 715 + /* 716 + * Offset of the last Linux 64-bit flavoured syscall 717 + */ 718 + #define __NR_Linux_syscalls 316 719 + 720 + #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ 721 + 722 + #define __NR_64_Linux 5000 723 + #define __NR_64_Linux_syscalls 316 724 + 725 + #if _MIPS_SIM == _MIPS_SIM_NABI32 726 + 727 + /* 728 + * Linux N32 syscalls are in the range from 6000 to 6999. 729 + */ 730 + #define __NR_Linux 6000 731 + #define __NR_read (__NR_Linux + 0) 732 + #define __NR_write (__NR_Linux + 1) 733 + #define __NR_open (__NR_Linux + 2) 734 + #define __NR_close (__NR_Linux + 3) 735 + #define __NR_stat (__NR_Linux + 4) 736 + #define __NR_fstat (__NR_Linux + 5) 737 + #define __NR_lstat (__NR_Linux + 6) 738 + #define __NR_poll (__NR_Linux + 7) 739 + #define __NR_lseek (__NR_Linux + 8) 740 + #define __NR_mmap (__NR_Linux + 9) 741 + #define __NR_mprotect (__NR_Linux + 10) 742 + #define __NR_munmap (__NR_Linux + 11) 743 + #define __NR_brk (__NR_Linux + 12) 744 + #define __NR_rt_sigaction (__NR_Linux + 13) 745 + #define __NR_rt_sigprocmask (__NR_Linux + 14) 746 + #define __NR_ioctl (__NR_Linux + 15) 747 + #define __NR_pread64 (__NR_Linux + 16) 748 + #define __NR_pwrite64 (__NR_Linux + 17) 749 + #define __NR_readv (__NR_Linux + 18) 750 + #define __NR_writev (__NR_Linux + 19) 751 + #define __NR_access (__NR_Linux + 20) 752 + #define __NR_pipe (__NR_Linux + 21) 753 + #define __NR__newselect (__NR_Linux + 22) 754 + #define __NR_sched_yield (__NR_Linux + 23) 755 + #define __NR_mremap (__NR_Linux + 24) 756 + #define __NR_msync (__NR_Linux + 25) 757 + #define __NR_mincore (__NR_Linux + 26) 758 + #define __NR_madvise (__NR_Linux + 27) 759 + #define __NR_shmget (__NR_Linux + 28) 760 + #define __NR_shmat (__NR_Linux + 29) 761 + #define __NR_shmctl (__NR_Linux + 30) 762 + #define __NR_dup (__NR_Linux + 31) 763 + #define __NR_dup2 (__NR_Linux + 32) 764 + #define __NR_pause (__NR_Linux + 33) 765 + #define __NR_nanosleep (__NR_Linux + 34) 766 + #define __NR_getitimer (__NR_Linux + 35) 767 + #define __NR_setitimer (__NR_Linux + 36) 768 + #define __NR_alarm (__NR_Linux + 37) 769 + #define __NR_getpid (__NR_Linux + 38) 770 + #define __NR_sendfile (__NR_Linux + 39) 771 + #define __NR_socket (__NR_Linux + 40) 772 + #define __NR_connect (__NR_Linux + 41) 773 + #define __NR_accept (__NR_Linux + 42) 774 + #define __NR_sendto (__NR_Linux + 43) 775 + #define __NR_recvfrom (__NR_Linux + 44) 776 + #define __NR_sendmsg (__NR_Linux + 45) 777 + #define __NR_recvmsg (__NR_Linux + 46) 778 + #define __NR_shutdown (__NR_Linux + 47) 779 + #define __NR_bind (__NR_Linux + 48) 780 + #define __NR_listen (__NR_Linux + 49) 781 + #define __NR_getsockname (__NR_Linux + 50) 782 + #define __NR_getpeername (__NR_Linux + 51) 783 + #define __NR_socketpair (__NR_Linux + 52) 784 + #define __NR_setsockopt (__NR_Linux + 53) 785 + #define __NR_getsockopt (__NR_Linux + 54) 786 + #define __NR_clone (__NR_Linux + 55) 787 + #define __NR_fork (__NR_Linux + 56) 788 + #define __NR_execve (__NR_Linux + 57) 789 + #define __NR_exit (__NR_Linux + 58) 790 + #define __NR_wait4 (__NR_Linux + 59) 791 + #define __NR_kill (__NR_Linux + 60) 792 + #define __NR_uname (__NR_Linux + 61) 793 + #define __NR_semget (__NR_Linux + 62) 794 + #define __NR_semop (__NR_Linux + 63) 795 + #define __NR_semctl (__NR_Linux + 64) 796 + #define __NR_shmdt (__NR_Linux + 65) 797 + #define __NR_msgget (__NR_Linux + 66) 798 + #define __NR_msgsnd (__NR_Linux + 67) 799 + #define __NR_msgrcv (__NR_Linux + 68) 800 + #define __NR_msgctl (__NR_Linux + 69) 801 + #define __NR_fcntl (__NR_Linux + 70) 802 + #define __NR_flock (__NR_Linux + 71) 803 + #define __NR_fsync (__NR_Linux + 72) 804 + #define __NR_fdatasync (__NR_Linux + 73) 805 + #define __NR_truncate (__NR_Linux + 74) 806 + #define __NR_ftruncate (__NR_Linux + 75) 807 + #define __NR_getdents (__NR_Linux + 76) 808 + #define __NR_getcwd (__NR_Linux + 77) 809 + #define __NR_chdir (__NR_Linux + 78) 810 + #define __NR_fchdir (__NR_Linux + 79) 811 + #define __NR_rename (__NR_Linux + 80) 812 + #define __NR_mkdir (__NR_Linux + 81) 813 + #define __NR_rmdir (__NR_Linux + 82) 814 + #define __NR_creat (__NR_Linux + 83) 815 + #define __NR_link (__NR_Linux + 84) 816 + #define __NR_unlink (__NR_Linux + 85) 817 + #define __NR_symlink (__NR_Linux + 86) 818 + #define __NR_readlink (__NR_Linux + 87) 819 + #define __NR_chmod (__NR_Linux + 88) 820 + #define __NR_fchmod (__NR_Linux + 89) 821 + #define __NR_chown (__NR_Linux + 90) 822 + #define __NR_fchown (__NR_Linux + 91) 823 + #define __NR_lchown (__NR_Linux + 92) 824 + #define __NR_umask (__NR_Linux + 93) 825 + #define __NR_gettimeofday (__NR_Linux + 94) 826 + #define __NR_getrlimit (__NR_Linux + 95) 827 + #define __NR_getrusage (__NR_Linux + 96) 828 + #define __NR_sysinfo (__NR_Linux + 97) 829 + #define __NR_times (__NR_Linux + 98) 830 + #define __NR_ptrace (__NR_Linux + 99) 831 + #define __NR_getuid (__NR_Linux + 100) 832 + #define __NR_syslog (__NR_Linux + 101) 833 + #define __NR_getgid (__NR_Linux + 102) 834 + #define __NR_setuid (__NR_Linux + 103) 835 + #define __NR_setgid (__NR_Linux + 104) 836 + #define __NR_geteuid (__NR_Linux + 105) 837 + #define __NR_getegid (__NR_Linux + 106) 838 + #define __NR_setpgid (__NR_Linux + 107) 839 + #define __NR_getppid (__NR_Linux + 108) 840 + #define __NR_getpgrp (__NR_Linux + 109) 841 + #define __NR_setsid (__NR_Linux + 110) 842 + #define __NR_setreuid (__NR_Linux + 111) 843 + #define __NR_setregid (__NR_Linux + 112) 844 + #define __NR_getgroups (__NR_Linux + 113) 845 + #define __NR_setgroups (__NR_Linux + 114) 846 + #define __NR_setresuid (__NR_Linux + 115) 847 + #define __NR_getresuid (__NR_Linux + 116) 848 + #define __NR_setresgid (__NR_Linux + 117) 849 + #define __NR_getresgid (__NR_Linux + 118) 850 + #define __NR_getpgid (__NR_Linux + 119) 851 + #define __NR_setfsuid (__NR_Linux + 120) 852 + #define __NR_setfsgid (__NR_Linux + 121) 853 + #define __NR_getsid (__NR_Linux + 122) 854 + #define __NR_capget (__NR_Linux + 123) 855 + #define __NR_capset (__NR_Linux + 124) 856 + #define __NR_rt_sigpending (__NR_Linux + 125) 857 + #define __NR_rt_sigtimedwait (__NR_Linux + 126) 858 + #define __NR_rt_sigqueueinfo (__NR_Linux + 127) 859 + #define __NR_rt_sigsuspend (__NR_Linux + 128) 860 + #define __NR_sigaltstack (__NR_Linux + 129) 861 + #define __NR_utime (__NR_Linux + 130) 862 + #define __NR_mknod (__NR_Linux + 131) 863 + #define __NR_personality (__NR_Linux + 132) 864 + #define __NR_ustat (__NR_Linux + 133) 865 + #define __NR_statfs (__NR_Linux + 134) 866 + #define __NR_fstatfs (__NR_Linux + 135) 867 + #define __NR_sysfs (__NR_Linux + 136) 868 + #define __NR_getpriority (__NR_Linux + 137) 869 + #define __NR_setpriority (__NR_Linux + 138) 870 + #define __NR_sched_setparam (__NR_Linux + 139) 871 + #define __NR_sched_getparam (__NR_Linux + 140) 872 + #define __NR_sched_setscheduler (__NR_Linux + 141) 873 + #define __NR_sched_getscheduler (__NR_Linux + 142) 874 + #define __NR_sched_get_priority_max (__NR_Linux + 143) 875 + #define __NR_sched_get_priority_min (__NR_Linux + 144) 876 + #define __NR_sched_rr_get_interval (__NR_Linux + 145) 877 + #define __NR_mlock (__NR_Linux + 146) 878 + #define __NR_munlock (__NR_Linux + 147) 879 + #define __NR_mlockall (__NR_Linux + 148) 880 + #define __NR_munlockall (__NR_Linux + 149) 881 + #define __NR_vhangup (__NR_Linux + 150) 882 + #define __NR_pivot_root (__NR_Linux + 151) 883 + #define __NR__sysctl (__NR_Linux + 152) 884 + #define __NR_prctl (__NR_Linux + 153) 885 + #define __NR_adjtimex (__NR_Linux + 154) 886 + #define __NR_setrlimit (__NR_Linux + 155) 887 + #define __NR_chroot (__NR_Linux + 156) 888 + #define __NR_sync (__NR_Linux + 157) 889 + #define __NR_acct (__NR_Linux + 158) 890 + #define __NR_settimeofday (__NR_Linux + 159) 891 + #define __NR_mount (__NR_Linux + 160) 892 + #define __NR_umount2 (__NR_Linux + 161) 893 + #define __NR_swapon (__NR_Linux + 162) 894 + #define __NR_swapoff (__NR_Linux + 163) 895 + #define __NR_reboot (__NR_Linux + 164) 896 + #define __NR_sethostname (__NR_Linux + 165) 897 + #define __NR_setdomainname (__NR_Linux + 166) 898 + #define __NR_create_module (__NR_Linux + 167) 899 + #define __NR_init_module (__NR_Linux + 168) 900 + #define __NR_delete_module (__NR_Linux + 169) 901 + #define __NR_get_kernel_syms (__NR_Linux + 170) 902 + #define __NR_query_module (__NR_Linux + 171) 903 + #define __NR_quotactl (__NR_Linux + 172) 904 + #define __NR_nfsservctl (__NR_Linux + 173) 905 + #define __NR_getpmsg (__NR_Linux + 174) 906 + #define __NR_putpmsg (__NR_Linux + 175) 907 + #define __NR_afs_syscall (__NR_Linux + 176) 908 + #define __NR_reserved177 (__NR_Linux + 177) 909 + #define __NR_gettid (__NR_Linux + 178) 910 + #define __NR_readahead (__NR_Linux + 179) 911 + #define __NR_setxattr (__NR_Linux + 180) 912 + #define __NR_lsetxattr (__NR_Linux + 181) 913 + #define __NR_fsetxattr (__NR_Linux + 182) 914 + #define __NR_getxattr (__NR_Linux + 183) 915 + #define __NR_lgetxattr (__NR_Linux + 184) 916 + #define __NR_fgetxattr (__NR_Linux + 185) 917 + #define __NR_listxattr (__NR_Linux + 186) 918 + #define __NR_llistxattr (__NR_Linux + 187) 919 + #define __NR_flistxattr (__NR_Linux + 188) 920 + #define __NR_removexattr (__NR_Linux + 189) 921 + #define __NR_lremovexattr (__NR_Linux + 190) 922 + #define __NR_fremovexattr (__NR_Linux + 191) 923 + #define __NR_tkill (__NR_Linux + 192) 924 + #define __NR_reserved193 (__NR_Linux + 193) 925 + #define __NR_futex (__NR_Linux + 194) 926 + #define __NR_sched_setaffinity (__NR_Linux + 195) 927 + #define __NR_sched_getaffinity (__NR_Linux + 196) 928 + #define __NR_cacheflush (__NR_Linux + 197) 929 + #define __NR_cachectl (__NR_Linux + 198) 930 + #define __NR_sysmips (__NR_Linux + 199) 931 + #define __NR_io_setup (__NR_Linux + 200) 932 + #define __NR_io_destroy (__NR_Linux + 201) 933 + #define __NR_io_getevents (__NR_Linux + 202) 934 + #define __NR_io_submit (__NR_Linux + 203) 935 + #define __NR_io_cancel (__NR_Linux + 204) 936 + #define __NR_exit_group (__NR_Linux + 205) 937 + #define __NR_lookup_dcookie (__NR_Linux + 206) 938 + #define __NR_epoll_create (__NR_Linux + 207) 939 + #define __NR_epoll_ctl (__NR_Linux + 208) 940 + #define __NR_epoll_wait (__NR_Linux + 209) 941 + #define __NR_remap_file_pages (__NR_Linux + 210) 942 + #define __NR_rt_sigreturn (__NR_Linux + 211) 943 + #define __NR_fcntl64 (__NR_Linux + 212) 944 + #define __NR_set_tid_address (__NR_Linux + 213) 945 + #define __NR_restart_syscall (__NR_Linux + 214) 946 + #define __NR_semtimedop (__NR_Linux + 215) 947 + #define __NR_fadvise64 (__NR_Linux + 216) 948 + #define __NR_statfs64 (__NR_Linux + 217) 949 + #define __NR_fstatfs64 (__NR_Linux + 218) 950 + #define __NR_sendfile64 (__NR_Linux + 219) 951 + #define __NR_timer_create (__NR_Linux + 220) 952 + #define __NR_timer_settime (__NR_Linux + 221) 953 + #define __NR_timer_gettime (__NR_Linux + 222) 954 + #define __NR_timer_getoverrun (__NR_Linux + 223) 955 + #define __NR_timer_delete (__NR_Linux + 224) 956 + #define __NR_clock_settime (__NR_Linux + 225) 957 + #define __NR_clock_gettime (__NR_Linux + 226) 958 + #define __NR_clock_getres (__NR_Linux + 227) 959 + #define __NR_clock_nanosleep (__NR_Linux + 228) 960 + #define __NR_tgkill (__NR_Linux + 229) 961 + #define __NR_utimes (__NR_Linux + 230) 962 + #define __NR_mbind (__NR_Linux + 231) 963 + #define __NR_get_mempolicy (__NR_Linux + 232) 964 + #define __NR_set_mempolicy (__NR_Linux + 233) 965 + #define __NR_mq_open (__NR_Linux + 234) 966 + #define __NR_mq_unlink (__NR_Linux + 235) 967 + #define __NR_mq_timedsend (__NR_Linux + 236) 968 + #define __NR_mq_timedreceive (__NR_Linux + 237) 969 + #define __NR_mq_notify (__NR_Linux + 238) 970 + #define __NR_mq_getsetattr (__NR_Linux + 239) 971 + #define __NR_vserver (__NR_Linux + 240) 972 + #define __NR_waitid (__NR_Linux + 241) 973 + /* #define __NR_sys_setaltroot (__NR_Linux + 242) */ 974 + #define __NR_add_key (__NR_Linux + 243) 975 + #define __NR_request_key (__NR_Linux + 244) 976 + #define __NR_keyctl (__NR_Linux + 245) 977 + #define __NR_set_thread_area (__NR_Linux + 246) 978 + #define __NR_inotify_init (__NR_Linux + 247) 979 + #define __NR_inotify_add_watch (__NR_Linux + 248) 980 + #define __NR_inotify_rm_watch (__NR_Linux + 249) 981 + #define __NR_migrate_pages (__NR_Linux + 250) 982 + #define __NR_openat (__NR_Linux + 251) 983 + #define __NR_mkdirat (__NR_Linux + 252) 984 + #define __NR_mknodat (__NR_Linux + 253) 985 + #define __NR_fchownat (__NR_Linux + 254) 986 + #define __NR_futimesat (__NR_Linux + 255) 987 + #define __NR_newfstatat (__NR_Linux + 256) 988 + #define __NR_unlinkat (__NR_Linux + 257) 989 + #define __NR_renameat (__NR_Linux + 258) 990 + #define __NR_linkat (__NR_Linux + 259) 991 + #define __NR_symlinkat (__NR_Linux + 260) 992 + #define __NR_readlinkat (__NR_Linux + 261) 993 + #define __NR_fchmodat (__NR_Linux + 262) 994 + #define __NR_faccessat (__NR_Linux + 263) 995 + #define __NR_pselect6 (__NR_Linux + 264) 996 + #define __NR_ppoll (__NR_Linux + 265) 997 + #define __NR_unshare (__NR_Linux + 266) 998 + #define __NR_splice (__NR_Linux + 267) 999 + #define __NR_sync_file_range (__NR_Linux + 268) 1000 + #define __NR_tee (__NR_Linux + 269) 1001 + #define __NR_vmsplice (__NR_Linux + 270) 1002 + #define __NR_move_pages (__NR_Linux + 271) 1003 + #define __NR_set_robust_list (__NR_Linux + 272) 1004 + #define __NR_get_robust_list (__NR_Linux + 273) 1005 + #define __NR_kexec_load (__NR_Linux + 274) 1006 + #define __NR_getcpu (__NR_Linux + 275) 1007 + #define __NR_epoll_pwait (__NR_Linux + 276) 1008 + #define __NR_ioprio_set (__NR_Linux + 277) 1009 + #define __NR_ioprio_get (__NR_Linux + 278) 1010 + #define __NR_utimensat (__NR_Linux + 279) 1011 + #define __NR_signalfd (__NR_Linux + 280) 1012 + #define __NR_timerfd (__NR_Linux + 281) 1013 + #define __NR_eventfd (__NR_Linux + 282) 1014 + #define __NR_fallocate (__NR_Linux + 283) 1015 + #define __NR_timerfd_create (__NR_Linux + 284) 1016 + #define __NR_timerfd_gettime (__NR_Linux + 285) 1017 + #define __NR_timerfd_settime (__NR_Linux + 286) 1018 + #define __NR_signalfd4 (__NR_Linux + 287) 1019 + #define __NR_eventfd2 (__NR_Linux + 288) 1020 + #define __NR_epoll_create1 (__NR_Linux + 289) 1021 + #define __NR_dup3 (__NR_Linux + 290) 1022 + #define __NR_pipe2 (__NR_Linux + 291) 1023 + #define __NR_inotify_init1 (__NR_Linux + 292) 1024 + #define __NR_preadv (__NR_Linux + 293) 1025 + #define __NR_pwritev (__NR_Linux + 294) 1026 + #define __NR_rt_tgsigqueueinfo (__NR_Linux + 295) 1027 + #define __NR_perf_event_open (__NR_Linux + 296) 1028 + #define __NR_accept4 (__NR_Linux + 297) 1029 + #define __NR_recvmmsg (__NR_Linux + 298) 1030 + #define __NR_getdents64 (__NR_Linux + 299) 1031 + #define __NR_fanotify_init (__NR_Linux + 300) 1032 + #define __NR_fanotify_mark (__NR_Linux + 301) 1033 + #define __NR_prlimit64 (__NR_Linux + 302) 1034 + #define __NR_name_to_handle_at (__NR_Linux + 303) 1035 + #define __NR_open_by_handle_at (__NR_Linux + 304) 1036 + #define __NR_clock_adjtime (__NR_Linux + 305) 1037 + #define __NR_syncfs (__NR_Linux + 306) 1038 + #define __NR_sendmmsg (__NR_Linux + 307) 1039 + #define __NR_setns (__NR_Linux + 308) 1040 + #define __NR_process_vm_readv (__NR_Linux + 309) 1041 + #define __NR_process_vm_writev (__NR_Linux + 310) 1042 + #define __NR_kcmp (__NR_Linux + 311) 1043 + #define __NR_finit_module (__NR_Linux + 312) 1044 + #define __NR_sched_setattr (__NR_Linux + 313) 1045 + #define __NR_sched_getattr (__NR_Linux + 314) 1046 + #define __NR_renameat2 (__NR_Linux + 315) 1047 + #define __NR_seccomp (__NR_Linux + 316) 1048 + #define __NR_getrandom (__NR_Linux + 317) 1049 + #define __NR_memfd_create (__NR_Linux + 318) 1050 + #define __NR_bpf (__NR_Linux + 319) 1051 + #define __NR_execveat (__NR_Linux + 320) 1052 + 1053 + /* 1054 + * Offset of the last N32 flavoured syscall 1055 + */ 1056 + #define __NR_Linux_syscalls 320 1057 + 1058 + #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ 1059 + 1060 + #define __NR_N32_Linux 6000 1061 + #define __NR_N32_Linux_syscalls 320 1062 + 1063 + #endif /* _ASM_UNISTD_H */
+392
linux-headers/asm-powerpc/unistd.h
··· 1 + /* 2 + * This file contains the system call numbers. 3 + * 4 + * This program is free software; you can redistribute it and/or 5 + * modify it under the terms of the GNU General Public License 6 + * as published by the Free Software Foundation; either version 7 + * 2 of the License, or (at your option) any later version. 8 + */ 9 + #ifndef _ASM_POWERPC_UNISTD_H_ 10 + #define _ASM_POWERPC_UNISTD_H_ 11 + 12 + 13 + #define __NR_restart_syscall 0 14 + #define __NR_exit 1 15 + #define __NR_fork 2 16 + #define __NR_read 3 17 + #define __NR_write 4 18 + #define __NR_open 5 19 + #define __NR_close 6 20 + #define __NR_waitpid 7 21 + #define __NR_creat 8 22 + #define __NR_link 9 23 + #define __NR_unlink 10 24 + #define __NR_execve 11 25 + #define __NR_chdir 12 26 + #define __NR_time 13 27 + #define __NR_mknod 14 28 + #define __NR_chmod 15 29 + #define __NR_lchown 16 30 + #define __NR_break 17 31 + #define __NR_oldstat 18 32 + #define __NR_lseek 19 33 + #define __NR_getpid 20 34 + #define __NR_mount 21 35 + #define __NR_umount 22 36 + #define __NR_setuid 23 37 + #define __NR_getuid 24 38 + #define __NR_stime 25 39 + #define __NR_ptrace 26 40 + #define __NR_alarm 27 41 + #define __NR_oldfstat 28 42 + #define __NR_pause 29 43 + #define __NR_utime 30 44 + #define __NR_stty 31 45 + #define __NR_gtty 32 46 + #define __NR_access 33 47 + #define __NR_nice 34 48 + #define __NR_ftime 35 49 + #define __NR_sync 36 50 + #define __NR_kill 37 51 + #define __NR_rename 38 52 + #define __NR_mkdir 39 53 + #define __NR_rmdir 40 54 + #define __NR_dup 41 55 + #define __NR_pipe 42 56 + #define __NR_times 43 57 + #define __NR_prof 44 58 + #define __NR_brk 45 59 + #define __NR_setgid 46 60 + #define __NR_getgid 47 61 + #define __NR_signal 48 62 + #define __NR_geteuid 49 63 + #define __NR_getegid 50 64 + #define __NR_acct 51 65 + #define __NR_umount2 52 66 + #define __NR_lock 53 67 + #define __NR_ioctl 54 68 + #define __NR_fcntl 55 69 + #define __NR_mpx 56 70 + #define __NR_setpgid 57 71 + #define __NR_ulimit 58 72 + #define __NR_oldolduname 59 73 + #define __NR_umask 60 74 + #define __NR_chroot 61 75 + #define __NR_ustat 62 76 + #define __NR_dup2 63 77 + #define __NR_getppid 64 78 + #define __NR_getpgrp 65 79 + #define __NR_setsid 66 80 + #define __NR_sigaction 67 81 + #define __NR_sgetmask 68 82 + #define __NR_ssetmask 69 83 + #define __NR_setreuid 70 84 + #define __NR_setregid 71 85 + #define __NR_sigsuspend 72 86 + #define __NR_sigpending 73 87 + #define __NR_sethostname 74 88 + #define __NR_setrlimit 75 89 + #define __NR_getrlimit 76 90 + #define __NR_getrusage 77 91 + #define __NR_gettimeofday 78 92 + #define __NR_settimeofday 79 93 + #define __NR_getgroups 80 94 + #define __NR_setgroups 81 95 + #define __NR_select 82 96 + #define __NR_symlink 83 97 + #define __NR_oldlstat 84 98 + #define __NR_readlink 85 99 + #define __NR_uselib 86 100 + #define __NR_swapon 87 101 + #define __NR_reboot 88 102 + #define __NR_readdir 89 103 + #define __NR_mmap 90 104 + #define __NR_munmap 91 105 + #define __NR_truncate 92 106 + #define __NR_ftruncate 93 107 + #define __NR_fchmod 94 108 + #define __NR_fchown 95 109 + #define __NR_getpriority 96 110 + #define __NR_setpriority 97 111 + #define __NR_profil 98 112 + #define __NR_statfs 99 113 + #define __NR_fstatfs 100 114 + #define __NR_ioperm 101 115 + #define __NR_socketcall 102 116 + #define __NR_syslog 103 117 + #define __NR_setitimer 104 118 + #define __NR_getitimer 105 119 + #define __NR_stat 106 120 + #define __NR_lstat 107 121 + #define __NR_fstat 108 122 + #define __NR_olduname 109 123 + #define __NR_iopl 110 124 + #define __NR_vhangup 111 125 + #define __NR_idle 112 126 + #define __NR_vm86 113 127 + #define __NR_wait4 114 128 + #define __NR_swapoff 115 129 + #define __NR_sysinfo 116 130 + #define __NR_ipc 117 131 + #define __NR_fsync 118 132 + #define __NR_sigreturn 119 133 + #define __NR_clone 120 134 + #define __NR_setdomainname 121 135 + #define __NR_uname 122 136 + #define __NR_modify_ldt 123 137 + #define __NR_adjtimex 124 138 + #define __NR_mprotect 125 139 + #define __NR_sigprocmask 126 140 + #define __NR_create_module 127 141 + #define __NR_init_module 128 142 + #define __NR_delete_module 129 143 + #define __NR_get_kernel_syms 130 144 + #define __NR_quotactl 131 145 + #define __NR_getpgid 132 146 + #define __NR_fchdir 133 147 + #define __NR_bdflush 134 148 + #define __NR_sysfs 135 149 + #define __NR_personality 136 150 + #define __NR_afs_syscall 137 /* Syscall for Andrew File System */ 151 + #define __NR_setfsuid 138 152 + #define __NR_setfsgid 139 153 + #define __NR__llseek 140 154 + #define __NR_getdents 141 155 + #define __NR__newselect 142 156 + #define __NR_flock 143 157 + #define __NR_msync 144 158 + #define __NR_readv 145 159 + #define __NR_writev 146 160 + #define __NR_getsid 147 161 + #define __NR_fdatasync 148 162 + #define __NR__sysctl 149 163 + #define __NR_mlock 150 164 + #define __NR_munlock 151 165 + #define __NR_mlockall 152 166 + #define __NR_munlockall 153 167 + #define __NR_sched_setparam 154 168 + #define __NR_sched_getparam 155 169 + #define __NR_sched_setscheduler 156 170 + #define __NR_sched_getscheduler 157 171 + #define __NR_sched_yield 158 172 + #define __NR_sched_get_priority_max 159 173 + #define __NR_sched_get_priority_min 160 174 + #define __NR_sched_rr_get_interval 161 175 + #define __NR_nanosleep 162 176 + #define __NR_mremap 163 177 + #define __NR_setresuid 164 178 + #define __NR_getresuid 165 179 + #define __NR_query_module 166 180 + #define __NR_poll 167 181 + #define __NR_nfsservctl 168 182 + #define __NR_setresgid 169 183 + #define __NR_getresgid 170 184 + #define __NR_prctl 171 185 + #define __NR_rt_sigreturn 172 186 + #define __NR_rt_sigaction 173 187 + #define __NR_rt_sigprocmask 174 188 + #define __NR_rt_sigpending 175 189 + #define __NR_rt_sigtimedwait 176 190 + #define __NR_rt_sigqueueinfo 177 191 + #define __NR_rt_sigsuspend 178 192 + #define __NR_pread64 179 193 + #define __NR_pwrite64 180 194 + #define __NR_chown 181 195 + #define __NR_getcwd 182 196 + #define __NR_capget 183 197 + #define __NR_capset 184 198 + #define __NR_sigaltstack 185 199 + #define __NR_sendfile 186 200 + #define __NR_getpmsg 187 /* some people actually want streams */ 201 + #define __NR_putpmsg 188 /* some people actually want streams */ 202 + #define __NR_vfork 189 203 + #define __NR_ugetrlimit 190 /* SuS compliant getrlimit */ 204 + #define __NR_readahead 191 205 + #ifndef __powerpc64__ /* these are 32-bit only */ 206 + #define __NR_mmap2 192 207 + #define __NR_truncate64 193 208 + #define __NR_ftruncate64 194 209 + #define __NR_stat64 195 210 + #define __NR_lstat64 196 211 + #define __NR_fstat64 197 212 + #endif 213 + #define __NR_pciconfig_read 198 214 + #define __NR_pciconfig_write 199 215 + #define __NR_pciconfig_iobase 200 216 + #define __NR_multiplexer 201 217 + #define __NR_getdents64 202 218 + #define __NR_pivot_root 203 219 + #ifndef __powerpc64__ 220 + #define __NR_fcntl64 204 221 + #endif 222 + #define __NR_madvise 205 223 + #define __NR_mincore 206 224 + #define __NR_gettid 207 225 + #define __NR_tkill 208 226 + #define __NR_setxattr 209 227 + #define __NR_lsetxattr 210 228 + #define __NR_fsetxattr 211 229 + #define __NR_getxattr 212 230 + #define __NR_lgetxattr 213 231 + #define __NR_fgetxattr 214 232 + #define __NR_listxattr 215 233 + #define __NR_llistxattr 216 234 + #define __NR_flistxattr 217 235 + #define __NR_removexattr 218 236 + #define __NR_lremovexattr 219 237 + #define __NR_fremovexattr 220 238 + #define __NR_futex 221 239 + #define __NR_sched_setaffinity 222 240 + #define __NR_sched_getaffinity 223 241 + /* 224 currently unused */ 242 + #define __NR_tuxcall 225 243 + #ifndef __powerpc64__ 244 + #define __NR_sendfile64 226 245 + #endif 246 + #define __NR_io_setup 227 247 + #define __NR_io_destroy 228 248 + #define __NR_io_getevents 229 249 + #define __NR_io_submit 230 250 + #define __NR_io_cancel 231 251 + #define __NR_set_tid_address 232 252 + #define __NR_fadvise64 233 253 + #define __NR_exit_group 234 254 + #define __NR_lookup_dcookie 235 255 + #define __NR_epoll_create 236 256 + #define __NR_epoll_ctl 237 257 + #define __NR_epoll_wait 238 258 + #define __NR_remap_file_pages 239 259 + #define __NR_timer_create 240 260 + #define __NR_timer_settime 241 261 + #define __NR_timer_gettime 242 262 + #define __NR_timer_getoverrun 243 263 + #define __NR_timer_delete 244 264 + #define __NR_clock_settime 245 265 + #define __NR_clock_gettime 246 266 + #define __NR_clock_getres 247 267 + #define __NR_clock_nanosleep 248 268 + #define __NR_swapcontext 249 269 + #define __NR_tgkill 250 270 + #define __NR_utimes 251 271 + #define __NR_statfs64 252 272 + #define __NR_fstatfs64 253 273 + #ifndef __powerpc64__ 274 + #define __NR_fadvise64_64 254 275 + #endif 276 + #define __NR_rtas 255 277 + #define __NR_sys_debug_setcontext 256 278 + /* Number 257 is reserved for vserver */ 279 + #define __NR_migrate_pages 258 280 + #define __NR_mbind 259 281 + #define __NR_get_mempolicy 260 282 + #define __NR_set_mempolicy 261 283 + #define __NR_mq_open 262 284 + #define __NR_mq_unlink 263 285 + #define __NR_mq_timedsend 264 286 + #define __NR_mq_timedreceive 265 287 + #define __NR_mq_notify 266 288 + #define __NR_mq_getsetattr 267 289 + #define __NR_kexec_load 268 290 + #define __NR_add_key 269 291 + #define __NR_request_key 270 292 + #define __NR_keyctl 271 293 + #define __NR_waitid 272 294 + #define __NR_ioprio_set 273 295 + #define __NR_ioprio_get 274 296 + #define __NR_inotify_init 275 297 + #define __NR_inotify_add_watch 276 298 + #define __NR_inotify_rm_watch 277 299 + #define __NR_spu_run 278 300 + #define __NR_spu_create 279 301 + #define __NR_pselect6 280 302 + #define __NR_ppoll 281 303 + #define __NR_unshare 282 304 + #define __NR_splice 283 305 + #define __NR_tee 284 306 + #define __NR_vmsplice 285 307 + #define __NR_openat 286 308 + #define __NR_mkdirat 287 309 + #define __NR_mknodat 288 310 + #define __NR_fchownat 289 311 + #define __NR_futimesat 290 312 + #ifdef __powerpc64__ 313 + #define __NR_newfstatat 291 314 + #else 315 + #define __NR_fstatat64 291 316 + #endif 317 + #define __NR_unlinkat 292 318 + #define __NR_renameat 293 319 + #define __NR_linkat 294 320 + #define __NR_symlinkat 295 321 + #define __NR_readlinkat 296 322 + #define __NR_fchmodat 297 323 + #define __NR_faccessat 298 324 + #define __NR_get_robust_list 299 325 + #define __NR_set_robust_list 300 326 + #define __NR_move_pages 301 327 + #define __NR_getcpu 302 328 + #define __NR_epoll_pwait 303 329 + #define __NR_utimensat 304 330 + #define __NR_signalfd 305 331 + #define __NR_timerfd_create 306 332 + #define __NR_eventfd 307 333 + #define __NR_sync_file_range2 308 334 + #define __NR_fallocate 309 335 + #define __NR_subpage_prot 310 336 + #define __NR_timerfd_settime 311 337 + #define __NR_timerfd_gettime 312 338 + #define __NR_signalfd4 313 339 + #define __NR_eventfd2 314 340 + #define __NR_epoll_create1 315 341 + #define __NR_dup3 316 342 + #define __NR_pipe2 317 343 + #define __NR_inotify_init1 318 344 + #define __NR_perf_event_open 319 345 + #define __NR_preadv 320 346 + #define __NR_pwritev 321 347 + #define __NR_rt_tgsigqueueinfo 322 348 + #define __NR_fanotify_init 323 349 + #define __NR_fanotify_mark 324 350 + #define __NR_prlimit64 325 351 + #define __NR_socket 326 352 + #define __NR_bind 327 353 + #define __NR_connect 328 354 + #define __NR_listen 329 355 + #define __NR_accept 330 356 + #define __NR_getsockname 331 357 + #define __NR_getpeername 332 358 + #define __NR_socketpair 333 359 + #define __NR_send 334 360 + #define __NR_sendto 335 361 + #define __NR_recv 336 362 + #define __NR_recvfrom 337 363 + #define __NR_shutdown 338 364 + #define __NR_setsockopt 339 365 + #define __NR_getsockopt 340 366 + #define __NR_sendmsg 341 367 + #define __NR_recvmsg 342 368 + #define __NR_recvmmsg 343 369 + #define __NR_accept4 344 370 + #define __NR_name_to_handle_at 345 371 + #define __NR_open_by_handle_at 346 372 + #define __NR_clock_adjtime 347 373 + #define __NR_syncfs 348 374 + #define __NR_sendmmsg 349 375 + #define __NR_setns 350 376 + #define __NR_process_vm_readv 351 377 + #define __NR_process_vm_writev 352 378 + #define __NR_finit_module 353 379 + #define __NR_kcmp 354 380 + #define __NR_sched_setattr 355 381 + #define __NR_sched_getattr 356 382 + #define __NR_renameat2 357 383 + #define __NR_seccomp 358 384 + #define __NR_getrandom 359 385 + #define __NR_memfd_create 360 386 + #define __NR_bpf 361 387 + #define __NR_execveat 362 388 + #define __NR_switch_endian 363 389 + #define __NR_userfaultfd 364 390 + #define __NR_membarrier 365 391 + 392 + #endif /* _ASM_POWERPC_UNISTD_H_ */
+404
linux-headers/asm-s390/unistd.h
··· 1 + /* 2 + * S390 version 3 + * 4 + * Derived from "include/asm-i386/unistd.h" 5 + */ 6 + 7 + #ifndef _ASM_S390_UNISTD_H_ 8 + #define _ASM_S390_UNISTD_H_ 9 + 10 + /* 11 + * This file contains the system call numbers. 12 + */ 13 + 14 + #define __NR_exit 1 15 + #define __NR_fork 2 16 + #define __NR_read 3 17 + #define __NR_write 4 18 + #define __NR_open 5 19 + #define __NR_close 6 20 + #define __NR_restart_syscall 7 21 + #define __NR_creat 8 22 + #define __NR_link 9 23 + #define __NR_unlink 10 24 + #define __NR_execve 11 25 + #define __NR_chdir 12 26 + #define __NR_mknod 14 27 + #define __NR_chmod 15 28 + #define __NR_lseek 19 29 + #define __NR_getpid 20 30 + #define __NR_mount 21 31 + #define __NR_umount 22 32 + #define __NR_ptrace 26 33 + #define __NR_alarm 27 34 + #define __NR_pause 29 35 + #define __NR_utime 30 36 + #define __NR_access 33 37 + #define __NR_nice 34 38 + #define __NR_sync 36 39 + #define __NR_kill 37 40 + #define __NR_rename 38 41 + #define __NR_mkdir 39 42 + #define __NR_rmdir 40 43 + #define __NR_dup 41 44 + #define __NR_pipe 42 45 + #define __NR_times 43 46 + #define __NR_brk 45 47 + #define __NR_signal 48 48 + #define __NR_acct 51 49 + #define __NR_umount2 52 50 + #define __NR_ioctl 54 51 + #define __NR_fcntl 55 52 + #define __NR_setpgid 57 53 + #define __NR_umask 60 54 + #define __NR_chroot 61 55 + #define __NR_ustat 62 56 + #define __NR_dup2 63 57 + #define __NR_getppid 64 58 + #define __NR_getpgrp 65 59 + #define __NR_setsid 66 60 + #define __NR_sigaction 67 61 + #define __NR_sigsuspend 72 62 + #define __NR_sigpending 73 63 + #define __NR_sethostname 74 64 + #define __NR_setrlimit 75 65 + #define __NR_getrusage 77 66 + #define __NR_gettimeofday 78 67 + #define __NR_settimeofday 79 68 + #define __NR_symlink 83 69 + #define __NR_readlink 85 70 + #define __NR_uselib 86 71 + #define __NR_swapon 87 72 + #define __NR_reboot 88 73 + #define __NR_readdir 89 74 + #define __NR_mmap 90 75 + #define __NR_munmap 91 76 + #define __NR_truncate 92 77 + #define __NR_ftruncate 93 78 + #define __NR_fchmod 94 79 + #define __NR_getpriority 96 80 + #define __NR_setpriority 97 81 + #define __NR_statfs 99 82 + #define __NR_fstatfs 100 83 + #define __NR_socketcall 102 84 + #define __NR_syslog 103 85 + #define __NR_setitimer 104 86 + #define __NR_getitimer 105 87 + #define __NR_stat 106 88 + #define __NR_lstat 107 89 + #define __NR_fstat 108 90 + #define __NR_lookup_dcookie 110 91 + #define __NR_vhangup 111 92 + #define __NR_idle 112 93 + #define __NR_wait4 114 94 + #define __NR_swapoff 115 95 + #define __NR_sysinfo 116 96 + #define __NR_ipc 117 97 + #define __NR_fsync 118 98 + #define __NR_sigreturn 119 99 + #define __NR_clone 120 100 + #define __NR_setdomainname 121 101 + #define __NR_uname 122 102 + #define __NR_adjtimex 124 103 + #define __NR_mprotect 125 104 + #define __NR_sigprocmask 126 105 + #define __NR_create_module 127 106 + #define __NR_init_module 128 107 + #define __NR_delete_module 129 108 + #define __NR_get_kernel_syms 130 109 + #define __NR_quotactl 131 110 + #define __NR_getpgid 132 111 + #define __NR_fchdir 133 112 + #define __NR_bdflush 134 113 + #define __NR_sysfs 135 114 + #define __NR_personality 136 115 + #define __NR_afs_syscall 137 /* Syscall for Andrew File System */ 116 + #define __NR_getdents 141 117 + #define __NR_flock 143 118 + #define __NR_msync 144 119 + #define __NR_readv 145 120 + #define __NR_writev 146 121 + #define __NR_getsid 147 122 + #define __NR_fdatasync 148 123 + #define __NR__sysctl 149 124 + #define __NR_mlock 150 125 + #define __NR_munlock 151 126 + #define __NR_mlockall 152 127 + #define __NR_munlockall 153 128 + #define __NR_sched_setparam 154 129 + #define __NR_sched_getparam 155 130 + #define __NR_sched_setscheduler 156 131 + #define __NR_sched_getscheduler 157 132 + #define __NR_sched_yield 158 133 + #define __NR_sched_get_priority_max 159 134 + #define __NR_sched_get_priority_min 160 135 + #define __NR_sched_rr_get_interval 161 136 + #define __NR_nanosleep 162 137 + #define __NR_mremap 163 138 + #define __NR_query_module 167 139 + #define __NR_poll 168 140 + #define __NR_nfsservctl 169 141 + #define __NR_prctl 172 142 + #define __NR_rt_sigreturn 173 143 + #define __NR_rt_sigaction 174 144 + #define __NR_rt_sigprocmask 175 145 + #define __NR_rt_sigpending 176 146 + #define __NR_rt_sigtimedwait 177 147 + #define __NR_rt_sigqueueinfo 178 148 + #define __NR_rt_sigsuspend 179 149 + #define __NR_pread64 180 150 + #define __NR_pwrite64 181 151 + #define __NR_getcwd 183 152 + #define __NR_capget 184 153 + #define __NR_capset 185 154 + #define __NR_sigaltstack 186 155 + #define __NR_sendfile 187 156 + #define __NR_getpmsg 188 157 + #define __NR_putpmsg 189 158 + #define __NR_vfork 190 159 + #define __NR_pivot_root 217 160 + #define __NR_mincore 218 161 + #define __NR_madvise 219 162 + #define __NR_getdents64 220 163 + #define __NR_readahead 222 164 + #define __NR_setxattr 224 165 + #define __NR_lsetxattr 225 166 + #define __NR_fsetxattr 226 167 + #define __NR_getxattr 227 168 + #define __NR_lgetxattr 228 169 + #define __NR_fgetxattr 229 170 + #define __NR_listxattr 230 171 + #define __NR_llistxattr 231 172 + #define __NR_flistxattr 232 173 + #define __NR_removexattr 233 174 + #define __NR_lremovexattr 234 175 + #define __NR_fremovexattr 235 176 + #define __NR_gettid 236 177 + #define __NR_tkill 237 178 + #define __NR_futex 238 179 + #define __NR_sched_setaffinity 239 180 + #define __NR_sched_getaffinity 240 181 + #define __NR_tgkill 241 182 + /* Number 242 is reserved for tux */ 183 + #define __NR_io_setup 243 184 + #define __NR_io_destroy 244 185 + #define __NR_io_getevents 245 186 + #define __NR_io_submit 246 187 + #define __NR_io_cancel 247 188 + #define __NR_exit_group 248 189 + #define __NR_epoll_create 249 190 + #define __NR_epoll_ctl 250 191 + #define __NR_epoll_wait 251 192 + #define __NR_set_tid_address 252 193 + #define __NR_fadvise64 253 194 + #define __NR_timer_create 254 195 + #define __NR_timer_settime (__NR_timer_create+1) 196 + #define __NR_timer_gettime (__NR_timer_create+2) 197 + #define __NR_timer_getoverrun (__NR_timer_create+3) 198 + #define __NR_timer_delete (__NR_timer_create+4) 199 + #define __NR_clock_settime (__NR_timer_create+5) 200 + #define __NR_clock_gettime (__NR_timer_create+6) 201 + #define __NR_clock_getres (__NR_timer_create+7) 202 + #define __NR_clock_nanosleep (__NR_timer_create+8) 203 + /* Number 263 is reserved for vserver */ 204 + #define __NR_statfs64 265 205 + #define __NR_fstatfs64 266 206 + #define __NR_remap_file_pages 267 207 + #define __NR_mbind 268 208 + #define __NR_get_mempolicy 269 209 + #define __NR_set_mempolicy 270 210 + #define __NR_mq_open 271 211 + #define __NR_mq_unlink 272 212 + #define __NR_mq_timedsend 273 213 + #define __NR_mq_timedreceive 274 214 + #define __NR_mq_notify 275 215 + #define __NR_mq_getsetattr 276 216 + #define __NR_kexec_load 277 217 + #define __NR_add_key 278 218 + #define __NR_request_key 279 219 + #define __NR_keyctl 280 220 + #define __NR_waitid 281 221 + #define __NR_ioprio_set 282 222 + #define __NR_ioprio_get 283 223 + #define __NR_inotify_init 284 224 + #define __NR_inotify_add_watch 285 225 + #define __NR_inotify_rm_watch 286 226 + #define __NR_migrate_pages 287 227 + #define __NR_openat 288 228 + #define __NR_mkdirat 289 229 + #define __NR_mknodat 290 230 + #define __NR_fchownat 291 231 + #define __NR_futimesat 292 232 + #define __NR_unlinkat 294 233 + #define __NR_renameat 295 234 + #define __NR_linkat 296 235 + #define __NR_symlinkat 297 236 + #define __NR_readlinkat 298 237 + #define __NR_fchmodat 299 238 + #define __NR_faccessat 300 239 + #define __NR_pselect6 301 240 + #define __NR_ppoll 302 241 + #define __NR_unshare 303 242 + #define __NR_set_robust_list 304 243 + #define __NR_get_robust_list 305 244 + #define __NR_splice 306 245 + #define __NR_sync_file_range 307 246 + #define __NR_tee 308 247 + #define __NR_vmsplice 309 248 + #define __NR_move_pages 310 249 + #define __NR_getcpu 311 250 + #define __NR_epoll_pwait 312 251 + #define __NR_utimes 313 252 + #define __NR_fallocate 314 253 + #define __NR_utimensat 315 254 + #define __NR_signalfd 316 255 + #define __NR_timerfd 317 256 + #define __NR_eventfd 318 257 + #define __NR_timerfd_create 319 258 + #define __NR_timerfd_settime 320 259 + #define __NR_timerfd_gettime 321 260 + #define __NR_signalfd4 322 261 + #define __NR_eventfd2 323 262 + #define __NR_inotify_init1 324 263 + #define __NR_pipe2 325 264 + #define __NR_dup3 326 265 + #define __NR_epoll_create1 327 266 + #define __NR_preadv 328 267 + #define __NR_pwritev 329 268 + #define __NR_rt_tgsigqueueinfo 330 269 + #define __NR_perf_event_open 331 270 + #define __NR_fanotify_init 332 271 + #define __NR_fanotify_mark 333 272 + #define __NR_prlimit64 334 273 + #define __NR_name_to_handle_at 335 274 + #define __NR_open_by_handle_at 336 275 + #define __NR_clock_adjtime 337 276 + #define __NR_syncfs 338 277 + #define __NR_setns 339 278 + #define __NR_process_vm_readv 340 279 + #define __NR_process_vm_writev 341 280 + #define __NR_s390_runtime_instr 342 281 + #define __NR_kcmp 343 282 + #define __NR_finit_module 344 283 + #define __NR_sched_setattr 345 284 + #define __NR_sched_getattr 346 285 + #define __NR_renameat2 347 286 + #define __NR_seccomp 348 287 + #define __NR_getrandom 349 288 + #define __NR_memfd_create 350 289 + #define __NR_bpf 351 290 + #define __NR_s390_pci_mmio_write 352 291 + #define __NR_s390_pci_mmio_read 353 292 + #define __NR_execveat 354 293 + #define __NR_userfaultfd 355 294 + #define __NR_membarrier 356 295 + #define __NR_recvmmsg 357 296 + #define __NR_sendmmsg 358 297 + #define __NR_socket 359 298 + #define __NR_socketpair 360 299 + #define __NR_bind 361 300 + #define __NR_connect 362 301 + #define __NR_listen 363 302 + #define __NR_accept4 364 303 + #define __NR_getsockopt 365 304 + #define __NR_setsockopt 366 305 + #define __NR_getsockname 367 306 + #define __NR_getpeername 368 307 + #define __NR_sendto 369 308 + #define __NR_sendmsg 370 309 + #define __NR_recvfrom 371 310 + #define __NR_recvmsg 372 311 + #define __NR_shutdown 373 312 + #define NR_syscalls 374 313 + 314 + /* 315 + * There are some system calls that are not present on 64 bit, some 316 + * have a different name although they do the same (e.g. __NR_chown32 317 + * is __NR_chown on 64 bit). 318 + */ 319 + #ifndef __s390x__ 320 + 321 + #define __NR_time 13 322 + #define __NR_lchown 16 323 + #define __NR_setuid 23 324 + #define __NR_getuid 24 325 + #define __NR_stime 25 326 + #define __NR_setgid 46 327 + #define __NR_getgid 47 328 + #define __NR_geteuid 49 329 + #define __NR_getegid 50 330 + #define __NR_setreuid 70 331 + #define __NR_setregid 71 332 + #define __NR_getrlimit 76 333 + #define __NR_getgroups 80 334 + #define __NR_setgroups 81 335 + #define __NR_fchown 95 336 + #define __NR_ioperm 101 337 + #define __NR_setfsuid 138 338 + #define __NR_setfsgid 139 339 + #define __NR__llseek 140 340 + #define __NR__newselect 142 341 + #define __NR_setresuid 164 342 + #define __NR_getresuid 165 343 + #define __NR_setresgid 170 344 + #define __NR_getresgid 171 345 + #define __NR_chown 182 346 + #define __NR_ugetrlimit 191 /* SuS compliant getrlimit */ 347 + #define __NR_mmap2 192 348 + #define __NR_truncate64 193 349 + #define __NR_ftruncate64 194 350 + #define __NR_stat64 195 351 + #define __NR_lstat64 196 352 + #define __NR_fstat64 197 353 + #define __NR_lchown32 198 354 + #define __NR_getuid32 199 355 + #define __NR_getgid32 200 356 + #define __NR_geteuid32 201 357 + #define __NR_getegid32 202 358 + #define __NR_setreuid32 203 359 + #define __NR_setregid32 204 360 + #define __NR_getgroups32 205 361 + #define __NR_setgroups32 206 362 + #define __NR_fchown32 207 363 + #define __NR_setresuid32 208 364 + #define __NR_getresuid32 209 365 + #define __NR_setresgid32 210 366 + #define __NR_getresgid32 211 367 + #define __NR_chown32 212 368 + #define __NR_setuid32 213 369 + #define __NR_setgid32 214 370 + #define __NR_setfsuid32 215 371 + #define __NR_setfsgid32 216 372 + #define __NR_fcntl64 221 373 + #define __NR_sendfile64 223 374 + #define __NR_fadvise64_64 264 375 + #define __NR_fstatat64 293 376 + 377 + #else 378 + 379 + #define __NR_select 142 380 + #define __NR_getrlimit 191 /* SuS compliant getrlimit */ 381 + #define __NR_lchown 198 382 + #define __NR_getuid 199 383 + #define __NR_getgid 200 384 + #define __NR_geteuid 201 385 + #define __NR_getegid 202 386 + #define __NR_setreuid 203 387 + #define __NR_setregid 204 388 + #define __NR_getgroups 205 389 + #define __NR_setgroups 206 390 + #define __NR_fchown 207 391 + #define __NR_setresuid 208 392 + #define __NR_getresuid 209 393 + #define __NR_setresgid 210 394 + #define __NR_getresgid 211 395 + #define __NR_chown 212 396 + #define __NR_setuid 213 397 + #define __NR_setgid 214 398 + #define __NR_setfsuid 215 399 + #define __NR_setfsgid 216 400 + #define __NR_newfstatat 293 401 + 402 + #endif 403 + 404 + #endif /* _ASM_S390_UNISTD_H_ */
+15
linux-headers/asm-x86/unistd.h
··· 1 + #ifndef _ASM_X86_UNISTD_H 2 + #define _ASM_X86_UNISTD_H 3 + 4 + /* x32 syscall flag bit */ 5 + #define __X32_SYSCALL_BIT 0x40000000 6 + 7 + # ifdef __i386__ 8 + # include <asm/unistd_32.h> 9 + # elif defined(__ILP32__) 10 + # include <asm/unistd_x32.h> 11 + # else 12 + # include <asm/unistd_64.h> 13 + # endif 14 + 15 + #endif /* _ASM_X86_UNISTD_H */
+377
linux-headers/asm-x86/unistd_32.h
··· 1 + #ifndef _ASM_X86_UNISTD_32_H 2 + #define _ASM_X86_UNISTD_32_H 1 3 + 4 + #define __NR_restart_syscall 0 5 + #define __NR_exit 1 6 + #define __NR_fork 2 7 + #define __NR_read 3 8 + #define __NR_write 4 9 + #define __NR_open 5 10 + #define __NR_close 6 11 + #define __NR_waitpid 7 12 + #define __NR_creat 8 13 + #define __NR_link 9 14 + #define __NR_unlink 10 15 + #define __NR_execve 11 16 + #define __NR_chdir 12 17 + #define __NR_time 13 18 + #define __NR_mknod 14 19 + #define __NR_chmod 15 20 + #define __NR_lchown 16 21 + #define __NR_break 17 22 + #define __NR_oldstat 18 23 + #define __NR_lseek 19 24 + #define __NR_getpid 20 25 + #define __NR_mount 21 26 + #define __NR_umount 22 27 + #define __NR_setuid 23 28 + #define __NR_getuid 24 29 + #define __NR_stime 25 30 + #define __NR_ptrace 26 31 + #define __NR_alarm 27 32 + #define __NR_oldfstat 28 33 + #define __NR_pause 29 34 + #define __NR_utime 30 35 + #define __NR_stty 31 36 + #define __NR_gtty 32 37 + #define __NR_access 33 38 + #define __NR_nice 34 39 + #define __NR_ftime 35 40 + #define __NR_sync 36 41 + #define __NR_kill 37 42 + #define __NR_rename 38 43 + #define __NR_mkdir 39 44 + #define __NR_rmdir 40 45 + #define __NR_dup 41 46 + #define __NR_pipe 42 47 + #define __NR_times 43 48 + #define __NR_prof 44 49 + #define __NR_brk 45 50 + #define __NR_setgid 46 51 + #define __NR_getgid 47 52 + #define __NR_signal 48 53 + #define __NR_geteuid 49 54 + #define __NR_getegid 50 55 + #define __NR_acct 51 56 + #define __NR_umount2 52 57 + #define __NR_lock 53 58 + #define __NR_ioctl 54 59 + #define __NR_fcntl 55 60 + #define __NR_mpx 56 61 + #define __NR_setpgid 57 62 + #define __NR_ulimit 58 63 + #define __NR_oldolduname 59 64 + #define __NR_umask 60 65 + #define __NR_chroot 61 66 + #define __NR_ustat 62 67 + #define __NR_dup2 63 68 + #define __NR_getppid 64 69 + #define __NR_getpgrp 65 70 + #define __NR_setsid 66 71 + #define __NR_sigaction 67 72 + #define __NR_sgetmask 68 73 + #define __NR_ssetmask 69 74 + #define __NR_setreuid 70 75 + #define __NR_setregid 71 76 + #define __NR_sigsuspend 72 77 + #define __NR_sigpending 73 78 + #define __NR_sethostname 74 79 + #define __NR_setrlimit 75 80 + #define __NR_getrlimit 76 81 + #define __NR_getrusage 77 82 + #define __NR_gettimeofday 78 83 + #define __NR_settimeofday 79 84 + #define __NR_getgroups 80 85 + #define __NR_setgroups 81 86 + #define __NR_select 82 87 + #define __NR_symlink 83 88 + #define __NR_oldlstat 84 89 + #define __NR_readlink 85 90 + #define __NR_uselib 86 91 + #define __NR_swapon 87 92 + #define __NR_reboot 88 93 + #define __NR_readdir 89 94 + #define __NR_mmap 90 95 + #define __NR_munmap 91 96 + #define __NR_truncate 92 97 + #define __NR_ftruncate 93 98 + #define __NR_fchmod 94 99 + #define __NR_fchown 95 100 + #define __NR_getpriority 96 101 + #define __NR_setpriority 97 102 + #define __NR_profil 98 103 + #define __NR_statfs 99 104 + #define __NR_fstatfs 100 105 + #define __NR_ioperm 101 106 + #define __NR_socketcall 102 107 + #define __NR_syslog 103 108 + #define __NR_setitimer 104 109 + #define __NR_getitimer 105 110 + #define __NR_stat 106 111 + #define __NR_lstat 107 112 + #define __NR_fstat 108 113 + #define __NR_olduname 109 114 + #define __NR_iopl 110 115 + #define __NR_vhangup 111 116 + #define __NR_idle 112 117 + #define __NR_vm86old 113 118 + #define __NR_wait4 114 119 + #define __NR_swapoff 115 120 + #define __NR_sysinfo 116 121 + #define __NR_ipc 117 122 + #define __NR_fsync 118 123 + #define __NR_sigreturn 119 124 + #define __NR_clone 120 125 + #define __NR_setdomainname 121 126 + #define __NR_uname 122 127 + #define __NR_modify_ldt 123 128 + #define __NR_adjtimex 124 129 + #define __NR_mprotect 125 130 + #define __NR_sigprocmask 126 131 + #define __NR_create_module 127 132 + #define __NR_init_module 128 133 + #define __NR_delete_module 129 134 + #define __NR_get_kernel_syms 130 135 + #define __NR_quotactl 131 136 + #define __NR_getpgid 132 137 + #define __NR_fchdir 133 138 + #define __NR_bdflush 134 139 + #define __NR_sysfs 135 140 + #define __NR_personality 136 141 + #define __NR_afs_syscall 137 142 + #define __NR_setfsuid 138 143 + #define __NR_setfsgid 139 144 + #define __NR__llseek 140 145 + #define __NR_getdents 141 146 + #define __NR__newselect 142 147 + #define __NR_flock 143 148 + #define __NR_msync 144 149 + #define __NR_readv 145 150 + #define __NR_writev 146 151 + #define __NR_getsid 147 152 + #define __NR_fdatasync 148 153 + #define __NR__sysctl 149 154 + #define __NR_mlock 150 155 + #define __NR_munlock 151 156 + #define __NR_mlockall 152 157 + #define __NR_munlockall 153 158 + #define __NR_sched_setparam 154 159 + #define __NR_sched_getparam 155 160 + #define __NR_sched_setscheduler 156 161 + #define __NR_sched_getscheduler 157 162 + #define __NR_sched_yield 158 163 + #define __NR_sched_get_priority_max 159 164 + #define __NR_sched_get_priority_min 160 165 + #define __NR_sched_rr_get_interval 161 166 + #define __NR_nanosleep 162 167 + #define __NR_mremap 163 168 + #define __NR_setresuid 164 169 + #define __NR_getresuid 165 170 + #define __NR_vm86 166 171 + #define __NR_query_module 167 172 + #define __NR_poll 168 173 + #define __NR_nfsservctl 169 174 + #define __NR_setresgid 170 175 + #define __NR_getresgid 171 176 + #define __NR_prctl 172 177 + #define __NR_rt_sigreturn 173 178 + #define __NR_rt_sigaction 174 179 + #define __NR_rt_sigprocmask 175 180 + #define __NR_rt_sigpending 176 181 + #define __NR_rt_sigtimedwait 177 182 + #define __NR_rt_sigqueueinfo 178 183 + #define __NR_rt_sigsuspend 179 184 + #define __NR_pread64 180 185 + #define __NR_pwrite64 181 186 + #define __NR_chown 182 187 + #define __NR_getcwd 183 188 + #define __NR_capget 184 189 + #define __NR_capset 185 190 + #define __NR_sigaltstack 186 191 + #define __NR_sendfile 187 192 + #define __NR_getpmsg 188 193 + #define __NR_putpmsg 189 194 + #define __NR_vfork 190 195 + #define __NR_ugetrlimit 191 196 + #define __NR_mmap2 192 197 + #define __NR_truncate64 193 198 + #define __NR_ftruncate64 194 199 + #define __NR_stat64 195 200 + #define __NR_lstat64 196 201 + #define __NR_fstat64 197 202 + #define __NR_lchown32 198 203 + #define __NR_getuid32 199 204 + #define __NR_getgid32 200 205 + #define __NR_geteuid32 201 206 + #define __NR_getegid32 202 207 + #define __NR_setreuid32 203 208 + #define __NR_setregid32 204 209 + #define __NR_getgroups32 205 210 + #define __NR_setgroups32 206 211 + #define __NR_fchown32 207 212 + #define __NR_setresuid32 208 213 + #define __NR_getresuid32 209 214 + #define __NR_setresgid32 210 215 + #define __NR_getresgid32 211 216 + #define __NR_chown32 212 217 + #define __NR_setuid32 213 218 + #define __NR_setgid32 214 219 + #define __NR_setfsuid32 215 220 + #define __NR_setfsgid32 216 221 + #define __NR_pivot_root 217 222 + #define __NR_mincore 218 223 + #define __NR_madvise 219 224 + #define __NR_getdents64 220 225 + #define __NR_fcntl64 221 226 + #define __NR_gettid 224 227 + #define __NR_readahead 225 228 + #define __NR_setxattr 226 229 + #define __NR_lsetxattr 227 230 + #define __NR_fsetxattr 228 231 + #define __NR_getxattr 229 232 + #define __NR_lgetxattr 230 233 + #define __NR_fgetxattr 231 234 + #define __NR_listxattr 232 235 + #define __NR_llistxattr 233 236 + #define __NR_flistxattr 234 237 + #define __NR_removexattr 235 238 + #define __NR_lremovexattr 236 239 + #define __NR_fremovexattr 237 240 + #define __NR_tkill 238 241 + #define __NR_sendfile64 239 242 + #define __NR_futex 240 243 + #define __NR_sched_setaffinity 241 244 + #define __NR_sched_getaffinity 242 245 + #define __NR_set_thread_area 243 246 + #define __NR_get_thread_area 244 247 + #define __NR_io_setup 245 248 + #define __NR_io_destroy 246 249 + #define __NR_io_getevents 247 250 + #define __NR_io_submit 248 251 + #define __NR_io_cancel 249 252 + #define __NR_fadvise64 250 253 + #define __NR_exit_group 252 254 + #define __NR_lookup_dcookie 253 255 + #define __NR_epoll_create 254 256 + #define __NR_epoll_ctl 255 257 + #define __NR_epoll_wait 256 258 + #define __NR_remap_file_pages 257 259 + #define __NR_set_tid_address 258 260 + #define __NR_timer_create 259 261 + #define __NR_timer_settime 260 262 + #define __NR_timer_gettime 261 263 + #define __NR_timer_getoverrun 262 264 + #define __NR_timer_delete 263 265 + #define __NR_clock_settime 264 266 + #define __NR_clock_gettime 265 267 + #define __NR_clock_getres 266 268 + #define __NR_clock_nanosleep 267 269 + #define __NR_statfs64 268 270 + #define __NR_fstatfs64 269 271 + #define __NR_tgkill 270 272 + #define __NR_utimes 271 273 + #define __NR_fadvise64_64 272 274 + #define __NR_vserver 273 275 + #define __NR_mbind 274 276 + #define __NR_get_mempolicy 275 277 + #define __NR_set_mempolicy 276 278 + #define __NR_mq_open 277 279 + #define __NR_mq_unlink 278 280 + #define __NR_mq_timedsend 279 281 + #define __NR_mq_timedreceive 280 282 + #define __NR_mq_notify 281 283 + #define __NR_mq_getsetattr 282 284 + #define __NR_kexec_load 283 285 + #define __NR_waitid 284 286 + #define __NR_add_key 286 287 + #define __NR_request_key 287 288 + #define __NR_keyctl 288 289 + #define __NR_ioprio_set 289 290 + #define __NR_ioprio_get 290 291 + #define __NR_inotify_init 291 292 + #define __NR_inotify_add_watch 292 293 + #define __NR_inotify_rm_watch 293 294 + #define __NR_migrate_pages 294 295 + #define __NR_openat 295 296 + #define __NR_mkdirat 296 297 + #define __NR_mknodat 297 298 + #define __NR_fchownat 298 299 + #define __NR_futimesat 299 300 + #define __NR_fstatat64 300 301 + #define __NR_unlinkat 301 302 + #define __NR_renameat 302 303 + #define __NR_linkat 303 304 + #define __NR_symlinkat 304 305 + #define __NR_readlinkat 305 306 + #define __NR_fchmodat 306 307 + #define __NR_faccessat 307 308 + #define __NR_pselect6 308 309 + #define __NR_ppoll 309 310 + #define __NR_unshare 310 311 + #define __NR_set_robust_list 311 312 + #define __NR_get_robust_list 312 313 + #define __NR_splice 313 314 + #define __NR_sync_file_range 314 315 + #define __NR_tee 315 316 + #define __NR_vmsplice 316 317 + #define __NR_move_pages 317 318 + #define __NR_getcpu 318 319 + #define __NR_epoll_pwait 319 320 + #define __NR_utimensat 320 321 + #define __NR_signalfd 321 322 + #define __NR_timerfd_create 322 323 + #define __NR_eventfd 323 324 + #define __NR_fallocate 324 325 + #define __NR_timerfd_settime 325 326 + #define __NR_timerfd_gettime 326 327 + #define __NR_signalfd4 327 328 + #define __NR_eventfd2 328 329 + #define __NR_epoll_create1 329 330 + #define __NR_dup3 330 331 + #define __NR_pipe2 331 332 + #define __NR_inotify_init1 332 333 + #define __NR_preadv 333 334 + #define __NR_pwritev 334 335 + #define __NR_rt_tgsigqueueinfo 335 336 + #define __NR_perf_event_open 336 337 + #define __NR_recvmmsg 337 338 + #define __NR_fanotify_init 338 339 + #define __NR_fanotify_mark 339 340 + #define __NR_prlimit64 340 341 + #define __NR_name_to_handle_at 341 342 + #define __NR_open_by_handle_at 342 343 + #define __NR_clock_adjtime 343 344 + #define __NR_syncfs 344 345 + #define __NR_sendmmsg 345 346 + #define __NR_setns 346 347 + #define __NR_process_vm_readv 347 348 + #define __NR_process_vm_writev 348 349 + #define __NR_kcmp 349 350 + #define __NR_finit_module 350 351 + #define __NR_sched_setattr 351 352 + #define __NR_sched_getattr 352 353 + #define __NR_renameat2 353 354 + #define __NR_seccomp 354 355 + #define __NR_getrandom 355 356 + #define __NR_memfd_create 356 357 + #define __NR_bpf 357 358 + #define __NR_execveat 358 359 + #define __NR_socket 359 360 + #define __NR_socketpair 360 361 + #define __NR_bind 361 362 + #define __NR_connect 362 363 + #define __NR_listen 363 364 + #define __NR_accept4 364 365 + #define __NR_getsockopt 365 366 + #define __NR_setsockopt 366 367 + #define __NR_getsockname 367 368 + #define __NR_getpeername 368 369 + #define __NR_sendto 369 370 + #define __NR_sendmsg 370 371 + #define __NR_recvfrom 371 372 + #define __NR_recvmsg 372 373 + #define __NR_shutdown 373 374 + #define __NR_userfaultfd 374 375 + #define __NR_membarrier 375 376 + 377 + #endif /* _ASM_X86_UNISTD_32_H */
+330
linux-headers/asm-x86/unistd_64.h
··· 1 + #ifndef _ASM_X86_UNISTD_64_H 2 + #define _ASM_X86_UNISTD_64_H 1 3 + 4 + #define __NR_read 0 5 + #define __NR_write 1 6 + #define __NR_open 2 7 + #define __NR_close 3 8 + #define __NR_stat 4 9 + #define __NR_fstat 5 10 + #define __NR_lstat 6 11 + #define __NR_poll 7 12 + #define __NR_lseek 8 13 + #define __NR_mmap 9 14 + #define __NR_mprotect 10 15 + #define __NR_munmap 11 16 + #define __NR_brk 12 17 + #define __NR_rt_sigaction 13 18 + #define __NR_rt_sigprocmask 14 19 + #define __NR_rt_sigreturn 15 20 + #define __NR_ioctl 16 21 + #define __NR_pread64 17 22 + #define __NR_pwrite64 18 23 + #define __NR_readv 19 24 + #define __NR_writev 20 25 + #define __NR_access 21 26 + #define __NR_pipe 22 27 + #define __NR_select 23 28 + #define __NR_sched_yield 24 29 + #define __NR_mremap 25 30 + #define __NR_msync 26 31 + #define __NR_mincore 27 32 + #define __NR_madvise 28 33 + #define __NR_shmget 29 34 + #define __NR_shmat 30 35 + #define __NR_shmctl 31 36 + #define __NR_dup 32 37 + #define __NR_dup2 33 38 + #define __NR_pause 34 39 + #define __NR_nanosleep 35 40 + #define __NR_getitimer 36 41 + #define __NR_alarm 37 42 + #define __NR_setitimer 38 43 + #define __NR_getpid 39 44 + #define __NR_sendfile 40 45 + #define __NR_socket 41 46 + #define __NR_connect 42 47 + #define __NR_accept 43 48 + #define __NR_sendto 44 49 + #define __NR_recvfrom 45 50 + #define __NR_sendmsg 46 51 + #define __NR_recvmsg 47 52 + #define __NR_shutdown 48 53 + #define __NR_bind 49 54 + #define __NR_listen 50 55 + #define __NR_getsockname 51 56 + #define __NR_getpeername 52 57 + #define __NR_socketpair 53 58 + #define __NR_setsockopt 54 59 + #define __NR_getsockopt 55 60 + #define __NR_clone 56 61 + #define __NR_fork 57 62 + #define __NR_vfork 58 63 + #define __NR_execve 59 64 + #define __NR_exit 60 65 + #define __NR_wait4 61 66 + #define __NR_kill 62 67 + #define __NR_uname 63 68 + #define __NR_semget 64 69 + #define __NR_semop 65 70 + #define __NR_semctl 66 71 + #define __NR_shmdt 67 72 + #define __NR_msgget 68 73 + #define __NR_msgsnd 69 74 + #define __NR_msgrcv 70 75 + #define __NR_msgctl 71 76 + #define __NR_fcntl 72 77 + #define __NR_flock 73 78 + #define __NR_fsync 74 79 + #define __NR_fdatasync 75 80 + #define __NR_truncate 76 81 + #define __NR_ftruncate 77 82 + #define __NR_getdents 78 83 + #define __NR_getcwd 79 84 + #define __NR_chdir 80 85 + #define __NR_fchdir 81 86 + #define __NR_rename 82 87 + #define __NR_mkdir 83 88 + #define __NR_rmdir 84 89 + #define __NR_creat 85 90 + #define __NR_link 86 91 + #define __NR_unlink 87 92 + #define __NR_symlink 88 93 + #define __NR_readlink 89 94 + #define __NR_chmod 90 95 + #define __NR_fchmod 91 96 + #define __NR_chown 92 97 + #define __NR_fchown 93 98 + #define __NR_lchown 94 99 + #define __NR_umask 95 100 + #define __NR_gettimeofday 96 101 + #define __NR_getrlimit 97 102 + #define __NR_getrusage 98 103 + #define __NR_sysinfo 99 104 + #define __NR_times 100 105 + #define __NR_ptrace 101 106 + #define __NR_getuid 102 107 + #define __NR_syslog 103 108 + #define __NR_getgid 104 109 + #define __NR_setuid 105 110 + #define __NR_setgid 106 111 + #define __NR_geteuid 107 112 + #define __NR_getegid 108 113 + #define __NR_setpgid 109 114 + #define __NR_getppid 110 115 + #define __NR_getpgrp 111 116 + #define __NR_setsid 112 117 + #define __NR_setreuid 113 118 + #define __NR_setregid 114 119 + #define __NR_getgroups 115 120 + #define __NR_setgroups 116 121 + #define __NR_setresuid 117 122 + #define __NR_getresuid 118 123 + #define __NR_setresgid 119 124 + #define __NR_getresgid 120 125 + #define __NR_getpgid 121 126 + #define __NR_setfsuid 122 127 + #define __NR_setfsgid 123 128 + #define __NR_getsid 124 129 + #define __NR_capget 125 130 + #define __NR_capset 126 131 + #define __NR_rt_sigpending 127 132 + #define __NR_rt_sigtimedwait 128 133 + #define __NR_rt_sigqueueinfo 129 134 + #define __NR_rt_sigsuspend 130 135 + #define __NR_sigaltstack 131 136 + #define __NR_utime 132 137 + #define __NR_mknod 133 138 + #define __NR_uselib 134 139 + #define __NR_personality 135 140 + #define __NR_ustat 136 141 + #define __NR_statfs 137 142 + #define __NR_fstatfs 138 143 + #define __NR_sysfs 139 144 + #define __NR_getpriority 140 145 + #define __NR_setpriority 141 146 + #define __NR_sched_setparam 142 147 + #define __NR_sched_getparam 143 148 + #define __NR_sched_setscheduler 144 149 + #define __NR_sched_getscheduler 145 150 + #define __NR_sched_get_priority_max 146 151 + #define __NR_sched_get_priority_min 147 152 + #define __NR_sched_rr_get_interval 148 153 + #define __NR_mlock 149 154 + #define __NR_munlock 150 155 + #define __NR_mlockall 151 156 + #define __NR_munlockall 152 157 + #define __NR_vhangup 153 158 + #define __NR_modify_ldt 154 159 + #define __NR_pivot_root 155 160 + #define __NR__sysctl 156 161 + #define __NR_prctl 157 162 + #define __NR_arch_prctl 158 163 + #define __NR_adjtimex 159 164 + #define __NR_setrlimit 160 165 + #define __NR_chroot 161 166 + #define __NR_sync 162 167 + #define __NR_acct 163 168 + #define __NR_settimeofday 164 169 + #define __NR_mount 165 170 + #define __NR_umount2 166 171 + #define __NR_swapon 167 172 + #define __NR_swapoff 168 173 + #define __NR_reboot 169 174 + #define __NR_sethostname 170 175 + #define __NR_setdomainname 171 176 + #define __NR_iopl 172 177 + #define __NR_ioperm 173 178 + #define __NR_create_module 174 179 + #define __NR_init_module 175 180 + #define __NR_delete_module 176 181 + #define __NR_get_kernel_syms 177 182 + #define __NR_query_module 178 183 + #define __NR_quotactl 179 184 + #define __NR_nfsservctl 180 185 + #define __NR_getpmsg 181 186 + #define __NR_putpmsg 182 187 + #define __NR_afs_syscall 183 188 + #define __NR_tuxcall 184 189 + #define __NR_security 185 190 + #define __NR_gettid 186 191 + #define __NR_readahead 187 192 + #define __NR_setxattr 188 193 + #define __NR_lsetxattr 189 194 + #define __NR_fsetxattr 190 195 + #define __NR_getxattr 191 196 + #define __NR_lgetxattr 192 197 + #define __NR_fgetxattr 193 198 + #define __NR_listxattr 194 199 + #define __NR_llistxattr 195 200 + #define __NR_flistxattr 196 201 + #define __NR_removexattr 197 202 + #define __NR_lremovexattr 198 203 + #define __NR_fremovexattr 199 204 + #define __NR_tkill 200 205 + #define __NR_time 201 206 + #define __NR_futex 202 207 + #define __NR_sched_setaffinity 203 208 + #define __NR_sched_getaffinity 204 209 + #define __NR_set_thread_area 205 210 + #define __NR_io_setup 206 211 + #define __NR_io_destroy 207 212 + #define __NR_io_getevents 208 213 + #define __NR_io_submit 209 214 + #define __NR_io_cancel 210 215 + #define __NR_get_thread_area 211 216 + #define __NR_lookup_dcookie 212 217 + #define __NR_epoll_create 213 218 + #define __NR_epoll_ctl_old 214 219 + #define __NR_epoll_wait_old 215 220 + #define __NR_remap_file_pages 216 221 + #define __NR_getdents64 217 222 + #define __NR_set_tid_address 218 223 + #define __NR_restart_syscall 219 224 + #define __NR_semtimedop 220 225 + #define __NR_fadvise64 221 226 + #define __NR_timer_create 222 227 + #define __NR_timer_settime 223 228 + #define __NR_timer_gettime 224 229 + #define __NR_timer_getoverrun 225 230 + #define __NR_timer_delete 226 231 + #define __NR_clock_settime 227 232 + #define __NR_clock_gettime 228 233 + #define __NR_clock_getres 229 234 + #define __NR_clock_nanosleep 230 235 + #define __NR_exit_group 231 236 + #define __NR_epoll_wait 232 237 + #define __NR_epoll_ctl 233 238 + #define __NR_tgkill 234 239 + #define __NR_utimes 235 240 + #define __NR_vserver 236 241 + #define __NR_mbind 237 242 + #define __NR_set_mempolicy 238 243 + #define __NR_get_mempolicy 239 244 + #define __NR_mq_open 240 245 + #define __NR_mq_unlink 241 246 + #define __NR_mq_timedsend 242 247 + #define __NR_mq_timedreceive 243 248 + #define __NR_mq_notify 244 249 + #define __NR_mq_getsetattr 245 250 + #define __NR_kexec_load 246 251 + #define __NR_waitid 247 252 + #define __NR_add_key 248 253 + #define __NR_request_key 249 254 + #define __NR_keyctl 250 255 + #define __NR_ioprio_set 251 256 + #define __NR_ioprio_get 252 257 + #define __NR_inotify_init 253 258 + #define __NR_inotify_add_watch 254 259 + #define __NR_inotify_rm_watch 255 260 + #define __NR_migrate_pages 256 261 + #define __NR_openat 257 262 + #define __NR_mkdirat 258 263 + #define __NR_mknodat 259 264 + #define __NR_fchownat 260 265 + #define __NR_futimesat 261 266 + #define __NR_newfstatat 262 267 + #define __NR_unlinkat 263 268 + #define __NR_renameat 264 269 + #define __NR_linkat 265 270 + #define __NR_symlinkat 266 271 + #define __NR_readlinkat 267 272 + #define __NR_fchmodat 268 273 + #define __NR_faccessat 269 274 + #define __NR_pselect6 270 275 + #define __NR_ppoll 271 276 + #define __NR_unshare 272 277 + #define __NR_set_robust_list 273 278 + #define __NR_get_robust_list 274 279 + #define __NR_splice 275 280 + #define __NR_tee 276 281 + #define __NR_sync_file_range 277 282 + #define __NR_vmsplice 278 283 + #define __NR_move_pages 279 284 + #define __NR_utimensat 280 285 + #define __NR_epoll_pwait 281 286 + #define __NR_signalfd 282 287 + #define __NR_timerfd_create 283 288 + #define __NR_eventfd 284 289 + #define __NR_fallocate 285 290 + #define __NR_timerfd_settime 286 291 + #define __NR_timerfd_gettime 287 292 + #define __NR_accept4 288 293 + #define __NR_signalfd4 289 294 + #define __NR_eventfd2 290 295 + #define __NR_epoll_create1 291 296 + #define __NR_dup3 292 297 + #define __NR_pipe2 293 298 + #define __NR_inotify_init1 294 299 + #define __NR_preadv 295 300 + #define __NR_pwritev 296 301 + #define __NR_rt_tgsigqueueinfo 297 302 + #define __NR_perf_event_open 298 303 + #define __NR_recvmmsg 299 304 + #define __NR_fanotify_init 300 305 + #define __NR_fanotify_mark 301 306 + #define __NR_prlimit64 302 307 + #define __NR_name_to_handle_at 303 308 + #define __NR_open_by_handle_at 304 309 + #define __NR_clock_adjtime 305 310 + #define __NR_syncfs 306 311 + #define __NR_sendmmsg 307 312 + #define __NR_setns 308 313 + #define __NR_getcpu 309 314 + #define __NR_process_vm_readv 310 315 + #define __NR_process_vm_writev 311 316 + #define __NR_kcmp 312 317 + #define __NR_finit_module 313 318 + #define __NR_sched_setattr 314 319 + #define __NR_sched_getattr 315 320 + #define __NR_renameat2 316 321 + #define __NR_seccomp 317 322 + #define __NR_getrandom 318 323 + #define __NR_memfd_create 319 324 + #define __NR_kexec_file_load 320 325 + #define __NR_bpf 321 326 + #define __NR_execveat 322 327 + #define __NR_userfaultfd 323 328 + #define __NR_membarrier 324 329 + 330 + #endif /* _ASM_X86_UNISTD_64_H */
+319
linux-headers/asm-x86/unistd_x32.h
··· 1 + #ifndef _ASM_X86_UNISTD_X32_H 2 + #define _ASM_X86_UNISTD_X32_H 1 3 + 4 + #define __NR_read (__X32_SYSCALL_BIT + 0) 5 + #define __NR_write (__X32_SYSCALL_BIT + 1) 6 + #define __NR_open (__X32_SYSCALL_BIT + 2) 7 + #define __NR_close (__X32_SYSCALL_BIT + 3) 8 + #define __NR_stat (__X32_SYSCALL_BIT + 4) 9 + #define __NR_fstat (__X32_SYSCALL_BIT + 5) 10 + #define __NR_lstat (__X32_SYSCALL_BIT + 6) 11 + #define __NR_poll (__X32_SYSCALL_BIT + 7) 12 + #define __NR_lseek (__X32_SYSCALL_BIT + 8) 13 + #define __NR_mmap (__X32_SYSCALL_BIT + 9) 14 + #define __NR_mprotect (__X32_SYSCALL_BIT + 10) 15 + #define __NR_munmap (__X32_SYSCALL_BIT + 11) 16 + #define __NR_brk (__X32_SYSCALL_BIT + 12) 17 + #define __NR_rt_sigprocmask (__X32_SYSCALL_BIT + 14) 18 + #define __NR_pread64 (__X32_SYSCALL_BIT + 17) 19 + #define __NR_pwrite64 (__X32_SYSCALL_BIT + 18) 20 + #define __NR_access (__X32_SYSCALL_BIT + 21) 21 + #define __NR_pipe (__X32_SYSCALL_BIT + 22) 22 + #define __NR_select (__X32_SYSCALL_BIT + 23) 23 + #define __NR_sched_yield (__X32_SYSCALL_BIT + 24) 24 + #define __NR_mremap (__X32_SYSCALL_BIT + 25) 25 + #define __NR_msync (__X32_SYSCALL_BIT + 26) 26 + #define __NR_mincore (__X32_SYSCALL_BIT + 27) 27 + #define __NR_madvise (__X32_SYSCALL_BIT + 28) 28 + #define __NR_shmget (__X32_SYSCALL_BIT + 29) 29 + #define __NR_shmat (__X32_SYSCALL_BIT + 30) 30 + #define __NR_shmctl (__X32_SYSCALL_BIT + 31) 31 + #define __NR_dup (__X32_SYSCALL_BIT + 32) 32 + #define __NR_dup2 (__X32_SYSCALL_BIT + 33) 33 + #define __NR_pause (__X32_SYSCALL_BIT + 34) 34 + #define __NR_nanosleep (__X32_SYSCALL_BIT + 35) 35 + #define __NR_getitimer (__X32_SYSCALL_BIT + 36) 36 + #define __NR_alarm (__X32_SYSCALL_BIT + 37) 37 + #define __NR_setitimer (__X32_SYSCALL_BIT + 38) 38 + #define __NR_getpid (__X32_SYSCALL_BIT + 39) 39 + #define __NR_sendfile (__X32_SYSCALL_BIT + 40) 40 + #define __NR_socket (__X32_SYSCALL_BIT + 41) 41 + #define __NR_connect (__X32_SYSCALL_BIT + 42) 42 + #define __NR_accept (__X32_SYSCALL_BIT + 43) 43 + #define __NR_sendto (__X32_SYSCALL_BIT + 44) 44 + #define __NR_shutdown (__X32_SYSCALL_BIT + 48) 45 + #define __NR_bind (__X32_SYSCALL_BIT + 49) 46 + #define __NR_listen (__X32_SYSCALL_BIT + 50) 47 + #define __NR_getsockname (__X32_SYSCALL_BIT + 51) 48 + #define __NR_getpeername (__X32_SYSCALL_BIT + 52) 49 + #define __NR_socketpair (__X32_SYSCALL_BIT + 53) 50 + #define __NR_clone (__X32_SYSCALL_BIT + 56) 51 + #define __NR_fork (__X32_SYSCALL_BIT + 57) 52 + #define __NR_vfork (__X32_SYSCALL_BIT + 58) 53 + #define __NR_exit (__X32_SYSCALL_BIT + 60) 54 + #define __NR_wait4 (__X32_SYSCALL_BIT + 61) 55 + #define __NR_kill (__X32_SYSCALL_BIT + 62) 56 + #define __NR_uname (__X32_SYSCALL_BIT + 63) 57 + #define __NR_semget (__X32_SYSCALL_BIT + 64) 58 + #define __NR_semop (__X32_SYSCALL_BIT + 65) 59 + #define __NR_semctl (__X32_SYSCALL_BIT + 66) 60 + #define __NR_shmdt (__X32_SYSCALL_BIT + 67) 61 + #define __NR_msgget (__X32_SYSCALL_BIT + 68) 62 + #define __NR_msgsnd (__X32_SYSCALL_BIT + 69) 63 + #define __NR_msgrcv (__X32_SYSCALL_BIT + 70) 64 + #define __NR_msgctl (__X32_SYSCALL_BIT + 71) 65 + #define __NR_fcntl (__X32_SYSCALL_BIT + 72) 66 + #define __NR_flock (__X32_SYSCALL_BIT + 73) 67 + #define __NR_fsync (__X32_SYSCALL_BIT + 74) 68 + #define __NR_fdatasync (__X32_SYSCALL_BIT + 75) 69 + #define __NR_truncate (__X32_SYSCALL_BIT + 76) 70 + #define __NR_ftruncate (__X32_SYSCALL_BIT + 77) 71 + #define __NR_getdents (__X32_SYSCALL_BIT + 78) 72 + #define __NR_getcwd (__X32_SYSCALL_BIT + 79) 73 + #define __NR_chdir (__X32_SYSCALL_BIT + 80) 74 + #define __NR_fchdir (__X32_SYSCALL_BIT + 81) 75 + #define __NR_rename (__X32_SYSCALL_BIT + 82) 76 + #define __NR_mkdir (__X32_SYSCALL_BIT + 83) 77 + #define __NR_rmdir (__X32_SYSCALL_BIT + 84) 78 + #define __NR_creat (__X32_SYSCALL_BIT + 85) 79 + #define __NR_link (__X32_SYSCALL_BIT + 86) 80 + #define __NR_unlink (__X32_SYSCALL_BIT + 87) 81 + #define __NR_symlink (__X32_SYSCALL_BIT + 88) 82 + #define __NR_readlink (__X32_SYSCALL_BIT + 89) 83 + #define __NR_chmod (__X32_SYSCALL_BIT + 90) 84 + #define __NR_fchmod (__X32_SYSCALL_BIT + 91) 85 + #define __NR_chown (__X32_SYSCALL_BIT + 92) 86 + #define __NR_fchown (__X32_SYSCALL_BIT + 93) 87 + #define __NR_lchown (__X32_SYSCALL_BIT + 94) 88 + #define __NR_umask (__X32_SYSCALL_BIT + 95) 89 + #define __NR_gettimeofday (__X32_SYSCALL_BIT + 96) 90 + #define __NR_getrlimit (__X32_SYSCALL_BIT + 97) 91 + #define __NR_getrusage (__X32_SYSCALL_BIT + 98) 92 + #define __NR_sysinfo (__X32_SYSCALL_BIT + 99) 93 + #define __NR_times (__X32_SYSCALL_BIT + 100) 94 + #define __NR_getuid (__X32_SYSCALL_BIT + 102) 95 + #define __NR_syslog (__X32_SYSCALL_BIT + 103) 96 + #define __NR_getgid (__X32_SYSCALL_BIT + 104) 97 + #define __NR_setuid (__X32_SYSCALL_BIT + 105) 98 + #define __NR_setgid (__X32_SYSCALL_BIT + 106) 99 + #define __NR_geteuid (__X32_SYSCALL_BIT + 107) 100 + #define __NR_getegid (__X32_SYSCALL_BIT + 108) 101 + #define __NR_setpgid (__X32_SYSCALL_BIT + 109) 102 + #define __NR_getppid (__X32_SYSCALL_BIT + 110) 103 + #define __NR_getpgrp (__X32_SYSCALL_BIT + 111) 104 + #define __NR_setsid (__X32_SYSCALL_BIT + 112) 105 + #define __NR_setreuid (__X32_SYSCALL_BIT + 113) 106 + #define __NR_setregid (__X32_SYSCALL_BIT + 114) 107 + #define __NR_getgroups (__X32_SYSCALL_BIT + 115) 108 + #define __NR_setgroups (__X32_SYSCALL_BIT + 116) 109 + #define __NR_setresuid (__X32_SYSCALL_BIT + 117) 110 + #define __NR_getresuid (__X32_SYSCALL_BIT + 118) 111 + #define __NR_setresgid (__X32_SYSCALL_BIT + 119) 112 + #define __NR_getresgid (__X32_SYSCALL_BIT + 120) 113 + #define __NR_getpgid (__X32_SYSCALL_BIT + 121) 114 + #define __NR_setfsuid (__X32_SYSCALL_BIT + 122) 115 + #define __NR_setfsgid (__X32_SYSCALL_BIT + 123) 116 + #define __NR_getsid (__X32_SYSCALL_BIT + 124) 117 + #define __NR_capget (__X32_SYSCALL_BIT + 125) 118 + #define __NR_capset (__X32_SYSCALL_BIT + 126) 119 + #define __NR_rt_sigsuspend (__X32_SYSCALL_BIT + 130) 120 + #define __NR_utime (__X32_SYSCALL_BIT + 132) 121 + #define __NR_mknod (__X32_SYSCALL_BIT + 133) 122 + #define __NR_personality (__X32_SYSCALL_BIT + 135) 123 + #define __NR_ustat (__X32_SYSCALL_BIT + 136) 124 + #define __NR_statfs (__X32_SYSCALL_BIT + 137) 125 + #define __NR_fstatfs (__X32_SYSCALL_BIT + 138) 126 + #define __NR_sysfs (__X32_SYSCALL_BIT + 139) 127 + #define __NR_getpriority (__X32_SYSCALL_BIT + 140) 128 + #define __NR_setpriority (__X32_SYSCALL_BIT + 141) 129 + #define __NR_sched_setparam (__X32_SYSCALL_BIT + 142) 130 + #define __NR_sched_getparam (__X32_SYSCALL_BIT + 143) 131 + #define __NR_sched_setscheduler (__X32_SYSCALL_BIT + 144) 132 + #define __NR_sched_getscheduler (__X32_SYSCALL_BIT + 145) 133 + #define __NR_sched_get_priority_max (__X32_SYSCALL_BIT + 146) 134 + #define __NR_sched_get_priority_min (__X32_SYSCALL_BIT + 147) 135 + #define __NR_sched_rr_get_interval (__X32_SYSCALL_BIT + 148) 136 + #define __NR_mlock (__X32_SYSCALL_BIT + 149) 137 + #define __NR_munlock (__X32_SYSCALL_BIT + 150) 138 + #define __NR_mlockall (__X32_SYSCALL_BIT + 151) 139 + #define __NR_munlockall (__X32_SYSCALL_BIT + 152) 140 + #define __NR_vhangup (__X32_SYSCALL_BIT + 153) 141 + #define __NR_modify_ldt (__X32_SYSCALL_BIT + 154) 142 + #define __NR_pivot_root (__X32_SYSCALL_BIT + 155) 143 + #define __NR_prctl (__X32_SYSCALL_BIT + 157) 144 + #define __NR_arch_prctl (__X32_SYSCALL_BIT + 158) 145 + #define __NR_adjtimex (__X32_SYSCALL_BIT + 159) 146 + #define __NR_setrlimit (__X32_SYSCALL_BIT + 160) 147 + #define __NR_chroot (__X32_SYSCALL_BIT + 161) 148 + #define __NR_sync (__X32_SYSCALL_BIT + 162) 149 + #define __NR_acct (__X32_SYSCALL_BIT + 163) 150 + #define __NR_settimeofday (__X32_SYSCALL_BIT + 164) 151 + #define __NR_mount (__X32_SYSCALL_BIT + 165) 152 + #define __NR_umount2 (__X32_SYSCALL_BIT + 166) 153 + #define __NR_swapon (__X32_SYSCALL_BIT + 167) 154 + #define __NR_swapoff (__X32_SYSCALL_BIT + 168) 155 + #define __NR_reboot (__X32_SYSCALL_BIT + 169) 156 + #define __NR_sethostname (__X32_SYSCALL_BIT + 170) 157 + #define __NR_setdomainname (__X32_SYSCALL_BIT + 171) 158 + #define __NR_iopl (__X32_SYSCALL_BIT + 172) 159 + #define __NR_ioperm (__X32_SYSCALL_BIT + 173) 160 + #define __NR_init_module (__X32_SYSCALL_BIT + 175) 161 + #define __NR_delete_module (__X32_SYSCALL_BIT + 176) 162 + #define __NR_quotactl (__X32_SYSCALL_BIT + 179) 163 + #define __NR_getpmsg (__X32_SYSCALL_BIT + 181) 164 + #define __NR_putpmsg (__X32_SYSCALL_BIT + 182) 165 + #define __NR_afs_syscall (__X32_SYSCALL_BIT + 183) 166 + #define __NR_tuxcall (__X32_SYSCALL_BIT + 184) 167 + #define __NR_security (__X32_SYSCALL_BIT + 185) 168 + #define __NR_gettid (__X32_SYSCALL_BIT + 186) 169 + #define __NR_readahead (__X32_SYSCALL_BIT + 187) 170 + #define __NR_setxattr (__X32_SYSCALL_BIT + 188) 171 + #define __NR_lsetxattr (__X32_SYSCALL_BIT + 189) 172 + #define __NR_fsetxattr (__X32_SYSCALL_BIT + 190) 173 + #define __NR_getxattr (__X32_SYSCALL_BIT + 191) 174 + #define __NR_lgetxattr (__X32_SYSCALL_BIT + 192) 175 + #define __NR_fgetxattr (__X32_SYSCALL_BIT + 193) 176 + #define __NR_listxattr (__X32_SYSCALL_BIT + 194) 177 + #define __NR_llistxattr (__X32_SYSCALL_BIT + 195) 178 + #define __NR_flistxattr (__X32_SYSCALL_BIT + 196) 179 + #define __NR_removexattr (__X32_SYSCALL_BIT + 197) 180 + #define __NR_lremovexattr (__X32_SYSCALL_BIT + 198) 181 + #define __NR_fremovexattr (__X32_SYSCALL_BIT + 199) 182 + #define __NR_tkill (__X32_SYSCALL_BIT + 200) 183 + #define __NR_time (__X32_SYSCALL_BIT + 201) 184 + #define __NR_futex (__X32_SYSCALL_BIT + 202) 185 + #define __NR_sched_setaffinity (__X32_SYSCALL_BIT + 203) 186 + #define __NR_sched_getaffinity (__X32_SYSCALL_BIT + 204) 187 + #define __NR_io_destroy (__X32_SYSCALL_BIT + 207) 188 + #define __NR_io_getevents (__X32_SYSCALL_BIT + 208) 189 + #define __NR_io_cancel (__X32_SYSCALL_BIT + 210) 190 + #define __NR_lookup_dcookie (__X32_SYSCALL_BIT + 212) 191 + #define __NR_epoll_create (__X32_SYSCALL_BIT + 213) 192 + #define __NR_remap_file_pages (__X32_SYSCALL_BIT + 216) 193 + #define __NR_getdents64 (__X32_SYSCALL_BIT + 217) 194 + #define __NR_set_tid_address (__X32_SYSCALL_BIT + 218) 195 + #define __NR_restart_syscall (__X32_SYSCALL_BIT + 219) 196 + #define __NR_semtimedop (__X32_SYSCALL_BIT + 220) 197 + #define __NR_fadvise64 (__X32_SYSCALL_BIT + 221) 198 + #define __NR_timer_settime (__X32_SYSCALL_BIT + 223) 199 + #define __NR_timer_gettime (__X32_SYSCALL_BIT + 224) 200 + #define __NR_timer_getoverrun (__X32_SYSCALL_BIT + 225) 201 + #define __NR_timer_delete (__X32_SYSCALL_BIT + 226) 202 + #define __NR_clock_settime (__X32_SYSCALL_BIT + 227) 203 + #define __NR_clock_gettime (__X32_SYSCALL_BIT + 228) 204 + #define __NR_clock_getres (__X32_SYSCALL_BIT + 229) 205 + #define __NR_clock_nanosleep (__X32_SYSCALL_BIT + 230) 206 + #define __NR_exit_group (__X32_SYSCALL_BIT + 231) 207 + #define __NR_epoll_wait (__X32_SYSCALL_BIT + 232) 208 + #define __NR_epoll_ctl (__X32_SYSCALL_BIT + 233) 209 + #define __NR_tgkill (__X32_SYSCALL_BIT + 234) 210 + #define __NR_utimes (__X32_SYSCALL_BIT + 235) 211 + #define __NR_mbind (__X32_SYSCALL_BIT + 237) 212 + #define __NR_set_mempolicy (__X32_SYSCALL_BIT + 238) 213 + #define __NR_get_mempolicy (__X32_SYSCALL_BIT + 239) 214 + #define __NR_mq_open (__X32_SYSCALL_BIT + 240) 215 + #define __NR_mq_unlink (__X32_SYSCALL_BIT + 241) 216 + #define __NR_mq_timedsend (__X32_SYSCALL_BIT + 242) 217 + #define __NR_mq_timedreceive (__X32_SYSCALL_BIT + 243) 218 + #define __NR_mq_getsetattr (__X32_SYSCALL_BIT + 245) 219 + #define __NR_add_key (__X32_SYSCALL_BIT + 248) 220 + #define __NR_request_key (__X32_SYSCALL_BIT + 249) 221 + #define __NR_keyctl (__X32_SYSCALL_BIT + 250) 222 + #define __NR_ioprio_set (__X32_SYSCALL_BIT + 251) 223 + #define __NR_ioprio_get (__X32_SYSCALL_BIT + 252) 224 + #define __NR_inotify_init (__X32_SYSCALL_BIT + 253) 225 + #define __NR_inotify_add_watch (__X32_SYSCALL_BIT + 254) 226 + #define __NR_inotify_rm_watch (__X32_SYSCALL_BIT + 255) 227 + #define __NR_migrate_pages (__X32_SYSCALL_BIT + 256) 228 + #define __NR_openat (__X32_SYSCALL_BIT + 257) 229 + #define __NR_mkdirat (__X32_SYSCALL_BIT + 258) 230 + #define __NR_mknodat (__X32_SYSCALL_BIT + 259) 231 + #define __NR_fchownat (__X32_SYSCALL_BIT + 260) 232 + #define __NR_futimesat (__X32_SYSCALL_BIT + 261) 233 + #define __NR_newfstatat (__X32_SYSCALL_BIT + 262) 234 + #define __NR_unlinkat (__X32_SYSCALL_BIT + 263) 235 + #define __NR_renameat (__X32_SYSCALL_BIT + 264) 236 + #define __NR_linkat (__X32_SYSCALL_BIT + 265) 237 + #define __NR_symlinkat (__X32_SYSCALL_BIT + 266) 238 + #define __NR_readlinkat (__X32_SYSCALL_BIT + 267) 239 + #define __NR_fchmodat (__X32_SYSCALL_BIT + 268) 240 + #define __NR_faccessat (__X32_SYSCALL_BIT + 269) 241 + #define __NR_pselect6 (__X32_SYSCALL_BIT + 270) 242 + #define __NR_ppoll (__X32_SYSCALL_BIT + 271) 243 + #define __NR_unshare (__X32_SYSCALL_BIT + 272) 244 + #define __NR_splice (__X32_SYSCALL_BIT + 275) 245 + #define __NR_tee (__X32_SYSCALL_BIT + 276) 246 + #define __NR_sync_file_range (__X32_SYSCALL_BIT + 277) 247 + #define __NR_utimensat (__X32_SYSCALL_BIT + 280) 248 + #define __NR_epoll_pwait (__X32_SYSCALL_BIT + 281) 249 + #define __NR_signalfd (__X32_SYSCALL_BIT + 282) 250 + #define __NR_timerfd_create (__X32_SYSCALL_BIT + 283) 251 + #define __NR_eventfd (__X32_SYSCALL_BIT + 284) 252 + #define __NR_fallocate (__X32_SYSCALL_BIT + 285) 253 + #define __NR_timerfd_settime (__X32_SYSCALL_BIT + 286) 254 + #define __NR_timerfd_gettime (__X32_SYSCALL_BIT + 287) 255 + #define __NR_accept4 (__X32_SYSCALL_BIT + 288) 256 + #define __NR_signalfd4 (__X32_SYSCALL_BIT + 289) 257 + #define __NR_eventfd2 (__X32_SYSCALL_BIT + 290) 258 + #define __NR_epoll_create1 (__X32_SYSCALL_BIT + 291) 259 + #define __NR_dup3 (__X32_SYSCALL_BIT + 292) 260 + #define __NR_pipe2 (__X32_SYSCALL_BIT + 293) 261 + #define __NR_inotify_init1 (__X32_SYSCALL_BIT + 294) 262 + #define __NR_perf_event_open (__X32_SYSCALL_BIT + 298) 263 + #define __NR_fanotify_init (__X32_SYSCALL_BIT + 300) 264 + #define __NR_fanotify_mark (__X32_SYSCALL_BIT + 301) 265 + #define __NR_prlimit64 (__X32_SYSCALL_BIT + 302) 266 + #define __NR_name_to_handle_at (__X32_SYSCALL_BIT + 303) 267 + #define __NR_open_by_handle_at (__X32_SYSCALL_BIT + 304) 268 + #define __NR_clock_adjtime (__X32_SYSCALL_BIT + 305) 269 + #define __NR_syncfs (__X32_SYSCALL_BIT + 306) 270 + #define __NR_setns (__X32_SYSCALL_BIT + 308) 271 + #define __NR_getcpu (__X32_SYSCALL_BIT + 309) 272 + #define __NR_kcmp (__X32_SYSCALL_BIT + 312) 273 + #define __NR_finit_module (__X32_SYSCALL_BIT + 313) 274 + #define __NR_sched_setattr (__X32_SYSCALL_BIT + 314) 275 + #define __NR_sched_getattr (__X32_SYSCALL_BIT + 315) 276 + #define __NR_renameat2 (__X32_SYSCALL_BIT + 316) 277 + #define __NR_seccomp (__X32_SYSCALL_BIT + 317) 278 + #define __NR_getrandom (__X32_SYSCALL_BIT + 318) 279 + #define __NR_memfd_create (__X32_SYSCALL_BIT + 319) 280 + #define __NR_kexec_file_load (__X32_SYSCALL_BIT + 320) 281 + #define __NR_bpf (__X32_SYSCALL_BIT + 321) 282 + #define __NR_userfaultfd (__X32_SYSCALL_BIT + 323) 283 + #define __NR_membarrier (__X32_SYSCALL_BIT + 324) 284 + #define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512) 285 + #define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513) 286 + #define __NR_ioctl (__X32_SYSCALL_BIT + 514) 287 + #define __NR_readv (__X32_SYSCALL_BIT + 515) 288 + #define __NR_writev (__X32_SYSCALL_BIT + 516) 289 + #define __NR_recvfrom (__X32_SYSCALL_BIT + 517) 290 + #define __NR_sendmsg (__X32_SYSCALL_BIT + 518) 291 + #define __NR_recvmsg (__X32_SYSCALL_BIT + 519) 292 + #define __NR_execve (__X32_SYSCALL_BIT + 520) 293 + #define __NR_ptrace (__X32_SYSCALL_BIT + 521) 294 + #define __NR_rt_sigpending (__X32_SYSCALL_BIT + 522) 295 + #define __NR_rt_sigtimedwait (__X32_SYSCALL_BIT + 523) 296 + #define __NR_rt_sigqueueinfo (__X32_SYSCALL_BIT + 524) 297 + #define __NR_sigaltstack (__X32_SYSCALL_BIT + 525) 298 + #define __NR_timer_create (__X32_SYSCALL_BIT + 526) 299 + #define __NR_mq_notify (__X32_SYSCALL_BIT + 527) 300 + #define __NR_kexec_load (__X32_SYSCALL_BIT + 528) 301 + #define __NR_waitid (__X32_SYSCALL_BIT + 529) 302 + #define __NR_set_robust_list (__X32_SYSCALL_BIT + 530) 303 + #define __NR_get_robust_list (__X32_SYSCALL_BIT + 531) 304 + #define __NR_vmsplice (__X32_SYSCALL_BIT + 532) 305 + #define __NR_move_pages (__X32_SYSCALL_BIT + 533) 306 + #define __NR_preadv (__X32_SYSCALL_BIT + 534) 307 + #define __NR_pwritev (__X32_SYSCALL_BIT + 535) 308 + #define __NR_rt_tgsigqueueinfo (__X32_SYSCALL_BIT + 536) 309 + #define __NR_recvmmsg (__X32_SYSCALL_BIT + 537) 310 + #define __NR_sendmmsg (__X32_SYSCALL_BIT + 538) 311 + #define __NR_process_vm_readv (__X32_SYSCALL_BIT + 539) 312 + #define __NR_process_vm_writev (__X32_SYSCALL_BIT + 540) 313 + #define __NR_setsockopt (__X32_SYSCALL_BIT + 541) 314 + #define __NR_getsockopt (__X32_SYSCALL_BIT + 542) 315 + #define __NR_io_setup (__X32_SYSCALL_BIT + 543) 316 + #define __NR_io_submit (__X32_SYSCALL_BIT + 544) 317 + #define __NR_execveat (__X32_SYSCALL_BIT + 545) 318 + 319 + #endif /* _ASM_X86_UNISTD_X32_H */
+5 -2
scripts/update-linux-headers.sh
··· 69 69 fi 70 70 71 71 # Blacklist architectures which have KVM headers but are actually dead 72 - if [ "$arch" = "ia64" ]; then 72 + if [ "$arch" = "ia64" -o "$arch" = "mips" ]; then 73 73 continue 74 74 fi 75 75 ··· 77 77 78 78 rm -rf "$output/linux-headers/asm-$arch" 79 79 mkdir -p "$output/linux-headers/asm-$arch" 80 - for header in kvm.h kvm_para.h; do 80 + for header in kvm.h kvm_para.h unistd.h; do 81 81 cp "$tmpdir/include/asm/$header" "$output/linux-headers/asm-$arch" 82 82 done 83 83 if [ $arch = powerpc ]; then ··· 92 92 fi 93 93 if [ $arch = x86 ]; then 94 94 cp_portable "$tmpdir/include/asm/hyperv.h" "$output/include/standard-headers/asm-x86/" 95 + cp "$tmpdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/" 96 + cp "$tmpdir/include/asm/unistd_x32.h" "$output/linux-headers/asm-x86/" 97 + cp "$tmpdir/include/asm/unistd_64.h" "$output/linux-headers/asm-x86/" 95 98 fi 96 99 done 97 100