1 // Copyright 2014 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 #ifndef SANDBOX_LINUX_SERVICES_ARM64_LINUX_SYSCALLS_H_
6 #define SANDBOX_LINUX_SERVICES_ARM64_LINUX_SYSCALLS_H_
8 #include <asm-generic/unistd.h>
10 #if !defined(__NR_io_setup)
11 #define __NR_io_setup 0
14 #if !defined(__NR_io_destroy)
15 #define __NR_io_destroy 1
18 #if !defined(__NR_io_submit)
19 #define __NR_io_submit 2
22 #if !defined(__NR_io_cancel)
23 #define __NR_io_cancel 3
26 #if !defined(__NR_io_getevents)
27 #define __NR_io_getevents 4
30 #if !defined(__NR_setxattr)
31 #define __NR_setxattr 5
34 #if !defined(__NR_lsetxattr)
35 #define __NR_lsetxattr 6
38 #if !defined(__NR_fsetxattr)
39 #define __NR_fsetxattr 7
42 #if !defined(__NR_getxattr)
43 #define __NR_getxattr 8
46 #if !defined(__NR_lgetxattr)
47 #define __NR_lgetxattr 9
50 #if !defined(__NR_fgetxattr)
51 #define __NR_fgetxattr 10
54 #if !defined(__NR_listxattr)
55 #define __NR_listxattr 11
58 #if !defined(__NR_llistxattr)
59 #define __NR_llistxattr 12
62 #if !defined(__NR_flistxattr)
63 #define __NR_flistxattr 13
66 #if !defined(__NR_removexattr)
67 #define __NR_removexattr 14
70 #if !defined(__NR_lremovexattr)
71 #define __NR_lremovexattr 15
74 #if !defined(__NR_fremovexattr)
75 #define __NR_fremovexattr 16
78 #if !defined(__NR_getcwd)
79 #define __NR_getcwd 17
82 #if !defined(__NR_lookup_dcookie)
83 #define __NR_lookup_dcookie 18
86 #if !defined(__NR_eventfd2)
87 #define __NR_eventfd2 19
90 #if !defined(__NR_epoll_create1)
91 #define __NR_epoll_create1 20
94 #if !defined(__NR_epoll_ctl)
95 #define __NR_epoll_ctl 21
98 #if !defined(__NR_epoll_pwait)
99 #define __NR_epoll_pwait 22
102 #if !defined(__NR_dup)
106 #if !defined(__NR_dup3)
110 #if !defined(__NR_fcntl)
111 #define __NR_fcntl 25
114 #if !defined(__NR_inotify_init1)
115 #define __NR_inotify_init1 26
118 #if !defined(__NR_inotify_add_watch)
119 #define __NR_inotify_add_watch 27
122 #if !defined(__NR_inotify_rm_watch)
123 #define __NR_inotify_rm_watch 28
126 #if !defined(__NR_ioctl)
127 #define __NR_ioctl 29
130 #if !defined(__NR_ioprio_set)
131 #define __NR_ioprio_set 30
134 #if !defined(__NR_ioprio_get)
135 #define __NR_ioprio_get 31
138 #if !defined(__NR_flock)
139 #define __NR_flock 32
142 #if !defined(__NR_mknodat)
143 #define __NR_mknodat 33
146 #if !defined(__NR_mkdirat)
147 #define __NR_mkdirat 34
150 #if !defined(__NR_unlinkat)
151 #define __NR_unlinkat 35
154 #if !defined(__NR_symlinkat)
155 #define __NR_symlinkat 36
158 #if !defined(__NR_linkat)
159 #define __NR_linkat 37
162 #if !defined(__NR_renameat)
163 #define __NR_renameat 38
166 #if !defined(__NR_umount2)
167 #define __NR_umount2 39
170 #if !defined(__NR_mount)
171 #define __NR_mount 40
174 #if !defined(__NR_pivot_root)
175 #define __NR_pivot_root 41
178 #if !defined(__NR_nfsservctl)
179 #define __NR_nfsservctl 42
182 #if !defined(__NR_statfs)
183 #define __NR_statfs 43
186 #if !defined(__NR_fstatfs)
187 #define __NR_fstatfs 44
190 #if !defined(__NR_truncate)
191 #define __NR_truncate 45
194 #if !defined(__NR_ftruncate)
195 #define __NR_ftruncate 46
198 #if !defined(__NR_fallocate)
199 #define __NR_fallocate 47
202 #if !defined(__NR_faccessat)
203 #define __NR_faccessat 48
206 #if !defined(__NR_chdir)
207 #define __NR_chdir 49
210 #if !defined(__NR_fchdir)
211 #define __NR_fchdir 50
214 #if !defined(__NR_chroot)
215 #define __NR_chroot 51
218 #if !defined(__NR_fchmod)
219 #define __NR_fchmod 52
222 #if !defined(__NR_fchmodat)
223 #define __NR_fchmodat 53
226 #if !defined(__NR_fchownat)
227 #define __NR_fchownat 54
230 #if !defined(__NR_fchown)
231 #define __NR_fchown 55
234 #if !defined(__NR_openat)
235 #define __NR_openat 56
238 #if !defined(__NR_close)
239 #define __NR_close 57
242 #if !defined(__NR_vhangup)
243 #define __NR_vhangup 58
246 #if !defined(__NR_pipe2)
247 #define __NR_pipe2 59
250 #if !defined(__NR_quotactl)
251 #define __NR_quotactl 60
254 #if !defined(__NR_getdents64)
255 #define __NR_getdents64 61
258 #if !defined(__NR_lseek)
259 #define __NR_lseek 62
262 #if !defined(__NR_read)
266 #if !defined(__NR_write)
267 #define __NR_write 64
270 #if !defined(__NR_readv)
271 #define __NR_readv 65
274 #if !defined(__NR_writev)
275 #define __NR_writev 66
278 #if !defined(__NR_pread64)
279 #define __NR_pread64 67
282 #if !defined(__NR_pwrite64)
283 #define __NR_pwrite64 68
286 #if !defined(__NR_preadv)
287 #define __NR_preadv 69
290 #if !defined(__NR_pwritev)
291 #define __NR_pwritev 70
294 #if !defined(__NR_sendfile)
295 #define __NR_sendfile 71
298 #if !defined(__NR_pselect6)
299 #define __NR_pselect6 72
302 #if !defined(__NR_ppoll)
303 #define __NR_ppoll 73
306 #if !defined(__NR_signalfd4)
307 #define __NR_signalfd4 74
310 #if !defined(__NR_vmsplice)
311 #define __NR_vmsplice 75
314 #if !defined(__NR_splice)
315 #define __NR_splice 76
318 #if !defined(__NR_tee)
322 #if !defined(__NR_readlinkat)
323 #define __NR_readlinkat 78
326 #if !defined(__NR_newfstatat)
327 #define __NR_newfstatat 79
330 #if !defined(__NR_fstat)
331 #define __NR_fstat 80
334 #if !defined(__NR_sync)
338 #if !defined(__NR_fsync)
339 #define __NR_fsync 82
342 #if !defined(__NR_fdatasync)
343 #define __NR_fdatasync 83
346 #if !defined(__NR_sync_file_range)
347 #define __NR_sync_file_range 84
350 #if !defined(__NR_timerfd_create)
351 #define __NR_timerfd_create 85
354 #if !defined(__NR_timerfd_settime)
355 #define __NR_timerfd_settime 86
358 #if !defined(__NR_timerfd_gettime)
359 #define __NR_timerfd_gettime 87
362 #if !defined(__NR_utimensat)
363 #define __NR_utimensat 88
366 #if !defined(__NR_acct)
370 #if !defined(__NR_capget)
371 #define __NR_capget 90
374 #if !defined(__NR_capset)
375 #define __NR_capset 91
378 #if !defined(__NR_personality)
379 #define __NR_personality 92
382 #if !defined(__NR_exit)
386 #if !defined(__NR_exit_group)
387 #define __NR_exit_group 94
390 #if !defined(__NR_waitid)
391 #define __NR_waitid 95
394 #if !defined(__NR_set_tid_address)
395 #define __NR_set_tid_address 96
398 #if !defined(__NR_unshare)
399 #define __NR_unshare 97
402 #if !defined(__NR_futex)
403 #define __NR_futex 98
406 #if !defined(__NR_set_robust_list)
407 #define __NR_set_robust_list 99
410 #if !defined(__NR_get_robust_list)
411 #define __NR_get_robust_list 100
414 #if !defined(__NR_nanosleep)
415 #define __NR_nanosleep 101
418 #if !defined(__NR_getitimer)
419 #define __NR_getitimer 102
422 #if !defined(__NR_setitimer)
423 #define __NR_setitimer 103
426 #if !defined(__NR_kexec_load)
427 #define __NR_kexec_load 104
430 #if !defined(__NR_init_module)
431 #define __NR_init_module 105
434 #if !defined(__NR_delete_module)
435 #define __NR_delete_module 106
438 #if !defined(__NR_timer_create)
439 #define __NR_timer_create 107
442 #if !defined(__NR_timer_gettime)
443 #define __NR_timer_gettime 108
446 #if !defined(__NR_timer_getoverrun)
447 #define __NR_timer_getoverrun 109
450 #if !defined(__NR_timer_settime)
451 #define __NR_timer_settime 110
454 #if !defined(__NR_timer_delete)
455 #define __NR_timer_delete 111
458 #if !defined(__NR_clock_settime)
459 #define __NR_clock_settime 112
462 #if !defined(__NR_clock_gettime)
463 #define __NR_clock_gettime 113
466 #if !defined(__NR_clock_getres)
467 #define __NR_clock_getres 114
470 #if !defined(__NR_clock_nanosleep)
471 #define __NR_clock_nanosleep 115
474 #if !defined(__NR_syslog)
475 #define __NR_syslog 116
478 #if !defined(__NR_ptrace)
479 #define __NR_ptrace 117
482 #if !defined(__NR_sched_setparam)
483 #define __NR_sched_setparam 118
486 #if !defined(__NR_sched_setscheduler)
487 #define __NR_sched_setscheduler 119
490 #if !defined(__NR_sched_getscheduler)
491 #define __NR_sched_getscheduler 120
494 #if !defined(__NR_sched_getparam)
495 #define __NR_sched_getparam 121
498 #if !defined(__NR_sched_setaffinity)
499 #define __NR_sched_setaffinity 122
502 #if !defined(__NR_sched_getaffinity)
503 #define __NR_sched_getaffinity 123
506 #if !defined(__NR_sched_yield)
507 #define __NR_sched_yield 124
510 #if !defined(__NR_sched_get_priority_max)
511 #define __NR_sched_get_priority_max 125
514 #if !defined(__NR_sched_get_priority_min)
515 #define __NR_sched_get_priority_min 126
518 #if !defined(__NR_sched_rr_get_interval)
519 #define __NR_sched_rr_get_interval 127
522 #if !defined(__NR_restart_syscall)
523 #define __NR_restart_syscall 128
526 #if !defined(__NR_kill)
527 #define __NR_kill 129
530 #if !defined(__NR_tkill)
531 #define __NR_tkill 130
534 #if !defined(__NR_tgkill)
535 #define __NR_tgkill 131
538 #if !defined(__NR_sigaltstack)
539 #define __NR_sigaltstack 132
542 #if !defined(__NR_rt_sigsuspend)
543 #define __NR_rt_sigsuspend 133
546 #if !defined(__NR_rt_sigaction)
547 #define __NR_rt_sigaction 134
550 #if !defined(__NR_rt_sigprocmask)
551 #define __NR_rt_sigprocmask 135
554 #if !defined(__NR_rt_sigpending)
555 #define __NR_rt_sigpending 136
558 #if !defined(__NR_rt_sigtimedwait)
559 #define __NR_rt_sigtimedwait 137
562 #if !defined(__NR_rt_sigqueueinfo)
563 #define __NR_rt_sigqueueinfo 138
566 #if !defined(__NR_rt_sigreturn)
567 #define __NR_rt_sigreturn 139
570 #if !defined(__NR_setpriority)
571 #define __NR_setpriority 140
574 #if !defined(__NR_getpriority)
575 #define __NR_getpriority 141
578 #if !defined(__NR_reboot)
579 #define __NR_reboot 142
582 #if !defined(__NR_setregid)
583 #define __NR_setregid 143
586 #if !defined(__NR_setgid)
587 #define __NR_setgid 144
590 #if !defined(__NR_setreuid)
591 #define __NR_setreuid 145
594 #if !defined(__NR_setuid)
595 #define __NR_setuid 146
598 #if !defined(__NR_setresuid)
599 #define __NR_setresuid 147
602 #if !defined(__NR_getresuid)
603 #define __NR_getresuid 148
606 #if !defined(__NR_setresgid)
607 #define __NR_setresgid 149
610 #if !defined(__NR_getresgid)
611 #define __NR_getresgid 150
614 #if !defined(__NR_setfsuid)
615 #define __NR_setfsuid 151
618 #if !defined(__NR_setfsgid)
619 #define __NR_setfsgid 152
622 #if !defined(__NR_times)
623 #define __NR_times 153
626 #if !defined(__NR_setpgid)
627 #define __NR_setpgid 154
630 #if !defined(__NR_getpgid)
631 #define __NR_getpgid 155
634 #if !defined(__NR_getsid)
635 #define __NR_getsid 156
638 #if !defined(__NR_setsid)
639 #define __NR_setsid 157
642 #if !defined(__NR_getgroups)
643 #define __NR_getgroups 158
646 #if !defined(__NR_setgroups)
647 #define __NR_setgroups 159
650 #if !defined(__NR_uname)
651 #define __NR_uname 160
654 #if !defined(__NR_sethostname)
655 #define __NR_sethostname 161
658 #if !defined(__NR_setdomainname)
659 #define __NR_setdomainname 162
662 #if !defined(__NR_getrlimit)
663 #define __NR_getrlimit 163
666 #if !defined(__NR_setrlimit)
667 #define __NR_setrlimit 164
670 #if !defined(__NR_getrusage)
671 #define __NR_getrusage 165
674 #if !defined(__NR_umask)
675 #define __NR_umask 166
678 #if !defined(__NR_prctl)
679 #define __NR_prctl 167
682 #if !defined(__NR_getcpu)
683 #define __NR_getcpu 168
686 #if !defined(__NR_gettimeofday)
687 #define __NR_gettimeofday 169
690 #if !defined(__NR_settimeofday)
691 #define __NR_settimeofday 170
694 #if !defined(__NR_adjtimex)
695 #define __NR_adjtimex 171
698 #if !defined(__NR_getpid)
699 #define __NR_getpid 172
702 #if !defined(__NR_getppid)
703 #define __NR_getppid 173
706 #if !defined(__NR_getuid)
707 #define __NR_getuid 174
710 #if !defined(__NR_geteuid)
711 #define __NR_geteuid 175
714 #if !defined(__NR_getgid)
715 #define __NR_getgid 176
718 #if !defined(__NR_getegid)
719 #define __NR_getegid 177
722 #if !defined(__NR_gettid)
723 #define __NR_gettid 178
726 #if !defined(__NR_sysinfo)
727 #define __NR_sysinfo 179
730 #if !defined(__NR_mq_open)
731 #define __NR_mq_open 180
734 #if !defined(__NR_mq_unlink)
735 #define __NR_mq_unlink 181
738 #if !defined(__NR_mq_timedsend)
739 #define __NR_mq_timedsend 182
742 #if !defined(__NR_mq_timedreceive)
743 #define __NR_mq_timedreceive 183
746 #if !defined(__NR_mq_notify)
747 #define __NR_mq_notify 184
750 #if !defined(__NR_mq_getsetattr)
751 #define __NR_mq_getsetattr 185
754 #if !defined(__NR_msgget)
755 #define __NR_msgget 186
758 #if !defined(__NR_msgctl)
759 #define __NR_msgctl 187
762 #if !defined(__NR_msgrcv)
763 #define __NR_msgrcv 188
766 #if !defined(__NR_msgsnd)
767 #define __NR_msgsnd 189
770 #if !defined(__NR_semget)
771 #define __NR_semget 190
774 #if !defined(__NR_semctl)
775 #define __NR_semctl 191
778 #if !defined(__NR_semtimedop)
779 #define __NR_semtimedop 192
782 #if !defined(__NR_semop)
783 #define __NR_semop 193
786 #if !defined(__NR_shmget)
787 #define __NR_shmget 194
790 #if !defined(__NR_shmctl)
791 #define __NR_shmctl 195
794 #if !defined(__NR_shmat)
795 #define __NR_shmat 196
798 #if !defined(__NR_shmdt)
799 #define __NR_shmdt 197
802 #if !defined(__NR_socket)
803 #define __NR_socket 198
806 #if !defined(__NR_socketpair)
807 #define __NR_socketpair 199
810 #if !defined(__NR_bind)
811 #define __NR_bind 200
814 #if !defined(__NR_listen)
815 #define __NR_listen 201
818 #if !defined(__NR_accept)
819 #define __NR_accept 202
822 #if !defined(__NR_connect)
823 #define __NR_connect 203
826 #if !defined(__NR_getsockname)
827 #define __NR_getsockname 204
830 #if !defined(__NR_getpeername)
831 #define __NR_getpeername 205
834 #if !defined(__NR_sendto)
835 #define __NR_sendto 206
838 #if !defined(__NR_recvfrom)
839 #define __NR_recvfrom 207
842 #if !defined(__NR_setsockopt)
843 #define __NR_setsockopt 208
846 #if !defined(__NR_getsockopt)
847 #define __NR_getsockopt 209
850 #if !defined(__NR_shutdown)
851 #define __NR_shutdown 210
854 #if !defined(__NR_sendmsg)
855 #define __NR_sendmsg 211
858 #if !defined(__NR_recvmsg)
859 #define __NR_recvmsg 212
862 #if !defined(__NR_readahead)
863 #define __NR_readahead 213
866 #if !defined(__NR_brk)
870 #if !defined(__NR_munmap)
871 #define __NR_munmap 215
874 #if !defined(__NR_mremap)
875 #define __NR_mremap 216
878 #if !defined(__NR_add_key)
879 #define __NR_add_key 217
882 #if !defined(__NR_request_key)
883 #define __NR_request_key 218
886 #if !defined(__NR_keyctl)
887 #define __NR_keyctl 219
890 #if !defined(__NR_clone)
891 #define __NR_clone 220
894 #if !defined(__NR_execve)
895 #define __NR_execve 221
898 #if !defined(__NR_mmap)
899 #define __NR_mmap 222
902 #if !defined(__NR_fadvise64)
903 #define __NR_fadvise64 223
906 #if !defined(__NR_swapon)
907 #define __NR_swapon 224
910 #if !defined(__NR_swapoff)
911 #define __NR_swapoff 225
914 #if !defined(__NR_mprotect)
915 #define __NR_mprotect 226
918 #if !defined(__NR_msync)
919 #define __NR_msync 227
922 #if !defined(__NR_mlock)
923 #define __NR_mlock 228
926 #if !defined(__NR_munlock)
927 #define __NR_munlock 229
930 #if !defined(__NR_mlockall)
931 #define __NR_mlockall 230
934 #if !defined(__NR_munlockall)
935 #define __NR_munlockall 231
938 #if !defined(__NR_mincore)
939 #define __NR_mincore 232
942 #if !defined(__NR_madvise)
943 #define __NR_madvise 233
946 #if !defined(__NR_remap_file_pages)
947 #define __NR_remap_file_pages 234
950 #if !defined(__NR_mbind)
951 #define __NR_mbind 235
954 #if !defined(__NR_get_mempolicy)
955 #define __NR_get_mempolicy 236
958 #if !defined(__NR_set_mempolicy)
959 #define __NR_set_mempolicy 237
962 #if !defined(__NR_migrate_pages)
963 #define __NR_migrate_pages 238
966 #if !defined(__NR_move_pages)
967 #define __NR_move_pages 239
970 #if !defined(__NR_rt_tgsigqueueinfo)
971 #define __NR_rt_tgsigqueueinfo 240
974 #if !defined(__NR_perf_event_open)
975 #define __NR_perf_event_open 241
978 #if !defined(__NR_accept4)
979 #define __NR_accept4 242
982 #if !defined(__NR_recvmmsg)
983 #define __NR_recvmmsg 243
986 #if !defined(__NR_wait4)
987 #define __NR_wait4 260
990 #if !defined(__NR_prlimit64)
991 #define __NR_prlimit64 261
994 #if !defined(__NR_fanotify_init)
995 #define __NR_fanotify_init 262
998 #if !defined(__NR_fanotify_mark)
999 #define __NR_fanotify_mark 263
1002 #if !defined(__NR_name_to_handle_at)
1003 #define __NR_name_to_handle_at 264
1006 #if !defined(__NR_open_by_handle_at)
1007 #define __NR_open_by_handle_at 265
1010 #if !defined(__NR_clock_adjtime)
1011 #define __NR_clock_adjtime 266
1014 #if !defined(__NR_syncfs)
1015 #define __NR_syncfs 267
1018 #if !defined(__NR_setns)
1019 #define __NR_setns 268
1022 #if !defined(__NR_sendmmsg)
1023 #define __NR_sendmmsg 269
1026 #if !defined(__NR_process_vm_readv)
1027 #define __NR_process_vm_readv 270
1030 #if !defined(__NR_process_vm_writev)
1031 #define __NR_process_vm_writev 271
1034 #if !defined(__NR_kcmp)
1035 #define __NR_kcmp 272
1038 #if !defined(__NR_finit_module)
1039 #define __NR_finit_module 273
1042 #if !defined(__NR_sched_setattr)
1043 #define __NR_sched_setattr 274
1046 #if !defined(__NR_sched_getattr)
1047 #define __NR_sched_getattr 275
1050 #if !defined(__NR_renameat2)
1051 #define __NR_renameat2 276
1054 #if !defined(__NR_seccomp)
1055 #define __NR_seccomp 277
1058 #if !defined(__NR_getrandom)
1059 #define __NR_getrandom 278
1062 #endif // SANDBOX_LINUX_SERVICES_ARM64_LINUX_SYSCALLS_H_