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_SERVICES_ARM_LINUX_SYSCALLS_H_
7 #define SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
9 #if !defined(__arm__) || !defined(__ARM_EABI__)
10 #error "Including header on wrong architecture"
13 // __NR_SYSCALL_BASE, __ARM_NR_BASE are defined in <asm/unistd.h>.
14 #include <asm/unistd.h>
16 // This syscall list has holes, because ARM EABI makes some syscalls obsolete.
18 #if !defined(__NR_restart_syscall)
19 #define __NR_restart_syscall (__NR_SYSCALL_BASE+0)
22 #if !defined(__NR_exit)
23 #define __NR_exit (__NR_SYSCALL_BASE+1)
26 #if !defined(__NR_fork)
27 #define __NR_fork (__NR_SYSCALL_BASE+2)
30 #if !defined(__NR_read)
31 #define __NR_read (__NR_SYSCALL_BASE+3)
34 #if !defined(__NR_write)
35 #define __NR_write (__NR_SYSCALL_BASE+4)
38 #if !defined(__NR_open)
39 #define __NR_open (__NR_SYSCALL_BASE+5)
42 #if !defined(__NR_close)
43 #define __NR_close (__NR_SYSCALL_BASE+6)
46 #if !defined(__NR_creat)
47 #define __NR_creat (__NR_SYSCALL_BASE+8)
50 #if !defined(__NR_link)
51 #define __NR_link (__NR_SYSCALL_BASE+9)
54 #if !defined(__NR_unlink)
55 #define __NR_unlink (__NR_SYSCALL_BASE+10)
58 #if !defined(__NR_execve)
59 #define __NR_execve (__NR_SYSCALL_BASE+11)
62 #if !defined(__NR_chdir)
63 #define __NR_chdir (__NR_SYSCALL_BASE+12)
66 #if !defined(__NR_mknod)
67 #define __NR_mknod (__NR_SYSCALL_BASE+14)
70 #if !defined(__NR_chmod)
71 #define __NR_chmod (__NR_SYSCALL_BASE+15)
74 #if !defined(__NR_lchown)
75 #define __NR_lchown (__NR_SYSCALL_BASE+16)
78 #if !defined(__NR_lseek)
79 #define __NR_lseek (__NR_SYSCALL_BASE+19)
82 #if !defined(__NR_getpid)
83 #define __NR_getpid (__NR_SYSCALL_BASE+20)
86 #if !defined(__NR_mount)
87 #define __NR_mount (__NR_SYSCALL_BASE+21)
90 #if !defined(__NR_setuid)
91 #define __NR_setuid (__NR_SYSCALL_BASE+23)
94 #if !defined(__NR_getuid)
95 #define __NR_getuid (__NR_SYSCALL_BASE+24)
98 #if !defined(__NR_ptrace)
99 #define __NR_ptrace (__NR_SYSCALL_BASE+26)
102 #if !defined(__NR_pause)
103 #define __NR_pause (__NR_SYSCALL_BASE+29)
106 #if !defined(__NR_access)
107 #define __NR_access (__NR_SYSCALL_BASE+33)
110 #if !defined(__NR_nice)
111 #define __NR_nice (__NR_SYSCALL_BASE+34)
114 #if !defined(__NR_sync)
115 #define __NR_sync (__NR_SYSCALL_BASE+36)
118 #if !defined(__NR_kill)
119 #define __NR_kill (__NR_SYSCALL_BASE+37)
122 #if !defined(__NR_rename)
123 #define __NR_rename (__NR_SYSCALL_BASE+38)
126 #if !defined(__NR_mkdir)
127 #define __NR_mkdir (__NR_SYSCALL_BASE+39)
130 #if !defined(__NR_rmdir)
131 #define __NR_rmdir (__NR_SYSCALL_BASE+40)
134 #if !defined(__NR_dup)
135 #define __NR_dup (__NR_SYSCALL_BASE+41)
138 #if !defined(__NR_pipe)
139 #define __NR_pipe (__NR_SYSCALL_BASE+42)
142 #if !defined(__NR_times)
143 #define __NR_times (__NR_SYSCALL_BASE+43)
146 #if !defined(__NR_brk)
147 #define __NR_brk (__NR_SYSCALL_BASE+45)
150 #if !defined(__NR_setgid)
151 #define __NR_setgid (__NR_SYSCALL_BASE+46)
154 #if !defined(__NR_getgid)
155 #define __NR_getgid (__NR_SYSCALL_BASE+47)
158 #if !defined(__NR_geteuid)
159 #define __NR_geteuid (__NR_SYSCALL_BASE+49)
162 #if !defined(__NR_getegid)
163 #define __NR_getegid (__NR_SYSCALL_BASE+50)
166 #if !defined(__NR_acct)
167 #define __NR_acct (__NR_SYSCALL_BASE+51)
170 #if !defined(__NR_umount2)
171 #define __NR_umount2 (__NR_SYSCALL_BASE+52)
174 #if !defined(__NR_ioctl)
175 #define __NR_ioctl (__NR_SYSCALL_BASE+54)
178 #if !defined(__NR_fcntl)
179 #define __NR_fcntl (__NR_SYSCALL_BASE+55)
182 #if !defined(__NR_setpgid)
183 #define __NR_setpgid (__NR_SYSCALL_BASE+57)
186 #if !defined(__NR_umask)
187 #define __NR_umask (__NR_SYSCALL_BASE+60)
190 #if !defined(__NR_chroot)
191 #define __NR_chroot (__NR_SYSCALL_BASE+61)
194 #if !defined(__NR_ustat)
195 #define __NR_ustat (__NR_SYSCALL_BASE+62)
198 #if !defined(__NR_dup2)
199 #define __NR_dup2 (__NR_SYSCALL_BASE+63)
202 #if !defined(__NR_getppid)
203 #define __NR_getppid (__NR_SYSCALL_BASE+64)
206 #if !defined(__NR_getpgrp)
207 #define __NR_getpgrp (__NR_SYSCALL_BASE+65)
210 #if !defined(__NR_setsid)
211 #define __NR_setsid (__NR_SYSCALL_BASE+66)
214 #if !defined(__NR_sigaction)
215 #define __NR_sigaction (__NR_SYSCALL_BASE+67)
218 #if !defined(__NR_setreuid)
219 #define __NR_setreuid (__NR_SYSCALL_BASE+70)
222 #if !defined(__NR_setregid)
223 #define __NR_setregid (__NR_SYSCALL_BASE+71)
226 #if !defined(__NR_sigsuspend)
227 #define __NR_sigsuspend (__NR_SYSCALL_BASE+72)
230 #if !defined(__NR_sigpending)
231 #define __NR_sigpending (__NR_SYSCALL_BASE+73)
234 #if !defined(__NR_sethostname)
235 #define __NR_sethostname (__NR_SYSCALL_BASE+74)
238 #if !defined(__NR_setrlimit)
239 #define __NR_setrlimit (__NR_SYSCALL_BASE+75)
242 #if !defined(__NR_getrusage)
243 #define __NR_getrusage (__NR_SYSCALL_BASE+77)
246 #if !defined(__NR_gettimeofday)
247 #define __NR_gettimeofday (__NR_SYSCALL_BASE+78)
250 #if !defined(__NR_settimeofday)
251 #define __NR_settimeofday (__NR_SYSCALL_BASE+79)
254 #if !defined(__NR_getgroups)
255 #define __NR_getgroups (__NR_SYSCALL_BASE+80)
258 #if !defined(__NR_setgroups)
259 #define __NR_setgroups (__NR_SYSCALL_BASE+81)
262 #if !defined(__NR_symlink)
263 #define __NR_symlink (__NR_SYSCALL_BASE+83)
266 #if !defined(__NR_readlink)
267 #define __NR_readlink (__NR_SYSCALL_BASE+85)
270 #if !defined(__NR_uselib)
271 #define __NR_uselib (__NR_SYSCALL_BASE+86)
274 #if !defined(__NR_swapon)
275 #define __NR_swapon (__NR_SYSCALL_BASE+87)
278 #if !defined(__NR_reboot)
279 #define __NR_reboot (__NR_SYSCALL_BASE+88)
282 #if !defined(__NR_munmap)
283 #define __NR_munmap (__NR_SYSCALL_BASE+91)
286 #if !defined(__NR_truncate)
287 #define __NR_truncate (__NR_SYSCALL_BASE+92)
290 #if !defined(__NR_ftruncate)
291 #define __NR_ftruncate (__NR_SYSCALL_BASE+93)
294 #if !defined(__NR_fchmod)
295 #define __NR_fchmod (__NR_SYSCALL_BASE+94)
298 #if !defined(__NR_fchown)
299 #define __NR_fchown (__NR_SYSCALL_BASE+95)
302 #if !defined(__NR_getpriority)
303 #define __NR_getpriority (__NR_SYSCALL_BASE+96)
306 #if !defined(__NR_setpriority)
307 #define __NR_setpriority (__NR_SYSCALL_BASE+97)
310 #if !defined(__NR_statfs)
311 #define __NR_statfs (__NR_SYSCALL_BASE+99)
314 #if !defined(__NR_fstatfs)
315 #define __NR_fstatfs (__NR_SYSCALL_BASE+100)
318 #if !defined(__NR_syslog)
319 #define __NR_syslog (__NR_SYSCALL_BASE+103)
322 #if !defined(__NR_setitimer)
323 #define __NR_setitimer (__NR_SYSCALL_BASE+104)
326 #if !defined(__NR_getitimer)
327 #define __NR_getitimer (__NR_SYSCALL_BASE+105)
330 #if !defined(__NR_stat)
331 #define __NR_stat (__NR_SYSCALL_BASE+106)
334 #if !defined(__NR_lstat)
335 #define __NR_lstat (__NR_SYSCALL_BASE+107)
338 #if !defined(__NR_fstat)
339 #define __NR_fstat (__NR_SYSCALL_BASE+108)
342 #if !defined(__NR_vhangup)
343 #define __NR_vhangup (__NR_SYSCALL_BASE+111)
346 #if !defined(__NR_wait4)
347 #define __NR_wait4 (__NR_SYSCALL_BASE+114)
350 #if !defined(__NR_swapoff)
351 #define __NR_swapoff (__NR_SYSCALL_BASE+115)
354 #if !defined(__NR_sysinfo)
355 #define __NR_sysinfo (__NR_SYSCALL_BASE+116)
358 #if !defined(__NR_fsync)
359 #define __NR_fsync (__NR_SYSCALL_BASE+118)
362 #if !defined(__NR_sigreturn)
363 #define __NR_sigreturn (__NR_SYSCALL_BASE+119)
366 #if !defined(__NR_clone)
367 #define __NR_clone (__NR_SYSCALL_BASE+120)
370 #if !defined(__NR_setdomainname)
371 #define __NR_setdomainname (__NR_SYSCALL_BASE+121)
374 #if !defined(__NR_uname)
375 #define __NR_uname (__NR_SYSCALL_BASE+122)
378 #if !defined(__NR_adjtimex)
379 #define __NR_adjtimex (__NR_SYSCALL_BASE+124)
382 #if !defined(__NR_mprotect)
383 #define __NR_mprotect (__NR_SYSCALL_BASE+125)
386 #if !defined(__NR_sigprocmask)
387 #define __NR_sigprocmask (__NR_SYSCALL_BASE+126)
390 #if !defined(__NR_init_module)
391 #define __NR_init_module (__NR_SYSCALL_BASE+128)
394 #if !defined(__NR_delete_module)
395 #define __NR_delete_module (__NR_SYSCALL_BASE+129)
398 #if !defined(__NR_quotactl)
399 #define __NR_quotactl (__NR_SYSCALL_BASE+131)
402 #if !defined(__NR_getpgid)
403 #define __NR_getpgid (__NR_SYSCALL_BASE+132)
406 #if !defined(__NR_fchdir)
407 #define __NR_fchdir (__NR_SYSCALL_BASE+133)
410 #if !defined(__NR_bdflush)
411 #define __NR_bdflush (__NR_SYSCALL_BASE+134)
414 #if !defined(__NR_sysfs)
415 #define __NR_sysfs (__NR_SYSCALL_BASE+135)
418 #if !defined(__NR_personality)
419 #define __NR_personality (__NR_SYSCALL_BASE+136)
422 #if !defined(__NR_setfsuid)
423 #define __NR_setfsuid (__NR_SYSCALL_BASE+138)
426 #if !defined(__NR_setfsgid)
427 #define __NR_setfsgid (__NR_SYSCALL_BASE+139)
430 #if !defined(__NR__llseek)
431 #define __NR__llseek (__NR_SYSCALL_BASE+140)
434 #if !defined(__NR_getdents)
435 #define __NR_getdents (__NR_SYSCALL_BASE+141)
438 #if !defined(__NR__newselect)
439 #define __NR__newselect (__NR_SYSCALL_BASE+142)
442 #if !defined(__NR_flock)
443 #define __NR_flock (__NR_SYSCALL_BASE+143)
446 #if !defined(__NR_msync)
447 #define __NR_msync (__NR_SYSCALL_BASE+144)
450 #if !defined(__NR_readv)
451 #define __NR_readv (__NR_SYSCALL_BASE+145)
454 #if !defined(__NR_writev)
455 #define __NR_writev (__NR_SYSCALL_BASE+146)
458 #if !defined(__NR_getsid)
459 #define __NR_getsid (__NR_SYSCALL_BASE+147)
462 #if !defined(__NR_fdatasync)
463 #define __NR_fdatasync (__NR_SYSCALL_BASE+148)
466 #if !defined(__NR__sysctl)
467 #define __NR__sysctl (__NR_SYSCALL_BASE+149)
470 #if !defined(__NR_mlock)
471 #define __NR_mlock (__NR_SYSCALL_BASE+150)
474 #if !defined(__NR_munlock)
475 #define __NR_munlock (__NR_SYSCALL_BASE+151)
478 #if !defined(__NR_mlockall)
479 #define __NR_mlockall (__NR_SYSCALL_BASE+152)
482 #if !defined(__NR_munlockall)
483 #define __NR_munlockall (__NR_SYSCALL_BASE+153)
486 #if !defined(__NR_sched_setparam)
487 #define __NR_sched_setparam (__NR_SYSCALL_BASE+154)
490 #if !defined(__NR_sched_getparam)
491 #define __NR_sched_getparam (__NR_SYSCALL_BASE+155)
494 #if !defined(__NR_sched_setscheduler)
495 #define __NR_sched_setscheduler (__NR_SYSCALL_BASE+156)
498 #if !defined(__NR_sched_getscheduler)
499 #define __NR_sched_getscheduler (__NR_SYSCALL_BASE+157)
502 #if !defined(__NR_sched_yield)
503 #define __NR_sched_yield (__NR_SYSCALL_BASE+158)
506 #if !defined(__NR_sched_get_priority_max)
507 #define __NR_sched_get_priority_max (__NR_SYSCALL_BASE+159)
510 #if !defined(__NR_sched_get_priority_min)
511 #define __NR_sched_get_priority_min (__NR_SYSCALL_BASE+160)
514 #if !defined(__NR_sched_rr_get_interval)
515 #define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE+161)
518 #if !defined(__NR_nanosleep)
519 #define __NR_nanosleep (__NR_SYSCALL_BASE+162)
522 #if !defined(__NR_mremap)
523 #define __NR_mremap (__NR_SYSCALL_BASE+163)
526 #if !defined(__NR_setresuid)
527 #define __NR_setresuid (__NR_SYSCALL_BASE+164)
530 #if !defined(__NR_getresuid)
531 #define __NR_getresuid (__NR_SYSCALL_BASE+165)
534 #if !defined(__NR_poll)
535 #define __NR_poll (__NR_SYSCALL_BASE+168)
538 #if !defined(__NR_nfsservctl)
539 #define __NR_nfsservctl (__NR_SYSCALL_BASE+169)
542 #if !defined(__NR_setresgid)
543 #define __NR_setresgid (__NR_SYSCALL_BASE+170)
546 #if !defined(__NR_getresgid)
547 #define __NR_getresgid (__NR_SYSCALL_BASE+171)
550 #if !defined(__NR_prctl)
551 #define __NR_prctl (__NR_SYSCALL_BASE+172)
554 #if !defined(__NR_rt_sigreturn)
555 #define __NR_rt_sigreturn (__NR_SYSCALL_BASE+173)
558 #if !defined(__NR_rt_sigaction)
559 #define __NR_rt_sigaction (__NR_SYSCALL_BASE+174)
562 #if !defined(__NR_rt_sigprocmask)
563 #define __NR_rt_sigprocmask (__NR_SYSCALL_BASE+175)
566 #if !defined(__NR_rt_sigpending)
567 #define __NR_rt_sigpending (__NR_SYSCALL_BASE+176)
570 #if !defined(__NR_rt_sigtimedwait)
571 #define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE+177)
574 #if !defined(__NR_rt_sigqueueinfo)
575 #define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE+178)
578 #if !defined(__NR_rt_sigsuspend)
579 #define __NR_rt_sigsuspend (__NR_SYSCALL_BASE+179)
582 #if !defined(__NR_pread64)
583 #define __NR_pread64 (__NR_SYSCALL_BASE+180)
586 #if !defined(__NR_pwrite64)
587 #define __NR_pwrite64 (__NR_SYSCALL_BASE+181)
590 #if !defined(__NR_chown)
591 #define __NR_chown (__NR_SYSCALL_BASE+182)
594 #if !defined(__NR_getcwd)
595 #define __NR_getcwd (__NR_SYSCALL_BASE+183)
598 #if !defined(__NR_capget)
599 #define __NR_capget (__NR_SYSCALL_BASE+184)
602 #if !defined(__NR_capset)
603 #define __NR_capset (__NR_SYSCALL_BASE+185)
606 #if !defined(__NR_sigaltstack)
607 #define __NR_sigaltstack (__NR_SYSCALL_BASE+186)
610 #if !defined(__NR_sendfile)
611 #define __NR_sendfile (__NR_SYSCALL_BASE+187)
614 #if !defined(__NR_vfork)
615 #define __NR_vfork (__NR_SYSCALL_BASE+190)
618 #if !defined(__NR_ugetrlimit)
619 #define __NR_ugetrlimit (__NR_SYSCALL_BASE+191)
622 #if !defined(__NR_mmap2)
623 #define __NR_mmap2 (__NR_SYSCALL_BASE+192)
626 #if !defined(__NR_truncate64)
627 #define __NR_truncate64 (__NR_SYSCALL_BASE+193)
630 #if !defined(__NR_ftruncate64)
631 #define __NR_ftruncate64 (__NR_SYSCALL_BASE+194)
634 #if !defined(__NR_stat64)
635 #define __NR_stat64 (__NR_SYSCALL_BASE+195)
638 #if !defined(__NR_lstat64)
639 #define __NR_lstat64 (__NR_SYSCALL_BASE+196)
642 #if !defined(__NR_fstat64)
643 #define __NR_fstat64 (__NR_SYSCALL_BASE+197)
646 #if !defined(__NR_lchown32)
647 #define __NR_lchown32 (__NR_SYSCALL_BASE+198)
650 #if !defined(__NR_getuid32)
651 #define __NR_getuid32 (__NR_SYSCALL_BASE+199)
654 #if !defined(__NR_getgid32)
655 #define __NR_getgid32 (__NR_SYSCALL_BASE+200)
658 #if !defined(__NR_geteuid32)
659 #define __NR_geteuid32 (__NR_SYSCALL_BASE+201)
662 #if !defined(__NR_getegid32)
663 #define __NR_getegid32 (__NR_SYSCALL_BASE+202)
666 #if !defined(__NR_setreuid32)
667 #define __NR_setreuid32 (__NR_SYSCALL_BASE+203)
670 #if !defined(__NR_setregid32)
671 #define __NR_setregid32 (__NR_SYSCALL_BASE+204)
674 #if !defined(__NR_getgroups32)
675 #define __NR_getgroups32 (__NR_SYSCALL_BASE+205)
678 #if !defined(__NR_setgroups32)
679 #define __NR_setgroups32 (__NR_SYSCALL_BASE+206)
682 #if !defined(__NR_fchown32)
683 #define __NR_fchown32 (__NR_SYSCALL_BASE+207)
686 #if !defined(__NR_setresuid32)
687 #define __NR_setresuid32 (__NR_SYSCALL_BASE+208)
690 #if !defined(__NR_getresuid32)
691 #define __NR_getresuid32 (__NR_SYSCALL_BASE+209)
694 #if !defined(__NR_setresgid32)
695 #define __NR_setresgid32 (__NR_SYSCALL_BASE+210)
698 #if !defined(__NR_getresgid32)
699 #define __NR_getresgid32 (__NR_SYSCALL_BASE+211)
702 #if !defined(__NR_chown32)
703 #define __NR_chown32 (__NR_SYSCALL_BASE+212)
706 #if !defined(__NR_setuid32)
707 #define __NR_setuid32 (__NR_SYSCALL_BASE+213)
710 #if !defined(__NR_setgid32)
711 #define __NR_setgid32 (__NR_SYSCALL_BASE+214)
714 #if !defined(__NR_setfsuid32)
715 #define __NR_setfsuid32 (__NR_SYSCALL_BASE+215)
718 #if !defined(__NR_setfsgid32)
719 #define __NR_setfsgid32 (__NR_SYSCALL_BASE+216)
722 #if !defined(__NR_getdents64)
723 #define __NR_getdents64 (__NR_SYSCALL_BASE+217)
726 #if !defined(__NR_pivot_root)
727 #define __NR_pivot_root (__NR_SYSCALL_BASE+218)
730 #if !defined(__NR_mincore)
731 #define __NR_mincore (__NR_SYSCALL_BASE+219)
734 #if !defined(__NR_madvise)
735 #define __NR_madvise (__NR_SYSCALL_BASE+220)
738 #if !defined(__NR_fcntl64)
739 #define __NR_fcntl64 (__NR_SYSCALL_BASE+221)
742 #if !defined(__NR_gettid)
743 #define __NR_gettid (__NR_SYSCALL_BASE+224)
746 #if !defined(__NR_readahead)
747 #define __NR_readahead (__NR_SYSCALL_BASE+225)
750 #if !defined(__NR_setxattr)
751 #define __NR_setxattr (__NR_SYSCALL_BASE+226)
754 #if !defined(__NR_lsetxattr)
755 #define __NR_lsetxattr (__NR_SYSCALL_BASE+227)
758 #if !defined(__NR_fsetxattr)
759 #define __NR_fsetxattr (__NR_SYSCALL_BASE+228)
762 #if !defined(__NR_getxattr)
763 #define __NR_getxattr (__NR_SYSCALL_BASE+229)
766 #if !defined(__NR_lgetxattr)
767 #define __NR_lgetxattr (__NR_SYSCALL_BASE+230)
770 #if !defined(__NR_fgetxattr)
771 #define __NR_fgetxattr (__NR_SYSCALL_BASE+231)
774 #if !defined(__NR_listxattr)
775 #define __NR_listxattr (__NR_SYSCALL_BASE+232)
778 #if !defined(__NR_llistxattr)
779 #define __NR_llistxattr (__NR_SYSCALL_BASE+233)
782 #if !defined(__NR_flistxattr)
783 #define __NR_flistxattr (__NR_SYSCALL_BASE+234)
786 #if !defined(__NR_removexattr)
787 #define __NR_removexattr (__NR_SYSCALL_BASE+235)
790 #if !defined(__NR_lremovexattr)
791 #define __NR_lremovexattr (__NR_SYSCALL_BASE+236)
794 #if !defined(__NR_fremovexattr)
795 #define __NR_fremovexattr (__NR_SYSCALL_BASE+237)
798 #if !defined(__NR_tkill)
799 #define __NR_tkill (__NR_SYSCALL_BASE+238)
802 #if !defined(__NR_sendfile64)
803 #define __NR_sendfile64 (__NR_SYSCALL_BASE+239)
806 #if !defined(__NR_futex)
807 #define __NR_futex (__NR_SYSCALL_BASE+240)
810 #if !defined(__NR_sched_setaffinity)
811 #define __NR_sched_setaffinity (__NR_SYSCALL_BASE+241)
814 #if !defined(__NR_sched_getaffinity)
815 #define __NR_sched_getaffinity (__NR_SYSCALL_BASE+242)
818 #if !defined(__NR_io_setup)
819 #define __NR_io_setup (__NR_SYSCALL_BASE+243)
822 #if !defined(__NR_io_destroy)
823 #define __NR_io_destroy (__NR_SYSCALL_BASE+244)
826 #if !defined(__NR_io_getevents)
827 #define __NR_io_getevents (__NR_SYSCALL_BASE+245)
830 #if !defined(__NR_io_submit)
831 #define __NR_io_submit (__NR_SYSCALL_BASE+246)
834 #if !defined(__NR_io_cancel)
835 #define __NR_io_cancel (__NR_SYSCALL_BASE+247)
838 #if !defined(__NR_exit_group)
839 #define __NR_exit_group (__NR_SYSCALL_BASE+248)
842 #if !defined(__NR_lookup_dcookie)
843 #define __NR_lookup_dcookie (__NR_SYSCALL_BASE+249)
846 #if !defined(__NR_epoll_create)
847 #define __NR_epoll_create (__NR_SYSCALL_BASE+250)
850 #if !defined(__NR_epoll_ctl)
851 #define __NR_epoll_ctl (__NR_SYSCALL_BASE+251)
854 #if !defined(__NR_epoll_wait)
855 #define __NR_epoll_wait (__NR_SYSCALL_BASE+252)
858 #if !defined(__NR_remap_file_pages)
859 #define __NR_remap_file_pages (__NR_SYSCALL_BASE+253)
862 #if !defined(__NR_set_tid_address)
863 #define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
866 #if !defined(__NR_timer_create)
867 #define __NR_timer_create (__NR_SYSCALL_BASE+257)
870 #if !defined(__NR_timer_settime)
871 #define __NR_timer_settime (__NR_SYSCALL_BASE+258)
874 #if !defined(__NR_timer_gettime)
875 #define __NR_timer_gettime (__NR_SYSCALL_BASE+259)
878 #if !defined(__NR_timer_getoverrun)
879 #define __NR_timer_getoverrun (__NR_SYSCALL_BASE+260)
882 #if !defined(__NR_timer_delete)
883 #define __NR_timer_delete (__NR_SYSCALL_BASE+261)
886 #if !defined(__NR_clock_settime)
887 #define __NR_clock_settime (__NR_SYSCALL_BASE+262)
890 #if !defined(__NR_clock_gettime)
891 #define __NR_clock_gettime (__NR_SYSCALL_BASE+263)
894 #if !defined(__NR_clock_getres)
895 #define __NR_clock_getres (__NR_SYSCALL_BASE+264)
898 #if !defined(__NR_clock_nanosleep)
899 #define __NR_clock_nanosleep (__NR_SYSCALL_BASE+265)
902 #if !defined(__NR_statfs64)
903 #define __NR_statfs64 (__NR_SYSCALL_BASE+266)
906 #if !defined(__NR_fstatfs64)
907 #define __NR_fstatfs64 (__NR_SYSCALL_BASE+267)
910 #if !defined(__NR_tgkill)
911 #define __NR_tgkill (__NR_SYSCALL_BASE+268)
914 #if !defined(__NR_utimes)
915 #define __NR_utimes (__NR_SYSCALL_BASE+269)
918 #if !defined(__NR_arm_fadvise64_64)
919 #define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE+270)
922 #if !defined(__NR_pciconfig_iobase)
923 #define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271)
926 #if !defined(__NR_pciconfig_read)
927 #define __NR_pciconfig_read (__NR_SYSCALL_BASE+272)
930 #if !defined(__NR_pciconfig_write)
931 #define __NR_pciconfig_write (__NR_SYSCALL_BASE+273)
934 #if !defined(__NR_mq_open)
935 #define __NR_mq_open (__NR_SYSCALL_BASE+274)
938 #if !defined(__NR_mq_unlink)
939 #define __NR_mq_unlink (__NR_SYSCALL_BASE+275)
942 #if !defined(__NR_mq_timedsend)
943 #define __NR_mq_timedsend (__NR_SYSCALL_BASE+276)
946 #if !defined(__NR_mq_timedreceive)
947 #define __NR_mq_timedreceive (__NR_SYSCALL_BASE+277)
950 #if !defined(__NR_mq_notify)
951 #define __NR_mq_notify (__NR_SYSCALL_BASE+278)
954 #if !defined(__NR_mq_getsetattr)
955 #define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279)
958 #if !defined(__NR_waitid)
959 #define __NR_waitid (__NR_SYSCALL_BASE+280)
962 #if !defined(__NR_socket)
963 #define __NR_socket (__NR_SYSCALL_BASE+281)
966 #if !defined(__NR_bind)
967 #define __NR_bind (__NR_SYSCALL_BASE+282)
970 #if !defined(__NR_connect)
971 #define __NR_connect (__NR_SYSCALL_BASE+283)
974 #if !defined(__NR_listen)
975 #define __NR_listen (__NR_SYSCALL_BASE+284)
978 #if !defined(__NR_accept)
979 #define __NR_accept (__NR_SYSCALL_BASE+285)
982 #if !defined(__NR_getsockname)
983 #define __NR_getsockname (__NR_SYSCALL_BASE+286)
986 #if !defined(__NR_getpeername)
987 #define __NR_getpeername (__NR_SYSCALL_BASE+287)
990 #if !defined(__NR_socketpair)
991 #define __NR_socketpair (__NR_SYSCALL_BASE+288)
994 #if !defined(__NR_send)
995 #define __NR_send (__NR_SYSCALL_BASE+289)
998 #if !defined(__NR_sendto)
999 #define __NR_sendto (__NR_SYSCALL_BASE+290)
1002 #if !defined(__NR_recv)
1003 #define __NR_recv (__NR_SYSCALL_BASE+291)
1006 #if !defined(__NR_recvfrom)
1007 #define __NR_recvfrom (__NR_SYSCALL_BASE+292)
1010 #if !defined(__NR_shutdown)
1011 #define __NR_shutdown (__NR_SYSCALL_BASE+293)
1014 #if !defined(__NR_setsockopt)
1015 #define __NR_setsockopt (__NR_SYSCALL_BASE+294)
1018 #if !defined(__NR_getsockopt)
1019 #define __NR_getsockopt (__NR_SYSCALL_BASE+295)
1022 #if !defined(__NR_sendmsg)
1023 #define __NR_sendmsg (__NR_SYSCALL_BASE+296)
1026 #if !defined(__NR_recvmsg)
1027 #define __NR_recvmsg (__NR_SYSCALL_BASE+297)
1030 #if !defined(__NR_semop)
1031 #define __NR_semop (__NR_SYSCALL_BASE+298)
1034 #if !defined(__NR_semget)
1035 #define __NR_semget (__NR_SYSCALL_BASE+299)
1038 #if !defined(__NR_semctl)
1039 #define __NR_semctl (__NR_SYSCALL_BASE+300)
1042 #if !defined(__NR_msgsnd)
1043 #define __NR_msgsnd (__NR_SYSCALL_BASE+301)
1046 #if !defined(__NR_msgrcv)
1047 #define __NR_msgrcv (__NR_SYSCALL_BASE+302)
1050 #if !defined(__NR_msgget)
1051 #define __NR_msgget (__NR_SYSCALL_BASE+303)
1054 #if !defined(__NR_msgctl)
1055 #define __NR_msgctl (__NR_SYSCALL_BASE+304)
1058 #if !defined(__NR_shmat)
1059 #define __NR_shmat (__NR_SYSCALL_BASE+305)
1062 #if !defined(__NR_shmdt)
1063 #define __NR_shmdt (__NR_SYSCALL_BASE+306)
1066 #if !defined(__NR_shmget)
1067 #define __NR_shmget (__NR_SYSCALL_BASE+307)
1070 #if !defined(__NR_shmctl)
1071 #define __NR_shmctl (__NR_SYSCALL_BASE+308)
1074 #if !defined(__NR_add_key)
1075 #define __NR_add_key (__NR_SYSCALL_BASE+309)
1078 #if !defined(__NR_request_key)
1079 #define __NR_request_key (__NR_SYSCALL_BASE+310)
1082 #if !defined(__NR_keyctl)
1083 #define __NR_keyctl (__NR_SYSCALL_BASE+311)
1086 #if !defined(__NR_semtimedop)
1087 #define __NR_semtimedop (__NR_SYSCALL_BASE+312)
1090 #if !defined(__NR_vserver)
1091 #define __NR_vserver (__NR_SYSCALL_BASE+313)
1094 #if !defined(__NR_ioprio_set)
1095 #define __NR_ioprio_set (__NR_SYSCALL_BASE+314)
1098 #if !defined(__NR_ioprio_get)
1099 #define __NR_ioprio_get (__NR_SYSCALL_BASE+315)
1102 #if !defined(__NR_inotify_init)
1103 #define __NR_inotify_init (__NR_SYSCALL_BASE+316)
1106 #if !defined(__NR_inotify_add_watch)
1107 #define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317)
1110 #if !defined(__NR_inotify_rm_watch)
1111 #define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)
1114 #if !defined(__NR_mbind)
1115 #define __NR_mbind (__NR_SYSCALL_BASE+319)
1118 #if !defined(__NR_get_mempolicy)
1119 #define __NR_get_mempolicy (__NR_SYSCALL_BASE+320)
1122 #if !defined(__NR_set_mempolicy)
1123 #define __NR_set_mempolicy (__NR_SYSCALL_BASE+321)
1126 #if !defined(__NR_openat)
1127 #define __NR_openat (__NR_SYSCALL_BASE+322)
1130 #if !defined(__NR_mkdirat)
1131 #define __NR_mkdirat (__NR_SYSCALL_BASE+323)
1134 #if !defined(__NR_mknodat)
1135 #define __NR_mknodat (__NR_SYSCALL_BASE+324)
1138 #if !defined(__NR_fchownat)
1139 #define __NR_fchownat (__NR_SYSCALL_BASE+325)
1142 #if !defined(__NR_futimesat)
1143 #define __NR_futimesat (__NR_SYSCALL_BASE+326)
1146 #if !defined(__NR_fstatat64)
1147 #define __NR_fstatat64 (__NR_SYSCALL_BASE+327)
1150 #if !defined(__NR_unlinkat)
1151 #define __NR_unlinkat (__NR_SYSCALL_BASE+328)
1154 #if !defined(__NR_renameat)
1155 #define __NR_renameat (__NR_SYSCALL_BASE+329)
1158 #if !defined(__NR_linkat)
1159 #define __NR_linkat (__NR_SYSCALL_BASE+330)
1162 #if !defined(__NR_symlinkat)
1163 #define __NR_symlinkat (__NR_SYSCALL_BASE+331)
1166 #if !defined(__NR_readlinkat)
1167 #define __NR_readlinkat (__NR_SYSCALL_BASE+332)
1170 #if !defined(__NR_fchmodat)
1171 #define __NR_fchmodat (__NR_SYSCALL_BASE+333)
1174 #if !defined(__NR_faccessat)
1175 #define __NR_faccessat (__NR_SYSCALL_BASE+334)
1178 #if !defined(__NR_pselect6)
1179 #define __NR_pselect6 (__NR_SYSCALL_BASE+335)
1182 #if !defined(__NR_ppoll)
1183 #define __NR_ppoll (__NR_SYSCALL_BASE+336)
1186 #if !defined(__NR_unshare)
1187 #define __NR_unshare (__NR_SYSCALL_BASE+337)
1190 #if !defined(__NR_set_robust_list)
1191 #define __NR_set_robust_list (__NR_SYSCALL_BASE+338)
1194 #if !defined(__NR_get_robust_list)
1195 #define __NR_get_robust_list (__NR_SYSCALL_BASE+339)
1198 #if !defined(__NR_splice)
1199 #define __NR_splice (__NR_SYSCALL_BASE+340)
1202 #if !defined(__NR_arm_sync_file_range)
1203 #define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341)
1206 #if !defined(__NR_tee)
1207 #define __NR_tee (__NR_SYSCALL_BASE+342)
1210 #if !defined(__NR_vmsplice)
1211 #define __NR_vmsplice (__NR_SYSCALL_BASE+343)
1214 #if !defined(__NR_move_pages)
1215 #define __NR_move_pages (__NR_SYSCALL_BASE+344)
1218 #if !defined(__NR_getcpu)
1219 #define __NR_getcpu (__NR_SYSCALL_BASE+345)
1222 #if !defined(__NR_epoll_pwait)
1223 #define __NR_epoll_pwait (__NR_SYSCALL_BASE+346)
1226 #if !defined(__NR_kexec_load)
1227 #define __NR_kexec_load (__NR_SYSCALL_BASE+347)
1230 #if !defined(__NR_utimensat)
1231 #define __NR_utimensat (__NR_SYSCALL_BASE+348)
1234 #if !defined(__NR_signalfd)
1235 #define __NR_signalfd (__NR_SYSCALL_BASE+349)
1238 #if !defined(__NR_timerfd_create)
1239 #define __NR_timerfd_create (__NR_SYSCALL_BASE+350)
1242 #if !defined(__NR_eventfd)
1243 #define __NR_eventfd (__NR_SYSCALL_BASE+351)
1246 #if !defined(__NR_fallocate)
1247 #define __NR_fallocate (__NR_SYSCALL_BASE+352)
1250 #if !defined(__NR_timerfd_settime)
1251 #define __NR_timerfd_settime (__NR_SYSCALL_BASE+353)
1254 #if !defined(__NR_timerfd_gettime)
1255 #define __NR_timerfd_gettime (__NR_SYSCALL_BASE+354)
1258 #if !defined(__NR_signalfd4)
1259 #define __NR_signalfd4 (__NR_SYSCALL_BASE+355)
1262 #if !defined(__NR_eventfd2)
1263 #define __NR_eventfd2 (__NR_SYSCALL_BASE+356)
1266 #if !defined(__NR_epoll_create1)
1267 #define __NR_epoll_create1 (__NR_SYSCALL_BASE+357)
1270 #if !defined(__NR_dup3)
1271 #define __NR_dup3 (__NR_SYSCALL_BASE+358)
1274 #if !defined(__NR_pipe2)
1275 #define __NR_pipe2 (__NR_SYSCALL_BASE+359)
1278 #if !defined(__NR_inotify_init1)
1279 #define __NR_inotify_init1 (__NR_SYSCALL_BASE+360)
1282 #if !defined(__NR_preadv)
1283 #define __NR_preadv (__NR_SYSCALL_BASE+361)
1286 #if !defined(__NR_pwritev)
1287 #define __NR_pwritev (__NR_SYSCALL_BASE+362)
1290 #if !defined(__NR_rt_tgsigqueueinfo)
1291 #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
1294 #if !defined(__NR_perf_event_open)
1295 #define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
1298 #if !defined(__NR_recvmmsg)
1299 #define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
1302 #if !defined(__NR_accept4)
1303 #define __NR_accept4 (__NR_SYSCALL_BASE+366)
1306 #if !defined(__NR_fanotify_init)
1307 #define __NR_fanotify_init (__NR_SYSCALL_BASE+367)
1310 #if !defined(__NR_fanotify_mark)
1311 #define __NR_fanotify_mark (__NR_SYSCALL_BASE+368)
1314 #if !defined(__NR_prlimit64)
1315 #define __NR_prlimit64 (__NR_SYSCALL_BASE+369)
1318 #if !defined(__NR_name_to_handle_at)
1319 #define __NR_name_to_handle_at (__NR_SYSCALL_BASE+370)
1322 #if !defined(__NR_open_by_handle_at)
1323 #define __NR_open_by_handle_at (__NR_SYSCALL_BASE+371)
1326 #if !defined(__NR_clock_adjtime)
1327 #define __NR_clock_adjtime (__NR_SYSCALL_BASE+372)
1330 #if !defined(__NR_syncfs)
1331 #define __NR_syncfs (__NR_SYSCALL_BASE+373)
1334 #if !defined(__NR_sendmmsg)
1335 #define __NR_sendmmsg (__NR_SYSCALL_BASE+374)
1338 #if !defined(__NR_setns)
1339 #define __NR_setns (__NR_SYSCALL_BASE+375)
1342 #if !defined(__NR_process_vm_readv)
1343 #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376)
1346 #if !defined(__NR_process_vm_writev)
1347 #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377)
1350 // ARM private syscalls.
1351 #if !defined(__ARM_NR_breakpoint)
1352 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
1355 #if !defined(__ARM_NR_cacheflush)
1356 #define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
1359 #if !defined(__ARM_NR_usr26)
1360 #define __ARM_NR_usr26 (__ARM_NR_BASE+3)
1363 #if !defined(__ARM_NR_usr32)
1364 #define __ARM_NR_usr32 (__ARM_NR_BASE+4)
1367 #if !defined(__ARM_NR_set_tls)
1368 #define __ARM_NR_set_tls (__ARM_NR_BASE+5)
1371 // ARM kernel private syscall.
1372 #if !defined(__ARM_NR_cmpxchg)
1373 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
1376 #endif // SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_