Debian Codegraph @

runtime/linux/compat_unistd.h

raw
1 /* -*- linux-c -*-
2 * Syscall compatibility defines.
3 * Copyright (C) 2013-2019 Red Hat Inc.
4 *
5 * This file is part of systemtap, and is free software. You can
6 * redistribute it and/or modify it under the terms of the GNU General
7 * Public License (GPL); either version 2, or (at your option) any
8 * later version.
9 */
10
11 #ifndef _COMPAT_UNISTD_H_
12 #define _COMPAT_UNISTD_H_
13
14 // Older kernels (like RHEL5) supported __NR_sendfile64. For newer
15 // kernels, we'll just define __NR_sendfile64 in terms of
16 // __NR_sendfile.
17 #ifndef __NR_sendfile64
18 #define __NR_sendfile64 __NR_sendfile
19 #endif
20
21 #ifndef __NR_syscall_max
22 #define __NR_syscall_max 0xffff
23 #endif
24 #ifndef __NR_syscall_compat_max
25 #define __NR_syscall_compat_max 0xffff
26 #endif
27
28 #ifndef __NR__llseek
29 #define __NR__llseek (__NR_syscall_max + 1)
30 #endif
31 #ifndef __NR__newselect
32 #define __NR__newselect (__NR_syscall_max + 1)
33 #endif
34 #ifndef __NR_access
35 #define __NR_access (__NR_syscall_max + 1)
36 #endif
37 #ifndef __NR_accept
38 #define __NR_accept (__NR_syscall_max + 1)
39 #endif
40 #ifndef __NR_accept4
41 #define __NR_accept4 (__NR_syscall_max + 1)
42 #endif
43 #ifndef __NR_bdflush
44 #define __NR_bdflush (__NR_syscall_max + 1)
45 #endif
46 #ifndef __NR_bind
47 #define __NR_bind (__NR_syscall_max + 1)
48 #endif
49 #ifndef __NR_bpf
50 #define __NR_bpf (__NR_syscall_max + 1)
51 #endif
52 #ifndef __NR_chmod
53 #define __NR_chmod (__NR_syscall_max + 1)
54 #endif
55 #ifndef __NR_chown
56 #define __NR_chown (__NR_syscall_max + 1)
57 #endif
58 #ifndef __NR_chown32
59 #define __NR_chown32 (__NR_syscall_max + 1)
60 #endif
61 #ifndef __NR_compat_bdflush
62 #define __NR_compat_bdflush (__NR_syscall_max + 1)
63 #endif
64 #ifndef __NR_connect
65 #define __NR_connect (__NR_syscall_max + 1)
66 #endif
67 #ifndef __NR_copy_file_range
68 #define __NR_copy_file_range (__NR_syscall_max + 1)
69 #endif
70 #ifndef __NR_creat
71 #define __NR_creat (__NR_syscall_max + 1)
72 #endif
73 #ifndef __NR_dup2
74 #define __NR_dup2 (__NR_syscall_max + 1)
75 #endif
76 #ifndef __NR_epoll_wait
77 #define __NR_epoll_wait (__NR_syscall_max + 1)
78 #endif
79 #ifndef __NR_eventfd
80 #define __NR_eventfd (__NR_syscall_max + 1)
81 #endif
82 #ifndef __NR_execveat
83 #define __NR_execveat (__NR_syscall_max + 1)
84 #endif
85 #ifndef __NR_faccessat2
86 #define __NR_faccessat2 (__NR_syscall_max + 1)
87 #endif
88 #ifndef __NR_fadvise64_64
89 #define __NR_fadvise64_64 (__NR_syscall_max + 1)
90 #endif
91 #ifndef __NR_fchown32
92 #define __NR_fchown32 (__NR_syscall_max + 1)
93 #endif
94 #ifndef __NR_fcntl64
95 #define __NR_fcntl64 (__NR_syscall_max + 1)
96 #endif
97 #ifndef __NR_fork
98 #define __NR_fork (__NR_syscall_max + 1)
99 #endif
100 #ifndef __NR_fstat64
101 #define __NR_fstat64 (__NR_syscall_max + 1)
102 #endif
103 #ifndef __NR_fstatat64
104 #define __NR_fstatat64 (__NR_syscall_max + 1)
105 #endif
106 #ifndef __NR_fstatfs64
107 #define __NR_fstatfs64 (__NR_syscall_max + 1)
108 #endif
109 #ifndef __NR_ftruncate
110 #define __NR_ftruncate (__NR_syscall_max + 1)
111 #endif
112 #ifndef __NR_ftruncate64
113 #define __NR_ftruncate64 (__NR_syscall_max + 1)
114 #endif
115 #ifndef __NR_futimesat
116 #define __NR_futimesat (__NR_syscall_max + 1)
117 #endif
118 #ifndef __NR_getcpu
119 #define __NR_getcpu (__NR_syscall_max + 1)
120 #endif
121 #ifndef __NR_getdents
122 #define __NR_getdents (__NR_syscall_max + 1)
123 #endif
124 #ifndef __NR_getegid32
125 #define __NR_getegid32 (__NR_syscall_max + 1)
126 #endif
127 #ifndef __NR_geteuid32
128 #define __NR_geteuid32 (__NR_syscall_max + 1)
129 #endif
130 #ifndef __NR_getgid32
131 #define __NR_getgid32 (__NR_syscall_max + 1)
132 #endif
133 #ifndef __NR_getgroups32
134 #define __NR_getgroups32 (__NR_syscall_max + 1)
135 #endif
136 #ifndef __NR_get_mempolicy
137 #define __NR_get_mempolicy (__NR_syscall_max + 1)
138 #endif
139 #ifndef __NR_getpeername
140 #define __NR_getpeername (__NR_syscall_max + 1)
141 #endif
142 #ifndef __NR_getpgrp
143 #define __NR_getpgrp (__NR_syscall_max + 1)
144 #endif
145 #ifndef __NR_getrandom
146 #define __NR_getrandom (__NR_syscall_max + 1)
147 #endif
148 #ifndef __NR_getresgid32
149 #define __NR_getresgid32 (__NR_syscall_max + 1)
150 #endif
151 #ifndef __NR_getresuid32
152 #define __NR_getresuid32 (__NR_syscall_max + 1)
153 #endif
154 #ifndef __NR_getsockname
155 #define __NR_getsockname (__NR_syscall_max + 1)
156 #endif
157 #ifndef __NR_getsockopt
158 #define __NR_getsockopt (__NR_syscall_max + 1)
159 #endif
160 #ifndef __NR_getuid32
161 #define __NR_getuid32 (__NR_syscall_max + 1)
162 #endif
163 #ifndef __NR_io_pgetevents
164 #define __NR_io_pgetevents (__NR_syscall_max + 1)
165 #endif
166 #ifndef __NR_inotify_init
167 #define __NR_inotify_init (__NR_syscall_max + 1)
168 #endif
169 #ifndef __NR_ipc
170 #define __NR_ipc (__NR_syscall_max + 1)
171 #endif
172 #ifndef __NR_kcmp
173 #define __NR_kcmp (__NR_syscall_max + 1)
174 #endif
175 #ifndef __NR_kexec_file_load
176 #define __NR_kexec_file_load (__NR_syscall_max + 1)
177 #endif
178 #ifndef __NR_lchown
179 #define __NR_lchown (__NR_syscall_max + 1)
180 #endif
181 #ifndef __NR_lchown32
182 #define __NR_lchown32 (__NR_syscall_max + 1)
183 #endif
184 #ifndef __NR_link
185 #define __NR_link (__NR_syscall_max + 1)
186 #endif
187 #ifndef __NR_listen
188 #define __NR_listen (__NR_syscall_max + 1)
189 #endif
190 #ifndef __NR_lstat
191 #define __NR_lstat (__NR_syscall_max + 1)
192 #endif
193 #ifndef __NR_lstat64
194 #define __NR_lstat64 (__NR_syscall_max + 1)
195 #endif
196 #ifndef __NR_membarrier
197 #define __NR_membarrier (__NR_syscall_max + 1)
198 #endif
199 #ifndef __NR_memfd_secret
200 #define __NR_memfd_secret (__NR_syscall_max + 1)
201 #endif
202 #ifndef __NR_migrate_pages
203 #define __NR_migrate_pages (__NR_syscall_max + 1)
204 #endif
205 #ifndef __NR_mkdir
206 #define __NR_mkdir (__NR_syscall_max + 1)
207 #endif
208 #ifndef __NR_mknod
209 #define __NR_mknod (__NR_syscall_max + 1)
210 #endif
211 #ifndef __NR_mlock2
212 #define __NR_mlock2 (__NR_syscall_max + 1)
213 #endif
214 #ifndef __NR_mmap2
215 #define __NR_mmap2 (__NR_syscall_max + 1)
216 #endif
217 #ifndef __NR_move_pages
218 #define __NR_move_pages (__NR_syscall_max + 1)
219 #endif
220 #ifndef __NR_msgctl
221 #define __NR_msgctl (__NR_syscall_max + 1)
222 #endif
223 #ifndef __NR_msgget
224 #define __NR_msgget (__NR_syscall_max + 1)
225 #endif
226 #ifndef __NR_msgrcv
227 #define __NR_msgrcv (__NR_syscall_max + 1)
228 #endif
229 #ifndef __NR_msgsnd
230 #define __NR_msgsnd (__NR_syscall_max + 1)
231 #endif
232 #ifndef __NR_nfsservctl
233 #define __NR_nfsservctl (__NR_syscall_max + 1)
234 #endif
235 #ifndef __NR_nice
236 #define __NR_nice (__NR_syscall_max + 1)
237 #endif
238 #ifndef __NR_oldfstat
239 #define __NR_oldfstat (__NR_syscall_max + 1)
240 #endif
241 #ifndef __NR_oldlstat
242 #define __NR_oldlstat (__NR_syscall_max + 1)
243 #endif
244 #ifndef __NR_oldolduname
245 #define __NR_oldolduname (__NR_syscall_max + 1)
246 #endif
247 #ifndef __NR_oldstat
248 #define __NR_oldstat (__NR_syscall_max + 1)
249 #endif
250 #ifndef __NR_olduname
251 #define __NR_olduname (__NR_syscall_max + 1)
252 #endif
253 #ifndef __NR_open
254 #define __NR_open (__NR_syscall_max + 1)
255 #endif
256 #ifndef __NR_pause
257 #define __NR_pause (__NR_syscall_max + 1)
258 #endif
259 #ifndef __NR_pipe
260 #define __NR_pipe (__NR_syscall_max + 1)
261 #endif
262 #ifndef __NR_poll
263 #define __NR_poll (__NR_syscall_max + 1)
264 #endif
265 #ifndef __NR_preadv2
266 #define __NR_preadv2 (__NR_syscall_max + 1)
267 #endif
268 #ifndef __NR_pselect7
269 #define __NR_pselect7 (__NR_syscall_max + 1)
270 #endif
271 #ifndef __NR_pwritev2
272 #define __NR_pwritev2 (__NR_syscall_max + 1)
273 #endif
274 #ifndef __NR_readdir
275 #define __NR_readdir (__NR_syscall_max + 1)
276 #endif
277 #ifndef __NR_readlink
278 #define __NR_readlink (__NR_syscall_max + 1)
279 #endif
280 #ifndef __NR_recv
281 #define __NR_recv (__NR_syscall_max + 1)
282 #endif
283 #ifndef __NR_recvfrom
284 #define __NR_recvfrom (__NR_syscall_max + 1)
285 #endif
286 #ifndef __NR_recvmsg
287 #define __NR_recvmsg (__NR_syscall_max + 1)
288 #endif
289 #ifndef __NR_rename
290 #define __NR_rename (__NR_syscall_max + 1)
291 #endif
292 #ifndef __NR_renameat2
293 #define __NR_renameat2 (__NR_syscall_max + 1)
294 #endif
295 #ifndef __NR_rmdir
296 #define __NR_rmdir (__NR_syscall_max + 1)
297 #endif
298 #ifndef __NR_rseq
299 #define __NR_rseq (__NR_syscall_max + 1)
300 #endif
301 #ifndef __NR_select
302 #define __NR_select (__NR_syscall_max + 1)
303 #endif
304 #ifndef __NR_semctl
305 #define __NR_semctl (__NR_syscall_max + 1)
306 #endif
307 #ifndef __NR_semget
308 #define __NR_semget (__NR_syscall_max + 1)
309 #endif
310 #ifndef __NR_semop
311 #define __NR_semop (__NR_syscall_max + 1)
312 #endif
313 #ifndef __NR_semtimedop
314 #define __NR_semtimedop (__NR_syscall_max + 1)
315 #endif
316 #ifndef __NR_send
317 #define __NR_send (__NR_syscall_max + 1)
318 #endif
319 #ifndef __NR_sendmmsg
320 #define __NR_sendmmsg (__NR_syscall_max + 1)
321 #endif
322 #ifndef __NR_sendmsg
323 #define __NR_sendmsg (__NR_syscall_max + 1)
324 #endif
325 #ifndef __NR_sendto
326 #define __NR_sendto (__NR_syscall_max + 1)
327 #endif
328 #ifndef __NR_setfsgid32
329 #define __NR_setfsgid32 (__NR_syscall_max + 1)
330 #endif
331 #ifndef __NR_setfsuid32
332 #define __NR_setfsuid32 (__NR_syscall_max + 1)
333 #endif
334 #ifndef __NR_setgid32
335 #define __NR_setgid32 (__NR_syscall_max + 1)
336 #endif
337 #ifndef __NR_setgroups32
338 #define __NR_setgroups32 (__NR_syscall_max + 1)
339 #endif
340 #ifndef __NR_set_mempolicy
341 #define __NR_set_mempolicy (__NR_syscall_max + 1)
342 #endif
343 #ifndef __NR_setregid32
344 #define __NR_setregid32 (__NR_syscall_max + 1)
345 #endif
346 #ifndef __NR_setresgid32
347 #define __NR_setresgid32 (__NR_syscall_max + 1)
348 #endif
349 #ifndef __NR_setresuid32
350 #define __NR_setresuid32 (__NR_syscall_max + 1)
351 #endif
352 #ifndef __NR_setreuid32
353 #define __NR_setreuid32 (__NR_syscall_max + 1)
354 #endif
355 #ifndef __NR_setsockopt
356 #define __NR_setsockopt (__NR_syscall_max + 1)
357 #endif
358 #ifndef __NR_setuid32
359 #define __NR_setuid32 (__NR_syscall_max + 1)
360 #endif
361 #ifndef __NR_sgetmask
362 #define __NR_sgetmask (__NR_syscall_max + 1)
363 #endif
364 #ifndef __NR_shmat
365 #define __NR_shmat (__NR_syscall_max + 1)
366 #endif
367 #ifndef __NR_shmctl
368 #define __NR_shmctl (__NR_syscall_max + 1)
369 #endif
370 #ifndef __NR_shmdt
371 #define __NR_shmdt (__NR_syscall_max + 1)
372 #endif
373 #ifndef __NR_shmget
374 #define __NR_shmget (__NR_syscall_max + 1)
375 #endif
376 #ifndef __NR_shutdown
377 #define __NR_shutdown (__NR_syscall_max + 1)
378 #endif
379 #ifndef __NR_sigaction
380 #define __NR_sigaction (__NR_syscall_max + 1)
381 #endif
382 #ifndef __NR_signal
383 #define __NR_signal (__NR_syscall_max + 1)
384 #endif
385 #ifndef __NR_sigpending
386 #define __NR_sigpending (__NR_syscall_max + 1)
387 #endif
388 #ifndef __NR_sigprocmask
389 #define __NR_sigprocmask (__NR_syscall_max + 1)
390 #endif
391 #ifndef __NR_sigsuspend
392 #define __NR_sigsuspend (__NR_syscall_max + 1)
393 #endif
394 #ifndef __NR_socket
395 #define __NR_socket (__NR_syscall_max + 1)
396 #endif
397 #ifndef __NR_socketcall
398 #define __NR_socketcall (__NR_syscall_max + 1)
399 #endif
400 #ifndef __NR_socketpair
401 #define __NR_socketpair (__NR_syscall_max + 1)
402 #endif
403 #ifndef __NR_ssetmask
404 #define __NR_ssetmask (__NR_syscall_max + 1)
405 #endif
406 #ifndef __NR_stat
407 #define __NR_stat (__NR_syscall_max + 1)
408 #endif
409 #ifndef __NR_stat64
410 #define __NR_stat64 (__NR_syscall_max + 1)
411 #endif
412 #ifndef __NR_statfs64
413 #define __NR_statfs64 (__NR_syscall_max + 1)
414 #endif
415 #ifndef __NR_statx
416 #define __NR_statx (__NR_syscall_max + 1)
417 #endif
418 #ifndef __NR_stime
419 #define __NR_stime (__NR_syscall_max + 1)
420 #endif
421 #ifndef __NR_symlink
422 #define __NR_symlink (__NR_syscall_max + 1)
423 #endif
424 #ifndef __NR_sync_file_range
425 #define __NR_sync_file_range (__NR_syscall_max + 1)
426 #endif
427 #ifndef __NR__sysctl
428 #define __NR__sysctl (__NR_syscall_max + 1)
429 #endif
430 #ifndef __NR_sysfs
431 #define __NR_sysfs (__NR_syscall_max + 1)
432 #endif
433 #ifndef __NR_truncate
434 #define __NR_truncate (__NR_syscall_max + 1)
435 #endif
436 #ifndef __NR_truncate64
437 #define __NR_truncate64 (__NR_syscall_max + 1)
438 #endif
439 #ifndef __NR_ugetrlimit
440 #define __NR_ugetrlimit (__NR_syscall_max + 1)
441 #endif
442 #ifndef __NR_umount
443 #define __NR_umount (__NR_syscall_max + 1)
444 #endif
445 #ifndef __NR_unlink
446 #define __NR_unlink (__NR_syscall_max + 1)
447 #endif
448 #ifndef __NR_uselib
449 #define __NR_uselib (__NR_syscall_max + 1)
450 #endif
451 #ifndef __NR_userfaultfd
452 #define __NR_userfaultfd (__NR_syscall_max + 1)
453 #endif
454 #ifndef __NR_ustat
455 #define __NR_ustat (__NR_syscall_max + 1)
456 #endif
457 #ifndef __NR_utimes
458 #define __NR_utimes (__NR_syscall_max + 1)
459 #endif
460 #ifndef __NR_vfork
461 #define __NR_vfork (__NR_syscall_max + 1)
462 #endif
463 #ifndef __NR_waitpid
464 #define __NR_waitpid (__NR_syscall_max + 1)
465 #endif
466 #ifndef __NR_alarm
467 #define __NR_alarm (__NR_syscall_max + 1)
468 #endif
469 #ifndef __NR_ioperm
470 #define __NR_ioperm (__NR_syscall_max + 1)
471 #endif
472 #ifndef __NR_mbind
473 #define __NR_mbind (__NR_syscall_max + 1)
474 #endif
475 #ifndef __NR_modify_ldt
476 #define __NR_modify_ldt (__NR_syscall_max + 1)
477 #endif
478 #ifndef __NR_time
479 #define __NR_time (__NR_syscall_max + 1)
480 #endif
481 #ifndef __NR_utime
482 #define __NR_utime (__NR_syscall_max + 1)
483 #endif
484 #ifndef __NR_pkey_alloc
485 #define __NR_pkey_alloc (__NR_syscall_max + 1)
486 #endif
487 #ifndef __NR_pkey_free
488 #define __NR_pkey_free (__NR_syscall_max + 1)
489 #endif
490 #ifndef __NR_pkey_mprotect
491 #define __NR_pkey_mprotect (__NR_syscall_max + 1)
492 #endif
493
494 #if defined(__x86_64__)
495
496 // On older kernels (like RHEL5), we have to define our own 32-bit
497 // syscall numbers.
498 #ifndef __NR_ia32__llseek
499 #define __NR_ia32__llseek 140
500 #endif
501 #ifndef __NR_ia32__newselect
502 #define __NR_ia32__newselect 142
503 #endif
504 #ifndef __NR_ia32__sysctl
505 #define __NR_ia32__sysctl 149
506 #endif
507 #ifndef __NR_ia32_access
508 #define __NR_ia32_access 33
509 #endif
510 #ifndef __NR_ia32_acct
511 #define __NR_ia32_acct 51
512 #endif
513 #ifndef __NR_ia32_add_key
514 #define __NR_ia32_add_key 286
515 #endif
516 #ifndef __NR_ia32_adjtimex
517 #define __NR_ia32_adjtimex 124
518 #endif
519 #ifndef __NR_ia32_alarm
520 #define __NR_ia32_alarm 27
521 #endif
522 #ifndef __NR_ia32_arch_prctl
523 #define __NR_ia32_arch_prctl 384
524 #endif
525 #ifndef __NR_ia32_bpf
526 #define __NR_ia32_bpf 357
527 #endif
528 #ifndef __NR_ia32_brk
529 #define __NR_ia32_brk 45
530 #endif
531 #ifndef __NR_ia32_capget
532 #define __NR_ia32_capget 184
533 #endif
534 #ifndef __NR_ia32_capset
535 #define __NR_ia32_capset 185
536 #endif
537 #ifndef __NR_ia32_chdir
538 #define __NR_ia32_chdir 12
539 #endif
540 #ifndef __NR_ia32_chmod
541 #define __NR_ia32_chmod 15
542 #endif
543 #ifndef __NR_ia32_chown
544 #define __NR_ia32_chown 182
545 #endif
546 #ifndef __NR_ia32_chown32
547 #define __NR_ia32_chown32 212
548 #endif
549 #ifndef __NR_ia32_chroot
550 #define __NR_ia32_chroot 61
551 #endif
552 #ifndef __NR_ia32_clock_adjtime
553 #define __NR_ia32_clock_adjtime 343
554 #endif
555 #ifndef __NR_ia32_clock_getres
556 #define __NR_ia32_clock_getres 266
557 #endif
558 #ifndef __NR_ia32_clock_gettime
559 #define __NR_ia32_clock_gettime 265
560 #endif
561 #ifndef __NR_ia32_clock_nanosleep
562 #define __NR_ia32_clock_nanosleep 267
563 #endif
564 #ifndef __NR_ia32_clock_settime
565 #define __NR_ia32_clock_settime 264
566 #endif
567 #ifndef __NR_ia32_clone
568 #define __NR_ia32_clone 120
569 #endif
570 #ifndef __NR_ia32_close
571 #define __NR_ia32_close 6
572 #endif
573 #ifndef __NR_ia32_copy_file_range
574 #define __NR_ia32_copy_file_range 377
575 #endif
576 #ifndef __NR_ia32_creat
577 #define __NR_ia32_creat 8
578 #endif
579 #ifndef __NR_ia32_delete_module
580 #define __NR_ia32_delete_module 129
581 #endif
582 #ifndef __NR_ia32_dup
583 #define __NR_ia32_dup 41
584 #endif
585 #ifndef __NR_ia32_dup2
586 #define __NR_ia32_dup2 63
587 #endif
588 #ifndef __NR_ia32_dup3
589 #define __NR_ia32_dup3 330
590 #endif
591 #ifndef __NR_ia32_epoll_create
592 #define __NR_ia32_epoll_create 254
593 #endif
594 #ifndef __NR_ia32_epoll_create1
595 #define __NR_ia32_epoll_create1 329
596 #endif
597 #ifndef __NR_ia32_epoll_ctl
598 #define __NR_ia32_epoll_ctl 255
599 #endif
600 #ifndef __NR_ia32_epoll_pwait
601 #define __NR_ia32_epoll_pwait 319
602 #endif
603 #ifndef __NR_ia32_epoll_wait
604 #define __NR_ia32_epoll_wait 256
605 #endif
606 #ifndef __NR_ia32_eventfd
607 #define __NR_ia32_eventfd 323
608 #endif
609 #ifndef __NR_ia32_eventfd2
610 #define __NR_ia32_eventfd2 328
611 #endif
612 #ifndef __NR_ia32_execve
613 #define __NR_ia32_execve 11
614 #endif
615 #ifndef __NR_ia32_execveat
616 #define __NR_ia32_execveat 358
617 #endif
618 #ifndef __NR_ia32_exit
619 #define __NR_ia32_exit 1
620 #endif
621 #ifndef __NR_ia32_exit_group
622 #define __NR_ia32_exit_group 252
623 #endif
624 #ifndef __NR_ia32_faccessat
625 #define __NR_ia32_faccessat 307
626 #endif
627 #ifndef __NR_ia32_faccessat2
628 #define __NR_ia32_faccessat2 439
629 #endif
630 #ifndef __NR_ia32_fadvise64
631 #define __NR_ia32_fadvise64 250
632 #endif
633 #ifndef __NR_ia32_fadvise64_64
634 #define __NR_ia32_fadvise64_64 272
635 #endif
636 #ifndef __NR_ia32_fallocate
637 #define __NR_ia32_fallocate 324
638 #endif
639 #ifndef __NR_ia32_fanotify_init
640 #define __NR_ia32_fanotify_init 338
641 #endif
642 #ifndef __NR_ia32_fanotify_mark
643 #define __NR_ia32_fanotify_mark 339
644 #endif
645 #ifndef __NR_ia32_fchdir
646 #define __NR_ia32_fchdir 133
647 #endif
648 #ifndef __NR_ia32_fchmod
649 #define __NR_ia32_fchmod 94
650 #endif
651 #ifndef __NR_ia32_fchmodat
652 #define __NR_ia32_fchmodat 306
653 #endif
654 #ifndef __NR_ia32_fchown
655 #define __NR_ia32_fchown 95
656 #endif
657 #ifndef __NR_ia32_fchown32
658 #define __NR_ia32_fchown32 207
659 #endif
660 #ifndef __NR_ia32_fchownat
661 #define __NR_ia32_fchownat 298
662 #endif
663 #ifndef __NR_ia32_fcntl
664 #define __NR_ia32_fcntl 55
665 #endif
666 #ifndef __NR_ia32_fcntl64
667 #define __NR_ia32_fcntl64 221
668 #endif
669 #ifndef __NR_ia32_fdatasync
670 #define __NR_ia32_fdatasync 148
671 #endif
672 #ifndef __NR_ia32_fgetxattr
673 #define __NR_ia32_fgetxattr 231
674 #endif
675 #ifndef __NR_ia32_finit_module
676 #define __NR_ia32_finit_module 350
677 #endif
678 #ifndef __NR_ia32_flistxattr
679 #define __NR_ia32_flistxattr 234
680 #endif
681 #ifndef __NR_ia32_flock
682 #define __NR_ia32_flock 143
683 #endif
684 #ifndef __NR_ia32_fork
685 #define __NR_ia32_fork 2
686 #endif
687 #ifndef __NR_ia32_fremovexattr
688 #define __NR_ia32_fremovexattr 237
689 #endif
690 #ifndef __NR_ia32_fsetxattr
691 #define __NR_ia32_fsetxattr 228
692 #endif
693 #ifndef __NR_ia32_fstat
694 #define __NR_ia32_fstat 108
695 #endif
696 #ifndef __NR_ia32_fstat64
697 #define __NR_ia32_fstat64 197
698 #endif
699 #ifndef __NR_ia32_fstatat64
700 #define __NR_ia32_fstatat64 300
701 #endif
702 #ifndef __NR_ia32_fstatfs
703 #define __NR_ia32_fstatfs 100
704 #endif
705 #ifndef __NR_ia32_fstatfs64
706 #define __NR_ia32_fstatfs64 269
707 #endif
708 #ifndef __NR_ia32_fsync
709 #define __NR_ia32_fsync 118
710 #endif
711 #ifndef __NR_ia32_ftruncate
712 #define __NR_ia32_ftruncate 93
713 #endif
714 #ifndef __NR_ia32_futex
715 #define __NR_ia32_futex 240
716 #endif
717 #ifndef __NR_ia32_futimesat
718 #define __NR_ia32_futimesat 299
719 #endif
720 #ifndef __NR_ia32_get_mempolicy
721 #define __NR_ia32_get_mempolicy 275
722 #endif
723 #ifndef __NR_ia32_get_robust_list
724 #define __NR_ia32_get_robust_list 312
725 #endif
726 #ifndef __NR_ia32_getcpu
727 #define __NR_ia32_getcpu 318
728 #endif
729 #ifndef __NR_ia32_getcwd
730 #define __NR_ia32_getcwd 183
731 #endif
732 #ifndef __NR_ia32_getdents
733 #define __NR_ia32_getdents 141
734 #endif
735 #ifndef __NR_ia32_getdents64
736 #define __NR_ia32_getdents64 220
737 #endif
738 #ifndef __NR_ia32_getegid
739 #define __NR_ia32_getegid 50
740 #endif
741 #ifndef __NR_ia32_getegid32
742 #define __NR_ia32_getegid32 202
743 #endif
744 #ifndef __NR_ia32_geteuid
745 #define __NR_ia32_geteuid 49
746 #endif
747 #ifndef __NR_ia32_geteuid32
748 #define __NR_ia32_geteuid32 201
749 #endif
750 #ifndef __NR_ia32_getgid
751 #define __NR_ia32_getgid 47
752 #endif
753 #ifndef __NR_ia32_getgid32
754 #define __NR_ia32_getgid32 200
755 #endif
756 #ifndef __NR_ia32_getgroups
757 #define __NR_ia32_getgroups 80
758 #endif
759 #ifndef __NR_ia32_getgroups32
760 #define __NR_ia32_getgroups32 205
761 #endif
762 #ifndef __NR_ia32_getitimer
763 #define __NR_ia32_getitimer 105
764 #endif
765 #ifndef __NR_ia32_getpgid
766 #define __NR_ia32_getpgid 132
767 #endif
768 #ifndef __NR_ia32_getpgrp
769 #define __NR_ia32_getpgrp 65
770 #endif
771 #ifndef __NR_ia32_getpid
772 #define __NR_ia32_getpid 20
773 #endif
774 #ifndef __NR_ia32_getppid
775 #define __NR_ia32_getppid 64
776 #endif
777 #ifndef __NR_ia32_getpriority
778 #define __NR_ia32_getpriority 96
779 #endif
780 #ifndef __NR_ia32_getrandom
781 #define __NR_ia32_getrandom 355
782 #endif
783 #ifndef __NR_ia32_getresgid
784 #define __NR_ia32_getresgid 171
785 #endif
786 #ifndef __NR_ia32_getresgid32
787 #define __NR_ia32_getresgid32 211
788 #endif
789 #ifndef __NR_ia32_getresuid
790 #define __NR_ia32_getresuid 165
791 #endif
792 #ifndef __NR_ia32_getresuid32
793 #define __NR_ia32_getresuid32 209
794 #endif
795 #ifndef __NR_ia32_getrlimit
796 #define __NR_ia32_getrlimit 76
797 #endif
798 #ifndef __NR_ia32_getrusage
799 #define __NR_ia32_getrusage 77
800 #endif
801 #ifndef __NR_ia32_getsid
802 #define __NR_ia32_getsid 147
803 #endif
804 #ifndef __NR_ia32_gettid
805 #define __NR_ia32_gettid 224
806 #endif
807 #ifndef __NR_ia32_gettimeofday
808 #define __NR_ia32_gettimeofday 78
809 #endif
810 #ifndef __NR_ia32_getuid
811 #define __NR_ia32_getuid 24
812 #endif
813 #ifndef __NR_ia32_getuid32
814 #define __NR_ia32_getuid32 199
815 #endif
816 #ifndef __NR_ia32_getxattr
817 #define __NR_ia32_getxattr 229
818 #endif
819 #ifndef __NR_ia32_init_module
820 #define __NR_ia32_init_module 128
821 #endif
822 #ifndef __NR_ia32_inotify_add_watch
823 #define __NR_ia32_inotify_add_watch 292
824 #endif
825 #ifndef __NR_ia32_inotify_init
826 #define __NR_ia32_inotify_init 291
827 #endif
828 #ifndef __NR_ia32_inotify_init1
829 #define __NR_ia32_inotify_init1 332
830 #endif
831 #ifndef __NR_ia32_inotify_rm_watch
832 #define __NR_ia32_inotify_rm_watch 293
833 #endif
834 #ifndef __NR_ia32_io_cancel
835 #define __NR_ia32_io_cancel 249
836 #endif
837 #ifndef __NR_ia32_io_destroy
838 #define __NR_ia32_io_destroy 246
839 #endif
840 #ifndef __NR_ia32_io_getevents
841 #define __NR_ia32_io_getevents 247
842 #endif
843 #ifndef __NR_ia32_io_setup
844 #define __NR_ia32_io_setup 245
845 #endif
846 #ifndef __NR_ia32_io_submit
847 #define __NR_ia32_io_submit 248
848 #endif
849 #ifndef __NR_ia32_ioctl
850 #define __NR_ia32_ioctl 54
851 #endif
852 #ifndef __NR_ia32_ioperm
853 #define __NR_ia32_ioperm 101
854 #endif
855 #ifndef __NR_ia32_ioprio_get
856 #define __NR_ia32_ioprio_get 290
857 #endif
858 #ifndef __NR_ia32_ioprio_set
859 #define __NR_ia32_ioprio_set 289
860 #endif
861 #ifndef __NR_ia32_ipc
862 #define __NR_ia32_ipc 117
863 #endif
864 #ifndef __NR_ia32_kcmp
865 #define __NR_ia32_kcmp 349
866 #endif
867 #ifndef __NR_ia32_kexec_file_load
868 // x86_64 doesn't have kexec_file_load for 32-bit, just use
869 // __NR_syscall_compat_max for __NR_ia32_kexec_file_load
870 #define __NR_ia32_kexec_file_load (__NR_syscall_compat_max + 1)
871 #endif
872 #ifndef __NR_ia32_kexec_load
873 #define __NR_ia32_kexec_load 283
874 #endif
875 #ifndef __NR_ia32_keyctl
876 #define __NR_ia32_keyctl 288
877 #endif
878 #ifndef __NR_ia32_kill
879 #define __NR_ia32_kill 37
880 #endif
881 #ifndef __NR_ia32_lchown
882 #define __NR_ia32_lchown 16
883 #endif
884 #ifndef __NR_ia32_lchown32
885 #define __NR_ia32_lchown32 198
886 #endif
887 #ifndef __NR_ia32_lgetxattr
888 #define __NR_ia32_lgetxattr 230
889 #endif
890 #ifndef __NR_ia32_link
891 #define __NR_ia32_link 9
892 #endif
893 #ifndef __NR_ia32_linkat
894 #define __NR_ia32_linkat 303
895 #endif
896 #ifndef __NR_ia32_listxattr
897 #define __NR_ia32_listxattr 232
898 #endif
899 #ifndef __NR_ia32_llistxattr
900 #define __NR_ia32_llistxattr 233
901 #endif
902 #ifndef __NR_ia32_lookup_dcookie
903 #define __NR_ia32_lookup_dcookie 253
904 #endif
905 #ifndef __NR_ia32_lremovexattr
906 #define __NR_ia32_lremovexattr 236
907 #endif
908 #ifndef __NR_ia32_lseek
909 #define __NR_ia32_lseek 19
910 #endif
911 #ifndef __NR_ia32_lsetxattr
912 #define __NR_ia32_lsetxattr 227
913 #endif
914 #ifndef __NR_ia32_lstat
915 #define __NR_ia32_lstat 107
916 #endif
917 #ifndef __NR_ia32_lstat64
918 #define __NR_ia32_lstat64 196
919 #endif
920 #ifndef __NR_ia32_madvise
921 #define __NR_ia32_madvise 219
922 #endif
923 #ifndef __NR_ia32_mbind
924 #define __NR_ia32_mbind 274
925 #endif
926 #ifndef __NR_ia32_membarrier
927 #define __NR_ia32_membarrier 375
928 #endif
929 #ifndef __NR_ia32_memfd_create
930 #define __NR_ia32_memfd_create 356
931 #endif
932 #ifndef __NR_ia32_memfd_secret
933 #define __NR_ia32_memfd_secret 447
934 #endif
935 #ifndef __NR_ia32_migrate_pages
936 #define __NR_ia32_migrate_pages 294
937 #endif
938 #ifndef __NR_ia32_mincore
939 #define __NR_ia32_mincore 218
940 #endif
941 #ifndef __NR_ia32_mkdir
942 #define __NR_ia32_mkdir 39
943 #endif
944 #ifndef __NR_ia32_mkdirat
945 #define __NR_ia32_mkdirat 296
946 #endif
947 #ifndef __NR_ia32_mknod
948 #define __NR_ia32_mknod 14
949 #endif
950 #ifndef __NR_ia32_mknodat
951 #define __NR_ia32_mknodat 297
952 #endif
953 #ifndef __NR_ia32_mlock
954 #define __NR_ia32_mlock 150
955 #endif
956 #ifndef __NR_ia32_mlock2
957 #define __NR_ia32_mlock2 376
958 #endif
959 #ifndef __NR_ia32_mlockall
960 #define __NR_ia32_mlockall 152
961 #endif
962 #ifndef __NR_ia32_mmap2
963 #define __NR_ia32_mmap2 192
964 #endif
965 #ifndef __NR_ia32_modify_ldt
966 #define __NR_ia32_modify_ldt 123
967 #endif
968 #ifndef __NR_ia32_mount
969 #define __NR_ia32_mount 21
970 #endif
971 #ifndef __NR_ia32_move_pages
972 #define __NR_ia32_move_pages 317
973 #endif
974 #ifndef __NR_ia32_mprotect
975 #define __NR_ia32_mprotect 125
976 #endif
977 #ifndef __NR_ia32_mq_getsetattr
978 #define __NR_ia32_mq_getsetattr 282
979 #endif
980 #ifndef __NR_ia32_mq_notify
981 #define __NR_ia32_mq_notify 281
982 #endif
983 #ifndef __NR_ia32_mq_open
984 #define __NR_ia32_mq_open 277
985 #endif
986 #ifndef __NR_ia32_mq_timedreceive
987 #define __NR_ia32_mq_timedreceive 280
988 #endif
989 #ifndef __NR_ia32_mq_timedsend
990 #define __NR_ia32_mq_timedsend 279
991 #endif
992 #ifndef __NR_ia32_mq_unlink
993 #define __NR_ia32_mq_unlink 278
994 #endif
995 #ifndef __NR_ia32_mremap
996 #define __NR_ia32_mremap 163
997 #endif
998 #ifndef __NR_ia32_msync
999 #define __NR_ia32_msync 144
1000 #endif
1001 #ifndef __NR_ia32_munlock
1002 #define __NR_ia32_munlock 151
1003 #endif
1004 #ifndef __NR_ia32_munlockall
1005 #define __NR_ia32_munlockall 153
1006 #endif
1007 #ifndef __NR_ia32_munmap
1008 #define __NR_ia32_munmap 91
1009 #endif
1010 #ifndef __NR_ia32_name_to_handle_at
1011 #define __NR_ia32_name_to_handle_at 341
1012 #endif
1013 #ifndef __NR_ia32_nanosleep
1014 #define __NR_ia32_nanosleep 162
1015 #endif
1016 #ifndef __NR_ia32_nfsservctl
1017 #define __NR_ia32_nfsservctl 169
1018 #endif
1019 #ifndef __NR_ia32_nice
1020 #define __NR_ia32_nice 34
1021 #endif
1022 #ifndef __NR_ia32_oldfstat
1023 #define __NR_ia32_oldfstat 28
1024 #endif
1025 #ifndef __NR_ia32_oldlstat
1026 #define __NR_ia32_oldlstat 84
1027 #endif
1028 #ifndef __NR_ia32_oldolduname
1029 #define __NR_ia32_oldolduname 59
1030 #endif
1031 #ifndef __NR_ia32_oldstat
1032 #define __NR_ia32_oldstat 18
1033 #endif
1034 #ifndef __NR_ia32_olduname
1035 #define __NR_ia32_olduname 109
1036 #endif
1037 #ifndef __NR_ia32_open
1038 #define __NR_ia32_open 5
1039 #endif
1040 #ifndef __NR_ia32_open_by_handle_at
1041 #define __NR_ia32_open_by_handle_at 342
1042 #endif
1043 #ifndef __NR_ia32_openat
1044 #define __NR_ia32_openat 295
1045 #endif
1046 #ifndef __NR_ia32_pause
1047 #define __NR_ia32_pause 29
1048 #endif
1049 #ifndef __NR_ia32_perf_event_open
1050 #define __NR_ia32_perf_event_open 336
1051 #endif
1052 #ifndef __NR_ia32_personality
1053 #define __NR_ia32_personality 136
1054 #endif
1055 #ifndef __NR_ia32_pipe
1056 #define __NR_ia32_pipe 42
1057 #endif
1058 #ifndef __NR_ia32_pipe2
1059 #define __NR_ia32_pipe2 331
1060 #endif
1061 #ifndef __NR_ia32_pivot_root
1062 #define __NR_ia32_pivot_root 217
1063 #endif
1064 #ifndef __NR_ia32_pkey_alloc
1065 #define __NR_ia32_pkey_alloc 381
1066 #endif
1067 #ifndef __NR_ia32_pkey_free
1068 #define __NR_ia32_pkey_free 382
1069 #endif
1070 #ifndef __NR_ia32_pkey_mprotect
1071 #define __NR_ia32_pkey_mprotect 380
1072 #endif
1073 #ifndef __NR_ia32_poll
1074 #define __NR_ia32_poll 168
1075 #endif
1076 #ifndef __NR_ia32_ppoll
1077 #define __NR_ia32_ppoll 309
1078 #endif
1079 #ifndef __NR_ia32_prctl
1080 #define __NR_ia32_prctl 172
1081 #endif
1082 #ifndef __NR_ia32_pread64
1083 #define __NR_ia32_pread64 180
1084 #endif
1085 #ifndef __NR_ia32_preadv
1086 #define __NR_ia32_preadv 333
1087 #endif
1088 #ifndef __NR_ia32_preadv2
1089 #define __NR_ia32_preadv2 378
1090 #endif
1091 #ifndef __NR_ia32_prlimit64
1092 #define __NR_ia32_prlimit64 340
1093 #endif
1094 #ifndef __NR_ia32_process_vm_readv
1095 #define __NR_ia32_process_vm_readv 347
1096 #endif
1097 #ifndef __NR_ia32_process_vm_writev
1098 #define __NR_ia32_process_vm_writev 348
1099 #endif
1100 #ifndef __NR_ia32_pselect6
1101 #define __NR_ia32_pselect6 308
1102 #endif
1103 #ifndef __NR_ia32_pselect7
1104 // Since a kernel that had a pselect7 syscall can't be found, just use
1105 // __NR_syscall_compat_max for __NR_ia32_pselect7.
1106 #define __NR_ia32_pselect7 (__NR_syscall_compat_max + 1)
1107 #endif
1108 #ifndef __NR_ia32_ptrace
1109 #define __NR_ia32_ptrace 26
1110 #endif
1111 #ifndef __NR_ia32_pwrite64
1112 #define __NR_ia32_pwrite64 181
1113 #endif
1114 #ifndef __NR_ia32_pwritev
1115 #define __NR_ia32_pwritev 334
1116 #endif
1117 #ifndef __NR_ia32_pwritev2
1118 #define __NR_ia32_pwritev2 379
1119 #endif
1120 #ifndef __NR_ia32_quotactl
1121 #define __NR_ia32_quotactl 131
1122 #endif
1123 #ifndef __NR_ia32_read
1124 #define __NR_ia32_read 3
1125 #endif
1126 #ifndef __NR_ia32_readdir
1127 #define __NR_ia32_readdir 89
1128 #endif
1129 #ifndef __NR_ia32_readlink
1130 #define __NR_ia32_readlink 85
1131 #endif
1132 #ifndef __NR_ia32_readlinkat
1133 #define __NR_ia32_readlinkat 305
1134 #endif
1135 #ifndef __NR_ia32_readv
1136 #define __NR_ia32_readv 145
1137 #endif
1138 #ifndef __NR_ia32_reboot
1139 #define __NR_ia32_reboot 88
1140 #endif
1141 #ifndef __NR_ia32_recvmmsg
1142 #define __NR_ia32_recvmmsg 337
1143 #endif
1144 #ifndef __NR_ia32_remap_file_pages
1145 #define __NR_ia32_remap_file_pages 257
1146 #endif
1147 #ifndef __NR_ia32_removexattr
1148 #define __NR_ia32_removexattr 235
1149 #endif
1150 #ifndef __NR_ia32_rename
1151 #define __NR_ia32_rename 38
1152 #endif
1153 #ifndef __NR_ia32_renameat
1154 #define __NR_ia32_renameat 302
1155 #endif
1156 #ifndef __NR_ia32_renameat2
1157 #define __NR_ia32_renameat2 353
1158 #endif
1159 #ifndef __NR_ia32_request_key
1160 #define __NR_ia32_request_key 287
1161 #endif
1162 #ifndef __NR_ia32_restart_syscall
1163 #define __NR_ia32_restart_syscall 0
1164 #endif
1165 #ifndef __NR_ia32_rmdir
1166 #define __NR_ia32_rmdir 40
1167 #endif
1168 #ifndef __NR_ia32_rt_sigaction
1169 #define __NR_ia32_rt_sigaction 174
1170 #endif
1171 #ifndef __NR_ia32_rt_sigpending
1172 #define __NR_ia32_rt_sigpending 176
1173 #endif
1174 #ifndef __NR_ia32_rt_sigprocmask
1175 #define __NR_ia32_rt_sigprocmask 175
1176 #endif
1177 #ifndef __NR_ia32_rt_sigqueueinfo
1178 #define __NR_ia32_rt_sigqueueinfo 178
1179 #endif
1180 #ifndef __NR_ia32_rt_sigsuspend
1181 #define __NR_ia32_rt_sigsuspend 179
1182 #endif
1183 #ifndef __NR_ia32_rt_sigtimedwait
1184 #define __NR_ia32_rt_sigtimedwait 177
1185 #endif
1186 #ifndef __NR_ia32_rt_tgsigqueueinfo
1187 #define __NR_ia32_rt_tgsigqueueinfo 335
1188 #endif
1189 #ifndef __NR_ia32_sched_get_priority_max
1190 #define __NR_ia32_sched_get_priority_max 159
1191 #endif
1192 #ifndef __NR_ia32_sched_get_priority_min
1193 #define __NR_ia32_sched_get_priority_min 160
1194 #endif
1195 #ifndef __NR_ia32_sched_getaffinity
1196 #define __NR_ia32_sched_getaffinity 242
1197 #endif
1198 #ifndef __NR_ia32_sched_getattr
1199 #define __NR_ia32_sched_getattr 352
1200 #endif
1201 #ifndef __NR_ia32_sched_getparam
1202 #define __NR_ia32_sched_getparam 155
1203 #endif
1204 #ifndef __NR_ia32_sched_getscheduler
1205 #define __NR_ia32_sched_getscheduler 157
1206 #endif
1207 #ifndef __NR_ia32_sched_rr_get_interval
1208 #define __NR_ia32_sched_rr_get_interval 161
1209 #endif
1210 #ifndef __NR_ia32_sched_setaffinity
1211 #define __NR_ia32_sched_setaffinity 241
1212 #endif
1213 #ifndef __NR_ia32_sched_setattr
1214 #define __NR_ia32_sched_setattr 351
1215 #endif
1216 #ifndef __NR_ia32_sched_setparam
1217 #define __NR_ia32_sched_setparam 154
1218 #endif
1219 #ifndef __NR_ia32_sched_setscheduler
1220 #define __NR_ia32_sched_setscheduler 156
1221 #endif
1222 #ifndef __NR_ia32_sched_yield
1223 #define __NR_ia32_sched_yield 158
1224 #endif
1225 #ifndef __NR_ia32_seccomp
1226 #define __NR_ia32_seccomp 354
1227 #endif
1228 #ifndef __NR_ia32_sendfile
1229 #define __NR_ia32_sendfile 187
1230 #endif
1231 #ifndef __NR_ia32_sendmmsg
1232 #define __NR_ia32_sendmmsg 345
1233 #endif
1234 #ifndef __NR_ia32_set_mempolicy
1235 #define __NR_ia32_set_mempolicy 276
1236 #endif
1237 #ifndef __NR_ia32_set_robust_list
1238 #define __NR_ia32_set_robust_list 311
1239 #endif
1240 #ifndef __NR_ia32_set_tid_address
1241 #define __NR_ia32_set_tid_address 258
1242 #endif
1243 #ifndef __NR_ia32_setdomainname
1244 #define __NR_ia32_setdomainname 121
1245 #endif
1246 #ifndef __NR_ia32_setfsgid
1247 #define __NR_ia32_setfsgid 139
1248 #endif
1249 #ifndef __NR_ia32_setfsgid32
1250 #define __NR_ia32_setfsgid32 216
1251 #endif
1252 #ifndef __NR_ia32_setfsuid
1253 #define __NR_ia32_setfsuid 138
1254 #endif
1255 #ifndef __NR_ia32_setfsuid32
1256 #define __NR_ia32_setfsuid32 215
1257 #endif
1258 #ifndef __NR_ia32_setgid
1259 #define __NR_ia32_setgid 46
1260 #endif
1261 #ifndef __NR_ia32_setgid32
1262 #define __NR_ia32_setgid32 214
1263 #endif
1264 #ifndef __NR_ia32_setgroups
1265 #define __NR_ia32_setgroups 81
1266 #endif
1267 #ifndef __NR_ia32_setgroups32
1268 #define __NR_ia32_setgroups32 206
1269 #endif
1270 #ifndef __NR_ia32_sethostname
1271 #define __NR_ia32_sethostname 74
1272 #endif
1273 #ifndef __NR_ia32_setitimer
1274 #define __NR_ia32_setitimer 104
1275 #endif
1276 #ifndef __NR_ia32_setns
1277 #define __NR_ia32_setns 346
1278 #endif
1279 #ifndef __NR_ia32_setpgid
1280 #define __NR_ia32_setpgid 57
1281 #endif
1282 #ifndef __NR_ia32_setpriority
1283 #define __NR_ia32_setpriority 97
1284 #endif
1285 #ifndef __NR_ia32_setregid
1286 #define __NR_ia32_setregid 71
1287 #endif
1288 #ifndef __NR_ia32_setregid32
1289 #define __NR_ia32_setregid32 204
1290 #endif
1291 #ifndef __NR_ia32_setresgid
1292 #define __NR_ia32_setresgid 170
1293 #endif
1294 #ifndef __NR_ia32_setresgid32
1295 #define __NR_ia32_setresgid32 210
1296 #endif
1297 #ifndef __NR_ia32_setresuid
1298 #define __NR_ia32_setresuid 164
1299 #endif
1300 #ifndef __NR_ia32_setresuid32
1301 #define __NR_ia32_setresuid32 208
1302 #endif
1303 #ifndef __NR_ia32_setreuid
1304 #define __NR_ia32_setreuid 70
1305 #endif
1306 #ifndef __NR_ia32_setreuid32
1307 #define __NR_ia32_setreuid32 203
1308 #endif
1309 #ifndef __NR_ia32_setrlimit
1310 #define __NR_ia32_setrlimit 75
1311 #endif
1312 #ifndef __NR_ia32_setsid
1313 #define __NR_ia32_setsid 66
1314 #endif
1315 #ifndef __NR_ia32_settimeofday
1316 #define __NR_ia32_settimeofday 79
1317 #endif
1318 #ifndef __NR_ia32_setuid
1319 #define __NR_ia32_setuid 23
1320 #endif
1321 #ifndef __NR_ia32_setuid32
1322 #define __NR_ia32_setuid32 213
1323 #endif
1324 #ifndef __NR_ia32_setxattr
1325 #define __NR_ia32_setxattr 226
1326 #endif
1327 #ifndef __NR_ia32_sgetmask
1328 #define __NR_ia32_sgetmask 68
1329 #endif
1330 // Since a kernel that had a 32-bit shmctl syscall can't be found
1331 // (they all used __NR_ipc), just use __NR_syscall_compat_max.
1332 #ifndef __NR_ia32_shmctl
1333 #define __NR_ia32_shmctl (__NR_syscall_compat_max + 1)
1334 #endif
1335 #ifndef __NR_ia32_sigaction
1336 #define __NR_ia32_sigaction 67
1337 #endif
1338 #ifndef __NR_ia32_sigaltstack
1339 #define __NR_ia32_sigaltstack 186
1340 #endif
1341 #ifndef __NR_ia32_signal
1342 #define __NR_ia32_signal 48
1343 #endif
1344 #ifndef __NR_ia32_signalfd
1345 #define __NR_ia32_signalfd 321
1346 #endif
1347 #ifndef __NR_ia32_signalfd4
1348 #define __NR_ia32_signalfd4 327
1349 #endif
1350 #ifndef __NR_ia32_sigpending
1351 #define __NR_ia32_sigpending 73
1352 #endif
1353 #ifndef __NR_ia32_sigprocmask
1354 #define __NR_ia32_sigprocmask 126
1355 #endif
1356 #ifndef __NR_ia32_sigsuspend
1357 #define __NR_ia32_sigsuspend 72
1358 #endif
1359 #ifndef __NR_ia32_socketcall
1360 #define __NR_ia32_socketcall 102
1361 #endif
1362 #ifndef __NR_ia32_splice
1363 #define __NR_ia32_splice 313
1364 #endif
1365 #ifndef __NR_ia32_ssetmask
1366 #define __NR_ia32_ssetmask 69
1367 #endif
1368 #ifndef __NR_ia32_stat
1369 #define __NR_ia32_stat 106
1370 #endif
1371 #ifndef __NR_ia32_stat64
1372 #define __NR_ia32_stat64 195
1373 #endif
1374 #ifndef __NR_ia32_statfs
1375 #define __NR_ia32_statfs 99
1376 #endif
1377 #ifndef __NR_ia32_statfs64
1378 #define __NR_ia32_statfs64 268
1379 #endif
1380 #ifndef __NR_ia32_statx
1381 #define __NR_ia32_statx 383
1382 #endif
1383 #ifndef __NR_ia32_stime
1384 #define __NR_ia32_stime 25
1385 #endif
1386 #ifndef __NR_ia32_swapoff
1387 #define __NR_ia32_swapoff 115
1388 #endif
1389 #ifndef __NR_ia32_swapon
1390 #define __NR_ia32_swapon 87
1391 #endif
1392 #ifndef __NR_ia32_symlink
1393 #define __NR_ia32_symlink 83
1394 #endif
1395 #ifndef __NR_ia32_symlinkat
1396 #define __NR_ia32_symlinkat 304
1397 #endif
1398 #ifndef __NR_ia32_sync
1399 #define __NR_ia32_sync 36
1400 #endif
1401 #ifndef __NR_ia32_sync_file_range
1402 #define __NR_ia32_sync_file_range 314
1403 #endif
1404 #ifndef __NR_ia32_syncfs
1405 #define __NR_ia32_syncfs 344
1406 #endif
1407 #ifndef __NR_ia32_sysfs
1408 #define __NR_ia32_sysfs 135
1409 #endif
1410 #ifndef __NR_ia32_sysinfo
1411 #define __NR_ia32_sysinfo 116
1412 #endif
1413 #ifndef __NR_ia32_syslog
1414 #define __NR_ia32_syslog 103
1415 #endif
1416 #ifndef __NR_ia32_tee
1417 #define __NR_ia32_tee 315
1418 #endif
1419 #ifndef __NR_ia32_tgkill
1420 #define __NR_ia32_tgkill 270
1421 #endif
1422 #ifndef __NR_ia32_time
1423 #define __NR_ia32_time 13
1424 #endif
1425 #ifndef __NR_ia32_timer_create
1426 #define __NR_ia32_timer_create 259
1427 #endif
1428 #ifndef __NR_ia32_timer_delete
1429 #define __NR_ia32_timer_delete 263
1430 #endif
1431 #ifndef __NR_ia32_timer_getoverrun
1432 #define __NR_ia32_timer_getoverrun 262
1433 #endif
1434 #ifndef __NR_ia32_timer_gettime
1435 #define __NR_ia32_timer_gettime 261
1436 #endif
1437 #ifndef __NR_ia32_timer_settime
1438 #define __NR_ia32_timer_settime 260
1439 #endif
1440 #ifndef __NR_ia32_timerfd_create
1441 #define __NR_ia32_timerfd_create 322
1442 #endif
1443 #ifndef __NR_ia32_timerfd_gettime
1444 #define __NR_ia32_timerfd_gettime 326
1445 #endif
1446 #ifndef __NR_ia32_timerfd_settime
1447 #define __NR_ia32_timerfd_settime 325
1448 #endif
1449 #ifndef __NR_ia32_times
1450 #define __NR_ia32_times 43
1451 #endif
1452 #ifndef __NR_ia32_tkill
1453 #define __NR_ia32_tkill 238
1454 #endif
1455 #ifndef __NR_ia32_truncate
1456 #define __NR_ia32_truncate 92
1457 #endif
1458 #ifndef __NR_ia32_ugetrlimit
1459 #define __NR_ia32_ugetrlimit 191
1460 #endif
1461 #ifndef __NR_ia32_umask
1462 #define __NR_ia32_umask 60
1463 #endif
1464 #ifndef __NR_ia32_umount
1465 #define __NR_ia32_umount 22
1466 #endif
1467 #ifndef __NR_ia32_umount2
1468 #define __NR_ia32_umount2 52
1469 #endif
1470 #ifndef __NR_ia32_uname
1471 #define __NR_ia32_uname 122
1472 #endif
1473 #ifndef __NR_ia32_unlink
1474 #define __NR_ia32_unlink 10
1475 #endif
1476 #ifndef __NR_ia32_unlinkat
1477 #define __NR_ia32_unlinkat 301
1478 #endif
1479 #ifndef __NR_ia32_unshare
1480 #define __NR_ia32_unshare 310
1481 #endif
1482 #ifndef __NR_ia32_uselib
1483 #define __NR_ia32_uselib 86
1484 #endif
1485 #ifndef __NR_ia32_userfaultfd
1486 #define __NR_ia32_userfaultfd 374
1487 #endif
1488 #ifndef __NR_ia32_ustat
1489 #define __NR_ia32_ustat 62
1490 #endif
1491 #ifndef __NR_ia32_utime
1492 #define __NR_ia32_utime 30
1493 #endif
1494 #ifndef __NR_ia32_utimensat
1495 #define __NR_ia32_utimensat 320
1496 #endif
1497 #ifndef __NR_ia32_utimes
1498 #define __NR_ia32_utimes 271
1499 #endif
1500 #ifndef __NR_ia32_vfork
1501 #define __NR_ia32_vfork 190
1502 #endif
1503 #ifndef __NR_ia32_vhangup
1504 #define __NR_ia32_vhangup 111
1505 #endif
1506 #ifndef __NR_ia32_vmsplice
1507 #define __NR_ia32_vmsplice 316
1508 #endif
1509 #ifndef __NR_ia32_wait4
1510 #define __NR_ia32_wait4 114
1511 #endif
1512 #ifndef __NR_ia32_waitid
1513 #define __NR_ia32_waitid 284
1514 #endif
1515 #ifndef __NR_ia32_waitpid
1516 #define __NR_ia32_waitpid 7
1517 #endif
1518 #ifndef __NR_ia32_write
1519 #define __NR_ia32_write 4
1520 #endif
1521 #ifndef __NR_ia32_writev
1522 #define __NR_ia32_writev 146
1523 #endif
1524
1525 #define __NR_compat__llseek __NR_ia32__llseek
1526 #define __NR_compat__newselect __NR_ia32__newselect
1527 #define __NR_compat__sysctl __NR_ia32__sysctl
1528 #define __NR_compat_access __NR_ia32_access
1529 #define __NR_compat_acct __NR_ia32_acct
1530 #define __NR_compat_add_key __NR_ia32_add_key
1531 #define __NR_compat_adjtimex __NR_ia32_adjtimex
1532 #define __NR_compat_alarm __NR_ia32_alarm
1533 #define __NR_compat_bpf __NR_ia32_bpf
1534 #define __NR_compat_brk __NR_ia32_brk
1535 #define __NR_compat_capget __NR_ia32_capget
1536 #define __NR_compat_capset __NR_ia32_capset
1537 #define __NR_compat_chdir __NR_ia32_chdir
1538 #define __NR_compat_chmod __NR_ia32_chmod
1539 #define __NR_compat_chown __NR_ia32_chown
1540 #define __NR_compat_chown32 __NR_ia32_chown32
1541 #define __NR_compat_chroot __NR_ia32_chroot
1542 #define __NR_compat_clock_adjtime __NR_ia32_clock_adjtime
1543 #define __NR_compat_clock_getres __NR_ia32_clock_getres
1544 #define __NR_compat_clock_gettime __NR_ia32_clock_gettime
1545 #define __NR_compat_clock_nanosleep __NR_ia32_clock_nanosleep
1546 #define __NR_compat_clock_settime __NR_ia32_clock_settime
1547 #define __NR_compat_clone __NR_ia32_clone
1548 #define __NR_compat_close __NR_ia32_close
1549 #define __NR_compat_copy_file_range __NR_ia32_copy_file_range
1550 #define __NR_compat_creat __NR_ia32_creat
1551 #define __NR_compat_delete_module __NR_ia32_delete_module
1552 #define __NR_compat_dup __NR_ia32_dup
1553 #define __NR_compat_dup2 __NR_ia32_dup2
1554 #define __NR_compat_dup3 __NR_ia32_dup3
1555 #define __NR_compat_epoll_create __NR_ia32_epoll_create
1556 #define __NR_compat_epoll_create1 __NR_ia32_epoll_create1
1557 #define __NR_compat_epoll_ctl __NR_ia32_epoll_ctl
1558 #define __NR_compat_epoll_pwait __NR_ia32_epoll_pwait
1559 #define __NR_compat_epoll_wait __NR_ia32_epoll_wait
1560 #define __NR_compat_eventfd __NR_ia32_eventfd
1561 #define __NR_compat_eventfd2 __NR_ia32_eventfd2
1562 #define __NR_compat_execve __NR_ia32_execve
1563 #define __NR_compat_execveat __NR_ia32_execveat
1564 #define __NR_compat_exit __NR_ia32_exit
1565 #define __NR_compat_exit_group __NR_ia32_exit_group
1566 #define __NR_compat_faccessat __NR_ia32_faccessat
1567 #define __NR_compat_faccessat2 __NR_ia32_faccessat2
1568 #define __NR_compat_fanotify_init __NR_ia32_fanotify_init
1569 #define __NR_compat_fanotify_mark __NR_ia32_fanotify_mark
1570 #define __NR_compat_fchdir __NR_ia32_fchdir
1571 #define __NR_compat_fchmod __NR_ia32_fchmod
1572 #define __NR_compat_fchmodat __NR_ia32_fchmodat
1573 #define __NR_compat_fchown __NR_ia32_fchown
1574 #define __NR_compat_fchown32 __NR_ia32_fchown32
1575 #define __NR_compat_fchownat __NR_ia32_fchownat
1576 #define __NR_compat_fcntl __NR_ia32_fcntl
1577 #define __NR_compat_fcntl64 __NR_ia32_fcntl64
1578 #define __NR_compat_fdatasync __NR_ia32_fdatasync
1579 #define __NR_compat_fgetxattr __NR_ia32_fgetxattr
1580 #define __NR_compat_finit_module __NR_ia32_finit_module
1581 #define __NR_compat_flistxattr __NR_ia32_flistxattr
1582 #define __NR_compat_flock __NR_ia32_flock
1583 #define __NR_compat_fork __NR_ia32_fork
1584 #define __NR_compat_fremovexattr __NR_ia32_fremovexattr
1585 #define __NR_compat_fsetxattr __NR_ia32_fsetxattr
1586 #define __NR_compat_fstat __NR_ia32_fstat
1587 #define __NR_compat_fstat64 __NR_ia32_fstat64
1588 #define __NR_compat_fstatat64 __NR_ia32_fstatat64
1589 #define __NR_compat_fstatfs __NR_ia32_fstatfs
1590 #define __NR_compat_fstatfs64 __NR_ia32_fstatfs64
1591 #define __NR_compat_fsync __NR_ia32_fsync
1592 #define __NR_compat_ftruncate __NR_ia32_ftruncate
1593 #define __NR_compat_futex __NR_ia32_futex
1594 #define __NR_compat_futimesat __NR_ia32_futimesat
1595 #define __NR_compat_get_mempolicy __NR_ia32_get_mempolicy
1596 #define __NR_compat_get_robust_list __NR_ia32_get_robust_list
1597 #define __NR_compat_getcpu __NR_ia32_getcpu
1598 #define __NR_compat_getcwd __NR_ia32_getcwd
1599 #define __NR_compat_getdents __NR_ia32_getdents
1600 #define __NR_compat_getdents64 __NR_ia32_getdents64
1601 #define __NR_compat_getegid __NR_ia32_getegid
1602 #define __NR_compat_getegid32 __NR_ia32_getegid32
1603 #define __NR_compat_geteuid __NR_ia32_geteuid
1604 #define __NR_compat_geteuid32 __NR_ia32_geteuid32
1605 #define __NR_compat_getgid __NR_ia32_getgid
1606 #define __NR_compat_getgid32 __NR_ia32_getgid32
1607 #define __NR_compat_getgroups __NR_ia32_getgroups
1608 #define __NR_compat_getgroups32 __NR_ia32_getgroups32
1609 #define __NR_compat_getitimer __NR_ia32_getitimer
1610 #define __NR_compat_getpgid __NR_ia32_getpgid
1611 #define __NR_compat_getpgrp __NR_ia32_getpgrp
1612 #define __NR_compat_getpid __NR_ia32_getpid
1613 #define __NR_compat_getppid __NR_ia32_getppid
1614 #define __NR_compat_getpriority __NR_ia32_getpriority
1615 #define __NR_compat_getrandom __NR_ia32_getrandom
1616 #define __NR_compat_getresgid __NR_ia32_getresgid
1617 #define __NR_compat_getresgid32 __NR_ia32_getresgid32
1618 #define __NR_compat_getresuid __NR_ia32_getresuid
1619 #define __NR_compat_getresuid32 __NR_ia32_getresuid32
1620 #define __NR_compat_getrlimit __NR_ia32_getrlimit
1621 #define __NR_compat_getrusage __NR_ia32_getrusage
1622 #define __NR_compat_getsid __NR_ia32_getsid
1623 #define __NR_compat_gettid __NR_ia32_gettid
1624 #define __NR_compat_gettimeofday __NR_ia32_gettimeofday
1625 #define __NR_compat_getuid __NR_ia32_getuid
1626 #define __NR_compat_getuid32 __NR_ia32_getuid32
1627 #define __NR_compat_getxattr __NR_ia32_getxattr
1628 #define __NR_compat_init_module __NR_ia32_init_module
1629 #define __NR_compat_inotify_add_watch __NR_ia32_inotify_add_watch
1630 #define __NR_compat_inotify_init __NR_ia32_inotify_init
1631 #define __NR_compat_inotify_init1 __NR_ia32_inotify_init1
1632 #define __NR_compat_inotify_rm_watch __NR_ia32_inotify_rm_watch
1633 #define __NR_compat_io_cancel __NR_ia32_io_cancel
1634 #define __NR_compat_io_destroy __NR_ia32_io_destroy
1635 #define __NR_compat_io_getevents __NR_ia32_io_getevents
1636 #define __NR_compat_io_setup __NR_ia32_io_setup
1637 #define __NR_compat_io_submit __NR_ia32_io_submit
1638 #define __NR_compat_ioctl __NR_ia32_ioctl
1639 #define __NR_compat_ioperm __NR_ia32_ioperm
1640 #define __NR_compat_ioprio_get __NR_ia32_ioprio_get
1641 #define __NR_compat_ioprio_set __NR_ia32_ioprio_set
1642 #define __NR_compat_ipc __NR_ia32_ipc
1643 #define __NR_compat_kcmp __NR_ia32_kcmp
1644 #define __NR_compat_kexec_file_load __NR_ia32_kexec_file_load
1645 #define __NR_compat_kexec_load __NR_ia32_kexec_load
1646 #define __NR_compat_keyctl __NR_ia32_keyctl
1647 #define __NR_compat_kill __NR_ia32_kill
1648 #define __NR_compat_lchown __NR_ia32_lchown
1649 #define __NR_compat_lchown32 __NR_ia32_lchown32
1650 #define __NR_compat_lgetxattr __NR_ia32_lgetxattr
1651 #define __NR_compat_link __NR_ia32_link
1652 #define __NR_compat_linkat __NR_ia32_linkat
1653 #define __NR_compat_listxattr __NR_ia32_listxattr
1654 #define __NR_compat_llistxattr __NR_ia32_llistxattr
1655 #define __NR_compat_lremovexattr __NR_ia32_lremovexattr
1656 #define __NR_compat_lseek __NR_ia32_lseek
1657 #define __NR_compat_lsetxattr __NR_ia32_lsetxattr
1658 #define __NR_compat_lstat __NR_ia32_lstat
1659 #define __NR_compat_lstat64 __NR_ia32_lstat64
1660 #define __NR_compat_madvise __NR_ia32_madvise
1661 #define __NR_compat_mbind __NR_ia32_mbind
1662 #define __NR_compat_membarrier __NR_ia32_membarrier
1663 #define __NR_compat_memfd_create __NR_ia32_memfd_create
1664 #define __NR_compat_memfd_secret __NR_ia32_memfd_secret
1665 #define __NR_compat_migrate_pages __NR_ia32_migrate_pages
1666 #define __NR_compat_mincore __NR_ia32_mincore
1667 #define __NR_compat_mkdir __NR_ia32_mkdir
1668 #define __NR_compat_mkdirat __NR_ia32_mkdirat
1669 #define __NR_compat_mknod __NR_ia32_mknod
1670 #define __NR_compat_mknodat __NR_ia32_mknodat
1671 #define __NR_compat_mlock __NR_ia32_mlock
1672 #define __NR_compat_mlock2 __NR_ia32_mlock2
1673 #define __NR_compat_mlockall __NR_ia32_mlockall
1674 #define __NR_compat_mmap2 __NR_ia32_mmap2
1675 #define __NR_compat_modify_ldt __NR_ia32_modify_ldt
1676 #define __NR_compat_mount __NR_ia32_mount
1677 #define __NR_compat_move_pages __NR_ia32_move_pages
1678 #define __NR_compat_mprotect __NR_ia32_mprotect
1679 #define __NR_compat_mq_getsetattr __NR_ia32_mq_getsetattr
1680 #define __NR_compat_mq_notify __NR_ia32_mq_notify
1681 #define __NR_compat_mq_open __NR_ia32_mq_open
1682 #define __NR_compat_mq_timedreceive __NR_ia32_mq_timedreceive
1683 #define __NR_compat_mq_timedsend __NR_ia32_mq_timedsend
1684 #define __NR_compat_mq_unlink __NR_ia32_mq_unlink
1685 #define __NR_compat_mremap __NR_ia32_mremap
1686 #define __NR_compat_msync __NR_ia32_msync
1687 #define __NR_compat_munlock __NR_ia32_munlock
1688 #define __NR_compat_munlockall __NR_ia32_munlockall
1689 #define __NR_compat_munmap __NR_ia32_munmap
1690 #define __NR_compat_name_to_handle_at __NR_ia32_name_to_handle_at
1691 #define __NR_compat_nanosleep __NR_ia32_nanosleep
1692 #define __NR_compat_nfsservctl __NR_ia32_nfsservctl
1693 #define __NR_compat_nice __NR_ia32_nice
1694 #define __NR_compat_oldfstat __NR_ia32_oldfstat
1695 #define __NR_compat_oldlstat __NR_ia32_oldlstat
1696 #define __NR_compat_oldolduname __NR_ia32_oldolduname
1697 #define __NR_compat_oldstat __NR_ia32_oldstat
1698 #define __NR_compat_olduname __NR_ia32_olduname
1699 #define __NR_compat_open __NR_ia32_open
1700 #define __NR_compat_open_by_handle_at __NR_ia32_open_by_handle_at
1701 #define __NR_compat_openat __NR_ia32_openat
1702 #define __NR_compat_pause __NR_ia32_pause
1703 #define __NR_compat_perf_event_open __NR_ia32_perf_event_open
1704 #define __NR_compat_personality __NR_ia32_personality
1705 #define __NR_compat_pipe __NR_ia32_pipe
1706 #define __NR_compat_pipe2 __NR_ia32_pipe2
1707 #define __NR_compat_pivot_root __NR_ia32_pivot_root
1708 #define __NR_compat_pkey_alloc __NR_ia32_pkey_alloc
1709 #define __NR_compat_pkey_free __NR_ia32_pkey_free
1710 #define __NR_compat_pkey_mprotect __NR_ia32_pkey_mprotect
1711 #define __NR_compat_poll __NR_ia32_poll
1712 #define __NR_compat_ppoll __NR_ia32_ppoll
1713 #define __NR_compat_prctl __NR_ia32_prctl
1714 #define __NR_compat_pread64 __NR_ia32_pread64
1715 #define __NR_compat_preadv __NR_ia32_preadv
1716 #define __NR_compat_preadv2 __NR_ia32_preadv2
1717 #define __NR_compat_prlimit64 __NR_ia32_prlimit64
1718 #define __NR_compat_process_vm_readv __NR_ia32_process_vm_readv
1719 #define __NR_compat_process_vm_writev __NR_ia32_process_vm_writev
1720 #define __NR_compat_pselect6 __NR_ia32_pselect6
1721 #define __NR_compat_pselect7 __NR_ia32_pselect7
1722 #define __NR_compat_ptrace __NR_ia32_ptrace
1723 #define __NR_compat_pwrite64 __NR_ia32_pwrite64
1724 #define __NR_compat_pwritev __NR_ia32_pwritev
1725 #define __NR_compat_pwritev2 __NR_ia32_pwritev2
1726 #define __NR_compat_quotactl __NR_ia32_quotactl
1727 #define __NR_compat_read __NR_ia32_read
1728 #define __NR_compat_readdir __NR_ia32_readdir
1729 #define __NR_compat_readlink __NR_ia32_readlink
1730 #define __NR_compat_readlinkat __NR_ia32_readlinkat
1731 #define __NR_compat_readv __NR_ia32_readv
1732 #define __NR_compat_reboot __NR_ia32_reboot
1733 #define __NR_compat_recvmmsg __NR_ia32_recvmmsg
1734 #define __NR_compat_remap_file_pages __NR_ia32_remap_file_pages
1735 #define __NR_compat_removexattr __NR_ia32_removexattr
1736 #define __NR_compat_rename __NR_ia32_rename
1737 #define __NR_compat_renameat __NR_ia32_renameat
1738 #define __NR_compat_renameat2 __NR_ia32_renameat2
1739 #define __NR_compat_request_key __NR_ia32_request_key
1740 #define __NR_compat_restart_syscall __NR_ia32_restart_syscall
1741 #define __NR_compat_rmdir __NR_ia32_rmdir
1742 #define __NR_compat_rt_sigaction __NR_ia32_rt_sigaction
1743 #define __NR_compat_rt_sigpending __NR_ia32_rt_sigpending
1744 #define __NR_compat_rt_sigprocmask __NR_ia32_rt_sigprocmask
1745 #define __NR_compat_rt_sigqueueinfo __NR_ia32_rt_sigqueueinfo
1746 #define __NR_compat_rt_sigsuspend __NR_ia32_rt_sigsuspend
1747 #define __NR_compat_rt_sigtimedwait __NR_ia32_rt_sigtimedwait
1748 #define __NR_compat_rt_tgsigqueueinfo __NR_ia32_rt_tgsigqueueinfo
1749 #define __NR_compat_sched_get_priority_max __NR_ia32_sched_get_priority_max
1750 #define __NR_compat_sched_get_priority_min __NR_ia32_sched_get_priority_min
1751 #define __NR_compat_sched_getaffinity __NR_ia32_sched_getaffinity
1752 #define __NR_compat_sched_getattr __NR_ia32_sched_getattr
1753 #define __NR_compat_sched_getparam __NR_ia32_sched_getparam
1754 #define __NR_compat_sched_getscheduler __NR_ia32_sched_getscheduler
1755 #define __NR_compat_sched_rr_get_interval __NR_ia32_sched_rr_get_interval
1756 #define __NR_compat_sched_setaffinity __NR_ia32_sched_setaffinity
1757 #define __NR_compat_sched_setattr __NR_ia32_sched_setattr
1758 #define __NR_compat_sched_setparam __NR_ia32_sched_setparam
1759 #define __NR_compat_sched_setscheduler __NR_ia32_sched_setscheduler
1760 #define __NR_compat_sched_yield __NR_ia32_sched_yield
1761 #define __NR_compat_seccomp __NR_ia32_seccomp
1762 #define __NR_compat_sendfile __NR_ia32_sendfile
1763 #define __NR_compat_sendmmsg __NR_ia32_sendmmsg
1764 #define __NR_compat_set_mempolicy __NR_ia32_set_mempolicy
1765 #define __NR_compat_set_robust_list __NR_ia32_set_robust_list
1766 #define __NR_compat_set_tid_address __NR_ia32_set_tid_address
1767 #define __NR_compat_setdomainname __NR_ia32_setdomainname
1768 #define __NR_compat_setfsgid __NR_ia32_setfsgid
1769 #define __NR_compat_setfsgid32 __NR_ia32_setfsgid32
1770 #define __NR_compat_setfsuid __NR_ia32_setfsuid
1771 #define __NR_compat_setfsuid32 __NR_ia32_setfsuid32
1772 #define __NR_compat_setgid __NR_ia32_setgid
1773 #define __NR_compat_setgid32 __NR_ia32_setgid32
1774 #define __NR_compat_setgroups __NR_ia32_setgroups
1775 #define __NR_compat_setgroups32 __NR_ia32_setgroups32
1776 #define __NR_compat_sethostname __NR_ia32_sethostname
1777 #define __NR_compat_setitimer __NR_ia32_setitimer
1778 #define __NR_compat_setns __NR_ia32_setns
1779 #define __NR_compat_setpgid __NR_ia32_setpgid
1780 #define __NR_compat_setpriority __NR_ia32_setpriority
1781 #define __NR_compat_setregid __NR_ia32_setregid
1782 #define __NR_compat_setregid32 __NR_ia32_setregid32
1783 #define __NR_compat_setresgid __NR_ia32_setresgid
1784 #define __NR_compat_setresgid32 __NR_ia32_setresgid32
1785 #define __NR_compat_setresuid __NR_ia32_setresuid
1786 #define __NR_compat_setresuid32 __NR_ia32_setresuid32
1787 #define __NR_compat_setreuid __NR_ia32_setreuid
1788 #define __NR_compat_setreuid32 __NR_ia32_setreuid32
1789 #define __NR_compat_setrlimit __NR_ia32_setrlimit
1790 #define __NR_compat_setsid __NR_ia32_setsid
1791 #define __NR_compat_settimeofday __NR_ia32_settimeofday
1792 #define __NR_compat_setuid __NR_ia32_setuid
1793 #define __NR_compat_setuid32 __NR_ia32_setuid32
1794 #define __NR_compat_setxattr __NR_ia32_setxattr
1795 #define __NR_compat_sgetmask __NR_ia32_sgetmask
1796 #define __NR_compat_shmctl __NR_ia32_shmctl
1797 #define __NR_compat_sigaction __NR_ia32_sigaction
1798 #define __NR_compat_sigaltstack __NR_ia32_sigaltstack
1799 #define __NR_compat_signal __NR_ia32_signal
1800 #define __NR_compat_signalfd __NR_ia32_signalfd
1801 #define __NR_compat_signalfd4 __NR_ia32_signalfd4
1802 #define __NR_compat_sigpending __NR_ia32_sigpending
1803 #define __NR_compat_sigprocmask __NR_ia32_sigprocmask
1804 #define __NR_compat_sigsuspend __NR_ia32_sigsuspend
1805 #define __NR_compat_socketcall __NR_ia32_socketcall
1806 #define __NR_compat_splice __NR_ia32_splice
1807 #define __NR_compat_ssetmask __NR_ia32_ssetmask
1808 #define __NR_compat_stat __NR_ia32_stat
1809 #define __NR_compat_stat64 __NR_ia32_stat64
1810 #define __NR_compat_statfs __NR_ia32_statfs
1811 #define __NR_compat_statfs64 __NR_ia32_statfs64
1812 #define __NR_compat_statx __NR_ia32_statx
1813 #define __NR_compat_stime __NR_ia32_stime
1814 #define __NR_compat_swapoff __NR_ia32_swapoff
1815 #define __NR_compat_swapon __NR_ia32_swapon
1816 #define __NR_compat_symlink __NR_ia32_symlink
1817 #define __NR_compat_symlinkat __NR_ia32_symlinkat
1818 #define __NR_compat_sync __NR_ia32_sync
1819 #define __NR_compat_sync_file_range __NR_ia32_sync_file_range
1820 #define __NR_compat_syncfs __NR_ia32_syncfs
1821 #define __NR_compat_sysfs __NR_ia32_sysfs
1822 #define __NR_compat_sysinfo __NR_ia32_sysinfo
1823 #define __NR_compat_syslog __NR_ia32_syslog
1824 #define __NR_compat_tee __NR_ia32_tee
1825 #define __NR_compat_tgkill __NR_ia32_tgkill
1826 #define __NR_compat_time __NR_ia32_time
1827 #define __NR_compat_timer_create __NR_ia32_timer_create
1828 #define __NR_compat_timer_delete __NR_ia32_timer_delete
1829 #define __NR_compat_timer_getoverrun __NR_ia32_timer_getoverrun
1830 #define __NR_compat_timer_gettime __NR_ia32_timer_gettime
1831 #define __NR_compat_timer_settime __NR_ia32_timer_settime
1832 #define __NR_compat_timerfd_create __NR_ia32_timerfd_create
1833 #define __NR_compat_timerfd_gettime __NR_ia32_timerfd_gettime
1834 #define __NR_compat_timerfd_settime __NR_ia32_timerfd_settime
1835 #define __NR_compat_times __NR_ia32_times
1836 #define __NR_compat_tkill __NR_ia32_tkill
1837 #define __NR_compat_truncate __NR_ia32_truncate
1838 #define __NR_compat_ugetrlimit __NR_ia32_ugetrlimit
1839 #define __NR_compat_umask __NR_ia32_umask
1840 #define __NR_compat_umount __NR_ia32_umount
1841 #define __NR_compat_umount2 __NR_ia32_umount2
1842 #define __NR_compat_uname __NR_ia32_uname
1843 #define __NR_compat_unlink __NR_ia32_unlink
1844 #define __NR_compat_unlinkat __NR_ia32_unlinkat
1845 #define __NR_compat_unshare __NR_ia32_unshare
1846 #define __NR_compat_uselib __NR_ia32_uselib
1847 #define __NR_compat_userfaultfd __NR_ia32_userfaultfd
1848 #define __NR_compat_ustat __NR_ia32_ustat
1849 #define __NR_compat_utime __NR_ia32_utime
1850 #define __NR_compat_utimensat __NR_ia32_utimensat
1851 #define __NR_compat_utimes __NR_ia32_utimes
1852 #define __NR_compat_vfork __NR_ia32_vfork
1853 #define __NR_compat_vhangup __NR_ia32_vhangup
1854 #define __NR_compat_vmsplice __NR_ia32_vmsplice
1855 #define __NR_compat_wait4 __NR_ia32_wait4
1856 #define __NR_compat_waitid __NR_ia32_waitid
1857 #define __NR_compat_waitpid __NR_ia32_waitpid
1858 #define __NR_compat_write __NR_ia32_write
1859 #define __NR_compat_writev __NR_ia32_writev
1860
1861 #endif /* __x86_64__ */
1862
1863 #if defined(__powerpc64__) || defined (__s390x__) || defined(__aarch64__)
1864
1865 // On the ppc64 and s390x, the 32-bit syscalls use the same number
1866 // as the 64-bit syscalls.
1867 //
1868 // On arm64, the 32-bit syscall *can* use different numbers than the
1869 // 64-bit syscalls, but the majority do not. The following syscalls
1870 // use the same number.
1871
1872 #define __NR_compat__llseek __NR__llseek
1873 #define __NR_compat__newselect __NR__newselect
1874 #define __NR_compat__sysctl __NR__sysctl
1875 #define __NR_compat_access __NR_access
1876 #define __NR_compat_acct __NR_acct
1877 #define __NR_compat_add_key __NR_add_key
1878 #define __NR_compat_adjtimex __NR_adjtimex
1879 #define __NR_compat_alarm __NR_alarm
1880 #define __NR_compat_bpf __NR_bpf
1881 #define __NR_compat_brk __NR_brk
1882 #define __NR_compat_capget __NR_capget
1883 #define __NR_compat_capset __NR_capset
1884 #define __NR_compat_chdir __NR_chdir
1885 #define __NR_compat_chmod __NR_chmod
1886 #define __NR_compat_chown __NR_chown
1887 #define __NR_compat_chown32 __NR_chown32
1888 #define __NR_compat_chroot __NR_chroot
1889 #define __NR_compat_clock_adjtime __NR_clock_adjtime
1890 #if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0))
1891 #define __NR_compat_clock_getres __NR_clock_getres
1892 #define __NR_compat_clock_gettime __NR_clock_gettime
1893 #endif
1894 #define __NR_compat_clock_nanosleep __NR_clock_nanosleep
1895 #define __NR_compat_clock_settime __NR_clock_settime
1896 #define __NR_compat_clone __NR_clone
1897 #define __NR_compat_close __NR_close
1898 #define __NR_compat_copy_file_range __NR_copy_file_range
1899 #define __NR_compat_creat __NR_creat
1900 #define __NR_compat_delete_module __NR_delete_module
1901 #define __NR_compat_dup __NR_dup
1902 #define __NR_compat_dup2 __NR_dup2
1903 #define __NR_compat_dup3 __NR_dup3
1904 #define __NR_compat_epoll_create __NR_epoll_create
1905 #define __NR_compat_epoll_create1 __NR_epoll_create1
1906 #define __NR_compat_epoll_ctl __NR_epoll_ctl
1907 #define __NR_compat_epoll_pwait __NR_epoll_pwait
1908 #define __NR_compat_epoll_wait __NR_epoll_wait
1909 #define __NR_compat_eventfd __NR_eventfd
1910 #define __NR_compat_eventfd2 __NR_eventfd2
1911 #define __NR_compat_execve __NR_execve
1912 #define __NR_compat_execveat __NR_execveat
1913 #if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
1914 #define __NR_compat_exit __NR_exit
1915 #endif
1916 #define __NR_compat_exit_group __NR_exit_group
1917 #define __NR_compat_faccessat __NR_faccessat
1918 #define __NR_compat_faccessat2 __NR_faccessat2
1919 #define __NR_compat_fanotify_init __NR_fanotify_init
1920 #define __NR_compat_fanotify_mark __NR_fanotify_mark
1921 #define __NR_compat_fchdir __NR_fchdir
1922 #define __NR_compat_fchmod __NR_fchmod
1923 #define __NR_compat_fchmodat __NR_fchmodat
1924 #define __NR_compat_fchown __NR_fchown
1925 #define __NR_compat_fchown32 __NR_fchown32
1926 #define __NR_compat_fchownat __NR_fchownat
1927 #define __NR_compat_fcntl __NR_fcntl
1928 #define __NR_compat_fcntl64 __NR_fcntl64
1929 #define __NR_compat_fdatasync __NR_fdatasync
1930 #define __NR_compat_fgetxattr __NR_fgetxattr
1931 #define __NR_compat_finit_module __NR_finit_module
1932 #define __NR_compat_flistxattr __NR_flistxattr
1933 #define __NR_compat_flock __NR_flock
1934 #define __NR_compat_fork __NR_fork
1935 #define __NR_compat_fremovexattr __NR_fremovexattr
1936 #define __NR_compat_fsetxattr __NR_fsetxattr
1937 #define __NR_compat_fstat __NR_fstat
1938 #define __NR_compat_fstat64 __NR_fstat64
1939 #define __NR_compat_fstatat64 __NR_fstatat64
1940 #define __NR_compat_fstatfs __NR_fstatfs
1941 #define __NR_compat_fstatfs64 __NR_fstatfs64
1942 #define __NR_compat_fsync __NR_fsync
1943 #define __NR_compat_ftruncate __NR_ftruncate
1944 #define __NR_compat_futex __NR_futex
1945 #define __NR_compat_futimesat __NR_futimesat
1946 #define __NR_compat_get_mempolicy __NR_get_mempolicy
1947 #define __NR_compat_get_robust_list __NR_get_robust_list
1948 #define __NR_compat_getcpu __NR_getcpu
1949 #define __NR_compat_getcwd __NR_getcwd
1950 #define __NR_compat_getdents __NR_getdents
1951 #define __NR_compat_getdents64 __NR_getdents64
1952 #define __NR_compat_getegid __NR_getegid
1953 #define __NR_compat_getegid32 __NR_getegid32
1954 #define __NR_compat_geteuid __NR_geteuid
1955 #define __NR_compat_geteuid32 __NR_geteuid32
1956 #define __NR_compat_getgid __NR_getgid
1957 #define __NR_compat_getgid32 __NR_getgid32
1958 #define __NR_compat_getgroups __NR_getgroups
1959 #define __NR_compat_getgroups32 __NR_getgroups32
1960 #define __NR_compat_getitimer __NR_getitimer
1961 #define __NR_compat_getpgid __NR_getpgid
1962 #define __NR_compat_getpgrp __NR_getpgrp
1963 #define __NR_compat_getpid __NR_getpid
1964 #define __NR_compat_getppid __NR_getppid
1965 #define __NR_compat_getpriority __NR_getpriority
1966 #define __NR_compat_getrandom __NR_getrandom
1967 #define __NR_compat_getresgid __NR_getresgid
1968 #define __NR_compat_getresgid32 __NR_getresgid32
1969 #define __NR_compat_getresuid __NR_getresuid
1970 #define __NR_compat_getresuid32 __NR_getresuid32
1971 #define __NR_compat_getrlimit __NR_getrlimit
1972 #define __NR_compat_getrusage __NR_getrusage
1973 #define __NR_compat_getsid __NR_getsid
1974 #define __NR_compat_gettid __NR_gettid
1975 #if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0))
1976 #define __NR_compat_gettimeofday __NR_gettimeofday
1977 #endif
1978 #define __NR_compat_getuid __NR_getuid
1979 #define __NR_compat_getuid32 __NR_getuid32
1980 #define __NR_compat_getxattr __NR_getxattr
1981 #define __NR_compat_init_module __NR_init_module
1982 #define __NR_compat_inotify_add_watch __NR_inotify_add_watch
1983 #define __NR_compat_inotify_init __NR_inotify_init
1984 #define __NR_compat_inotify_init1 __NR_inotify_init1
1985 #define __NR_compat_inotify_rm_watch __NR_inotify_rm_watch
1986 #define __NR_compat_io_cancel __NR_io_cancel
1987 #define __NR_compat_io_destroy __NR_io_destroy
1988 #define __NR_compat_io_getevents __NR_io_getevents
1989 #define __NR_compat_io_setup __NR_io_setup
1990 #define __NR_compat_io_submit __NR_io_submit
1991 #define __NR_compat_ioctl __NR_ioctl
1992 #define __NR_compat_ioperm __NR_ioperm
1993 #define __NR_compat_ioprio_get __NR_ioprio_get
1994 #define __NR_compat_ioprio_set __NR_ioprio_set
1995 #define __NR_compat_ipc __NR_ipc
1996 #define __NR_compat_kcmp __NR_kcmp
1997 #define __NR_compat_kexec_file_load __NR_kexec_file_load
1998 #define __NR_compat_kexec_load __NR_kexec_load
1999 #define __NR_compat_keyctl __NR_keyctl
2000 #define __NR_compat_kill __NR_kill
2001 #define __NR_compat_lchown __NR_lchown
2002 #define __NR_compat_lchown32 __NR_lchown32
2003 #define __NR_compat_lgetxattr __NR_lgetxattr
2004 #define __NR_compat_link __NR_link
2005 #define __NR_compat_linkat __NR_linkat
2006 #define __NR_compat_listxattr __NR_listxattr
2007 #define __NR_compat_llistxattr __NR_llistxattr
2008 #define __NR_compat_lremovexattr __NR_lremovexattr
2009 #define __NR_compat_lseek __NR_lseek
2010 #define __NR_compat_lsetxattr __NR_lsetxattr
2011 #define __NR_compat_lstat __NR_lstat
2012 #define __NR_compat_lstat64 __NR_lstat64
2013 #define __NR_compat_madvise __NR_madvise
2014 #define __NR_compat_mbind __NR_mbind
2015 #define __NR_compat_membarrier __NR_membarrier
2016 #define __NR_compat_memfd_create __NR_memfd_create
2017 #define __NR_compat_memfd_secret __NR_memfd_secret
2018 #define __NR_compat_migrate_pages __NR_migrate_pages
2019 #define __NR_compat_mincore __NR_mincore
2020 #define __NR_compat_mkdir __NR_mkdir
2021 #define __NR_compat_mkdirat __NR_mkdirat
2022 #define __NR_compat_mknod __NR_mknod
2023 #define __NR_compat_mknodat __NR_mknodat
2024 #define __NR_compat_mlock __NR_mlock
2025 #define __NR_compat_mlock2 __NR_mlock2
2026 #define __NR_compat_mlockall __NR_mlockall
2027 #define __NR_compat_mmap2 __NR_mmap2
2028 #define __NR_compat_modify_ldt __NR_modify_ldt
2029 #define __NR_compat_mount __NR_mount
2030 #define __NR_compat_move_pages __NR_move_pages
2031 #define __NR_compat_mprotect __NR_mprotect
2032 #define __NR_compat_mq_getsetattr __NR_mq_getsetattr
2033 #define __NR_compat_mq_notify __NR_mq_notify
2034 #define __NR_compat_mq_open __NR_mq_open
2035 #define __NR_compat_mq_timedreceive __NR_mq_timedreceive
2036 #define __NR_compat_mq_timedsend __NR_mq_timedsend
2037 #define __NR_compat_mq_unlink __NR_mq_unlink
2038 #define __NR_compat_mremap __NR_mremap
2039 #define __NR_compat_msync __NR_msync
2040 #define __NR_compat_munlock __NR_munlock
2041 #define __NR_compat_munlockall __NR_munlockall
2042 #define __NR_compat_munmap __NR_munmap
2043 #define __NR_compat_name_to_handle_at __NR_name_to_handle_at
2044 #define __NR_compat_nanosleep __NR_nanosleep
2045 #define __NR_compat_nfsservctl __NR_nfsservctl
2046 #define __NR_compat_nice __NR_nice
2047 #define __NR_compat_oldfstat __NR_oldfstat
2048 #define __NR_compat_oldlstat __NR_oldlstat
2049 #define __NR_compat_oldolduname __NR_oldolduname
2050 #define __NR_compat_oldstat __NR_oldstat
2051 #define __NR_compat_olduname __NR_olduname
2052 #define __NR_compat_open __NR_open
2053 #define __NR_compat_open_by_handle_at __NR_open_by_handle_at
2054 #define __NR_compat_openat __NR_openat
2055 #define __NR_compat_pause __NR_pause
2056 #define __NR_compat_perf_event_open __NR_perf_event_open
2057 #define __NR_compat_personality __NR_personality
2058 #define __NR_compat_pipe __NR_pipe
2059 #define __NR_compat_pipe2 __NR_pipe2
2060 #define __NR_compat_pivot_root __NR_pivot_root
2061 #define __NR_compat_pkey_alloc __NR_pkey_alloc
2062 #define __NR_compat_pkey_free __NR_pkey_free
2063 #define __NR_compat_pkey_mprotect __NR_pkey_mprotect
2064 #define __NR_compat_poll __NR_poll
2065 #define __NR_compat_ppoll __NR_ppoll
2066 #define __NR_compat_prctl __NR_prctl
2067 #define __NR_compat_pread64 __NR_pread64
2068 #define __NR_compat_preadv __NR_preadv
2069 #define __NR_compat_preadv2 __NR_preadv2
2070 #define __NR_compat_prlimit64 __NR_prlimit64
2071 #define __NR_compat_process_vm_readv __NR_process_vm_readv
2072 #define __NR_compat_process_vm_writev __NR_process_vm_writev
2073 #define __NR_compat_pselect6 __NR_pselect6
2074 #define __NR_compat_pselect7 __NR_pselect7
2075 #define __NR_compat_ptrace __NR_ptrace
2076 #define __NR_compat_pwrite64 __NR_pwrite64
2077 #define __NR_compat_pwritev __NR_pwritev
2078 #define __NR_compat_pwritev2 __NR_pwritev2
2079 #define __NR_compat_quotactl __NR_quotactl
2080 #if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
2081 #define __NR_compat_read __NR_read
2082 #endif
2083 #define __NR_compat_readdir __NR_readdir
2084 #define __NR_compat_readlink __NR_readlink
2085 #define __NR_compat_readlinkat __NR_readlinkat
2086 #define __NR_compat_readv __NR_readv
2087 #define __NR_compat_reboot __NR_reboot
2088 #define __NR_compat_recvmmsg __NR_recvmmsg
2089 #define __NR_compat_remap_file_pages __NR_remap_file_pages
2090 #define __NR_compat_removexattr __NR_removexattr
2091 #define __NR_compat_rename __NR_rename
2092 #define __NR_compat_renameat __NR_renameat
2093 #define __NR_compat_renameat2 __NR_renameat2
2094 #define __NR_compat_request_key __NR_request_key
2095 #if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0))
2096 #define __NR_compat_restart_syscall __NR_restart_syscall
2097 #endif
2098 #define __NR_compat_rmdir __NR_rmdir
2099 #define __NR_compat_rt_sigaction __NR_rt_sigaction
2100 #define __NR_compat_rt_sigpending __NR_rt_sigpending
2101 #define __NR_compat_rt_sigprocmask __NR_rt_sigprocmask
2102 #define __NR_compat_rt_sigqueueinfo __NR_rt_sigqueueinfo
2103 #define __NR_compat_rt_sigsuspend __NR_rt_sigsuspend
2104 #define __NR_compat_rt_sigtimedwait __NR_rt_sigtimedwait
2105 #define __NR_compat_rt_tgsigqueueinfo __NR_rt_tgsigqueueinfo
2106 #define __NR_compat_sched_get_priority_max __NR_sched_get_priority_max
2107 #define __NR_compat_sched_get_priority_min __NR_sched_get_priority_min
2108 #define __NR_compat_sched_getaffinity __NR_sched_getaffinity
2109 #define __NR_compat_sched_getattr __NR_sched_getattr
2110 #define __NR_compat_sched_getparam __NR_sched_getparam
2111 #define __NR_compat_sched_getscheduler __NR_sched_getscheduler
2112 #define __NR_compat_sched_rr_get_interval __NR_sched_rr_get_interval
2113 #define __NR_compat_sched_setaffinity __NR_sched_setaffinity
2114 #define __NR_compat_sched_setattr __NR_sched_setattr
2115 #define __NR_compat_sched_setparam __NR_sched_setparam
2116 #define __NR_compat_sched_setscheduler __NR_sched_setscheduler
2117 #define __NR_compat_sched_yield __NR_sched_yield
2118 #define __NR_compat_seccomp __NR_seccomp
2119 #define __NR_compat_sendfile __NR_sendfile
2120 #define __NR_compat_sendmmsg __NR_sendmmsg
2121 #define __NR_compat_set_mempolicy __NR_set_mempolicy
2122 #define __NR_compat_set_robust_list __NR_set_robust_list
2123 #define __NR_compat_set_tid_address __NR_set_tid_address
2124 #define __NR_compat_setdomainname __NR_setdomainname
2125 #define __NR_compat_setfsgid __NR_setfsgid
2126 #define __NR_compat_setfsgid32 __NR_setfsgid32
2127 #define __NR_compat_setfsuid __NR_setfsuid
2128 #define __NR_compat_setfsuid32 __NR_setfsuid32
2129 #define __NR_compat_setgid __NR_setgid
2130 #define __NR_compat_setgid32 __NR_setgid32
2131 #define __NR_compat_setgroups __NR_setgroups
2132 #define __NR_compat_setgroups32 __NR_setgroups32
2133 #define __NR_compat_sethostname __NR_sethostname
2134 #define __NR_compat_setitimer __NR_setitimer
2135 #define __NR_compat_setns __NR_setns
2136 #define __NR_compat_setpgid __NR_setpgid
2137 #define __NR_compat_setpriority __NR_setpriority
2138 #define __NR_compat_setregid __NR_setregid
2139 #define __NR_compat_setregid32 __NR_setregid32
2140 #define __NR_compat_setresgid __NR_setresgid
2141 #define __NR_compat_setresgid32 __NR_setresgid32
2142 #define __NR_compat_setresuid __NR_setresuid
2143 #define __NR_compat_setresuid32 __NR_setresuid32
2144 #define __NR_compat_setreuid __NR_setreuid
2145 #define __NR_compat_setreuid32 __NR_setreuid32
2146 #define __NR_compat_setrlimit __NR_setrlimit
2147 #define __NR_compat_setsid __NR_setsid
2148 #define __NR_compat_settimeofday __NR_settimeofday
2149 #define __NR_compat_setuid __NR_setuid
2150 #define __NR_compat_setuid32 __NR_setuid32
2151 #define __NR_compat_setxattr __NR_setxattr
2152 #define __NR_compat_sgetmask __NR_sgetmask
2153 #define __NR_compat_shmctl __NR_shmctl
2154 #define __NR_compat_sigaction __NR_sigaction
2155 #define __NR_compat_sigaltstack __NR_sigaltstack
2156 #define __NR_compat_signal __NR_signal
2157 #define __NR_compat_signalfd __NR_signalfd
2158 #define __NR_compat_signalfd4 __NR_signalfd4
2159 #define __NR_compat_sigpending __NR_sigpending
2160 #define __NR_compat_sigprocmask __NR_sigprocmask
2161 #define __NR_compat_sigsuspend __NR_sigsuspend
2162 #define __NR_compat_socketcall __NR_socketcall
2163 #define __NR_compat_splice __NR_splice
2164 #define __NR_compat_ssetmask __NR_ssetmask
2165 #define __NR_compat_stat __NR_stat
2166 #define __NR_compat_stat64 __NR_stat64
2167 #define __NR_compat_statfs __NR_statfs
2168 #define __NR_compat_statfs64 __NR_statfs64
2169 #define __NR_compat_statx __NR_statx
2170 #define __NR_compat_stime __NR_stime
2171 #define __NR_compat_swapoff __NR_swapoff
2172 #define __NR_compat_swapon __NR_swapon
2173 #define __NR_compat_symlink __NR_symlink
2174 #define __NR_compat_symlinkat __NR_symlinkat
2175 #define __NR_compat_sync __NR_sync
2176 #define __NR_compat_sync_file_range __NR_sync_file_range
2177 #define __NR_compat_syncfs __NR_syncfs
2178 #define __NR_compat_sysfs __NR_sysfs
2179 #define __NR_compat_sysinfo __NR_sysinfo
2180 #define __NR_compat_syslog __NR_syslog
2181 #define __NR_compat_tee __NR_tee
2182 #define __NR_compat_tgkill __NR_tgkill
2183 #define __NR_compat_time __NR_time
2184 #define __NR_compat_timer_create __NR_timer_create
2185 #define __NR_compat_timer_delete __NR_timer_delete
2186 #define __NR_compat_timer_getoverrun __NR_timer_getoverrun
2187 #define __NR_compat_timer_gettime __NR_timer_gettime
2188 #define __NR_compat_timer_settime __NR_timer_settime
2189 #define __NR_compat_timerfd_create __NR_timerfd_create
2190 #define __NR_compat_timerfd_gettime __NR_timerfd_gettime
2191 #define __NR_compat_timerfd_settime __NR_timerfd_settime
2192 #define __NR_compat_times __NR_times
2193 #define __NR_compat_tkill __NR_tkill
2194 #define __NR_compat_truncate __NR_truncate
2195 #define __NR_compat_ugetrlimit __NR_ugetrlimit
2196 #define __NR_compat_umask __NR_umask
2197 #define __NR_compat_umount __NR_umount
2198 #define __NR_compat_umount2 __NR_umount2
2199 #define __NR_compat_uname __NR_uname
2200 #define __NR_compat_unlink __NR_unlink
2201 #define __NR_compat_unlinkat __NR_unlinkat
2202 #define __NR_compat_unshare __NR_unshare
2203 #define __NR_compat_uselib __NR_uselib
2204 #define __NR_compat_userfaultfd __NR_userfaultfd
2205 #define __NR_compat_ustat __NR_ustat
2206 #define __NR_compat_utime __NR_utime
2207 #define __NR_compat_utimensat __NR_utimensat
2208 #define __NR_compat_utimes __NR_utimes
2209 #define __NR_compat_vfork __NR_vfork
2210 #define __NR_compat_vhangup __NR_vhangup
2211 #define __NR_compat_vmsplice __NR_vmsplice
2212 #define __NR_compat_wait4 __NR_wait4
2213 #define __NR_compat_waitid __NR_waitid
2214 #define __NR_compat_waitpid __NR_waitpid
2215 #if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
2216 #define __NR_compat_write __NR_write
2217 #endif
2218 #define __NR_compat_writev __NR_writev
2219
2220 #endif /* __powerpc64__ || __s390x__ || __aarch64__ */
2221
2222 #if defined(__ia64__)
2223
2224 // On RHEL5 ia64, __NR_umount2 doesn't exist. So, define it in terms
2225 // of __NR_umount.
2226
2227 #ifndef __NR_umount2
2228 #define __NR_umount2 __NR_umount
2229 #endif
2230
2231 #endif /* __ia64__ */
2232
2233 #endif /* _COMPAT_UNISTD_H_ */