unistd32.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. /*
  2. * AArch32 (compat) system call definitions.
  3. *
  4. * Copyright (C) 2001-2005 Russell King
  5. * Copyright (C) 2012 ARM Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __SYSCALL
  20. #define __SYSCALL(x, y)
  21. #endif
  22. #define __NR_restart_syscall 0
  23. __SYSCALL(__NR_restart_syscall, sys_restart_syscall)
  24. #define __NR_exit 1
  25. __SYSCALL(__NR_exit, sys_exit)
  26. #define __NR_fork 2
  27. __SYSCALL(__NR_fork, sys_fork)
  28. #define __NR_read 3
  29. __SYSCALL(__NR_read, sys_read)
  30. #define __NR_write 4
  31. __SYSCALL(__NR_write, sys_write)
  32. #define __NR_open 5
  33. __SYSCALL(__NR_open, compat_sys_open)
  34. #define __NR_close 6
  35. __SYSCALL(__NR_close, sys_close)
  36. /* 7 was sys_waitpid */
  37. __SYSCALL(7, sys_ni_syscall)
  38. #define __NR_creat 8
  39. __SYSCALL(__NR_creat, sys_creat)
  40. #define __NR_link 9
  41. __SYSCALL(__NR_link, sys_link)
  42. #define __NR_unlink 10
  43. __SYSCALL(__NR_unlink, sys_unlink)
  44. #define __NR_execve 11
  45. __SYSCALL(__NR_execve, compat_sys_execve)
  46. #define __NR_chdir 12
  47. __SYSCALL(__NR_chdir, sys_chdir)
  48. /* 13 was sys_time */
  49. __SYSCALL(13, sys_ni_syscall)
  50. #define __NR_mknod 14
  51. __SYSCALL(__NR_mknod, sys_mknod)
  52. #define __NR_chmod 15
  53. __SYSCALL(__NR_chmod, sys_chmod)
  54. #define __NR_lchown 16
  55. __SYSCALL(__NR_lchown, sys_lchown16)
  56. /* 17 was sys_break */
  57. __SYSCALL(17, sys_ni_syscall)
  58. /* 18 was sys_stat */
  59. __SYSCALL(18, sys_ni_syscall)
  60. #define __NR_lseek 19
  61. __SYSCALL(__NR_lseek, compat_sys_lseek)
  62. #define __NR_getpid 20
  63. __SYSCALL(__NR_getpid, sys_getpid)
  64. #define __NR_mount 21
  65. __SYSCALL(__NR_mount, compat_sys_mount)
  66. /* 22 was sys_umount */
  67. __SYSCALL(22, sys_ni_syscall)
  68. #define __NR_setuid 23
  69. __SYSCALL(__NR_setuid, sys_setuid16)
  70. #define __NR_getuid 24
  71. __SYSCALL(__NR_getuid, sys_getuid16)
  72. /* 25 was sys_stime */
  73. __SYSCALL(25, sys_ni_syscall)
  74. #define __NR_ptrace 26
  75. __SYSCALL(__NR_ptrace, compat_sys_ptrace)
  76. /* 27 was sys_alarm */
  77. __SYSCALL(27, sys_ni_syscall)
  78. /* 28 was sys_fstat */
  79. __SYSCALL(28, sys_ni_syscall)
  80. #define __NR_pause 29
  81. __SYSCALL(__NR_pause, sys_pause)
  82. /* 30 was sys_utime */
  83. __SYSCALL(30, sys_ni_syscall)
  84. /* 31 was sys_stty */
  85. __SYSCALL(31, sys_ni_syscall)
  86. /* 32 was sys_gtty */
  87. __SYSCALL(32, sys_ni_syscall)
  88. #define __NR_access 33
  89. __SYSCALL(__NR_access, sys_access)
  90. #define __NR_nice 34
  91. __SYSCALL(__NR_nice, sys_nice)
  92. /* 35 was sys_ftime */
  93. __SYSCALL(35, sys_ni_syscall)
  94. #define __NR_sync 36
  95. __SYSCALL(__NR_sync, sys_sync)
  96. #define __NR_kill 37
  97. __SYSCALL(__NR_kill, sys_kill)
  98. #define __NR_rename 38
  99. __SYSCALL(__NR_rename, sys_rename)
  100. #define __NR_mkdir 39
  101. __SYSCALL(__NR_mkdir, sys_mkdir)
  102. #define __NR_rmdir 40
  103. __SYSCALL(__NR_rmdir, sys_rmdir)
  104. #define __NR_dup 41
  105. __SYSCALL(__NR_dup, sys_dup)
  106. #define __NR_pipe 42
  107. __SYSCALL(__NR_pipe, sys_pipe)
  108. #define __NR_times 43
  109. __SYSCALL(__NR_times, compat_sys_times)
  110. /* 44 was sys_prof */
  111. __SYSCALL(44, sys_ni_syscall)
  112. #define __NR_brk 45
  113. __SYSCALL(__NR_brk, sys_brk)
  114. #define __NR_setgid 46
  115. __SYSCALL(__NR_setgid, sys_setgid16)
  116. #define __NR_getgid 47
  117. __SYSCALL(__NR_getgid, sys_getgid16)
  118. /* 48 was sys_signal */
  119. __SYSCALL(48, sys_ni_syscall)
  120. #define __NR_geteuid 49
  121. __SYSCALL(__NR_geteuid, sys_geteuid16)
  122. #define __NR_getegid 50
  123. __SYSCALL(__NR_getegid, sys_getegid16)
  124. #define __NR_acct 51
  125. __SYSCALL(__NR_acct, sys_acct)
  126. #define __NR_umount2 52
  127. __SYSCALL(__NR_umount2, sys_umount)
  128. /* 53 was sys_lock */
  129. __SYSCALL(53, sys_ni_syscall)
  130. #define __NR_ioctl 54
  131. __SYSCALL(__NR_ioctl, compat_sys_ioctl)
  132. #define __NR_fcntl 55
  133. __SYSCALL(__NR_fcntl, compat_sys_fcntl)
  134. /* 56 was sys_mpx */
  135. __SYSCALL(56, sys_ni_syscall)
  136. #define __NR_setpgid 57
  137. __SYSCALL(__NR_setpgid, sys_setpgid)
  138. /* 58 was sys_ulimit */
  139. __SYSCALL(58, sys_ni_syscall)
  140. /* 59 was sys_olduname */
  141. __SYSCALL(59, sys_ni_syscall)
  142. #define __NR_umask 60
  143. __SYSCALL(__NR_umask, sys_umask)
  144. #define __NR_chroot 61
  145. __SYSCALL(__NR_chroot, sys_chroot)
  146. #define __NR_ustat 62
  147. __SYSCALL(__NR_ustat, compat_sys_ustat)
  148. #define __NR_dup2 63
  149. __SYSCALL(__NR_dup2, sys_dup2)
  150. #define __NR_getppid 64
  151. __SYSCALL(__NR_getppid, sys_getppid)
  152. #define __NR_getpgrp 65
  153. __SYSCALL(__NR_getpgrp, sys_getpgrp)
  154. #define __NR_setsid 66
  155. __SYSCALL(__NR_setsid, sys_setsid)
  156. #define __NR_sigaction 67
  157. __SYSCALL(__NR_sigaction, compat_sys_sigaction)
  158. /* 68 was sys_sgetmask */
  159. __SYSCALL(68, sys_ni_syscall)
  160. /* 69 was sys_ssetmask */
  161. __SYSCALL(69, sys_ni_syscall)
  162. #define __NR_setreuid 70
  163. __SYSCALL(__NR_setreuid, sys_setreuid16)
  164. #define __NR_setregid 71
  165. __SYSCALL(__NR_setregid, sys_setregid16)
  166. #define __NR_sigsuspend 72
  167. __SYSCALL(__NR_sigsuspend, sys_sigsuspend)
  168. #define __NR_sigpending 73
  169. __SYSCALL(__NR_sigpending, compat_sys_sigpending)
  170. #define __NR_sethostname 74
  171. __SYSCALL(__NR_sethostname, sys_sethostname)
  172. #define __NR_setrlimit 75
  173. __SYSCALL(__NR_setrlimit, compat_sys_setrlimit)
  174. /* 76 was compat_sys_getrlimit */
  175. __SYSCALL(76, sys_ni_syscall)
  176. #define __NR_getrusage 77
  177. __SYSCALL(__NR_getrusage, compat_sys_getrusage)
  178. #define __NR_gettimeofday 78
  179. __SYSCALL(__NR_gettimeofday, compat_sys_gettimeofday)
  180. #define __NR_settimeofday 79
  181. __SYSCALL(__NR_settimeofday, compat_sys_settimeofday)
  182. #define __NR_getgroups 80
  183. __SYSCALL(__NR_getgroups, sys_getgroups16)
  184. #define __NR_setgroups 81
  185. __SYSCALL(__NR_setgroups, sys_setgroups16)
  186. /* 82 was compat_sys_select */
  187. __SYSCALL(82, sys_ni_syscall)
  188. #define __NR_symlink 83
  189. __SYSCALL(__NR_symlink, sys_symlink)
  190. /* 84 was sys_lstat */
  191. __SYSCALL(84, sys_ni_syscall)
  192. #define __NR_readlink 85
  193. __SYSCALL(__NR_readlink, sys_readlink)
  194. #define __NR_uselib 86
  195. __SYSCALL(__NR_uselib, sys_uselib)
  196. #define __NR_swapon 87
  197. __SYSCALL(__NR_swapon, sys_swapon)
  198. #define __NR_reboot 88
  199. __SYSCALL(__NR_reboot, sys_reboot)
  200. /* 89 was sys_readdir */
  201. __SYSCALL(89, sys_ni_syscall)
  202. /* 90 was sys_mmap */
  203. __SYSCALL(90, sys_ni_syscall)
  204. #define __NR_munmap 91
  205. __SYSCALL(__NR_munmap, sys_munmap)
  206. #define __NR_truncate 92
  207. __SYSCALL(__NR_truncate, compat_sys_truncate)
  208. #define __NR_ftruncate 93
  209. __SYSCALL(__NR_ftruncate, compat_sys_ftruncate)
  210. #define __NR_fchmod 94
  211. __SYSCALL(__NR_fchmod, sys_fchmod)
  212. #define __NR_fchown 95
  213. __SYSCALL(__NR_fchown, sys_fchown16)
  214. #define __NR_getpriority 96
  215. __SYSCALL(__NR_getpriority, sys_getpriority)
  216. #define __NR_setpriority 97
  217. __SYSCALL(__NR_setpriority, sys_setpriority)
  218. /* 98 was sys_profil */
  219. __SYSCALL(98, sys_ni_syscall)
  220. #define __NR_statfs 99
  221. __SYSCALL(__NR_statfs, compat_sys_statfs)
  222. #define __NR_fstatfs 100
  223. __SYSCALL(__NR_fstatfs, compat_sys_fstatfs)
  224. /* 101 was sys_ioperm */
  225. __SYSCALL(101, sys_ni_syscall)
  226. /* 102 was sys_socketcall */
  227. __SYSCALL(102, sys_ni_syscall)
  228. #define __NR_syslog 103
  229. __SYSCALL(__NR_syslog, sys_syslog)
  230. #define __NR_setitimer 104
  231. __SYSCALL(__NR_setitimer, compat_sys_setitimer)
  232. #define __NR_getitimer 105
  233. __SYSCALL(__NR_getitimer, compat_sys_getitimer)
  234. #define __NR_stat 106
  235. __SYSCALL(__NR_stat, compat_sys_newstat)
  236. #define __NR_lstat 107
  237. __SYSCALL(__NR_lstat, compat_sys_newlstat)
  238. #define __NR_fstat 108
  239. __SYSCALL(__NR_fstat, compat_sys_newfstat)
  240. /* 109 was sys_uname */
  241. __SYSCALL(109, sys_ni_syscall)
  242. /* 110 was sys_iopl */
  243. __SYSCALL(110, sys_ni_syscall)
  244. #define __NR_vhangup 111
  245. __SYSCALL(__NR_vhangup, sys_vhangup)
  246. /* 112 was sys_idle */
  247. __SYSCALL(112, sys_ni_syscall)
  248. /* 113 was sys_syscall */
  249. __SYSCALL(113, sys_ni_syscall)
  250. #define __NR_wait4 114
  251. __SYSCALL(__NR_wait4, compat_sys_wait4)
  252. #define __NR_swapoff 115
  253. __SYSCALL(__NR_swapoff, sys_swapoff)
  254. #define __NR_sysinfo 116
  255. __SYSCALL(__NR_sysinfo, compat_sys_sysinfo)
  256. /* 117 was sys_ipc */
  257. __SYSCALL(117, sys_ni_syscall)
  258. #define __NR_fsync 118
  259. __SYSCALL(__NR_fsync, sys_fsync)
  260. #define __NR_sigreturn 119
  261. __SYSCALL(__NR_sigreturn, compat_sys_sigreturn_wrapper)
  262. #define __NR_clone 120
  263. __SYSCALL(__NR_clone, sys_clone)
  264. #define __NR_setdomainname 121
  265. __SYSCALL(__NR_setdomainname, sys_setdomainname)
  266. #define __NR_uname 122
  267. __SYSCALL(__NR_uname, sys_newuname)
  268. /* 123 was sys_modify_ldt */
  269. __SYSCALL(123, sys_ni_syscall)
  270. #define __NR_adjtimex 124
  271. __SYSCALL(__NR_adjtimex, compat_sys_adjtimex)
  272. #define __NR_mprotect 125
  273. __SYSCALL(__NR_mprotect, sys_mprotect)
  274. #define __NR_sigprocmask 126
  275. __SYSCALL(__NR_sigprocmask, compat_sys_sigprocmask)
  276. /* 127 was sys_create_module */
  277. __SYSCALL(127, sys_ni_syscall)
  278. #define __NR_init_module 128
  279. __SYSCALL(__NR_init_module, sys_init_module)
  280. #define __NR_delete_module 129
  281. __SYSCALL(__NR_delete_module, sys_delete_module)
  282. /* 130 was sys_get_kernel_syms */
  283. __SYSCALL(130, sys_ni_syscall)
  284. #define __NR_quotactl 131
  285. __SYSCALL(__NR_quotactl, sys_quotactl)
  286. #define __NR_getpgid 132
  287. __SYSCALL(__NR_getpgid, sys_getpgid)
  288. #define __NR_fchdir 133
  289. __SYSCALL(__NR_fchdir, sys_fchdir)
  290. #define __NR_bdflush 134
  291. __SYSCALL(__NR_bdflush, sys_bdflush)
  292. #define __NR_sysfs 135
  293. __SYSCALL(__NR_sysfs, sys_sysfs)
  294. #define __NR_personality 136
  295. __SYSCALL(__NR_personality, sys_personality)
  296. /* 137 was sys_afs_syscall */
  297. __SYSCALL(137, sys_ni_syscall)
  298. #define __NR_setfsuid 138
  299. __SYSCALL(__NR_setfsuid, sys_setfsuid16)
  300. #define __NR_setfsgid 139
  301. __SYSCALL(__NR_setfsgid, sys_setfsgid16)
  302. #define __NR__llseek 140
  303. __SYSCALL(__NR__llseek, sys_llseek)
  304. #define __NR_getdents 141
  305. __SYSCALL(__NR_getdents, compat_sys_getdents)
  306. #define __NR__newselect 142
  307. __SYSCALL(__NR__newselect, compat_sys_select)
  308. #define __NR_flock 143
  309. __SYSCALL(__NR_flock, sys_flock)
  310. #define __NR_msync 144
  311. __SYSCALL(__NR_msync, sys_msync)
  312. #define __NR_readv 145
  313. __SYSCALL(__NR_readv, compat_sys_readv)
  314. #define __NR_writev 146
  315. __SYSCALL(__NR_writev, compat_sys_writev)
  316. #define __NR_getsid 147
  317. __SYSCALL(__NR_getsid, sys_getsid)
  318. #define __NR_fdatasync 148
  319. __SYSCALL(__NR_fdatasync, sys_fdatasync)
  320. #define __NR__sysctl 149
  321. __SYSCALL(__NR__sysctl, compat_sys_sysctl)
  322. #define __NR_mlock 150
  323. __SYSCALL(__NR_mlock, sys_mlock)
  324. #define __NR_munlock 151
  325. __SYSCALL(__NR_munlock, sys_munlock)
  326. #define __NR_mlockall 152
  327. __SYSCALL(__NR_mlockall, sys_mlockall)
  328. #define __NR_munlockall 153
  329. __SYSCALL(__NR_munlockall, sys_munlockall)
  330. #define __NR_sched_setparam 154
  331. __SYSCALL(__NR_sched_setparam, sys_sched_setparam)
  332. #define __NR_sched_getparam 155
  333. __SYSCALL(__NR_sched_getparam, sys_sched_getparam)
  334. #define __NR_sched_setscheduler 156
  335. __SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler)
  336. #define __NR_sched_getscheduler 157
  337. __SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler)
  338. #define __NR_sched_yield 158
  339. __SYSCALL(__NR_sched_yield, sys_sched_yield)
  340. #define __NR_sched_get_priority_max 159
  341. __SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max)
  342. #define __NR_sched_get_priority_min 160
  343. __SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min)
  344. #define __NR_sched_rr_get_interval 161
  345. __SYSCALL(__NR_sched_rr_get_interval, compat_sys_sched_rr_get_interval)
  346. #define __NR_nanosleep 162
  347. __SYSCALL(__NR_nanosleep, compat_sys_nanosleep)
  348. #define __NR_mremap 163
  349. __SYSCALL(__NR_mremap, sys_mremap)
  350. #define __NR_setresuid 164
  351. __SYSCALL(__NR_setresuid, sys_setresuid16)
  352. #define __NR_getresuid 165
  353. __SYSCALL(__NR_getresuid, sys_getresuid16)
  354. /* 166 was sys_vm86 */
  355. __SYSCALL(166, sys_ni_syscall)
  356. /* 167 was sys_query_module */
  357. __SYSCALL(167, sys_ni_syscall)
  358. #define __NR_poll 168
  359. __SYSCALL(__NR_poll, sys_poll)
  360. #define __NR_nfsservctl 169
  361. __SYSCALL(__NR_nfsservctl, sys_ni_syscall)
  362. #define __NR_setresgid 170
  363. __SYSCALL(__NR_setresgid, sys_setresgid16)
  364. #define __NR_getresgid 171
  365. __SYSCALL(__NR_getresgid, sys_getresgid16)
  366. #define __NR_prctl 172
  367. __SYSCALL(__NR_prctl, sys_prctl)
  368. #define __NR_rt_sigreturn 173
  369. __SYSCALL(__NR_rt_sigreturn, compat_sys_rt_sigreturn_wrapper)
  370. #define __NR_rt_sigaction 174
  371. __SYSCALL(__NR_rt_sigaction, compat_sys_rt_sigaction)
  372. #define __NR_rt_sigprocmask 175
  373. __SYSCALL(__NR_rt_sigprocmask, compat_sys_rt_sigprocmask)
  374. #define __NR_rt_sigpending 176
  375. __SYSCALL(__NR_rt_sigpending, compat_sys_rt_sigpending)
  376. #define __NR_rt_sigtimedwait 177
  377. __SYSCALL(__NR_rt_sigtimedwait, compat_sys_rt_sigtimedwait)
  378. #define __NR_rt_sigqueueinfo 178
  379. __SYSCALL(__NR_rt_sigqueueinfo, compat_sys_rt_sigqueueinfo)
  380. #define __NR_rt_sigsuspend 179
  381. __SYSCALL(__NR_rt_sigsuspend, compat_sys_rt_sigsuspend)
  382. #define __NR_pread64 180
  383. __SYSCALL(__NR_pread64, compat_sys_pread64_wrapper)
  384. #define __NR_pwrite64 181
  385. __SYSCALL(__NR_pwrite64, compat_sys_pwrite64_wrapper)
  386. #define __NR_chown 182
  387. __SYSCALL(__NR_chown, sys_chown16)
  388. #define __NR_getcwd 183
  389. __SYSCALL(__NR_getcwd, sys_getcwd)
  390. #define __NR_capget 184
  391. __SYSCALL(__NR_capget, sys_capget)
  392. #define __NR_capset 185
  393. __SYSCALL(__NR_capset, sys_capset)
  394. #define __NR_sigaltstack 186
  395. __SYSCALL(__NR_sigaltstack, compat_sys_sigaltstack)
  396. #define __NR_sendfile 187
  397. __SYSCALL(__NR_sendfile, compat_sys_sendfile)
  398. /* 188 reserved */
  399. __SYSCALL(188, sys_ni_syscall)
  400. /* 189 reserved */
  401. __SYSCALL(189, sys_ni_syscall)
  402. #define __NR_vfork 190
  403. __SYSCALL(__NR_vfork, sys_vfork)
  404. #define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
  405. __SYSCALL(__NR_ugetrlimit, compat_sys_getrlimit) /* SuS compliant getrlimit */
  406. #define __NR_mmap2 192
  407. __SYSCALL(__NR_mmap2, compat_sys_mmap2_wrapper)
  408. #define __NR_truncate64 193
  409. __SYSCALL(__NR_truncate64, compat_sys_truncate64_wrapper)
  410. #define __NR_ftruncate64 194
  411. __SYSCALL(__NR_ftruncate64, compat_sys_ftruncate64_wrapper)
  412. #define __NR_stat64 195
  413. __SYSCALL(__NR_stat64, sys_stat64)
  414. #define __NR_lstat64 196
  415. __SYSCALL(__NR_lstat64, sys_lstat64)
  416. #define __NR_fstat64 197
  417. __SYSCALL(__NR_fstat64, sys_fstat64)
  418. #define __NR_lchown32 198
  419. __SYSCALL(__NR_lchown32, sys_lchown)
  420. #define __NR_getuid32 199
  421. __SYSCALL(__NR_getuid32, sys_getuid)
  422. #define __NR_getgid32 200
  423. __SYSCALL(__NR_getgid32, sys_getgid)
  424. #define __NR_geteuid32 201
  425. __SYSCALL(__NR_geteuid32, sys_geteuid)
  426. #define __NR_getegid32 202
  427. __SYSCALL(__NR_getegid32, sys_getegid)
  428. #define __NR_setreuid32 203
  429. __SYSCALL(__NR_setreuid32, sys_setreuid)
  430. #define __NR_setregid32 204
  431. __SYSCALL(__NR_setregid32, sys_setregid)
  432. #define __NR_getgroups32 205
  433. __SYSCALL(__NR_getgroups32, sys_getgroups)
  434. #define __NR_setgroups32 206
  435. __SYSCALL(__NR_setgroups32, sys_setgroups)
  436. #define __NR_fchown32 207
  437. __SYSCALL(__NR_fchown32, sys_fchown)
  438. #define __NR_setresuid32 208
  439. __SYSCALL(__NR_setresuid32, sys_setresuid)
  440. #define __NR_getresuid32 209
  441. __SYSCALL(__NR_getresuid32, sys_getresuid)
  442. #define __NR_setresgid32 210
  443. __SYSCALL(__NR_setresgid32, sys_setresgid)
  444. #define __NR_getresgid32 211
  445. __SYSCALL(__NR_getresgid32, sys_getresgid)
  446. #define __NR_chown32 212
  447. __SYSCALL(__NR_chown32, sys_chown)
  448. #define __NR_setuid32 213
  449. __SYSCALL(__NR_setuid32, sys_setuid)
  450. #define __NR_setgid32 214
  451. __SYSCALL(__NR_setgid32, sys_setgid)
  452. #define __NR_setfsuid32 215
  453. __SYSCALL(__NR_setfsuid32, sys_setfsuid)
  454. #define __NR_setfsgid32 216
  455. __SYSCALL(__NR_setfsgid32, sys_setfsgid)
  456. #define __NR_getdents64 217
  457. __SYSCALL(__NR_getdents64, compat_sys_getdents64)
  458. #define __NR_pivot_root 218
  459. __SYSCALL(__NR_pivot_root, sys_pivot_root)
  460. #define __NR_mincore 219
  461. __SYSCALL(__NR_mincore, sys_mincore)
  462. #define __NR_madvise 220
  463. __SYSCALL(__NR_madvise, sys_madvise)
  464. #define __NR_fcntl64 221
  465. __SYSCALL(__NR_fcntl64, compat_sys_fcntl64)
  466. /* 222 for tux */
  467. __SYSCALL(222, sys_ni_syscall)
  468. /* 223 is unused */
  469. __SYSCALL(223, sys_ni_syscall)
  470. #define __NR_gettid 224
  471. __SYSCALL(__NR_gettid, sys_gettid)
  472. #define __NR_readahead 225
  473. __SYSCALL(__NR_readahead, compat_sys_readahead_wrapper)
  474. #define __NR_setxattr 226
  475. __SYSCALL(__NR_setxattr, sys_setxattr)
  476. #define __NR_lsetxattr 227
  477. __SYSCALL(__NR_lsetxattr, sys_lsetxattr)
  478. #define __NR_fsetxattr 228
  479. __SYSCALL(__NR_fsetxattr, sys_fsetxattr)
  480. #define __NR_getxattr 229
  481. __SYSCALL(__NR_getxattr, sys_getxattr)
  482. #define __NR_lgetxattr 230
  483. __SYSCALL(__NR_lgetxattr, sys_lgetxattr)
  484. #define __NR_fgetxattr 231
  485. __SYSCALL(__NR_fgetxattr, sys_fgetxattr)
  486. #define __NR_listxattr 232
  487. __SYSCALL(__NR_listxattr, sys_listxattr)
  488. #define __NR_llistxattr 233
  489. __SYSCALL(__NR_llistxattr, sys_llistxattr)
  490. #define __NR_flistxattr 234
  491. __SYSCALL(__NR_flistxattr, sys_flistxattr)
  492. #define __NR_removexattr 235
  493. __SYSCALL(__NR_removexattr, sys_removexattr)
  494. #define __NR_lremovexattr 236
  495. __SYSCALL(__NR_lremovexattr, sys_lremovexattr)
  496. #define __NR_fremovexattr 237
  497. __SYSCALL(__NR_fremovexattr, sys_fremovexattr)
  498. #define __NR_tkill 238
  499. __SYSCALL(__NR_tkill, sys_tkill)
  500. #define __NR_sendfile64 239
  501. __SYSCALL(__NR_sendfile64, sys_sendfile64)
  502. #define __NR_futex 240
  503. __SYSCALL(__NR_futex, compat_sys_futex)
  504. #define __NR_sched_setaffinity 241
  505. __SYSCALL(__NR_sched_setaffinity, compat_sys_sched_setaffinity)
  506. #define __NR_sched_getaffinity 242
  507. __SYSCALL(__NR_sched_getaffinity, compat_sys_sched_getaffinity)
  508. #define __NR_io_setup 243
  509. __SYSCALL(__NR_io_setup, compat_sys_io_setup)
  510. #define __NR_io_destroy 244
  511. __SYSCALL(__NR_io_destroy, sys_io_destroy)
  512. #define __NR_io_getevents 245
  513. __SYSCALL(__NR_io_getevents, compat_sys_io_getevents)
  514. #define __NR_io_submit 246
  515. __SYSCALL(__NR_io_submit, compat_sys_io_submit)
  516. #define __NR_io_cancel 247
  517. __SYSCALL(__NR_io_cancel, sys_io_cancel)
  518. #define __NR_exit_group 248
  519. __SYSCALL(__NR_exit_group, sys_exit_group)
  520. #define __NR_lookup_dcookie 249
  521. __SYSCALL(__NR_lookup_dcookie, compat_sys_lookup_dcookie)
  522. #define __NR_epoll_create 250
  523. __SYSCALL(__NR_epoll_create, sys_epoll_create)
  524. #define __NR_epoll_ctl 251
  525. __SYSCALL(__NR_epoll_ctl, sys_epoll_ctl)
  526. #define __NR_epoll_wait 252
  527. __SYSCALL(__NR_epoll_wait, sys_epoll_wait)
  528. #define __NR_remap_file_pages 253
  529. __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages)
  530. /* 254 for set_thread_area */
  531. __SYSCALL(254, sys_ni_syscall)
  532. /* 255 for get_thread_area */
  533. __SYSCALL(255, sys_ni_syscall)
  534. #define __NR_set_tid_address 256
  535. __SYSCALL(__NR_set_tid_address, sys_set_tid_address)
  536. #define __NR_timer_create 257
  537. __SYSCALL(__NR_timer_create, compat_sys_timer_create)
  538. #define __NR_timer_settime 258
  539. __SYSCALL(__NR_timer_settime, compat_sys_timer_settime)
  540. #define __NR_timer_gettime 259
  541. __SYSCALL(__NR_timer_gettime, compat_sys_timer_gettime)
  542. #define __NR_timer_getoverrun 260
  543. __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun)
  544. #define __NR_timer_delete 261
  545. __SYSCALL(__NR_timer_delete, sys_timer_delete)
  546. #define __NR_clock_settime 262
  547. __SYSCALL(__NR_clock_settime, compat_sys_clock_settime)
  548. #define __NR_clock_gettime 263
  549. __SYSCALL(__NR_clock_gettime, compat_sys_clock_gettime)
  550. #define __NR_clock_getres 264
  551. __SYSCALL(__NR_clock_getres, compat_sys_clock_getres)
  552. #define __NR_clock_nanosleep 265
  553. __SYSCALL(__NR_clock_nanosleep, compat_sys_clock_nanosleep)
  554. #define __NR_statfs64 266
  555. __SYSCALL(__NR_statfs64, compat_sys_statfs64_wrapper)
  556. #define __NR_fstatfs64 267
  557. __SYSCALL(__NR_fstatfs64, compat_sys_fstatfs64_wrapper)
  558. #define __NR_tgkill 268
  559. __SYSCALL(__NR_tgkill, sys_tgkill)
  560. #define __NR_utimes 269
  561. __SYSCALL(__NR_utimes, compat_sys_utimes)
  562. #define __NR_arm_fadvise64_64 270
  563. __SYSCALL(__NR_arm_fadvise64_64, compat_sys_fadvise64_64_wrapper)
  564. #define __NR_pciconfig_iobase 271
  565. __SYSCALL(__NR_pciconfig_iobase, sys_pciconfig_iobase)
  566. #define __NR_pciconfig_read 272
  567. __SYSCALL(__NR_pciconfig_read, sys_pciconfig_read)
  568. #define __NR_pciconfig_write 273
  569. __SYSCALL(__NR_pciconfig_write, sys_pciconfig_write)
  570. #define __NR_mq_open 274
  571. __SYSCALL(__NR_mq_open, compat_sys_mq_open)
  572. #define __NR_mq_unlink 275
  573. __SYSCALL(__NR_mq_unlink, sys_mq_unlink)
  574. #define __NR_mq_timedsend 276
  575. __SYSCALL(__NR_mq_timedsend, compat_sys_mq_timedsend)
  576. #define __NR_mq_timedreceive 277
  577. __SYSCALL(__NR_mq_timedreceive, compat_sys_mq_timedreceive)
  578. #define __NR_mq_notify 278
  579. __SYSCALL(__NR_mq_notify, compat_sys_mq_notify)
  580. #define __NR_mq_getsetattr 279
  581. __SYSCALL(__NR_mq_getsetattr, compat_sys_mq_getsetattr)
  582. #define __NR_waitid 280
  583. __SYSCALL(__NR_waitid, compat_sys_waitid)
  584. #define __NR_socket 281
  585. __SYSCALL(__NR_socket, sys_socket)
  586. #define __NR_bind 282
  587. __SYSCALL(__NR_bind, sys_bind)
  588. #define __NR_connect 283
  589. __SYSCALL(__NR_connect, sys_connect)
  590. #define __NR_listen 284
  591. __SYSCALL(__NR_listen, sys_listen)
  592. #define __NR_accept 285
  593. __SYSCALL(__NR_accept, sys_accept)
  594. #define __NR_getsockname 286
  595. __SYSCALL(__NR_getsockname, sys_getsockname)
  596. #define __NR_getpeername 287
  597. __SYSCALL(__NR_getpeername, sys_getpeername)
  598. #define __NR_socketpair 288
  599. __SYSCALL(__NR_socketpair, sys_socketpair)
  600. #define __NR_send 289
  601. __SYSCALL(__NR_send, sys_send)
  602. #define __NR_sendto 290
  603. __SYSCALL(__NR_sendto, sys_sendto)
  604. #define __NR_recv 291
  605. __SYSCALL(__NR_recv, compat_sys_recv)
  606. #define __NR_recvfrom 292
  607. __SYSCALL(__NR_recvfrom, compat_sys_recvfrom)
  608. #define __NR_shutdown 293
  609. __SYSCALL(__NR_shutdown, sys_shutdown)
  610. #define __NR_setsockopt 294
  611. __SYSCALL(__NR_setsockopt, compat_sys_setsockopt)
  612. #define __NR_getsockopt 295
  613. __SYSCALL(__NR_getsockopt, compat_sys_getsockopt)
  614. #define __NR_sendmsg 296
  615. __SYSCALL(__NR_sendmsg, compat_sys_sendmsg)
  616. #define __NR_recvmsg 297
  617. __SYSCALL(__NR_recvmsg, compat_sys_recvmsg)
  618. #define __NR_semop 298
  619. __SYSCALL(__NR_semop, sys_semop)
  620. #define __NR_semget 299
  621. __SYSCALL(__NR_semget, sys_semget)
  622. #define __NR_semctl 300
  623. __SYSCALL(__NR_semctl, compat_sys_semctl)
  624. #define __NR_msgsnd 301
  625. __SYSCALL(__NR_msgsnd, compat_sys_msgsnd)
  626. #define __NR_msgrcv 302
  627. __SYSCALL(__NR_msgrcv, compat_sys_msgrcv)
  628. #define __NR_msgget 303
  629. __SYSCALL(__NR_msgget, sys_msgget)
  630. #define __NR_msgctl 304
  631. __SYSCALL(__NR_msgctl, compat_sys_msgctl)
  632. #define __NR_shmat 305
  633. __SYSCALL(__NR_shmat, compat_sys_shmat)
  634. #define __NR_shmdt 306
  635. __SYSCALL(__NR_shmdt, sys_shmdt)
  636. #define __NR_shmget 307
  637. __SYSCALL(__NR_shmget, sys_shmget)
  638. #define __NR_shmctl 308
  639. __SYSCALL(__NR_shmctl, compat_sys_shmctl)
  640. #define __NR_add_key 309
  641. __SYSCALL(__NR_add_key, sys_add_key)
  642. #define __NR_request_key 310
  643. __SYSCALL(__NR_request_key, sys_request_key)
  644. #define __NR_keyctl 311
  645. __SYSCALL(__NR_keyctl, compat_sys_keyctl)
  646. #define __NR_semtimedop 312
  647. __SYSCALL(__NR_semtimedop, compat_sys_semtimedop)
  648. #define __NR_vserver 313
  649. __SYSCALL(__NR_vserver, sys_ni_syscall)
  650. #define __NR_ioprio_set 314
  651. __SYSCALL(__NR_ioprio_set, sys_ioprio_set)
  652. #define __NR_ioprio_get 315
  653. __SYSCALL(__NR_ioprio_get, sys_ioprio_get)
  654. #define __NR_inotify_init 316
  655. __SYSCALL(__NR_inotify_init, sys_inotify_init)
  656. #define __NR_inotify_add_watch 317
  657. __SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch)
  658. #define __NR_inotify_rm_watch 318
  659. __SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
  660. #define __NR_mbind 319
  661. __SYSCALL(__NR_mbind, compat_sys_mbind)
  662. #define __NR_get_mempolicy 320
  663. __SYSCALL(__NR_get_mempolicy, compat_sys_get_mempolicy)
  664. #define __NR_set_mempolicy 321
  665. __SYSCALL(__NR_set_mempolicy, compat_sys_set_mempolicy)
  666. #define __NR_openat 322
  667. __SYSCALL(__NR_openat, compat_sys_openat)
  668. #define __NR_mkdirat 323
  669. __SYSCALL(__NR_mkdirat, sys_mkdirat)
  670. #define __NR_mknodat 324
  671. __SYSCALL(__NR_mknodat, sys_mknodat)
  672. #define __NR_fchownat 325
  673. __SYSCALL(__NR_fchownat, sys_fchownat)
  674. #define __NR_futimesat 326
  675. __SYSCALL(__NR_futimesat, compat_sys_futimesat)
  676. #define __NR_fstatat64 327
  677. __SYSCALL(__NR_fstatat64, sys_fstatat64)
  678. #define __NR_unlinkat 328
  679. __SYSCALL(__NR_unlinkat, sys_unlinkat)
  680. #define __NR_renameat 329
  681. __SYSCALL(__NR_renameat, sys_renameat)
  682. #define __NR_linkat 330
  683. __SYSCALL(__NR_linkat, sys_linkat)
  684. #define __NR_symlinkat 331
  685. __SYSCALL(__NR_symlinkat, sys_symlinkat)
  686. #define __NR_readlinkat 332
  687. __SYSCALL(__NR_readlinkat, sys_readlinkat)
  688. #define __NR_fchmodat 333
  689. __SYSCALL(__NR_fchmodat, sys_fchmodat)
  690. #define __NR_faccessat 334
  691. __SYSCALL(__NR_faccessat, sys_faccessat)
  692. #define __NR_pselect6 335
  693. __SYSCALL(__NR_pselect6, compat_sys_pselect6)
  694. #define __NR_ppoll 336
  695. __SYSCALL(__NR_ppoll, compat_sys_ppoll)
  696. #define __NR_unshare 337
  697. __SYSCALL(__NR_unshare, sys_unshare)
  698. #define __NR_set_robust_list 338
  699. __SYSCALL(__NR_set_robust_list, compat_sys_set_robust_list)
  700. #define __NR_get_robust_list 339
  701. __SYSCALL(__NR_get_robust_list, compat_sys_get_robust_list)
  702. #define __NR_splice 340
  703. __SYSCALL(__NR_splice, sys_splice)
  704. #define __NR_sync_file_range2 341
  705. __SYSCALL(__NR_sync_file_range2, compat_sys_sync_file_range2_wrapper)
  706. #define __NR_tee 342
  707. __SYSCALL(__NR_tee, sys_tee)
  708. #define __NR_vmsplice 343
  709. __SYSCALL(__NR_vmsplice, compat_sys_vmsplice)
  710. #define __NR_move_pages 344
  711. __SYSCALL(__NR_move_pages, compat_sys_move_pages)
  712. #define __NR_getcpu 345
  713. __SYSCALL(__NR_getcpu, sys_getcpu)
  714. #define __NR_epoll_pwait 346
  715. __SYSCALL(__NR_epoll_pwait, compat_sys_epoll_pwait)
  716. #define __NR_kexec_load 347
  717. __SYSCALL(__NR_kexec_load, compat_sys_kexec_load)
  718. #define __NR_utimensat 348
  719. __SYSCALL(__NR_utimensat, compat_sys_utimensat)
  720. #define __NR_signalfd 349
  721. __SYSCALL(__NR_signalfd, compat_sys_signalfd)
  722. #define __NR_timerfd_create 350
  723. __SYSCALL(__NR_timerfd_create, sys_timerfd_create)
  724. #define __NR_eventfd 351
  725. __SYSCALL(__NR_eventfd, sys_eventfd)
  726. #define __NR_fallocate 352
  727. __SYSCALL(__NR_fallocate, compat_sys_fallocate_wrapper)
  728. #define __NR_timerfd_settime 353
  729. __SYSCALL(__NR_timerfd_settime, compat_sys_timerfd_settime)
  730. #define __NR_timerfd_gettime 354
  731. __SYSCALL(__NR_timerfd_gettime, compat_sys_timerfd_gettime)
  732. #define __NR_signalfd4 355
  733. __SYSCALL(__NR_signalfd4, compat_sys_signalfd4)
  734. #define __NR_eventfd2 356
  735. __SYSCALL(__NR_eventfd2, sys_eventfd2)
  736. #define __NR_epoll_create1 357
  737. __SYSCALL(__NR_epoll_create1, sys_epoll_create1)
  738. #define __NR_dup3 358
  739. __SYSCALL(__NR_dup3, sys_dup3)
  740. #define __NR_pipe2 359
  741. __SYSCALL(__NR_pipe2, sys_pipe2)
  742. #define __NR_inotify_init1 360
  743. __SYSCALL(__NR_inotify_init1, sys_inotify_init1)
  744. #define __NR_preadv 361
  745. __SYSCALL(__NR_preadv, compat_sys_preadv)
  746. #define __NR_pwritev 362
  747. __SYSCALL(__NR_pwritev, compat_sys_pwritev)
  748. #define __NR_rt_tgsigqueueinfo 363
  749. __SYSCALL(__NR_rt_tgsigqueueinfo, compat_sys_rt_tgsigqueueinfo)
  750. #define __NR_perf_event_open 364
  751. __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
  752. #define __NR_recvmmsg 365
  753. __SYSCALL(__NR_recvmmsg, compat_sys_recvmmsg)
  754. #define __NR_accept4 366
  755. __SYSCALL(__NR_accept4, sys_accept4)
  756. #define __NR_fanotify_init 367
  757. __SYSCALL(__NR_fanotify_init, sys_fanotify_init)
  758. #define __NR_fanotify_mark 368
  759. __SYSCALL(__NR_fanotify_mark, compat_sys_fanotify_mark)
  760. #define __NR_prlimit64 369
  761. __SYSCALL(__NR_prlimit64, sys_prlimit64)
  762. #define __NR_name_to_handle_at 370
  763. __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at)
  764. #define __NR_open_by_handle_at 371
  765. __SYSCALL(__NR_open_by_handle_at, compat_sys_open_by_handle_at)
  766. #define __NR_clock_adjtime 372
  767. __SYSCALL(__NR_clock_adjtime, compat_sys_clock_adjtime)
  768. #define __NR_syncfs 373
  769. __SYSCALL(__NR_syncfs, sys_syncfs)
  770. #define __NR_sendmmsg 374
  771. __SYSCALL(__NR_sendmmsg, compat_sys_sendmmsg)
  772. #define __NR_setns 375
  773. __SYSCALL(__NR_setns, sys_setns)
  774. #define __NR_process_vm_readv 376
  775. __SYSCALL(__NR_process_vm_readv, compat_sys_process_vm_readv)
  776. #define __NR_process_vm_writev 377
  777. __SYSCALL(__NR_process_vm_writev, compat_sys_process_vm_writev)
  778. #define __NR_kcmp 378
  779. __SYSCALL(__NR_kcmp, sys_kcmp)
  780. #define __NR_finit_module 379
  781. __SYSCALL(__NR_finit_module, sys_finit_module)
  782. #define __NR_sched_setattr 380
  783. __SYSCALL(__NR_sched_setattr, sys_sched_setattr)
  784. #define __NR_sched_getattr 381
  785. __SYSCALL(__NR_sched_getattr, sys_sched_getattr)
  786. #define __NR_renameat2 382
  787. __SYSCALL(__NR_renameat2, sys_renameat2)
  788. #define __NR_seccomp 383
  789. __SYSCALL(__NR_seccomp, sys_seccomp)
  790. #define __NR_getrandom 384
  791. __SYSCALL(__NR_getrandom, sys_getrandom)
  792. #define __NR_memfd_create 385
  793. __SYSCALL(__NR_memfd_create, sys_memfd_create)
  794. #define __NR_bpf 386
  795. __SYSCALL(__NR_bpf, sys_bpf)
  796. #define __NR_execveat 387
  797. __SYSCALL(__NR_execveat, compat_sys_execveat)
  798. #define __NR_userfaultfd 388
  799. __SYSCALL(__NR_userfaultfd, sys_userfaultfd)
  800. #define __NR_membarrier 389
  801. __SYSCALL(__NR_membarrier, sys_membarrier)
  802. /*
  803. * Please add new compat syscalls above this comment and update
  804. * __NR_compat_syscalls in asm/unistd.h.
  805. */