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.
5 // Generated from the Linux kernel's calls.S.
6 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_
7 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_
9 #if !defined(__arm__) || !defined(__ARM_EABI__)
10 #error "Including header on wrong architecture"
13 #if !defined(__NR_SYSCALL_BASE)
14 // On ARM EABI arch, __NR_SYSCALL_BASE is 0.
15 #define __NR_SYSCALL_BASE 0
18 // This syscall list has holes, because ARM EABI makes some syscalls obsolete.
20 #if !defined(__NR_restart_syscall)
21 #define __NR_restart_syscall (__NR_SYSCALL_BASE+0)
24 #if !defined(__NR_exit)
25 #define __NR_exit (__NR_SYSCALL_BASE+1)
28 #if !defined(__NR_fork)
29 #define __NR_fork (__NR_SYSCALL_BASE+2)
32 #if !defined(__NR_read)
33 #define __NR_read (__NR_SYSCALL_BASE+3)
36 #if !defined(__NR_write)
37 #define __NR_write (__NR_SYSCALL_BASE+4)
40 #if !defined(__NR_open)
41 #define __NR_open (__NR_SYSCALL_BASE+5)
44 #if !defined(__NR_close)
45 #define __NR_close (__NR_SYSCALL_BASE+6)
48 #if !defined(__NR_creat)
49 #define __NR_creat (__NR_SYSCALL_BASE+8)
52 #if !defined(__NR_link)
53 #define __NR_link (__NR_SYSCALL_BASE+9)
56 #if !defined(__NR_unlink)
57 #define __NR_unlink (__NR_SYSCALL_BASE+10)
60 #if !defined(__NR_execve)
61 #define __NR_execve (__NR_SYSCALL_BASE+11)
64 #if !defined(__NR_chdir)
65 #define __NR_chdir (__NR_SYSCALL_BASE+12)
68 #if !defined(__NR_mknod)
69 #define __NR_mknod (__NR_SYSCALL_BASE+14)
72 #if !defined(__NR_chmod)
73 #define __NR_chmod (__NR_SYSCALL_BASE+15)
76 #if !defined(__NR_lchown)
77 #define __NR_lchown (__NR_SYSCALL_BASE+16)
80 #if !defined(__NR_lseek)
81 #define __NR_lseek (__NR_SYSCALL_BASE+19)
84 #if !defined(__NR_getpid)
85 #define __NR_getpid (__NR_SYSCALL_BASE+20)
88 #if !defined(__NR_mount)
89 #define __NR_mount (__NR_SYSCALL_BASE+21)
92 #if !defined(__NR_setuid)
93 #define __NR_setuid (__NR_SYSCALL_BASE+23)
96 #if !defined(__NR_getuid)
97 #define __NR_getuid (__NR_SYSCALL_BASE+24)
100 #if !defined(__NR_ptrace)
101 #define __NR_ptrace (__NR_SYSCALL_BASE+26)
104 #if !defined(__NR_pause)
105 #define __NR_pause (__NR_SYSCALL_BASE+29)
108 #if !defined(__NR_access)
109 #define __NR_access (__NR_SYSCALL_BASE+33)
112 #if !defined(__NR_nice)
113 #define __NR_nice (__NR_SYSCALL_BASE+34)
116 #if !defined(__NR_sync)
117 #define __NR_sync (__NR_SYSCALL_BASE+36)
120 #if !defined(__NR_kill)
121 #define __NR_kill (__NR_SYSCALL_BASE+37)
124 #if !defined(__NR_rename)
125 #define __NR_rename (__NR_SYSCALL_BASE+38)
128 #if !defined(__NR_mkdir)
129 #define __NR_mkdir (__NR_SYSCALL_BASE+39)
132 #if !defined(__NR_rmdir)
133 #define __NR_rmdir (__NR_SYSCALL_BASE+40)
136 #if !defined(__NR_dup)
137 #define __NR_dup (__NR_SYSCALL_BASE+41)
140 #if !defined(__NR_pipe)
141 #define __NR_pipe (__NR_SYSCALL_BASE+42)
144 #if !defined(__NR_times)
145 #define __NR_times (__NR_SYSCALL_BASE+43)
148 #if !defined(__NR_brk)
149 #define __NR_brk (__NR_SYSCALL_BASE+45)
152 #if !defined(__NR_setgid)
153 #define __NR_setgid (__NR_SYSCALL_BASE+46)
156 #if !defined(__NR_getgid)
157 #define __NR_getgid (__NR_SYSCALL_BASE+47)
160 #if !defined(__NR_geteuid)
161 #define __NR_geteuid (__NR_SYSCALL_BASE+49)
164 #if !defined(__NR_getegid)
165 #define __NR_getegid (__NR_SYSCALL_BASE+50)
168 #if !defined(__NR_acct)
169 #define __NR_acct (__NR_SYSCALL_BASE+51)
172 #if !defined(__NR_umount2)
173 #define __NR_umount2 (__NR_SYSCALL_BASE+52)
176 #if !defined(__NR_ioctl)
177 #define __NR_ioctl (__NR_SYSCALL_BASE+54)
180 #if !defined(__NR_fcntl)
181 #define __NR_fcntl (__NR_SYSCALL_BASE+55)
184 #if !defined(__NR_setpgid)
185 #define __NR_setpgid (__NR_SYSCALL_BASE+57)
188 #if !defined(__NR_umask)
189 #define __NR_umask (__NR_SYSCALL_BASE+60)
192 #if !defined(__NR_chroot)
193 #define __NR_chroot (__NR_SYSCALL_BASE+61)
196 #if !defined(__NR_ustat)
197 #define __NR_ustat (__NR_SYSCALL_BASE+62)
200 #if !defined(__NR_dup2)
201 #define __NR_dup2 (__NR_SYSCALL_BASE+63)
204 #if !defined(__NR_getppid)
205 #define __NR_getppid (__NR_SYSCALL_BASE+64)
208 #if !defined(__NR_getpgrp)
209 #define __NR_getpgrp (__NR_SYSCALL_BASE+65)
212 #if !defined(__NR_setsid)
213 #define __NR_setsid (__NR_SYSCALL_BASE+66)
216 #if !defined(__NR_sigaction)
217 #define __NR_sigaction (__NR_SYSCALL_BASE+67)
220 #if !defined(__NR_setreuid)
221 #define __NR_setreuid (__NR_SYSCALL_BASE+70)
224 #if !defined(__NR_setregid)
225 #define __NR_setregid (__NR_SYSCALL_BASE+71)
228 #if !defined(__NR_sigsuspend)
229 #define __NR_sigsuspend (__NR_SYSCALL_BASE+72)
232 #if !defined(__NR_sigpending)
233 #define __NR_sigpending (__NR_SYSCALL_BASE+73)
236 #if !defined(__NR_sethostname)
237 #define __NR_sethostname (__NR_SYSCALL_BASE+74)
240 #if !defined(__NR_setrlimit)
241 #define __NR_setrlimit (__NR_SYSCALL_BASE+75)
244 #if !defined(__NR_getrusage)
245 #define __NR_getrusage (__NR_SYSCALL_BASE+77)
248 #if !defined(__NR_gettimeofday)
249 #define __NR_gettimeofday (__NR_SYSCALL_BASE+78)
252 #if !defined(__NR_settimeofday)
253 #define __NR_settimeofday (__NR_SYSCALL_BASE+79)
256 #if !defined(__NR_getgroups)
257 #define __NR_getgroups (__NR_SYSCALL_BASE+80)
260 #if !defined(__NR_setgroups)
261 #define __NR_setgroups (__NR_SYSCALL_BASE+81)
264 #if !defined(__NR_symlink)
265 #define __NR_symlink (__NR_SYSCALL_BASE+83)
268 #if !defined(__NR_readlink)
269 #define __NR_readlink (__NR_SYSCALL_BASE+85)
272 #if !defined(__NR_uselib)
273 #define __NR_uselib (__NR_SYSCALL_BASE+86)
276 #if !defined(__NR_swapon)
277 #define __NR_swapon (__NR_SYSCALL_BASE+87)
280 #if !defined(__NR_reboot)
281 #define __NR_reboot (__NR_SYSCALL_BASE+88)
284 #if !defined(__NR_munmap)
285 #define __NR_munmap (__NR_SYSCALL_BASE+91)
288 #if !defined(__NR_truncate)
289 #define __NR_truncate (__NR_SYSCALL_BASE+92)
292 #if !defined(__NR_ftruncate)
293 #define __NR_ftruncate (__NR_SYSCALL_BASE+93)
296 #if !defined(__NR_fchmod)
297 #define __NR_fchmod (__NR_SYSCALL_BASE+94)
300 #if !defined(__NR_fchown)
301 #define __NR_fchown (__NR_SYSCALL_BASE+95)
304 #if !defined(__NR_getpriority)
305 #define __NR_getpriority (__NR_SYSCALL_BASE+96)
308 #if !defined(__NR_setpriority)
309 #define __NR_setpriority (__NR_SYSCALL_BASE+97)
312 #if !defined(__NR_statfs)
313 #define __NR_statfs (__NR_SYSCALL_BASE+99)
316 #if !defined(__NR_fstatfs)
317 #define __NR_fstatfs (__NR_SYSCALL_BASE+100)
320 #if !defined(__NR_syslog)
321 #define __NR_syslog (__NR_SYSCALL_BASE+103)
324 #if !defined(__NR_setitimer)
325 #define __NR_setitimer (__NR_SYSCALL_BASE+104)
328 #if !defined(__NR_getitimer)
329 #define __NR_getitimer (__NR_SYSCALL_BASE+105)
332 #if !defined(__NR_stat)
333 #define __NR_stat (__NR_SYSCALL_BASE+106)
336 #if !defined(__NR_lstat)
337 #define __NR_lstat (__NR_SYSCALL_BASE+107)
340 #if !defined(__NR_fstat)
341 #define __NR_fstat (__NR_SYSCALL_BASE+108)
344 #if !defined(__NR_vhangup)
345 #define __NR_vhangup (__NR_SYSCALL_BASE+111)
348 #if !defined(__NR_wait4)
349 #define __NR_wait4 (__NR_SYSCALL_BASE+114)
352 #if !defined(__NR_swapoff)
353 #define __NR_swapoff (__NR_SYSCALL_BASE+115)
356 #if !defined(__NR_sysinfo)
357 #define __NR_sysinfo (__NR_SYSCALL_BASE+116)
360 #if !defined(__NR_fsync)
361 #define __NR_fsync (__NR_SYSCALL_BASE+118)
364 #if !defined(__NR_sigreturn)
365 #define __NR_sigreturn (__NR_SYSCALL_BASE+119)
368 #if !defined(__NR_clone)
369 #define __NR_clone (__NR_SYSCALL_BASE+120)
372 #if !defined(__NR_setdomainname)
373 #define __NR_setdomainname (__NR_SYSCALL_BASE+121)
376 #if !defined(__NR_uname)
377 #define __NR_uname (__NR_SYSCALL_BASE+122)
380 #if !defined(__NR_adjtimex)
381 #define __NR_adjtimex (__NR_SYSCALL_BASE+124)
384 #if !defined(__NR_mprotect)
385 #define __NR_mprotect (__NR_SYSCALL_BASE+125)
388 #if !defined(__NR_sigprocmask)
389 #define __NR_sigprocmask (__NR_SYSCALL_BASE+126)
392 #if !defined(__NR_init_module)
393 #define __NR_init_module (__NR_SYSCALL_BASE+128)
396 #if !defined(__NR_delete_module)
397 #define __NR_delete_module (__NR_SYSCALL_BASE+129)
400 #if !defined(__NR_quotactl)
401 #define __NR_quotactl (__NR_SYSCALL_BASE+131)
404 #if !defined(__NR_getpgid)
405 #define __NR_getpgid (__NR_SYSCALL_BASE+132)
408 #if !defined(__NR_fchdir)
409 #define __NR_fchdir (__NR_SYSCALL_BASE+133)
412 #if !defined(__NR_bdflush)
413 #define __NR_bdflush (__NR_SYSCALL_BASE+134)
416 #if !defined(__NR_sysfs)
417 #define __NR_sysfs (__NR_SYSCALL_BASE+135)
420 #if !defined(__NR_personality)
421 #define __NR_personality (__NR_SYSCALL_BASE+136)
424 #if !defined(__NR_setfsuid)
425 #define __NR_setfsuid (__NR_SYSCALL_BASE+138)
428 #if !defined(__NR_setfsgid)
429 #define __NR_setfsgid (__NR_SYSCALL_BASE+139)
432 #if !defined(__NR__llseek)
433 #define __NR__llseek (__NR_SYSCALL_BASE+140)
436 #if !defined(__NR_getdents)
437 #define __NR_getdents (__NR_SYSCALL_BASE+141)
440 #if !defined(__NR__newselect)
441 #define __NR__newselect (__NR_SYSCALL_BASE+142)
444 #if !defined(__NR_flock)
445 #define __NR_flock (__NR_SYSCALL_BASE+143)
448 #if !defined(__NR_msync)
449 #define __NR_msync (__NR_SYSCALL_BASE+144)
452 #if !defined(__NR_readv)
453 #define __NR_readv (__NR_SYSCALL_BASE+145)
456 #if !defined(__NR_writev)
457 #define __NR_writev (__NR_SYSCALL_BASE+146)
460 #if !defined(__NR_getsid)
461 #define __NR_getsid (__NR_SYSCALL_BASE+147)
464 #if !defined(__NR_fdatasync)
465 #define __NR_fdatasync (__NR_SYSCALL_BASE+148)
468 #if !defined(__NR__sysctl)
469 #define __NR__sysctl (__NR_SYSCALL_BASE+149)
472 #if !defined(__NR_mlock)
473 #define __NR_mlock (__NR_SYSCALL_BASE+150)
476 #if !defined(__NR_munlock)
477 #define __NR_munlock (__NR_SYSCALL_BASE+151)
480 #if !defined(__NR_mlockall)
481 #define __NR_mlockall (__NR_SYSCALL_BASE+152)
484 #if !defined(__NR_munlockall)
485 #define __NR_munlockall (__NR_SYSCALL_BASE+153)
488 #if !defined(__NR_sched_setparam)
489 #define __NR_sched_setparam (__NR_SYSCALL_BASE+154)
492 #if !defined(__NR_sched_getparam)
493 #define __NR_sched_getparam (__NR_SYSCALL_BASE+155)
496 #if !defined(__NR_sched_setscheduler)
497 #define __NR_sched_setscheduler (__NR_SYSCALL_BASE+156)
500 #if !defined(__NR_sched_getscheduler)
501 #define __NR_sched_getscheduler (__NR_SYSCALL_BASE+157)
504 #if !defined(__NR_sched_yield)
505 #define __NR_sched_yield (__NR_SYSCALL_BASE+158)
508 #if !defined(__NR_sched_get_priority_max)
509 #define __NR_sched_get_priority_max (__NR_SYSCALL_BASE+159)
512 #if !defined(__NR_sched_get_priority_min)
513 #define __NR_sched_get_priority_min (__NR_SYSCALL_BASE+160)
516 #if !defined(__NR_sched_rr_get_interval)
517 #define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE+161)
520 #if !defined(__NR_nanosleep)
521 #define __NR_nanosleep (__NR_SYSCALL_BASE+162)
524 #if !defined(__NR_mremap)
525 #define __NR_mremap (__NR_SYSCALL_BASE+163)
528 #if !defined(__NR_setresuid)
529 #define __NR_setresuid (__NR_SYSCALL_BASE+164)
532 #if !defined(__NR_getresuid)
533 #define __NR_getresuid (__NR_SYSCALL_BASE+165)
536 #if !defined(__NR_poll)
537 #define __NR_poll (__NR_SYSCALL_BASE+168)
540 #if !defined(__NR_nfsservctl)
541 #define __NR_nfsservctl (__NR_SYSCALL_BASE+169)
544 #if !defined(__NR_setresgid)
545 #define __NR_setresgid (__NR_SYSCALL_BASE+170)
548 #if !defined(__NR_getresgid)
549 #define __NR_getresgid (__NR_SYSCALL_BASE+171)
552 #if !defined(__NR_prctl)
553 #define __NR_prctl (__NR_SYSCALL_BASE+172)
556 #if !defined(__NR_rt_sigreturn)
557 #define __NR_rt_sigreturn (__NR_SYSCALL_BASE+173)
560 #if !defined(__NR_rt_sigaction)
561 #define __NR_rt_sigaction (__NR_SYSCALL_BASE+174)
564 #if !defined(__NR_rt_sigprocmask)
565 #define __NR_rt_sigprocmask (__NR_SYSCALL_BASE+175)
568 #if !defined(__NR_rt_sigpending)
569 #define __NR_rt_sigpending (__NR_SYSCALL_BASE+176)
572 #if !defined(__NR_rt_sigtimedwait)
573 #define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE+177)
576 #if !defined(__NR_rt_sigqueueinfo)
577 #define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE+178)
580 #if !defined(__NR_rt_sigsuspend)
581 #define __NR_rt_sigsuspend (__NR_SYSCALL_BASE+179)
584 #if !defined(__NR_pread64)
585 #define __NR_pread64 (__NR_SYSCALL_BASE+180)
588 #if !defined(__NR_pwrite64)
589 #define __NR_pwrite64 (__NR_SYSCALL_BASE+181)
592 #if !defined(__NR_chown)
593 #define __NR_chown (__NR_SYSCALL_BASE+182)
596 #if !defined(__NR_getcwd)
597 #define __NR_getcwd (__NR_SYSCALL_BASE+183)
600 #if !defined(__NR_capget)
601 #define __NR_capget (__NR_SYSCALL_BASE+184)
604 #if !defined(__NR_capset)
605 #define __NR_capset (__NR_SYSCALL_BASE+185)
608 #if !defined(__NR_sigaltstack)
609 #define __NR_sigaltstack (__NR_SYSCALL_BASE+186)
612 #if !defined(__NR_sendfile)
613 #define __NR_sendfile (__NR_SYSCALL_BASE+187)
616 #if !defined(__NR_vfork)
617 #define __NR_vfork (__NR_SYSCALL_BASE+190)
620 #if !defined(__NR_ugetrlimit)
621 #define __NR_ugetrlimit (__NR_SYSCALL_BASE+191)
624 #if !defined(__NR_mmap2)
625 #define __NR_mmap2 (__NR_SYSCALL_BASE+192)
628 #if !defined(__NR_truncate64)
629 #define __NR_truncate64 (__NR_SYSCALL_BASE+193)
632 #if !defined(__NR_ftruncate64)
633 #define __NR_ftruncate64 (__NR_SYSCALL_BASE+194)
636 #if !defined(__NR_stat64)
637 #define __NR_stat64 (__NR_SYSCALL_BASE+195)
640 #if !defined(__NR_lstat64)
641 #define __NR_lstat64 (__NR_SYSCALL_BASE+196)
644 #if !defined(__NR_fstat64)
645 #define __NR_fstat64 (__NR_SYSCALL_BASE+197)
648 #if !defined(__NR_lchown32)
649 #define __NR_lchown32 (__NR_SYSCALL_BASE+198)
652 #if !defined(__NR_getuid32)
653 #define __NR_getuid32 (__NR_SYSCALL_BASE+199)
656 #if !defined(__NR_getgid32)
657 #define __NR_getgid32 (__NR_SYSCALL_BASE+200)
660 #if !defined(__NR_geteuid32)
661 #define __NR_geteuid32 (__NR_SYSCALL_BASE+201)
664 #if !defined(__NR_getegid32)
665 #define __NR_getegid32 (__NR_SYSCALL_BASE+202)
668 #if !defined(__NR_setreuid32)
669 #define __NR_setreuid32 (__NR_SYSCALL_BASE+203)
672 #if !defined(__NR_setregid32)
673 #define __NR_setregid32 (__NR_SYSCALL_BASE+204)
676 #if !defined(__NR_getgroups32)
677 #define __NR_getgroups32 (__NR_SYSCALL_BASE+205)
680 #if !defined(__NR_setgroups32)
681 #define __NR_setgroups32 (__NR_SYSCALL_BASE+206)
684 #if !defined(__NR_fchown32)
685 #define __NR_fchown32 (__NR_SYSCALL_BASE+207)
688 #if !defined(__NR_setresuid32)
689 #define __NR_setresuid32 (__NR_SYSCALL_BASE+208)
692 #if !defined(__NR_getresuid32)
693 #define __NR_getresuid32 (__NR_SYSCALL_BASE+209)
696 #if !defined(__NR_setresgid32)
697 #define __NR_setresgid32 (__NR_SYSCALL_BASE+210)
700 #if !defined(__NR_getresgid32)
701 #define __NR_getresgid32 (__NR_SYSCALL_BASE+211)
704 #if !defined(__NR_chown32)
705 #define __NR_chown32 (__NR_SYSCALL_BASE+212)
708 #if !defined(__NR_setuid32)
709 #define __NR_setuid32 (__NR_SYSCALL_BASE+213)
712 #if !defined(__NR_setgid32)
713 #define __NR_setgid32 (__NR_SYSCALL_BASE+214)
716 #if !defined(__NR_setfsuid32)
717 #define __NR_setfsuid32 (__NR_SYSCALL_BASE+215)
720 #if !defined(__NR_setfsgid32)
721 #define __NR_setfsgid32 (__NR_SYSCALL_BASE+216)
724 #if !defined(__NR_getdents64)
725 #define __NR_getdents64 (__NR_SYSCALL_BASE+217)
728 #if !defined(__NR_pivot_root)
729 #define __NR_pivot_root (__NR_SYSCALL_BASE+218)
732 #if !defined(__NR_mincore)
733 #define __NR_mincore (__NR_SYSCALL_BASE+219)
736 #if !defined(__NR_madvise)
737 #define __NR_madvise (__NR_SYSCALL_BASE+220)
740 #if !defined(__NR_fcntl64)
741 #define __NR_fcntl64 (__NR_SYSCALL_BASE+221)
744 #if !defined(__NR_gettid)
745 #define __NR_gettid (__NR_SYSCALL_BASE+224)
748 #if !defined(__NR_readahead)
749 #define __NR_readahead (__NR_SYSCALL_BASE+225)
752 #if !defined(__NR_setxattr)
753 #define __NR_setxattr (__NR_SYSCALL_BASE+226)
756 #if !defined(__NR_lsetxattr)
757 #define __NR_lsetxattr (__NR_SYSCALL_BASE+227)
760 #if !defined(__NR_fsetxattr)
761 #define __NR_fsetxattr (__NR_SYSCALL_BASE+228)
764 #if !defined(__NR_getxattr)
765 #define __NR_getxattr (__NR_SYSCALL_BASE+229)
768 #if !defined(__NR_lgetxattr)
769 #define __NR_lgetxattr (__NR_SYSCALL_BASE+230)
772 #if !defined(__NR_fgetxattr)
773 #define __NR_fgetxattr (__NR_SYSCALL_BASE+231)
776 #if !defined(__NR_listxattr)
777 #define __NR_listxattr (__NR_SYSCALL_BASE+232)
780 #if !defined(__NR_llistxattr)
781 #define __NR_llistxattr (__NR_SYSCALL_BASE+233)
784 #if !defined(__NR_flistxattr)
785 #define __NR_flistxattr (__NR_SYSCALL_BASE+234)
788 #if !defined(__NR_removexattr)
789 #define __NR_removexattr (__NR_SYSCALL_BASE+235)
792 #if !defined(__NR_lremovexattr)
793 #define __NR_lremovexattr (__NR_SYSCALL_BASE+236)
796 #if !defined(__NR_fremovexattr)
797 #define __NR_fremovexattr (__NR_SYSCALL_BASE+237)
800 #if !defined(__NR_tkill)
801 #define __NR_tkill (__NR_SYSCALL_BASE+238)
804 #if !defined(__NR_sendfile64)
805 #define __NR_sendfile64 (__NR_SYSCALL_BASE+239)
808 #if !defined(__NR_futex)
809 #define __NR_futex (__NR_SYSCALL_BASE+240)
812 #if !defined(__NR_sched_setaffinity)
813 #define __NR_sched_setaffinity (__NR_SYSCALL_BASE+241)
816 #if !defined(__NR_sched_getaffinity)
817 #define __NR_sched_getaffinity (__NR_SYSCALL_BASE+242)
820 #if !defined(__NR_io_setup)
821 #define __NR_io_setup (__NR_SYSCALL_BASE+243)
824 #if !defined(__NR_io_destroy)
825 #define __NR_io_destroy (__NR_SYSCALL_BASE+244)
828 #if !defined(__NR_io_getevents)
829 #define __NR_io_getevents (__NR_SYSCALL_BASE+245)
832 #if !defined(__NR_io_submit)
833 #define __NR_io_submit (__NR_SYSCALL_BASE+246)
836 #if !defined(__NR_io_cancel)
837 #define __NR_io_cancel (__NR_SYSCALL_BASE+247)
840 #if !defined(__NR_exit_group)
841 #define __NR_exit_group (__NR_SYSCALL_BASE+248)
844 #if !defined(__NR_lookup_dcookie)
845 #define __NR_lookup_dcookie (__NR_SYSCALL_BASE+249)
848 #if !defined(__NR_epoll_create)
849 #define __NR_epoll_create (__NR_SYSCALL_BASE+250)
852 #if !defined(__NR_epoll_ctl)
853 #define __NR_epoll_ctl (__NR_SYSCALL_BASE+251)
856 #if !defined(__NR_epoll_wait)
857 #define __NR_epoll_wait (__NR_SYSCALL_BASE+252)
860 #if !defined(__NR_remap_file_pages)
861 #define __NR_remap_file_pages (__NR_SYSCALL_BASE+253)
864 #if !defined(__NR_set_tid_address)
865 #define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
868 #if !defined(__NR_timer_create)
869 #define __NR_timer_create (__NR_SYSCALL_BASE+257)
872 #if !defined(__NR_timer_settime)
873 #define __NR_timer_settime (__NR_SYSCALL_BASE+258)
876 #if !defined(__NR_timer_gettime)
877 #define __NR_timer_gettime (__NR_SYSCALL_BASE+259)
880 #if !defined(__NR_timer_getoverrun)
881 #define __NR_timer_getoverrun (__NR_SYSCALL_BASE+260)
884 #if !defined(__NR_timer_delete)
885 #define __NR_timer_delete (__NR_SYSCALL_BASE+261)
888 #if !defined(__NR_clock_settime)
889 #define __NR_clock_settime (__NR_SYSCALL_BASE+262)
892 #if !defined(__NR_clock_gettime)
893 #define __NR_clock_gettime (__NR_SYSCALL_BASE+263)
896 #if !defined(__NR_clock_getres)
897 #define __NR_clock_getres (__NR_SYSCALL_BASE+264)
900 #if !defined(__NR_clock_nanosleep)
901 #define __NR_clock_nanosleep (__NR_SYSCALL_BASE+265)
904 #if !defined(__NR_statfs64)
905 #define __NR_statfs64 (__NR_SYSCALL_BASE+266)
908 #if !defined(__NR_fstatfs64)
909 #define __NR_fstatfs64 (__NR_SYSCALL_BASE+267)
912 #if !defined(__NR_tgkill)
913 #define __NR_tgkill (__NR_SYSCALL_BASE+268)
916 #if !defined(__NR_utimes)
917 #define __NR_utimes (__NR_SYSCALL_BASE+269)
920 #if !defined(__NR_arm_fadvise64_64)
921 #define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE+270)
924 #if !defined(__NR_pciconfig_iobase)
925 #define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271)
928 #if !defined(__NR_pciconfig_read)
929 #define __NR_pciconfig_read (__NR_SYSCALL_BASE+272)
932 #if !defined(__NR_pciconfig_write)
933 #define __NR_pciconfig_write (__NR_SYSCALL_BASE+273)
936 #if !defined(__NR_mq_open)
937 #define __NR_mq_open (__NR_SYSCALL_BASE+274)
940 #if !defined(__NR_mq_unlink)
941 #define __NR_mq_unlink (__NR_SYSCALL_BASE+275)
944 #if !defined(__NR_mq_timedsend)
945 #define __NR_mq_timedsend (__NR_SYSCALL_BASE+276)
948 #if !defined(__NR_mq_timedreceive)
949 #define __NR_mq_timedreceive (__NR_SYSCALL_BASE+277)
952 #if !defined(__NR_mq_notify)
953 #define __NR_mq_notify (__NR_SYSCALL_BASE+278)
956 #if !defined(__NR_mq_getsetattr)
957 #define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279)
960 #if !defined(__NR_waitid)
961 #define __NR_waitid (__NR_SYSCALL_BASE+280)
964 #if !defined(__NR_socket)
965 #define __NR_socket (__NR_SYSCALL_BASE+281)
968 #if !defined(__NR_bind)
969 #define __NR_bind (__NR_SYSCALL_BASE+282)
972 #if !defined(__NR_connect)
973 #define __NR_connect (__NR_SYSCALL_BASE+283)
976 #if !defined(__NR_listen)
977 #define __NR_listen (__NR_SYSCALL_BASE+284)
980 #if !defined(__NR_accept)
981 #define __NR_accept (__NR_SYSCALL_BASE+285)
984 #if !defined(__NR_getsockname)
985 #define __NR_getsockname (__NR_SYSCALL_BASE+286)
988 #if !defined(__NR_getpeername)
989 #define __NR_getpeername (__NR_SYSCALL_BASE+287)
992 #if !defined(__NR_socketpair)
993 #define __NR_socketpair (__NR_SYSCALL_BASE+288)
996 #if !defined(__NR_send)
997 #define __NR_send (__NR_SYSCALL_BASE+289)
1000 #if !defined(__NR_sendto)
1001 #define __NR_sendto (__NR_SYSCALL_BASE+290)
1004 #if !defined(__NR_recv)
1005 #define __NR_recv (__NR_SYSCALL_BASE+291)
1008 #if !defined(__NR_recvfrom)
1009 #define __NR_recvfrom (__NR_SYSCALL_BASE+292)
1012 #if !defined(__NR_shutdown)
1013 #define __NR_shutdown (__NR_SYSCALL_BASE+293)
1016 #if !defined(__NR_setsockopt)
1017 #define __NR_setsockopt (__NR_SYSCALL_BASE+294)
1020 #if !defined(__NR_getsockopt)
1021 #define __NR_getsockopt (__NR_SYSCALL_BASE+295)
1024 #if !defined(__NR_sendmsg)
1025 #define __NR_sendmsg (__NR_SYSCALL_BASE+296)
1028 #if !defined(__NR_recvmsg)
1029 #define __NR_recvmsg (__NR_SYSCALL_BASE+297)
1032 #if !defined(__NR_semop)
1033 #define __NR_semop (__NR_SYSCALL_BASE+298)
1036 #if !defined(__NR_semget)
1037 #define __NR_semget (__NR_SYSCALL_BASE+299)
1040 #if !defined(__NR_semctl)
1041 #define __NR_semctl (__NR_SYSCALL_BASE+300)
1044 #if !defined(__NR_msgsnd)
1045 #define __NR_msgsnd (__NR_SYSCALL_BASE+301)
1048 #if !defined(__NR_msgrcv)
1049 #define __NR_msgrcv (__NR_SYSCALL_BASE+302)
1052 #if !defined(__NR_msgget)
1053 #define __NR_msgget (__NR_SYSCALL_BASE+303)
1056 #if !defined(__NR_msgctl)
1057 #define __NR_msgctl (__NR_SYSCALL_BASE+304)
1060 #if !defined(__NR_shmat)
1061 #define __NR_shmat (__NR_SYSCALL_BASE+305)
1064 #if !defined(__NR_shmdt)
1065 #define __NR_shmdt (__NR_SYSCALL_BASE+306)
1068 #if !defined(__NR_shmget)
1069 #define __NR_shmget (__NR_SYSCALL_BASE+307)
1072 #if !defined(__NR_shmctl)
1073 #define __NR_shmctl (__NR_SYSCALL_BASE+308)
1076 #if !defined(__NR_add_key)
1077 #define __NR_add_key (__NR_SYSCALL_BASE+309)
1080 #if !defined(__NR_request_key)
1081 #define __NR_request_key (__NR_SYSCALL_BASE+310)
1084 #if !defined(__NR_keyctl)
1085 #define __NR_keyctl (__NR_SYSCALL_BASE+311)
1088 #if !defined(__NR_semtimedop)
1089 #define __NR_semtimedop (__NR_SYSCALL_BASE+312)
1092 #if !defined(__NR_vserver)
1093 #define __NR_vserver (__NR_SYSCALL_BASE+313)
1096 #if !defined(__NR_ioprio_set)
1097 #define __NR_ioprio_set (__NR_SYSCALL_BASE+314)
1100 #if !defined(__NR_ioprio_get)
1101 #define __NR_ioprio_get (__NR_SYSCALL_BASE+315)
1104 #if !defined(__NR_inotify_init)
1105 #define __NR_inotify_init (__NR_SYSCALL_BASE+316)
1108 #if !defined(__NR_inotify_add_watch)
1109 #define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317)
1112 #if !defined(__NR_inotify_rm_watch)
1113 #define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)
1116 #if !defined(__NR_mbind)
1117 #define __NR_mbind (__NR_SYSCALL_BASE+319)
1120 #if !defined(__NR_get_mempolicy)
1121 #define __NR_get_mempolicy (__NR_SYSCALL_BASE+320)
1124 #if !defined(__NR_set_mempolicy)
1125 #define __NR_set_mempolicy (__NR_SYSCALL_BASE+321)
1128 #if !defined(__NR_openat)
1129 #define __NR_openat (__NR_SYSCALL_BASE+322)
1132 #if !defined(__NR_mkdirat)
1133 #define __NR_mkdirat (__NR_SYSCALL_BASE+323)
1136 #if !defined(__NR_mknodat)
1137 #define __NR_mknodat (__NR_SYSCALL_BASE+324)
1140 #if !defined(__NR_fchownat)
1141 #define __NR_fchownat (__NR_SYSCALL_BASE+325)
1144 #if !defined(__NR_futimesat)
1145 #define __NR_futimesat (__NR_SYSCALL_BASE+326)
1148 #if !defined(__NR_fstatat64)
1149 #define __NR_fstatat64 (__NR_SYSCALL_BASE+327)
1152 #if !defined(__NR_unlinkat)
1153 #define __NR_unlinkat (__NR_SYSCALL_BASE+328)
1156 #if !defined(__NR_renameat)
1157 #define __NR_renameat (__NR_SYSCALL_BASE+329)
1160 #if !defined(__NR_linkat)
1161 #define __NR_linkat (__NR_SYSCALL_BASE+330)
1164 #if !defined(__NR_symlinkat)
1165 #define __NR_symlinkat (__NR_SYSCALL_BASE+331)
1168 #if !defined(__NR_readlinkat)
1169 #define __NR_readlinkat (__NR_SYSCALL_BASE+332)
1172 #if !defined(__NR_fchmodat)
1173 #define __NR_fchmodat (__NR_SYSCALL_BASE+333)
1176 #if !defined(__NR_faccessat)
1177 #define __NR_faccessat (__NR_SYSCALL_BASE+334)
1180 #if !defined(__NR_pselect6)
1181 #define __NR_pselect6 (__NR_SYSCALL_BASE+335)
1184 #if !defined(__NR_ppoll)
1185 #define __NR_ppoll (__NR_SYSCALL_BASE+336)
1188 #if !defined(__NR_unshare)
1189 #define __NR_unshare (__NR_SYSCALL_BASE+337)
1192 #if !defined(__NR_set_robust_list)
1193 #define __NR_set_robust_list (__NR_SYSCALL_BASE+338)
1196 #if !defined(__NR_get_robust_list)
1197 #define __NR_get_robust_list (__NR_SYSCALL_BASE+339)
1200 #if !defined(__NR_splice)
1201 #define __NR_splice (__NR_SYSCALL_BASE+340)
1204 #if !defined(__NR_arm_sync_file_range)
1205 #define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341)
1208 #if !defined(__NR_sync_file_range2)
1209 #define __NR_sync_file_range2 (__NR_SYSCALL_BASE+341)
1212 #if !defined(__NR_tee)
1213 #define __NR_tee (__NR_SYSCALL_BASE+342)
1216 #if !defined(__NR_vmsplice)
1217 #define __NR_vmsplice (__NR_SYSCALL_BASE+343)
1220 #if !defined(__NR_move_pages)
1221 #define __NR_move_pages (__NR_SYSCALL_BASE+344)
1224 #if !defined(__NR_getcpu)
1225 #define __NR_getcpu (__NR_SYSCALL_BASE+345)
1228 #if !defined(__NR_epoll_pwait)
1229 #define __NR_epoll_pwait (__NR_SYSCALL_BASE+346)
1232 #if !defined(__NR_kexec_load)
1233 #define __NR_kexec_load (__NR_SYSCALL_BASE+347)
1236 #if !defined(__NR_utimensat)
1237 #define __NR_utimensat (__NR_SYSCALL_BASE+348)
1240 #if !defined(__NR_signalfd)
1241 #define __NR_signalfd (__NR_SYSCALL_BASE+349)
1244 #if !defined(__NR_timerfd_create)
1245 #define __NR_timerfd_create (__NR_SYSCALL_BASE+350)
1248 #if !defined(__NR_eventfd)
1249 #define __NR_eventfd (__NR_SYSCALL_BASE+351)
1252 #if !defined(__NR_fallocate)
1253 #define __NR_fallocate (__NR_SYSCALL_BASE+352)
1256 #if !defined(__NR_timerfd_settime)
1257 #define __NR_timerfd_settime (__NR_SYSCALL_BASE+353)
1260 #if !defined(__NR_timerfd_gettime)
1261 #define __NR_timerfd_gettime (__NR_SYSCALL_BASE+354)
1264 #if !defined(__NR_signalfd4)
1265 #define __NR_signalfd4 (__NR_SYSCALL_BASE+355)
1268 #if !defined(__NR_eventfd2)
1269 #define __NR_eventfd2 (__NR_SYSCALL_BASE+356)
1272 #if !defined(__NR_epoll_create1)
1273 #define __NR_epoll_create1 (__NR_SYSCALL_BASE+357)
1276 #if !defined(__NR_dup3)
1277 #define __NR_dup3 (__NR_SYSCALL_BASE+358)
1280 #if !defined(__NR_pipe2)
1281 #define __NR_pipe2 (__NR_SYSCALL_BASE+359)
1284 #if !defined(__NR_inotify_init1)
1285 #define __NR_inotify_init1 (__NR_SYSCALL_BASE+360)
1288 #if !defined(__NR_preadv)
1289 #define __NR_preadv (__NR_SYSCALL_BASE+361)
1292 #if !defined(__NR_pwritev)
1293 #define __NR_pwritev (__NR_SYSCALL_BASE+362)
1296 #if !defined(__NR_rt_tgsigqueueinfo)
1297 #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
1300 #if !defined(__NR_perf_event_open)
1301 #define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
1304 #if !defined(__NR_recvmmsg)
1305 #define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
1308 #if !defined(__NR_accept4)
1309 #define __NR_accept4 (__NR_SYSCALL_BASE+366)
1312 #if !defined(__NR_fanotify_init)
1313 #define __NR_fanotify_init (__NR_SYSCALL_BASE+367)
1316 #if !defined(__NR_fanotify_mark)
1317 #define __NR_fanotify_mark (__NR_SYSCALL_BASE+368)
1320 #if !defined(__NR_prlimit64)
1321 #define __NR_prlimit64 (__NR_SYSCALL_BASE+369)
1324 #if !defined(__NR_name_to_handle_at)
1325 #define __NR_name_to_handle_at (__NR_SYSCALL_BASE+370)
1328 #if !defined(__NR_open_by_handle_at)
1329 #define __NR_open_by_handle_at (__NR_SYSCALL_BASE+371)
1332 #if !defined(__NR_clock_adjtime)
1333 #define __NR_clock_adjtime (__NR_SYSCALL_BASE+372)
1336 #if !defined(__NR_syncfs)
1337 #define __NR_syncfs (__NR_SYSCALL_BASE+373)
1340 #if !defined(__NR_sendmmsg)
1341 #define __NR_sendmmsg (__NR_SYSCALL_BASE+374)
1344 #if !defined(__NR_setns)
1345 #define __NR_setns (__NR_SYSCALL_BASE+375)
1348 #if !defined(__NR_process_vm_readv)
1349 #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376)
1352 #if !defined(__NR_process_vm_writev)
1353 #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377)
1356 #if !defined(__NR_kcmp)
1357 #define __NR_kcmp (__NR_SYSCALL_BASE+378)
1360 #if !defined(__NR_finit_module)
1361 #define __NR_finit_module (__NR_SYSCALL_BASE+379)
1364 #if !defined(__NR_sched_setattr)
1365 #define __NR_sched_setattr (__NR_SYSCALL_BASE+380)
1368 #if !defined(__NR_sched_getattr)
1369 #define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
1372 #if !defined(__NR_renameat2)
1373 #define __NR_renameat2 (__NR_SYSCALL_BASE+382)
1376 #if !defined(__NR_seccomp)
1377 #define __NR_seccomp (__NR_SYSCALL_BASE+383)
1380 #if !defined(__NR_getrandom)
1381 #define __NR_getrandom (__NR_SYSCALL_BASE+384)
1384 #if !defined(__NR_memfd_create)
1385 #define __NR_memfd_create (__NR_SYSCALL_BASE+385)
1388 // ARM private syscalls.
1389 #if !defined(__ARM_NR_BASE)
1390 #define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0xF0000)
1393 #if !defined(__ARM_NR_breakpoint)
1394 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
1397 #if !defined(__ARM_NR_cacheflush)
1398 #define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
1401 #if !defined(__ARM_NR_usr26)
1402 #define __ARM_NR_usr26 (__ARM_NR_BASE+3)
1405 #if !defined(__ARM_NR_usr32)
1406 #define __ARM_NR_usr32 (__ARM_NR_BASE+4)
1409 #if !defined(__ARM_NR_set_tls)
1410 #define __ARM_NR_set_tls (__ARM_NR_BASE+5)
1413 // ARM kernel private syscall.
1414 #if !defined(__ARM_NR_cmpxchg)
1415 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
1418 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_