arm_linux_syscalls.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Generated from the Linux kernel's calls.S.
  5. #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_
  6. #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_
  7. #if !defined(__arm__) || !defined(__ARM_EABI__)
  8. #error "Including header on wrong architecture"
  9. #endif
  10. #if !defined(__NR_SYSCALL_BASE)
  11. // On ARM EABI arch, __NR_SYSCALL_BASE is 0.
  12. #define __NR_SYSCALL_BASE 0
  13. #endif
  14. // This syscall list has holes, because ARM EABI makes some syscalls obsolete.
  15. #if !defined(__NR_restart_syscall)
  16. #define __NR_restart_syscall (__NR_SYSCALL_BASE+0)
  17. #endif
  18. #if !defined(__NR_exit)
  19. #define __NR_exit (__NR_SYSCALL_BASE+1)
  20. #endif
  21. #if !defined(__NR_fork)
  22. #define __NR_fork (__NR_SYSCALL_BASE+2)
  23. #endif
  24. #if !defined(__NR_read)
  25. #define __NR_read (__NR_SYSCALL_BASE+3)
  26. #endif
  27. #if !defined(__NR_write)
  28. #define __NR_write (__NR_SYSCALL_BASE+4)
  29. #endif
  30. #if !defined(__NR_open)
  31. #define __NR_open (__NR_SYSCALL_BASE+5)
  32. #endif
  33. #if !defined(__NR_close)
  34. #define __NR_close (__NR_SYSCALL_BASE+6)
  35. #endif
  36. #if !defined(__NR_creat)
  37. #define __NR_creat (__NR_SYSCALL_BASE+8)
  38. #endif
  39. #if !defined(__NR_link)
  40. #define __NR_link (__NR_SYSCALL_BASE+9)
  41. #endif
  42. #if !defined(__NR_unlink)
  43. #define __NR_unlink (__NR_SYSCALL_BASE+10)
  44. #endif
  45. #if !defined(__NR_execve)
  46. #define __NR_execve (__NR_SYSCALL_BASE+11)
  47. #endif
  48. #if !defined(__NR_chdir)
  49. #define __NR_chdir (__NR_SYSCALL_BASE+12)
  50. #endif
  51. #if !defined(__NR_mknod)
  52. #define __NR_mknod (__NR_SYSCALL_BASE+14)
  53. #endif
  54. #if !defined(__NR_chmod)
  55. #define __NR_chmod (__NR_SYSCALL_BASE+15)
  56. #endif
  57. #if !defined(__NR_lchown)
  58. #define __NR_lchown (__NR_SYSCALL_BASE+16)
  59. #endif
  60. #if !defined(__NR_lseek)
  61. #define __NR_lseek (__NR_SYSCALL_BASE+19)
  62. #endif
  63. #if !defined(__NR_getpid)
  64. #define __NR_getpid (__NR_SYSCALL_BASE+20)
  65. #endif
  66. #if !defined(__NR_mount)
  67. #define __NR_mount (__NR_SYSCALL_BASE+21)
  68. #endif
  69. #if !defined(__NR_setuid)
  70. #define __NR_setuid (__NR_SYSCALL_BASE+23)
  71. #endif
  72. #if !defined(__NR_getuid)
  73. #define __NR_getuid (__NR_SYSCALL_BASE+24)
  74. #endif
  75. #if !defined(__NR_ptrace)
  76. #define __NR_ptrace (__NR_SYSCALL_BASE+26)
  77. #endif
  78. #if !defined(__NR_pause)
  79. #define __NR_pause (__NR_SYSCALL_BASE+29)
  80. #endif
  81. #if !defined(__NR_access)
  82. #define __NR_access (__NR_SYSCALL_BASE+33)
  83. #endif
  84. #if !defined(__NR_nice)
  85. #define __NR_nice (__NR_SYSCALL_BASE+34)
  86. #endif
  87. #if !defined(__NR_sync)
  88. #define __NR_sync (__NR_SYSCALL_BASE+36)
  89. #endif
  90. #if !defined(__NR_kill)
  91. #define __NR_kill (__NR_SYSCALL_BASE+37)
  92. #endif
  93. #if !defined(__NR_rename)
  94. #define __NR_rename (__NR_SYSCALL_BASE+38)
  95. #endif
  96. #if !defined(__NR_mkdir)
  97. #define __NR_mkdir (__NR_SYSCALL_BASE+39)
  98. #endif
  99. #if !defined(__NR_rmdir)
  100. #define __NR_rmdir (__NR_SYSCALL_BASE+40)
  101. #endif
  102. #if !defined(__NR_dup)
  103. #define __NR_dup (__NR_SYSCALL_BASE+41)
  104. #endif
  105. #if !defined(__NR_pipe)
  106. #define __NR_pipe (__NR_SYSCALL_BASE+42)
  107. #endif
  108. #if !defined(__NR_times)
  109. #define __NR_times (__NR_SYSCALL_BASE+43)
  110. #endif
  111. #if !defined(__NR_brk)
  112. #define __NR_brk (__NR_SYSCALL_BASE+45)
  113. #endif
  114. #if !defined(__NR_setgid)
  115. #define __NR_setgid (__NR_SYSCALL_BASE+46)
  116. #endif
  117. #if !defined(__NR_getgid)
  118. #define __NR_getgid (__NR_SYSCALL_BASE+47)
  119. #endif
  120. #if !defined(__NR_geteuid)
  121. #define __NR_geteuid (__NR_SYSCALL_BASE+49)
  122. #endif
  123. #if !defined(__NR_getegid)
  124. #define __NR_getegid (__NR_SYSCALL_BASE+50)
  125. #endif
  126. #if !defined(__NR_acct)
  127. #define __NR_acct (__NR_SYSCALL_BASE+51)
  128. #endif
  129. #if !defined(__NR_umount2)
  130. #define __NR_umount2 (__NR_SYSCALL_BASE+52)
  131. #endif
  132. #if !defined(__NR_ioctl)
  133. #define __NR_ioctl (__NR_SYSCALL_BASE+54)
  134. #endif
  135. #if !defined(__NR_fcntl)
  136. #define __NR_fcntl (__NR_SYSCALL_BASE+55)
  137. #endif
  138. #if !defined(__NR_setpgid)
  139. #define __NR_setpgid (__NR_SYSCALL_BASE+57)
  140. #endif
  141. #if !defined(__NR_umask)
  142. #define __NR_umask (__NR_SYSCALL_BASE+60)
  143. #endif
  144. #if !defined(__NR_chroot)
  145. #define __NR_chroot (__NR_SYSCALL_BASE+61)
  146. #endif
  147. #if !defined(__NR_ustat)
  148. #define __NR_ustat (__NR_SYSCALL_BASE+62)
  149. #endif
  150. #if !defined(__NR_dup2)
  151. #define __NR_dup2 (__NR_SYSCALL_BASE+63)
  152. #endif
  153. #if !defined(__NR_getppid)
  154. #define __NR_getppid (__NR_SYSCALL_BASE+64)
  155. #endif
  156. #if !defined(__NR_getpgrp)
  157. #define __NR_getpgrp (__NR_SYSCALL_BASE+65)
  158. #endif
  159. #if !defined(__NR_setsid)
  160. #define __NR_setsid (__NR_SYSCALL_BASE+66)
  161. #endif
  162. #if !defined(__NR_sigaction)
  163. #define __NR_sigaction (__NR_SYSCALL_BASE+67)
  164. #endif
  165. #if !defined(__NR_setreuid)
  166. #define __NR_setreuid (__NR_SYSCALL_BASE+70)
  167. #endif
  168. #if !defined(__NR_setregid)
  169. #define __NR_setregid (__NR_SYSCALL_BASE+71)
  170. #endif
  171. #if !defined(__NR_sigsuspend)
  172. #define __NR_sigsuspend (__NR_SYSCALL_BASE+72)
  173. #endif
  174. #if !defined(__NR_sigpending)
  175. #define __NR_sigpending (__NR_SYSCALL_BASE+73)
  176. #endif
  177. #if !defined(__NR_sethostname)
  178. #define __NR_sethostname (__NR_SYSCALL_BASE+74)
  179. #endif
  180. #if !defined(__NR_setrlimit)
  181. #define __NR_setrlimit (__NR_SYSCALL_BASE+75)
  182. #endif
  183. #if !defined(__NR_getrusage)
  184. #define __NR_getrusage (__NR_SYSCALL_BASE+77)
  185. #endif
  186. #if !defined(__NR_gettimeofday)
  187. #define __NR_gettimeofday (__NR_SYSCALL_BASE+78)
  188. #endif
  189. #if !defined(__NR_settimeofday)
  190. #define __NR_settimeofday (__NR_SYSCALL_BASE+79)
  191. #endif
  192. #if !defined(__NR_getgroups)
  193. #define __NR_getgroups (__NR_SYSCALL_BASE+80)
  194. #endif
  195. #if !defined(__NR_setgroups)
  196. #define __NR_setgroups (__NR_SYSCALL_BASE+81)
  197. #endif
  198. #if !defined(__NR_symlink)
  199. #define __NR_symlink (__NR_SYSCALL_BASE+83)
  200. #endif
  201. #if !defined(__NR_readlink)
  202. #define __NR_readlink (__NR_SYSCALL_BASE+85)
  203. #endif
  204. #if !defined(__NR_uselib)
  205. #define __NR_uselib (__NR_SYSCALL_BASE+86)
  206. #endif
  207. #if !defined(__NR_swapon)
  208. #define __NR_swapon (__NR_SYSCALL_BASE+87)
  209. #endif
  210. #if !defined(__NR_reboot)
  211. #define __NR_reboot (__NR_SYSCALL_BASE+88)
  212. #endif
  213. #if !defined(__NR_munmap)
  214. #define __NR_munmap (__NR_SYSCALL_BASE+91)
  215. #endif
  216. #if !defined(__NR_truncate)
  217. #define __NR_truncate (__NR_SYSCALL_BASE+92)
  218. #endif
  219. #if !defined(__NR_ftruncate)
  220. #define __NR_ftruncate (__NR_SYSCALL_BASE+93)
  221. #endif
  222. #if !defined(__NR_fchmod)
  223. #define __NR_fchmod (__NR_SYSCALL_BASE+94)
  224. #endif
  225. #if !defined(__NR_fchown)
  226. #define __NR_fchown (__NR_SYSCALL_BASE+95)
  227. #endif
  228. #if !defined(__NR_getpriority)
  229. #define __NR_getpriority (__NR_SYSCALL_BASE+96)
  230. #endif
  231. #if !defined(__NR_setpriority)
  232. #define __NR_setpriority (__NR_SYSCALL_BASE+97)
  233. #endif
  234. #if !defined(__NR_statfs)
  235. #define __NR_statfs (__NR_SYSCALL_BASE+99)
  236. #endif
  237. #if !defined(__NR_fstatfs)
  238. #define __NR_fstatfs (__NR_SYSCALL_BASE+100)
  239. #endif
  240. #if !defined(__NR_syslog)
  241. #define __NR_syslog (__NR_SYSCALL_BASE+103)
  242. #endif
  243. #if !defined(__NR_setitimer)
  244. #define __NR_setitimer (__NR_SYSCALL_BASE+104)
  245. #endif
  246. #if !defined(__NR_getitimer)
  247. #define __NR_getitimer (__NR_SYSCALL_BASE+105)
  248. #endif
  249. #if !defined(__NR_stat)
  250. #define __NR_stat (__NR_SYSCALL_BASE+106)
  251. #endif
  252. #if !defined(__NR_lstat)
  253. #define __NR_lstat (__NR_SYSCALL_BASE+107)
  254. #endif
  255. #if !defined(__NR_fstat)
  256. #define __NR_fstat (__NR_SYSCALL_BASE+108)
  257. #endif
  258. #if !defined(__NR_vhangup)
  259. #define __NR_vhangup (__NR_SYSCALL_BASE+111)
  260. #endif
  261. #if !defined(__NR_wait4)
  262. #define __NR_wait4 (__NR_SYSCALL_BASE+114)
  263. #endif
  264. #if !defined(__NR_swapoff)
  265. #define __NR_swapoff (__NR_SYSCALL_BASE+115)
  266. #endif
  267. #if !defined(__NR_sysinfo)
  268. #define __NR_sysinfo (__NR_SYSCALL_BASE+116)
  269. #endif
  270. #if !defined(__NR_fsync)
  271. #define __NR_fsync (__NR_SYSCALL_BASE+118)
  272. #endif
  273. #if !defined(__NR_sigreturn)
  274. #define __NR_sigreturn (__NR_SYSCALL_BASE+119)
  275. #endif
  276. #if !defined(__NR_clone)
  277. #define __NR_clone (__NR_SYSCALL_BASE+120)
  278. #endif
  279. #if !defined(__NR_setdomainname)
  280. #define __NR_setdomainname (__NR_SYSCALL_BASE+121)
  281. #endif
  282. #if !defined(__NR_uname)
  283. #define __NR_uname (__NR_SYSCALL_BASE+122)
  284. #endif
  285. #if !defined(__NR_adjtimex)
  286. #define __NR_adjtimex (__NR_SYSCALL_BASE+124)
  287. #endif
  288. #if !defined(__NR_mprotect)
  289. #define __NR_mprotect (__NR_SYSCALL_BASE+125)
  290. #endif
  291. #if !defined(__NR_sigprocmask)
  292. #define __NR_sigprocmask (__NR_SYSCALL_BASE+126)
  293. #endif
  294. #if !defined(__NR_init_module)
  295. #define __NR_init_module (__NR_SYSCALL_BASE+128)
  296. #endif
  297. #if !defined(__NR_delete_module)
  298. #define __NR_delete_module (__NR_SYSCALL_BASE+129)
  299. #endif
  300. #if !defined(__NR_quotactl)
  301. #define __NR_quotactl (__NR_SYSCALL_BASE+131)
  302. #endif
  303. #if !defined(__NR_getpgid)
  304. #define __NR_getpgid (__NR_SYSCALL_BASE+132)
  305. #endif
  306. #if !defined(__NR_fchdir)
  307. #define __NR_fchdir (__NR_SYSCALL_BASE+133)
  308. #endif
  309. #if !defined(__NR_bdflush)
  310. #define __NR_bdflush (__NR_SYSCALL_BASE+134)
  311. #endif
  312. #if !defined(__NR_sysfs)
  313. #define __NR_sysfs (__NR_SYSCALL_BASE+135)
  314. #endif
  315. #if !defined(__NR_personality)
  316. #define __NR_personality (__NR_SYSCALL_BASE+136)
  317. #endif
  318. #if !defined(__NR_setfsuid)
  319. #define __NR_setfsuid (__NR_SYSCALL_BASE+138)
  320. #endif
  321. #if !defined(__NR_setfsgid)
  322. #define __NR_setfsgid (__NR_SYSCALL_BASE+139)
  323. #endif
  324. #if !defined(__NR__llseek)
  325. #define __NR__llseek (__NR_SYSCALL_BASE+140)
  326. #endif
  327. #if !defined(__NR_getdents)
  328. #define __NR_getdents (__NR_SYSCALL_BASE+141)
  329. #endif
  330. #if !defined(__NR__newselect)
  331. #define __NR__newselect (__NR_SYSCALL_BASE+142)
  332. #endif
  333. #if !defined(__NR_flock)
  334. #define __NR_flock (__NR_SYSCALL_BASE+143)
  335. #endif
  336. #if !defined(__NR_msync)
  337. #define __NR_msync (__NR_SYSCALL_BASE+144)
  338. #endif
  339. #if !defined(__NR_readv)
  340. #define __NR_readv (__NR_SYSCALL_BASE+145)
  341. #endif
  342. #if !defined(__NR_writev)
  343. #define __NR_writev (__NR_SYSCALL_BASE+146)
  344. #endif
  345. #if !defined(__NR_getsid)
  346. #define __NR_getsid (__NR_SYSCALL_BASE+147)
  347. #endif
  348. #if !defined(__NR_fdatasync)
  349. #define __NR_fdatasync (__NR_SYSCALL_BASE+148)
  350. #endif
  351. #if !defined(__NR__sysctl)
  352. #define __NR__sysctl (__NR_SYSCALL_BASE+149)
  353. #endif
  354. #if !defined(__NR_mlock)
  355. #define __NR_mlock (__NR_SYSCALL_BASE+150)
  356. #endif
  357. #if !defined(__NR_munlock)
  358. #define __NR_munlock (__NR_SYSCALL_BASE+151)
  359. #endif
  360. #if !defined(__NR_mlockall)
  361. #define __NR_mlockall (__NR_SYSCALL_BASE+152)
  362. #endif
  363. #if !defined(__NR_munlockall)
  364. #define __NR_munlockall (__NR_SYSCALL_BASE+153)
  365. #endif
  366. #if !defined(__NR_sched_setparam)
  367. #define __NR_sched_setparam (__NR_SYSCALL_BASE+154)
  368. #endif
  369. #if !defined(__NR_sched_getparam)
  370. #define __NR_sched_getparam (__NR_SYSCALL_BASE+155)
  371. #endif
  372. #if !defined(__NR_sched_setscheduler)
  373. #define __NR_sched_setscheduler (__NR_SYSCALL_BASE+156)
  374. #endif
  375. #if !defined(__NR_sched_getscheduler)
  376. #define __NR_sched_getscheduler (__NR_SYSCALL_BASE+157)
  377. #endif
  378. #if !defined(__NR_sched_yield)
  379. #define __NR_sched_yield (__NR_SYSCALL_BASE+158)
  380. #endif
  381. #if !defined(__NR_sched_get_priority_max)
  382. #define __NR_sched_get_priority_max (__NR_SYSCALL_BASE+159)
  383. #endif
  384. #if !defined(__NR_sched_get_priority_min)
  385. #define __NR_sched_get_priority_min (__NR_SYSCALL_BASE+160)
  386. #endif
  387. #if !defined(__NR_sched_rr_get_interval)
  388. #define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE+161)
  389. #endif
  390. #if !defined(__NR_nanosleep)
  391. #define __NR_nanosleep (__NR_SYSCALL_BASE+162)
  392. #endif
  393. #if !defined(__NR_mremap)
  394. #define __NR_mremap (__NR_SYSCALL_BASE+163)
  395. #endif
  396. #if !defined(__NR_setresuid)
  397. #define __NR_setresuid (__NR_SYSCALL_BASE+164)
  398. #endif
  399. #if !defined(__NR_getresuid)
  400. #define __NR_getresuid (__NR_SYSCALL_BASE+165)
  401. #endif
  402. #if !defined(__NR_poll)
  403. #define __NR_poll (__NR_SYSCALL_BASE+168)
  404. #endif
  405. #if !defined(__NR_nfsservctl)
  406. #define __NR_nfsservctl (__NR_SYSCALL_BASE+169)
  407. #endif
  408. #if !defined(__NR_setresgid)
  409. #define __NR_setresgid (__NR_SYSCALL_BASE+170)
  410. #endif
  411. #if !defined(__NR_getresgid)
  412. #define __NR_getresgid (__NR_SYSCALL_BASE+171)
  413. #endif
  414. #if !defined(__NR_prctl)
  415. #define __NR_prctl (__NR_SYSCALL_BASE+172)
  416. #endif
  417. #if !defined(__NR_rt_sigreturn)
  418. #define __NR_rt_sigreturn (__NR_SYSCALL_BASE+173)
  419. #endif
  420. #if !defined(__NR_rt_sigaction)
  421. #define __NR_rt_sigaction (__NR_SYSCALL_BASE+174)
  422. #endif
  423. #if !defined(__NR_rt_sigprocmask)
  424. #define __NR_rt_sigprocmask (__NR_SYSCALL_BASE+175)
  425. #endif
  426. #if !defined(__NR_rt_sigpending)
  427. #define __NR_rt_sigpending (__NR_SYSCALL_BASE+176)
  428. #endif
  429. #if !defined(__NR_rt_sigtimedwait)
  430. #define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE+177)
  431. #endif
  432. #if !defined(__NR_rt_sigqueueinfo)
  433. #define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE+178)
  434. #endif
  435. #if !defined(__NR_rt_sigsuspend)
  436. #define __NR_rt_sigsuspend (__NR_SYSCALL_BASE+179)
  437. #endif
  438. #if !defined(__NR_pread64)
  439. #define __NR_pread64 (__NR_SYSCALL_BASE+180)
  440. #endif
  441. #if !defined(__NR_pwrite64)
  442. #define __NR_pwrite64 (__NR_SYSCALL_BASE+181)
  443. #endif
  444. #if !defined(__NR_chown)
  445. #define __NR_chown (__NR_SYSCALL_BASE+182)
  446. #endif
  447. #if !defined(__NR_getcwd)
  448. #define __NR_getcwd (__NR_SYSCALL_BASE+183)
  449. #endif
  450. #if !defined(__NR_capget)
  451. #define __NR_capget (__NR_SYSCALL_BASE+184)
  452. #endif
  453. #if !defined(__NR_capset)
  454. #define __NR_capset (__NR_SYSCALL_BASE+185)
  455. #endif
  456. #if !defined(__NR_sigaltstack)
  457. #define __NR_sigaltstack (__NR_SYSCALL_BASE+186)
  458. #endif
  459. #if !defined(__NR_sendfile)
  460. #define __NR_sendfile (__NR_SYSCALL_BASE+187)
  461. #endif
  462. #if !defined(__NR_vfork)
  463. #define __NR_vfork (__NR_SYSCALL_BASE+190)
  464. #endif
  465. #if !defined(__NR_ugetrlimit)
  466. #define __NR_ugetrlimit (__NR_SYSCALL_BASE+191)
  467. #endif
  468. #if !defined(__NR_mmap2)
  469. #define __NR_mmap2 (__NR_SYSCALL_BASE+192)
  470. #endif
  471. #if !defined(__NR_truncate64)
  472. #define __NR_truncate64 (__NR_SYSCALL_BASE+193)
  473. #endif
  474. #if !defined(__NR_ftruncate64)
  475. #define __NR_ftruncate64 (__NR_SYSCALL_BASE+194)
  476. #endif
  477. #if !defined(__NR_stat64)
  478. #define __NR_stat64 (__NR_SYSCALL_BASE+195)
  479. #endif
  480. #if !defined(__NR_lstat64)
  481. #define __NR_lstat64 (__NR_SYSCALL_BASE+196)
  482. #endif
  483. #if !defined(__NR_fstat64)
  484. #define __NR_fstat64 (__NR_SYSCALL_BASE+197)
  485. #endif
  486. #if !defined(__NR_lchown32)
  487. #define __NR_lchown32 (__NR_SYSCALL_BASE+198)
  488. #endif
  489. #if !defined(__NR_getuid32)
  490. #define __NR_getuid32 (__NR_SYSCALL_BASE+199)
  491. #endif
  492. #if !defined(__NR_getgid32)
  493. #define __NR_getgid32 (__NR_SYSCALL_BASE+200)
  494. #endif
  495. #if !defined(__NR_geteuid32)
  496. #define __NR_geteuid32 (__NR_SYSCALL_BASE+201)
  497. #endif
  498. #if !defined(__NR_getegid32)
  499. #define __NR_getegid32 (__NR_SYSCALL_BASE+202)
  500. #endif
  501. #if !defined(__NR_setreuid32)
  502. #define __NR_setreuid32 (__NR_SYSCALL_BASE+203)
  503. #endif
  504. #if !defined(__NR_setregid32)
  505. #define __NR_setregid32 (__NR_SYSCALL_BASE+204)
  506. #endif
  507. #if !defined(__NR_getgroups32)
  508. #define __NR_getgroups32 (__NR_SYSCALL_BASE+205)
  509. #endif
  510. #if !defined(__NR_setgroups32)
  511. #define __NR_setgroups32 (__NR_SYSCALL_BASE+206)
  512. #endif
  513. #if !defined(__NR_fchown32)
  514. #define __NR_fchown32 (__NR_SYSCALL_BASE+207)
  515. #endif
  516. #if !defined(__NR_setresuid32)
  517. #define __NR_setresuid32 (__NR_SYSCALL_BASE+208)
  518. #endif
  519. #if !defined(__NR_getresuid32)
  520. #define __NR_getresuid32 (__NR_SYSCALL_BASE+209)
  521. #endif
  522. #if !defined(__NR_setresgid32)
  523. #define __NR_setresgid32 (__NR_SYSCALL_BASE+210)
  524. #endif
  525. #if !defined(__NR_getresgid32)
  526. #define __NR_getresgid32 (__NR_SYSCALL_BASE+211)
  527. #endif
  528. #if !defined(__NR_chown32)
  529. #define __NR_chown32 (__NR_SYSCALL_BASE+212)
  530. #endif
  531. #if !defined(__NR_setuid32)
  532. #define __NR_setuid32 (__NR_SYSCALL_BASE+213)
  533. #endif
  534. #if !defined(__NR_setgid32)
  535. #define __NR_setgid32 (__NR_SYSCALL_BASE+214)
  536. #endif
  537. #if !defined(__NR_setfsuid32)
  538. #define __NR_setfsuid32 (__NR_SYSCALL_BASE+215)
  539. #endif
  540. #if !defined(__NR_setfsgid32)
  541. #define __NR_setfsgid32 (__NR_SYSCALL_BASE+216)
  542. #endif
  543. #if !defined(__NR_getdents64)
  544. #define __NR_getdents64 (__NR_SYSCALL_BASE+217)
  545. #endif
  546. #if !defined(__NR_pivot_root)
  547. #define __NR_pivot_root (__NR_SYSCALL_BASE+218)
  548. #endif
  549. #if !defined(__NR_mincore)
  550. #define __NR_mincore (__NR_SYSCALL_BASE+219)
  551. #endif
  552. #if !defined(__NR_madvise)
  553. #define __NR_madvise (__NR_SYSCALL_BASE+220)
  554. #endif
  555. #if !defined(__NR_fcntl64)
  556. #define __NR_fcntl64 (__NR_SYSCALL_BASE+221)
  557. #endif
  558. #if !defined(__NR_gettid)
  559. #define __NR_gettid (__NR_SYSCALL_BASE+224)
  560. #endif
  561. #if !defined(__NR_readahead)
  562. #define __NR_readahead (__NR_SYSCALL_BASE+225)
  563. #endif
  564. #if !defined(__NR_setxattr)
  565. #define __NR_setxattr (__NR_SYSCALL_BASE+226)
  566. #endif
  567. #if !defined(__NR_lsetxattr)
  568. #define __NR_lsetxattr (__NR_SYSCALL_BASE+227)
  569. #endif
  570. #if !defined(__NR_fsetxattr)
  571. #define __NR_fsetxattr (__NR_SYSCALL_BASE+228)
  572. #endif
  573. #if !defined(__NR_getxattr)
  574. #define __NR_getxattr (__NR_SYSCALL_BASE+229)
  575. #endif
  576. #if !defined(__NR_lgetxattr)
  577. #define __NR_lgetxattr (__NR_SYSCALL_BASE+230)
  578. #endif
  579. #if !defined(__NR_fgetxattr)
  580. #define __NR_fgetxattr (__NR_SYSCALL_BASE+231)
  581. #endif
  582. #if !defined(__NR_listxattr)
  583. #define __NR_listxattr (__NR_SYSCALL_BASE+232)
  584. #endif
  585. #if !defined(__NR_llistxattr)
  586. #define __NR_llistxattr (__NR_SYSCALL_BASE+233)
  587. #endif
  588. #if !defined(__NR_flistxattr)
  589. #define __NR_flistxattr (__NR_SYSCALL_BASE+234)
  590. #endif
  591. #if !defined(__NR_removexattr)
  592. #define __NR_removexattr (__NR_SYSCALL_BASE+235)
  593. #endif
  594. #if !defined(__NR_lremovexattr)
  595. #define __NR_lremovexattr (__NR_SYSCALL_BASE+236)
  596. #endif
  597. #if !defined(__NR_fremovexattr)
  598. #define __NR_fremovexattr (__NR_SYSCALL_BASE+237)
  599. #endif
  600. #if !defined(__NR_tkill)
  601. #define __NR_tkill (__NR_SYSCALL_BASE+238)
  602. #endif
  603. #if !defined(__NR_sendfile64)
  604. #define __NR_sendfile64 (__NR_SYSCALL_BASE+239)
  605. #endif
  606. #if !defined(__NR_futex)
  607. #define __NR_futex (__NR_SYSCALL_BASE+240)
  608. #endif
  609. #if !defined(__NR_sched_setaffinity)
  610. #define __NR_sched_setaffinity (__NR_SYSCALL_BASE+241)
  611. #endif
  612. #if !defined(__NR_sched_getaffinity)
  613. #define __NR_sched_getaffinity (__NR_SYSCALL_BASE+242)
  614. #endif
  615. #if !defined(__NR_io_setup)
  616. #define __NR_io_setup (__NR_SYSCALL_BASE+243)
  617. #endif
  618. #if !defined(__NR_io_destroy)
  619. #define __NR_io_destroy (__NR_SYSCALL_BASE+244)
  620. #endif
  621. #if !defined(__NR_io_getevents)
  622. #define __NR_io_getevents (__NR_SYSCALL_BASE+245)
  623. #endif
  624. #if !defined(__NR_io_submit)
  625. #define __NR_io_submit (__NR_SYSCALL_BASE+246)
  626. #endif
  627. #if !defined(__NR_io_cancel)
  628. #define __NR_io_cancel (__NR_SYSCALL_BASE+247)
  629. #endif
  630. #if !defined(__NR_exit_group)
  631. #define __NR_exit_group (__NR_SYSCALL_BASE+248)
  632. #endif
  633. #if !defined(__NR_lookup_dcookie)
  634. #define __NR_lookup_dcookie (__NR_SYSCALL_BASE+249)
  635. #endif
  636. #if !defined(__NR_epoll_create)
  637. #define __NR_epoll_create (__NR_SYSCALL_BASE+250)
  638. #endif
  639. #if !defined(__NR_epoll_ctl)
  640. #define __NR_epoll_ctl (__NR_SYSCALL_BASE+251)
  641. #endif
  642. #if !defined(__NR_epoll_wait)
  643. #define __NR_epoll_wait (__NR_SYSCALL_BASE+252)
  644. #endif
  645. #if !defined(__NR_remap_file_pages)
  646. #define __NR_remap_file_pages (__NR_SYSCALL_BASE+253)
  647. #endif
  648. #if !defined(__NR_set_tid_address)
  649. #define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
  650. #endif
  651. #if !defined(__NR_timer_create)
  652. #define __NR_timer_create (__NR_SYSCALL_BASE+257)
  653. #endif
  654. #if !defined(__NR_timer_settime)
  655. #define __NR_timer_settime (__NR_SYSCALL_BASE+258)
  656. #endif
  657. #if !defined(__NR_timer_gettime)
  658. #define __NR_timer_gettime (__NR_SYSCALL_BASE+259)
  659. #endif
  660. #if !defined(__NR_timer_getoverrun)
  661. #define __NR_timer_getoverrun (__NR_SYSCALL_BASE+260)
  662. #endif
  663. #if !defined(__NR_timer_delete)
  664. #define __NR_timer_delete (__NR_SYSCALL_BASE+261)
  665. #endif
  666. #if !defined(__NR_clock_settime)
  667. #define __NR_clock_settime (__NR_SYSCALL_BASE+262)
  668. #endif
  669. #if !defined(__NR_clock_gettime)
  670. #define __NR_clock_gettime (__NR_SYSCALL_BASE+263)
  671. #endif
  672. #if !defined(__NR_clock_getres)
  673. #define __NR_clock_getres (__NR_SYSCALL_BASE+264)
  674. #endif
  675. #if !defined(__NR_clock_nanosleep)
  676. #define __NR_clock_nanosleep (__NR_SYSCALL_BASE+265)
  677. #endif
  678. #if !defined(__NR_statfs64)
  679. #define __NR_statfs64 (__NR_SYSCALL_BASE+266)
  680. #endif
  681. #if !defined(__NR_fstatfs64)
  682. #define __NR_fstatfs64 (__NR_SYSCALL_BASE+267)
  683. #endif
  684. #if !defined(__NR_tgkill)
  685. #define __NR_tgkill (__NR_SYSCALL_BASE+268)
  686. #endif
  687. #if !defined(__NR_utimes)
  688. #define __NR_utimes (__NR_SYSCALL_BASE+269)
  689. #endif
  690. #if !defined(__NR_arm_fadvise64_64)
  691. #define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE+270)
  692. #endif
  693. #if !defined(__NR_pciconfig_iobase)
  694. #define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271)
  695. #endif
  696. #if !defined(__NR_pciconfig_read)
  697. #define __NR_pciconfig_read (__NR_SYSCALL_BASE+272)
  698. #endif
  699. #if !defined(__NR_pciconfig_write)
  700. #define __NR_pciconfig_write (__NR_SYSCALL_BASE+273)
  701. #endif
  702. #if !defined(__NR_mq_open)
  703. #define __NR_mq_open (__NR_SYSCALL_BASE+274)
  704. #endif
  705. #if !defined(__NR_mq_unlink)
  706. #define __NR_mq_unlink (__NR_SYSCALL_BASE+275)
  707. #endif
  708. #if !defined(__NR_mq_timedsend)
  709. #define __NR_mq_timedsend (__NR_SYSCALL_BASE+276)
  710. #endif
  711. #if !defined(__NR_mq_timedreceive)
  712. #define __NR_mq_timedreceive (__NR_SYSCALL_BASE+277)
  713. #endif
  714. #if !defined(__NR_mq_notify)
  715. #define __NR_mq_notify (__NR_SYSCALL_BASE+278)
  716. #endif
  717. #if !defined(__NR_mq_getsetattr)
  718. #define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279)
  719. #endif
  720. #if !defined(__NR_waitid)
  721. #define __NR_waitid (__NR_SYSCALL_BASE+280)
  722. #endif
  723. #if !defined(__NR_socket)
  724. #define __NR_socket (__NR_SYSCALL_BASE+281)
  725. #endif
  726. #if !defined(__NR_bind)
  727. #define __NR_bind (__NR_SYSCALL_BASE+282)
  728. #endif
  729. #if !defined(__NR_connect)
  730. #define __NR_connect (__NR_SYSCALL_BASE+283)
  731. #endif
  732. #if !defined(__NR_listen)
  733. #define __NR_listen (__NR_SYSCALL_BASE+284)
  734. #endif
  735. #if !defined(__NR_accept)
  736. #define __NR_accept (__NR_SYSCALL_BASE+285)
  737. #endif
  738. #if !defined(__NR_getsockname)
  739. #define __NR_getsockname (__NR_SYSCALL_BASE+286)
  740. #endif
  741. #if !defined(__NR_getpeername)
  742. #define __NR_getpeername (__NR_SYSCALL_BASE+287)
  743. #endif
  744. #if !defined(__NR_socketpair)
  745. #define __NR_socketpair (__NR_SYSCALL_BASE+288)
  746. #endif
  747. #if !defined(__NR_send)
  748. #define __NR_send (__NR_SYSCALL_BASE+289)
  749. #endif
  750. #if !defined(__NR_sendto)
  751. #define __NR_sendto (__NR_SYSCALL_BASE+290)
  752. #endif
  753. #if !defined(__NR_recv)
  754. #define __NR_recv (__NR_SYSCALL_BASE+291)
  755. #endif
  756. #if !defined(__NR_recvfrom)
  757. #define __NR_recvfrom (__NR_SYSCALL_BASE+292)
  758. #endif
  759. #if !defined(__NR_shutdown)
  760. #define __NR_shutdown (__NR_SYSCALL_BASE+293)
  761. #endif
  762. #if !defined(__NR_setsockopt)
  763. #define __NR_setsockopt (__NR_SYSCALL_BASE+294)
  764. #endif
  765. #if !defined(__NR_getsockopt)
  766. #define __NR_getsockopt (__NR_SYSCALL_BASE+295)
  767. #endif
  768. #if !defined(__NR_sendmsg)
  769. #define __NR_sendmsg (__NR_SYSCALL_BASE+296)
  770. #endif
  771. #if !defined(__NR_recvmsg)
  772. #define __NR_recvmsg (__NR_SYSCALL_BASE+297)
  773. #endif
  774. #if !defined(__NR_semop)
  775. #define __NR_semop (__NR_SYSCALL_BASE+298)
  776. #endif
  777. #if !defined(__NR_semget)
  778. #define __NR_semget (__NR_SYSCALL_BASE+299)
  779. #endif
  780. #if !defined(__NR_semctl)
  781. #define __NR_semctl (__NR_SYSCALL_BASE+300)
  782. #endif
  783. #if !defined(__NR_msgsnd)
  784. #define __NR_msgsnd (__NR_SYSCALL_BASE+301)
  785. #endif
  786. #if !defined(__NR_msgrcv)
  787. #define __NR_msgrcv (__NR_SYSCALL_BASE+302)
  788. #endif
  789. #if !defined(__NR_msgget)
  790. #define __NR_msgget (__NR_SYSCALL_BASE+303)
  791. #endif
  792. #if !defined(__NR_msgctl)
  793. #define __NR_msgctl (__NR_SYSCALL_BASE+304)
  794. #endif
  795. #if !defined(__NR_shmat)
  796. #define __NR_shmat (__NR_SYSCALL_BASE+305)
  797. #endif
  798. #if !defined(__NR_shmdt)
  799. #define __NR_shmdt (__NR_SYSCALL_BASE+306)
  800. #endif
  801. #if !defined(__NR_shmget)
  802. #define __NR_shmget (__NR_SYSCALL_BASE+307)
  803. #endif
  804. #if !defined(__NR_shmctl)
  805. #define __NR_shmctl (__NR_SYSCALL_BASE+308)
  806. #endif
  807. #if !defined(__NR_add_key)
  808. #define __NR_add_key (__NR_SYSCALL_BASE+309)
  809. #endif
  810. #if !defined(__NR_request_key)
  811. #define __NR_request_key (__NR_SYSCALL_BASE+310)
  812. #endif
  813. #if !defined(__NR_keyctl)
  814. #define __NR_keyctl (__NR_SYSCALL_BASE+311)
  815. #endif
  816. #if !defined(__NR_semtimedop)
  817. #define __NR_semtimedop (__NR_SYSCALL_BASE+312)
  818. #endif
  819. #if !defined(__NR_vserver)
  820. #define __NR_vserver (__NR_SYSCALL_BASE+313)
  821. #endif
  822. #if !defined(__NR_ioprio_set)
  823. #define __NR_ioprio_set (__NR_SYSCALL_BASE+314)
  824. #endif
  825. #if !defined(__NR_ioprio_get)
  826. #define __NR_ioprio_get (__NR_SYSCALL_BASE+315)
  827. #endif
  828. #if !defined(__NR_inotify_init)
  829. #define __NR_inotify_init (__NR_SYSCALL_BASE+316)
  830. #endif
  831. #if !defined(__NR_inotify_add_watch)
  832. #define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317)
  833. #endif
  834. #if !defined(__NR_inotify_rm_watch)
  835. #define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)
  836. #endif
  837. #if !defined(__NR_mbind)
  838. #define __NR_mbind (__NR_SYSCALL_BASE+319)
  839. #endif
  840. #if !defined(__NR_get_mempolicy)
  841. #define __NR_get_mempolicy (__NR_SYSCALL_BASE+320)
  842. #endif
  843. #if !defined(__NR_set_mempolicy)
  844. #define __NR_set_mempolicy (__NR_SYSCALL_BASE+321)
  845. #endif
  846. #if !defined(__NR_openat)
  847. #define __NR_openat (__NR_SYSCALL_BASE+322)
  848. #endif
  849. #if !defined(__NR_mkdirat)
  850. #define __NR_mkdirat (__NR_SYSCALL_BASE+323)
  851. #endif
  852. #if !defined(__NR_mknodat)
  853. #define __NR_mknodat (__NR_SYSCALL_BASE+324)
  854. #endif
  855. #if !defined(__NR_fchownat)
  856. #define __NR_fchownat (__NR_SYSCALL_BASE+325)
  857. #endif
  858. #if !defined(__NR_futimesat)
  859. #define __NR_futimesat (__NR_SYSCALL_BASE+326)
  860. #endif
  861. #if !defined(__NR_fstatat64)
  862. #define __NR_fstatat64 (__NR_SYSCALL_BASE+327)
  863. #endif
  864. #if !defined(__NR_unlinkat)
  865. #define __NR_unlinkat (__NR_SYSCALL_BASE+328)
  866. #endif
  867. #if !defined(__NR_renameat)
  868. #define __NR_renameat (__NR_SYSCALL_BASE+329)
  869. #endif
  870. #if !defined(__NR_linkat)
  871. #define __NR_linkat (__NR_SYSCALL_BASE+330)
  872. #endif
  873. #if !defined(__NR_symlinkat)
  874. #define __NR_symlinkat (__NR_SYSCALL_BASE+331)
  875. #endif
  876. #if !defined(__NR_readlinkat)
  877. #define __NR_readlinkat (__NR_SYSCALL_BASE+332)
  878. #endif
  879. #if !defined(__NR_fchmodat)
  880. #define __NR_fchmodat (__NR_SYSCALL_BASE+333)
  881. #endif
  882. #if !defined(__NR_faccessat)
  883. #define __NR_faccessat (__NR_SYSCALL_BASE+334)
  884. #endif
  885. #if !defined(__NR_pselect6)
  886. #define __NR_pselect6 (__NR_SYSCALL_BASE+335)
  887. #endif
  888. #if !defined(__NR_ppoll)
  889. #define __NR_ppoll (__NR_SYSCALL_BASE+336)
  890. #endif
  891. #if !defined(__NR_unshare)
  892. #define __NR_unshare (__NR_SYSCALL_BASE+337)
  893. #endif
  894. #if !defined(__NR_set_robust_list)
  895. #define __NR_set_robust_list (__NR_SYSCALL_BASE+338)
  896. #endif
  897. #if !defined(__NR_get_robust_list)
  898. #define __NR_get_robust_list (__NR_SYSCALL_BASE+339)
  899. #endif
  900. #if !defined(__NR_splice)
  901. #define __NR_splice (__NR_SYSCALL_BASE+340)
  902. #endif
  903. #if !defined(__NR_arm_sync_file_range)
  904. #define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341)
  905. #endif
  906. #if !defined(__NR_sync_file_range2)
  907. #define __NR_sync_file_range2 (__NR_SYSCALL_BASE+341)
  908. #endif
  909. #if !defined(__NR_tee)
  910. #define __NR_tee (__NR_SYSCALL_BASE+342)
  911. #endif
  912. #if !defined(__NR_vmsplice)
  913. #define __NR_vmsplice (__NR_SYSCALL_BASE+343)
  914. #endif
  915. #if !defined(__NR_move_pages)
  916. #define __NR_move_pages (__NR_SYSCALL_BASE+344)
  917. #endif
  918. #if !defined(__NR_getcpu)
  919. #define __NR_getcpu (__NR_SYSCALL_BASE+345)
  920. #endif
  921. #if !defined(__NR_epoll_pwait)
  922. #define __NR_epoll_pwait (__NR_SYSCALL_BASE+346)
  923. #endif
  924. #if !defined(__NR_kexec_load)
  925. #define __NR_kexec_load (__NR_SYSCALL_BASE+347)
  926. #endif
  927. #if !defined(__NR_utimensat)
  928. #define __NR_utimensat (__NR_SYSCALL_BASE+348)
  929. #endif
  930. #if !defined(__NR_signalfd)
  931. #define __NR_signalfd (__NR_SYSCALL_BASE+349)
  932. #endif
  933. #if !defined(__NR_timerfd_create)
  934. #define __NR_timerfd_create (__NR_SYSCALL_BASE+350)
  935. #endif
  936. #if !defined(__NR_eventfd)
  937. #define __NR_eventfd (__NR_SYSCALL_BASE+351)
  938. #endif
  939. #if !defined(__NR_fallocate)
  940. #define __NR_fallocate (__NR_SYSCALL_BASE+352)
  941. #endif
  942. #if !defined(__NR_timerfd_settime)
  943. #define __NR_timerfd_settime (__NR_SYSCALL_BASE+353)
  944. #endif
  945. #if !defined(__NR_timerfd_gettime)
  946. #define __NR_timerfd_gettime (__NR_SYSCALL_BASE+354)
  947. #endif
  948. #if !defined(__NR_signalfd4)
  949. #define __NR_signalfd4 (__NR_SYSCALL_BASE+355)
  950. #endif
  951. #if !defined(__NR_eventfd2)
  952. #define __NR_eventfd2 (__NR_SYSCALL_BASE+356)
  953. #endif
  954. #if !defined(__NR_epoll_create1)
  955. #define __NR_epoll_create1 (__NR_SYSCALL_BASE+357)
  956. #endif
  957. #if !defined(__NR_dup3)
  958. #define __NR_dup3 (__NR_SYSCALL_BASE+358)
  959. #endif
  960. #if !defined(__NR_pipe2)
  961. #define __NR_pipe2 (__NR_SYSCALL_BASE+359)
  962. #endif
  963. #if !defined(__NR_inotify_init1)
  964. #define __NR_inotify_init1 (__NR_SYSCALL_BASE+360)
  965. #endif
  966. #if !defined(__NR_preadv)
  967. #define __NR_preadv (__NR_SYSCALL_BASE+361)
  968. #endif
  969. #if !defined(__NR_pwritev)
  970. #define __NR_pwritev (__NR_SYSCALL_BASE+362)
  971. #endif
  972. #if !defined(__NR_rt_tgsigqueueinfo)
  973. #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
  974. #endif
  975. #if !defined(__NR_perf_event_open)
  976. #define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
  977. #endif
  978. #if !defined(__NR_recvmmsg)
  979. #define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
  980. #endif
  981. #if !defined(__NR_accept4)
  982. #define __NR_accept4 (__NR_SYSCALL_BASE+366)
  983. #endif
  984. #if !defined(__NR_fanotify_init)
  985. #define __NR_fanotify_init (__NR_SYSCALL_BASE+367)
  986. #endif
  987. #if !defined(__NR_fanotify_mark)
  988. #define __NR_fanotify_mark (__NR_SYSCALL_BASE+368)
  989. #endif
  990. #if !defined(__NR_prlimit64)
  991. #define __NR_prlimit64 (__NR_SYSCALL_BASE+369)
  992. #endif
  993. #if !defined(__NR_name_to_handle_at)
  994. #define __NR_name_to_handle_at (__NR_SYSCALL_BASE+370)
  995. #endif
  996. #if !defined(__NR_open_by_handle_at)
  997. #define __NR_open_by_handle_at (__NR_SYSCALL_BASE+371)
  998. #endif
  999. #if !defined(__NR_clock_adjtime)
  1000. #define __NR_clock_adjtime (__NR_SYSCALL_BASE+372)
  1001. #endif
  1002. #if !defined(__NR_syncfs)
  1003. #define __NR_syncfs (__NR_SYSCALL_BASE+373)
  1004. #endif
  1005. #if !defined(__NR_sendmmsg)
  1006. #define __NR_sendmmsg (__NR_SYSCALL_BASE+374)
  1007. #endif
  1008. #if !defined(__NR_setns)
  1009. #define __NR_setns (__NR_SYSCALL_BASE+375)
  1010. #endif
  1011. #if !defined(__NR_process_vm_readv)
  1012. #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376)
  1013. #endif
  1014. #if !defined(__NR_process_vm_writev)
  1015. #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377)
  1016. #endif
  1017. #if !defined(__NR_kcmp)
  1018. #define __NR_kcmp (__NR_SYSCALL_BASE+378)
  1019. #endif
  1020. #if !defined(__NR_finit_module)
  1021. #define __NR_finit_module (__NR_SYSCALL_BASE+379)
  1022. #endif
  1023. #if !defined(__NR_sched_setattr)
  1024. #define __NR_sched_setattr (__NR_SYSCALL_BASE+380)
  1025. #endif
  1026. #if !defined(__NR_sched_getattr)
  1027. #define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
  1028. #endif
  1029. #if !defined(__NR_renameat2)
  1030. #define __NR_renameat2 (__NR_SYSCALL_BASE+382)
  1031. #endif
  1032. #if !defined(__NR_seccomp)
  1033. #define __NR_seccomp (__NR_SYSCALL_BASE+383)
  1034. #endif
  1035. #if !defined(__NR_getrandom)
  1036. #define __NR_getrandom (__NR_SYSCALL_BASE+384)
  1037. #endif
  1038. #if !defined(__NR_memfd_create)
  1039. #define __NR_memfd_create (__NR_SYSCALL_BASE+385)
  1040. #endif
  1041. #if !defined(__NR_bpf)
  1042. #define __NR_bpf (__NR_SYSCALL_BASE+386)
  1043. #endif
  1044. #if !defined(__NR_execveat)
  1045. #define __NR_execveat (__NR_SYSCALL_BASE+387)
  1046. #endif
  1047. #if !defined(__NR_userfaultfd)
  1048. #define __NR_userfaultfd (__NR_SYSCALL_BASE+388)
  1049. #endif
  1050. #if !defined(__NR_membarrier)
  1051. #define __NR_membarrier (__NR_SYSCALL_BASE+389)
  1052. #endif
  1053. #if !defined(__NR_mlock2)
  1054. #define __NR_mlock2 (__NR_SYSCALL_BASE+390)
  1055. #endif
  1056. #if !defined(__NR_copy_file_range)
  1057. #define __NR_copy_file_range (__NR_SYSCALL_BASE+391)
  1058. #endif
  1059. #if !defined(__NR_preadv2)
  1060. #define __NR_preadv2 (__NR_SYSCALL_BASE+392)
  1061. #endif
  1062. #if !defined(__NR_pwritev2)
  1063. #define __NR_pwritev2 (__NR_SYSCALL_BASE+393)
  1064. #endif
  1065. #if !defined(__NR_pkey_mprotect)
  1066. #define __NR_pkey_mprotect (__NR_SYSCALL_BASE+394)
  1067. #endif
  1068. #if !defined(__NR_pkey_alloc)
  1069. #define __NR_pkey_alloc (__NR_SYSCALL_BASE+395)
  1070. #endif
  1071. #if !defined(__NR_pkey_free)
  1072. #define __NR_pkey_free (__NR_SYSCALL_BASE+396)
  1073. #endif
  1074. #if !defined(__NR_statx)
  1075. #define __NR_statx (__NR_SYSCALL_BASE+397)
  1076. #endif
  1077. #if !defined(__NR_rseq)
  1078. #define __NR_rseq (__NR_SYSCALL_BASE+398)
  1079. #endif
  1080. #if !defined(__NR_io_pgetevents)
  1081. #define __NR_io_pgetevents (__NR_SYSCALL_BASE+399)
  1082. #endif
  1083. #if !defined(__NR_migrate_pages)
  1084. #define __NR_migrate_pages (__NR_SYSCALL_BASE + 400)
  1085. #endif
  1086. #if !defined(__NR_kexec_file_load)
  1087. #define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401)
  1088. #endif
  1089. #if !defined(__NR_clock_gettime64)
  1090. #define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403)
  1091. #endif
  1092. #if !defined(__NR_clock_settime64)
  1093. #define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404)
  1094. #endif
  1095. #if !defined(__NR_clock_adjtime64)
  1096. #define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405)
  1097. #endif
  1098. #if !defined(__NR_clock_getres_time64)
  1099. #define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406)
  1100. #endif
  1101. #if !defined(__NR_clock_nanosleep_time64)
  1102. #define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407)
  1103. #endif
  1104. #if !defined(__NR_timer_gettime64)
  1105. #define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408)
  1106. #endif
  1107. #if !defined(__NR_timer_settime64)
  1108. #define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409)
  1109. #endif
  1110. #if !defined(__NR_timerfd_gettime64)
  1111. #define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410)
  1112. #endif
  1113. #if !defined(__NR_timerfd_settime64)
  1114. #define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411)
  1115. #endif
  1116. #if !defined(__NR_utimensat_time64)
  1117. #define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412)
  1118. #endif
  1119. #if !defined(__NR_pselect6_time64)
  1120. #define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413)
  1121. #endif
  1122. #if !defined(__NR_ppoll_time64)
  1123. #define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414)
  1124. #endif
  1125. #if !defined(__NR_io_pgetevents_time64)
  1126. #define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416)
  1127. #endif
  1128. #if !defined(__NR_recvmmsg_time64)
  1129. #define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417)
  1130. #endif
  1131. #if !defined(__NR_mq_timedsend_time64)
  1132. #define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418)
  1133. #endif
  1134. #if !defined(__NR_mq_timedreceive_time64)
  1135. #define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419)
  1136. #endif
  1137. #if !defined(__NR_semtimedop_time64)
  1138. #define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420)
  1139. #endif
  1140. #if !defined(__NR_rt_sigtimedwait_time64)
  1141. #define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421)
  1142. #endif
  1143. #if !defined(__NR_futex_time64)
  1144. #define __NR_futex_time64 (__NR_SYSCALL_BASE + 422)
  1145. #endif
  1146. #if !defined(__NR_sched_rr_get_interval_time64)
  1147. #define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423)
  1148. #endif
  1149. #if !defined(__NR_pidfd_send_signal)
  1150. #define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424)
  1151. #endif
  1152. #if !defined(__NR_io_uring_setup)
  1153. #define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425)
  1154. #endif
  1155. #if !defined(__NR_io_uring_enter)
  1156. #define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426)
  1157. #endif
  1158. #if !defined(__NR_io_uring_register)
  1159. #define __NR_io_uring_register (__NR_SYSCALL_BASE + 427)
  1160. #endif
  1161. #if !defined(__NR_open_tree)
  1162. #define __NR_open_tree (__NR_SYSCALL_BASE + 428)
  1163. #endif
  1164. #if !defined(__NR_move_mount)
  1165. #define __NR_move_mount (__NR_SYSCALL_BASE + 429)
  1166. #endif
  1167. #if !defined(__NR_fsopen)
  1168. #define __NR_fsopen (__NR_SYSCALL_BASE + 430)
  1169. #endif
  1170. #if !defined(__NR_fsconfig)
  1171. #define __NR_fsconfig (__NR_SYSCALL_BASE + 431)
  1172. #endif
  1173. #if !defined(__NR_fsmount)
  1174. #define __NR_fsmount (__NR_SYSCALL_BASE + 432)
  1175. #endif
  1176. #if !defined(__NR_fspick)
  1177. #define __NR_fspick (__NR_SYSCALL_BASE + 433)
  1178. #endif
  1179. #if !defined(__NR_pidfd_open)
  1180. #define __NR_pidfd_open (__NR_SYSCALL_BASE + 434)
  1181. #endif
  1182. #if !defined(__NR_clone3)
  1183. #define __NR_clone3 (__NR_SYSCALL_BASE + 435)
  1184. #endif
  1185. #if !defined(__NR_close_range)
  1186. #define __NR_close_range (__NR_SYSCALL_BASE + 436)
  1187. #endif
  1188. #if !defined(__NR_openat2)
  1189. #define __NR_openat2 (__NR_SYSCALL_BASE + 437)
  1190. #endif
  1191. #if !defined(__NR_pidfd_getfd)
  1192. #define __NR_pidfd_getfd (__NR_SYSCALL_BASE + 438)
  1193. #endif
  1194. #if !defined(__NR_faccessat2)
  1195. #define __NR_faccessat2 (__NR_SYSCALL_BASE + 439)
  1196. #endif
  1197. #if !defined(__NR_process_madvise)
  1198. #define __NR_process_madvise (__NR_SYSCALL_BASE + 440)
  1199. #endif
  1200. #if !defined(__NR_epoll_pwait2)
  1201. #define __NR_epoll_pwait2 (__NR_SYSCALL_BASE + 441)
  1202. #endif
  1203. #if !defined(__NR_mount_setattr)
  1204. #define __NR_mount_setattr (__NR_SYSCALL_BASE + 442)
  1205. #endif
  1206. #if !defined(__NR_landlock_create_ruleset)
  1207. #define __NR_landlock_create_ruleset (__NR_SYSCALL_BASE + 444)
  1208. #endif
  1209. #if !defined(__NR_landlock_add_rule)
  1210. #define __NR_landlock_add_rule (__NR_SYSCALL_BASE + 445)
  1211. #endif
  1212. #if !defined(__NR_landlock_restrict_self)
  1213. #define __NR_landlock_restrict_self (__NR_SYSCALL_BASE + 446)
  1214. #endif
  1215. // ARM private syscalls.
  1216. #if !defined(__ARM_NR_BASE)
  1217. #define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0xF0000)
  1218. #endif
  1219. #if !defined(__ARM_NR_breakpoint)
  1220. #define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
  1221. #endif
  1222. #if !defined(__ARM_NR_cacheflush)
  1223. #define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
  1224. #endif
  1225. #if !defined(__ARM_NR_usr26)
  1226. #define __ARM_NR_usr26 (__ARM_NR_BASE+3)
  1227. #endif
  1228. #if !defined(__ARM_NR_usr32)
  1229. #define __ARM_NR_usr32 (__ARM_NR_BASE+4)
  1230. #endif
  1231. #if !defined(__ARM_NR_set_tls)
  1232. #define __ARM_NR_set_tls (__ARM_NR_BASE+5)
  1233. #endif
  1234. // ARM kernel private syscall.
  1235. #if !defined(__ARM_NR_cmpxchg)
  1236. #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
  1237. #endif
  1238. #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_