-
Notifications
You must be signed in to change notification settings - Fork 173
/
seccomp-syscalls.h
2403 lines (1897 loc) · 50.7 KB
/
seccomp-syscalls.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Seccomp Library
*
* Copyright (c) 2019 Cisco Systems <pmoore2@cisco.com>
* Author: Paul Moore <paul@paul-moore.com>
*/
/*
* This library is free software; you can redistribute it and/or modify it
* under the terms of version 2.1 of the GNU Lesser General Public License as
* published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, see <http://www.gnu.org/licenses>.
*/
#ifndef _SECCOMP_H
#error "do not include seccomp-syscalls.h directly, use seccomp.h instead"
#endif
/*
* pseudo syscall definitions
*/
/* socket syscalls */
#define __PNR_socket -101
#define __PNR_bind -102
#define __PNR_connect -103
#define __PNR_listen -104
#define __PNR_accept -105
#define __PNR_getsockname -106
#define __PNR_getpeername -107
#define __PNR_socketpair -108
#define __PNR_send -109
#define __PNR_recv -110
#define __PNR_sendto -111
#define __PNR_recvfrom -112
#define __PNR_shutdown -113
#define __PNR_setsockopt -114
#define __PNR_getsockopt -115
#define __PNR_sendmsg -116
#define __PNR_recvmsg -117
#define __PNR_accept4 -118
#define __PNR_recvmmsg -119
#define __PNR_sendmmsg -120
/* ipc syscalls */
#define __PNR_semop -201
#define __PNR_semget -202
#define __PNR_semctl -203
#define __PNR_semtimedop -204
#define __PNR_msgsnd -211
#define __PNR_msgrcv -212
#define __PNR_msgget -213
#define __PNR_msgctl -214
#define __PNR_shmat -221
#define __PNR_shmdt -222
#define __PNR_shmget -223
#define __PNR_shmctl -224
/* single syscalls */
#define __PNR_arch_prctl -10001
#define __PNR_bdflush -10002
#define __PNR_break -10003
#define __PNR_chown32 -10004
#define __PNR_epoll_ctl_old -10005
#define __PNR_epoll_wait_old -10006
#define __PNR_fadvise64_64 -10007
#define __PNR_fchown32 -10008
#define __PNR_fcntl64 -10009
#define __PNR_fstat64 -10010
#define __PNR_fstatat64 -10011
#define __PNR_fstatfs64 -10012
#define __PNR_ftime -10013
#define __PNR_ftruncate64 -10014
#define __PNR_getegid32 -10015
#define __PNR_geteuid32 -10016
#define __PNR_getgid32 -10017
#define __PNR_getgroups32 -10018
#define __PNR_getresgid32 -10019
#define __PNR_getresuid32 -10020
#define __PNR_getuid32 -10021
#define __PNR_gtty -10022
#define __PNR_idle -10023
#define __PNR_ipc -10024
#define __PNR_lchown32 -10025
#define __PNR__llseek -10026
#define __PNR_lock -10027
#define __PNR_lstat64 -10028
#define __PNR_mmap2 -10029
#define __PNR_mpx -10030
#define __PNR_newfstatat -10031
#define __PNR__newselect -10032
#define __PNR_nice -10033
#define __PNR_oldfstat -10034
#define __PNR_oldlstat -10035
#define __PNR_oldolduname -10036
#define __PNR_oldstat -10037
#define __PNR_olduname -10038
#define __PNR_prof -10039
#define __PNR_profil -10040
#define __PNR_readdir -10041
#define __PNR_security -10042
#define __PNR_sendfile64 -10043
#define __PNR_setfsgid32 -10044
#define __PNR_setfsuid32 -10045
#define __PNR_setgid32 -10046
#define __PNR_setgroups32 -10047
#define __PNR_setregid32 -10048
#define __PNR_setresgid32 -10049
#define __PNR_setresuid32 -10050
#define __PNR_setreuid32 -10051
#define __PNR_setuid32 -10052
#define __PNR_sgetmask -10053
#define __PNR_sigaction -10054
#define __PNR_signal -10055
#define __PNR_sigpending -10056
#define __PNR_sigprocmask -10057
#define __PNR_sigreturn -10058
#define __PNR_sigsuspend -10059
#define __PNR_socketcall -10060
#define __PNR_ssetmask -10061
#define __PNR_stat64 -10062
#define __PNR_statfs64 -10063
#define __PNR_stime -10064
#define __PNR_stty -10065
#define __PNR_truncate64 -10066
#define __PNR_tuxcall -10067
#define __PNR_ugetrlimit -10068
#define __PNR_ulimit -10069
#define __PNR_umount -10070
#define __PNR_vm86 -10071
#define __PNR_vm86old -10072
#define __PNR_waitpid -10073
#define __PNR_create_module -10074
#define __PNR_get_kernel_syms -10075
#define __PNR_get_thread_area -10076
#define __PNR_nfsservctl -10077
#define __PNR_query_module -10078
#define __PNR_set_thread_area -10079
#define __PNR__sysctl -10080
#define __PNR_uselib -10081
#define __PNR_vserver -10082
#define __PNR_arm_fadvise64_64 -10083
#define __PNR_arm_sync_file_range -10084
#define __PNR_pciconfig_iobase -10086
#define __PNR_pciconfig_read -10087
#define __PNR_pciconfig_write -10088
#define __PNR_sync_file_range2 -10089
#define __PNR_syscall -10090
#define __PNR_afs_syscall -10091
#define __PNR_fadvise64 -10092
#define __PNR_getpmsg -10093
#define __PNR_ioperm -10094
#define __PNR_iopl -10095
#define __PNR_migrate_pages -10097
#define __PNR_modify_ldt -10098
#define __PNR_putpmsg -10099
#define __PNR_sync_file_range -10100
#define __PNR_select -10101
#define __PNR_vfork -10102
#define __PNR_cachectl -10103
#define __PNR_cacheflush -10104
#define __PNR_sysmips -10106
#define __PNR_timerfd -10107
#define __PNR_time -10108
#define __PNR_getrandom -10109
#define __PNR_memfd_create -10110
#define __PNR_kexec_file_load -10111
#define __PNR_sysfs -10145
#define __PNR_oldwait4 -10146
#define __PNR_access -10147
#define __PNR_alarm -10148
#define __PNR_chmod -10149
#define __PNR_chown -10150
#define __PNR_creat -10151
#define __PNR_dup2 -10152
#define __PNR_epoll_create -10153
#define __PNR_epoll_wait -10154
#define __PNR_eventfd -10155
#define __PNR_fork -10156
#define __PNR_futimesat -10157
#define __PNR_getdents -10158
#define __PNR_getpgrp -10159
#define __PNR_inotify_init -10160
#define __PNR_lchown -10161
#define __PNR_link -10162
#define __PNR_lstat -10163
#define __PNR_mkdir -10164
#define __PNR_mknod -10165
#define __PNR_open -10166
#define __PNR_pause -10167
#define __PNR_pipe -10168
#define __PNR_poll -10169
#define __PNR_readlink -10170
#define __PNR_rename -10171
#define __PNR_rmdir -10172
#define __PNR_signalfd -10173
#define __PNR_stat -10174
#define __PNR_symlink -10175
#define __PNR_unlink -10176
#define __PNR_ustat -10177
#define __PNR_utime -10178
#define __PNR_utimes -10179
#define __PNR_getrlimit -10180
#define __PNR_mmap -10181
#define __PNR_breakpoint -10182
#define __PNR_set_tls -10183
#define __PNR_usr26 -10184
#define __PNR_usr32 -10185
#define __PNR_multiplexer -10186
#define __PNR_rtas -10187
#define __PNR_spu_create -10188
#define __PNR_spu_run -10189
#define __PNR_swapcontext -10190
#define __PNR_sys_debug_setcontext -10191
#define __PNR_switch_endian -10191
#define __PNR_get_mempolicy -10192
#define __PNR_move_pages -10193
#define __PNR_mbind -10194
#define __PNR_set_mempolicy -10195
#define __PNR_s390_runtime_instr -10196
#define __PNR_s390_pci_mmio_read -10197
#define __PNR_s390_pci_mmio_write -10198
#define __PNR_membarrier -10199
#define __PNR_userfaultfd -10200
#define __PNR_pkey_mprotect -10201
#define __PNR_pkey_alloc -10202
#define __PNR_pkey_free -10203
#define __PNR_get_tls -10204
#define __PNR_s390_guarded_storage -10205
#define __PNR_s390_sthyi -10206
#define __PNR_subpage_prot -10207
#define __PNR_statx -10208
#define __PNR_io_pgetevents -10209
#define __PNR_rseq -10210
#define __PNR_setrlimit -10211
#define __PNR_clock_adjtime64 -10212
#define __PNR_clock_getres_time64 -10213
#define __PNR_clock_gettime64 -10214
#define __PNR_clock_nanosleep_time64 -10215
#define __PNR_clock_settime64 -10216
#define __PNR_clone3 -10217
#define __PNR_fsconfig -10218
#define __PNR_fsmount -10219
#define __PNR_fsopen -10220
#define __PNR_fspick -10221
#define __PNR_futex_time64 -10222
#define __PNR_io_pgetevents_time64 -10223
#define __PNR_move_mount -10224
#define __PNR_mq_timedreceive_time64 -10225
#define __PNR_mq_timedsend_time64 -10226
#define __PNR_open_tree -10227
#define __PNR_pidfd_open -10228
#define __PNR_pidfd_send_signal -10229
#define __PNR_ppoll_time64 -10230
#define __PNR_pselect6_time64 -10231
#define __PNR_recvmmsg_time64 -10232
#define __PNR_rt_sigtimedwait_time64 -10233
#define __PNR_sched_rr_get_interval_time64 -10234
#define __PNR_semtimedop_time64 -10235
#define __PNR_timer_gettime64 -10236
#define __PNR_timer_settime64 -10237
#define __PNR_timerfd_gettime64 -10238
#define __PNR_timerfd_settime64 -10239
#define __PNR_utimensat_time64 -10240
#define __PNR_ppoll -10241
#define __PNR_renameat -10242
#define __PNR_riscv_flush_icache -10243
#define __PNR_memfd_secret -10244
#define __PNR_map_shadow_stack -10245
#define __PNR_fstat -10246
#define __PNR_atomic_barrier -10247
#define __PNR_atomic_cmpxchg_32 -10248
#define __PNR_getpagesize -10249
#define __PNR_riscv_hwprobe -10250
#define __PNR_uretprobe -10251
/*
* libseccomp syscall definitions
*/
#ifdef __NR__llseek
#define __SNR__llseek __NR__llseek
#else
#define __SNR__llseek __PNR__llseek
#endif
#ifdef __NR__newselect
#define __SNR__newselect __NR__newselect
#else
#define __SNR__newselect __PNR__newselect
#endif
#ifdef __NR__sysctl
#define __SNR__sysctl __NR__sysctl
#else
#define __SNR__sysctl __PNR__sysctl
#endif
#ifdef __NR_accept
#define __SNR_accept __NR_accept
#else
#define __SNR_accept __PNR_accept
#endif
#ifdef __NR_accept4
#define __SNR_accept4 __NR_accept4
#else
#define __SNR_accept4 __PNR_accept4
#endif
#ifdef __NR_access
#define __SNR_access __NR_access
#else
#define __SNR_access __PNR_access
#endif
#define __SNR_acct __NR_acct
#define __SNR_add_key __NR_add_key
#define __SNR_adjtimex __NR_adjtimex
#ifdef __NR_afs_syscall
#define __SNR_afs_syscall __NR_afs_syscall
#else
#define __SNR_afs_syscall __PNR_afs_syscall
#endif
#ifdef __NR_alarm
#define __SNR_alarm __NR_alarm
#else
#define __SNR_alarm __PNR_alarm
#endif
#ifdef __NR_arm_fadvise64_64
#define __SNR_arm_fadvise64_64 __NR_arm_fadvise64_64
#else
#define __SNR_arm_fadvise64_64 __PNR_arm_fadvise64_64
#endif
#ifdef __NR_arm_sync_file_range
#define __SNR_arm_sync_file_range __NR_arm_sync_file_range
#else
#define __SNR_arm_sync_file_range __PNR_arm_sync_file_range
#endif
#ifdef __NR_arch_prctl
#define __SNR_arch_prctl __NR_arch_prctl
#else
#define __SNR_arch_prctl __PNR_arch_prctl
#endif
#ifdef __NR_atomic_barrier
#define __SNR_atomic_barrier __NR_atomic_barrier
#else
#define __SNR_atomic_barrier __PNR_atomic_barrier
#endif
#ifdef __NR_atomic_cmpxchg_32
#define __SNR_atomic_cmpxchg_32 __NR_atomic_cmpxchg_32
#else
#define __SNR_atomic_cmpxchg_32 __PNR_atomic_cmpxchg_32
#endif
#ifdef __NR_bdflush
#define __SNR_bdflush __NR_bdflush
#else
#define __SNR_bdflush __PNR_bdflush
#endif
#ifdef __NR_bind
#define __SNR_bind __NR_bind
#else
#define __SNR_bind __PNR_bind
#endif
#define __SNR_bpf __NR_bpf
#ifdef __NR_break
#define __SNR_break __NR_break
#else
#define __SNR_break __PNR_break
#endif
#ifdef __NR_breakpoint
#ifdef __ARM_NR_breakpoint
#define __SNR_breakpoint __ARM_NR_breakpoint
#else
#define __SNR_breakpoint __NR_breakpoint
#endif
#else
#define __SNR_breakpoint __PNR_breakpoint
#endif
#define __SNR_brk __NR_brk
#ifdef __NR_cachectl
#define __SNR_cachectl __NR_cachectl
#else
#define __SNR_cachectl __PNR_cachectl
#endif
#ifdef __NR_cacheflush
#ifdef __ARM_NR_cacheflush
#define __SNR_cacheflush __ARM_NR_cacheflush
#else
#define __SNR_cacheflush __NR_cacheflush
#endif
#else
#define __SNR_cacheflush __PNR_cacheflush
#endif
#define __SNR_cachestat __NR_cachestat
#define __SNR_capget __NR_capget
#define __SNR_capset __NR_capset
#define __SNR_chdir __NR_chdir
#ifdef __NR_chmod
#define __SNR_chmod __NR_chmod
#else
#define __SNR_chmod __PNR_chmod
#endif
#ifdef __NR_chown
#define __SNR_chown __NR_chown
#else
#define __SNR_chown __PNR_chown
#endif
#ifdef __NR_chown32
#define __SNR_chown32 __NR_chown32
#else
#define __SNR_chown32 __PNR_chown32
#endif
#define __SNR_chroot __NR_chroot
#define __SNR_clock_adjtime __NR_clock_adjtime
#ifdef __NR_clock_adjtime64
#define __SNR_clock_adjtime64 __NR_clock_adjtime64
#else
#define __SNR_clock_adjtime64 __PNR_clock_adjtime64
#endif
#define __SNR_clock_getres __NR_clock_getres
#ifdef __NR_clock_getres_time64
#define __SNR_clock_getres_time64 __NR_clock_getres_time64
#else
#define __SNR_clock_getres_time64 __PNR_clock_getres_time64
#endif
#define __SNR_clock_gettime __NR_clock_gettime
#ifdef __NR_clock_gettime64
#define __SNR_clock_gettime64 __NR_clock_gettime64
#else
#define __SNR_clock_gettime64 __PNR_clock_gettime64
#endif
#define __SNR_clock_nanosleep __NR_clock_nanosleep
#ifdef __NR_clock_nanosleep_time64
#define __SNR_clock_nanosleep_time64 __NR_clock_nanosleep_time64
#else
#define __SNR_clock_nanosleep_time64 __PNR_clock_nanosleep_time64
#endif
#define __SNR_clock_settime __NR_clock_settime
#ifdef __NR_clock_settime64
#define __SNR_clock_settime64 __NR_clock_settime64
#else
#define __SNR_clock_settime64 __PNR_clock_settime64
#endif
#define __SNR_clone __NR_clone
#ifdef __NR_clone3
#define __SNR_clone3 __NR_clone3
#else
#define __SNR_clone3 __PNR_clone3
#endif
#define __SNR_close __NR_close
#define __SNR_close_range __NR_close_range
#ifdef __NR_connect
#define __SNR_connect __NR_connect
#else
#define __SNR_connect __PNR_connect
#endif
#define __SNR_copy_file_range __NR_copy_file_range
#ifdef __NR_creat
#define __SNR_creat __NR_creat
#else
#define __SNR_creat __PNR_creat
#endif
#ifdef __NR_create_module
#define __SNR_create_module __NR_create_module
#else
#define __SNR_create_module __PNR_create_module
#endif
#define __SNR_delete_module __NR_delete_module
#ifdef __NR_dup
#define __SNR_dup __NR_dup
#else
#define __SNR_dup __PNR_dup
#endif
#ifdef __NR_dup2
#define __SNR_dup2 __NR_dup2
#else
#define __SNR_dup2 __PNR_dup2
#endif
#define __SNR_dup3 __NR_dup3
#ifdef __NR_epoll_create
#define __SNR_epoll_create __NR_epoll_create
#else
#define __SNR_epoll_create __PNR_epoll_create
#endif
#define __SNR_epoll_create1 __NR_epoll_create1
#ifdef __NR_epoll_ctl
#define __SNR_epoll_ctl __NR_epoll_ctl
#else
#define __SNR_epoll_ctl __PNR_epoll_ctl
#endif
#ifdef __NR_epoll_ctl_old
#define __SNR_epoll_ctl_old __NR_epoll_ctl_old
#else
#define __SNR_epoll_ctl_old __PNR_epoll_ctl_old
#endif
#define __SNR_epoll_pwait __NR_epoll_pwait
#define __SNR_epoll_pwait2 __NR_epoll_pwait2
#ifdef __NR_epoll_wait
#define __SNR_epoll_wait __NR_epoll_wait
#else
#define __SNR_epoll_wait __PNR_epoll_wait
#endif
#ifdef __NR_epoll_wait_old
#define __SNR_epoll_wait_old __NR_epoll_wait_old
#else
#define __SNR_epoll_wait_old __PNR_epoll_wait_old
#endif
#ifdef __NR_eventfd
#define __SNR_eventfd __NR_eventfd
#else
#define __SNR_eventfd __PNR_eventfd
#endif
#define __SNR_eventfd2 __NR_eventfd2
#define __SNR_execve __NR_execve
#define __SNR_execveat __NR_execveat
#define __SNR_exit __NR_exit
#define __SNR_exit_group __NR_exit_group
#define __SNR_faccessat __NR_faccessat
#define __SNR_faccessat2 __NR_faccessat2
#ifdef __NR_fadvise64
#define __SNR_fadvise64 __NR_fadvise64
#else
#define __SNR_fadvise64 __PNR_fadvise64
#endif
#ifdef __NR_fadvise64_64
#define __SNR_fadvise64_64 __NR_fadvise64_64
#else
#define __SNR_fadvise64_64 __PNR_fadvise64_64
#endif
#define __SNR_fallocate __NR_fallocate
#define __SNR_fanotify_init __NR_fanotify_init
#define __SNR_fanotify_mark __NR_fanotify_mark
#define __SNR_fchdir __NR_fchdir
#define __SNR_fchmod __NR_fchmod
#define __SNR_fchmodat __NR_fchmodat
#define __SNR_fchmodat2 __NR_fchmodat2
#ifdef __NR_fchown
#define __SNR_fchown __NR_fchown
#else
#define __SNR_fchown __PNR_fchown
#endif
#ifdef __NR_fchown32
#define __SNR_fchown32 __NR_fchown32
#else
#define __SNR_fchown32 __PNR_fchown32
#endif
#define __SNR_fchownat __NR_fchownat
#ifdef __NR_fcntl
#define __SNR_fcntl __NR_fcntl
#else
#define __SNR_fcntl __PNR_fcntl
#endif
#ifdef __NR_fcntl64
#define __SNR_fcntl64 __NR_fcntl64
#else
#define __SNR_fcntl64 __PNR_fcntl64
#endif
#define __SNR_fdatasync __NR_fdatasync
#define __SNR_fgetxattr __NR_fgetxattr
#define __SNR_finit_module __NR_finit_module
#define __SNR_flistxattr __NR_flistxattr
#define __SNR_flock __NR_flock
#ifdef __NR_fork
#define __SNR_fork __NR_fork
#else
#define __SNR_fork __PNR_fork
#endif
#define __SNR_fremovexattr __NR_fremovexattr
#ifdef __NR_fsconfig
#define __SNR_fsconfig __NR_fsconfig
#else
#define __SNR_fsconfig __PNR_fsconfig
#endif
#define __SNR_fsetxattr __NR_fsetxattr
#ifdef __NR_fsmount
#define __SNR_fsmount __NR_fsmount
#else
#define __SNR_fsmount __PNR_fsmount
#endif
#ifdef __NR_fsopen
#define __SNR_fsopen __NR_fsopen
#else
#define __SNR_fsopen __PNR_fsopen
#endif
#ifdef __NR_fspick
#define __SNR_fspick __NR_fspick
#else
#define __SNR_fspick __PNR_fspick
#endif
#ifdef __NR_fstat
#define __SNR_fstat __NR_fstat
#else
#define __SNR_fstat __PNR_fstat
#endif
#ifdef __NR_fstat64
#define __SNR_fstat64 __NR_fstat64
#else
#define __SNR_fstat64 __PNR_fstat64
#endif
#ifdef __NR_fstatat64
#define __SNR_fstatat64 __NR_fstatat64
#else
#define __SNR_fstatat64 __PNR_fstatat64
#endif
#ifdef __NR_fstatfs
#define __SNR_fstatfs __NR_fstatfs
#else
#define __SNR_fstatfs __PNR_fstatfs
#endif
#ifdef __NR_fstatfs64
#define __SNR_fstatfs64 __NR_fstatfs64
#else
#define __SNR_fstatfs64 __PNR_fstatfs64
#endif
#define __SNR_fsync __NR_fsync
#ifdef __NR_ftime
#define __SNR_ftime __NR_ftime
#else
#define __SNR_ftime __PNR_ftime
#endif
#ifdef __NR_ftruncate
#define __SNR_ftruncate __NR_ftruncate
#else
#define __SNR_ftruncate __PNR_ftruncate
#endif
#ifdef __NR_ftruncate64
#define __SNR_ftruncate64 __NR_ftruncate64
#else
#define __SNR_ftruncate64 __PNR_ftruncate64
#endif
#define __SNR_futex __NR_futex
#define __SNR_futex_requeue __NR_futex_requeue
#ifdef __NR_futex_time64
#define __SNR_futex_time64 __NR_futex_time64
#else
#define __SNR_futex_time64 __PNR_futex_time64
#endif
#define __SNR_futex_wait __NR_futex_wait
#define __SNR_futex_waitv __NR_futex_waitv
#define __SNR_futex_wake __NR_futex_wake
#ifdef __NR_futimesat
#define __SNR_futimesat __NR_futimesat
#else
#define __SNR_futimesat __PNR_futimesat
#endif
#ifdef __NR_get_kernel_syms
#define __SNR_get_kernel_syms __NR_get_kernel_syms
#else
#define __SNR_get_kernel_syms __PNR_get_kernel_syms
#endif
#ifdef __NR_get_mempolicy
#define __SNR_get_mempolicy __NR_get_mempolicy
#else
#define __SNR_get_mempolicy __PNR_get_mempolicy
#endif
#define __SNR_get_robust_list __NR_get_robust_list
#ifdef __NR_get_thread_area
#define __SNR_get_thread_area __NR_get_thread_area
#else
#define __SNR_get_thread_area __PNR_get_thread_area
#endif
#ifdef __NR_get_tls
#ifdef __ARM_NR_get_tls
#define __SNR_get_tls __ARM_NR_get_tls
#else
#define __SNR_get_tls __NR_get_tls
#endif
#else
#define __SNR_get_tls __PNR_get_tls
#endif
#define __SNR_getcpu __NR_getcpu
#define __SNR_getcwd __NR_getcwd
#ifdef __NR_getdents
#define __SNR_getdents __NR_getdents
#else
#define __SNR_getdents __PNR_getdents
#endif
#define __SNR_getdents64 __NR_getdents64
#ifdef __NR_getegid
#define __SNR_getegid __NR_getegid
#else
#define __SNR_getegid __PNR_getegid
#endif
#ifdef __NR_getegid32
#define __SNR_getegid32 __NR_getegid32
#else
#define __SNR_getegid32 __PNR_getegid32
#endif
#ifdef __NR_geteuid
#define __SNR_geteuid __NR_geteuid
#else
#define __SNR_geteuid __PNR_geteuid
#endif
#ifdef __NR_geteuid32
#define __SNR_geteuid32 __NR_geteuid32
#else
#define __SNR_geteuid32 __PNR_geteuid32
#endif
#ifdef __NR_getgid
#define __SNR_getgid __NR_getgid
#else
#define __SNR_getgid __PNR_getgid
#endif
#ifdef __NR_getgid32
#define __SNR_getgid32 __NR_getgid32
#else
#define __SNR_getgid32 __PNR_getgid32
#endif
#ifdef __NR_getgroups
#define __SNR_getgroups __NR_getgroups
#else
#define __SNR_getgroups __PNR_getgroups
#endif
#ifdef __NR_getgroups32
#define __SNR_getgroups32 __NR_getgroups32
#else
#define __SNR_getgroups32 __PNR_getgroups32
#endif
#define __SNR_getitimer __NR_getitimer
#ifdef __NR_getpagesize
#define __SNR_getpagesize __NR_getpagesize
#else
#define __SNR_getpagesize __PNR_getpagesize
#endif
#ifdef __NR_getpeername
#define __SNR_getpeername __NR_getpeername
#else
#define __SNR_getpeername __PNR_getpeername
#endif
#define __SNR_getpgid __NR_getpgid
#ifdef __NR_getpgrp
#define __SNR_getpgrp __NR_getpgrp
#else
#define __SNR_getpgrp __PNR_getpgrp
#endif
#define __SNR_getpid __NR_getpid
#ifdef __NR_getpmsg
#define __SNR_getpmsg __NR_getpmsg
#else
#define __SNR_getpmsg __PNR_getpmsg
#endif
#define __SNR_getppid __NR_getppid
#define __SNR_getpriority __NR_getpriority
#ifdef __NR_getrandom
#define __SNR_getrandom __NR_getrandom
#else
#define __SNR_getrandom __PNR_getrandom
#endif
#ifdef __NR_getresgid
#define __SNR_getresgid __NR_getresgid
#else
#define __SNR_getresgid __PNR_getresgid
#endif
#ifdef __NR_getresgid32
#define __SNR_getresgid32 __NR_getresgid32
#else
#define __SNR_getresgid32 __PNR_getresgid32
#endif
#ifdef __NR_getresuid
#define __SNR_getresuid __NR_getresuid
#else
#define __SNR_getresuid __PNR_getresuid
#endif
#ifdef __NR_getresuid32
#define __SNR_getresuid32 __NR_getresuid32
#else
#define __SNR_getresuid32 __PNR_getresuid32
#endif
#ifdef __NR_getrlimit
#define __SNR_getrlimit __NR_getrlimit
#else
#define __SNR_getrlimit __PNR_getrlimit
#endif
#define __SNR_getrusage __NR_getrusage
#define __SNR_getsid __NR_getsid
#ifdef __NR_getsockname
#define __SNR_getsockname __NR_getsockname
#else
#define __SNR_getsockname __PNR_getsockname
#endif
#ifdef __NR_getsockopt
#define __SNR_getsockopt __NR_getsockopt
#else
#define __SNR_getsockopt __PNR_getsockopt
#endif
#define __SNR_gettid __NR_gettid
#define __SNR_gettimeofday __NR_gettimeofday
#ifdef __NR_getuid
#define __SNR_getuid __NR_getuid
#else
#define __SNR_getuid __PNR_getuid
#endif
#ifdef __NR_getuid32
#define __SNR_getuid32 __NR_getuid32
#else
#define __SNR_getuid32 __PNR_getuid32
#endif
#define __SNR_getxattr __NR_getxattr
#ifdef __NR_gtty
#define __SNR_gtty __NR_gtty
#else
#define __SNR_gtty __PNR_gtty
#endif
#ifdef __NR_idle
#define __SNR_idle __NR_idle
#else
#define __SNR_idle __PNR_idle
#endif
#define __SNR_init_module __NR_init_module
#define __SNR_inotify_add_watch __NR_inotify_add_watch
#ifdef __NR_inotify_init
#define __SNR_inotify_init __NR_inotify_init
#else
#define __SNR_inotify_init __PNR_inotify_init
#endif
#define __SNR_inotify_init1 __NR_inotify_init1
#define __SNR_inotify_rm_watch __NR_inotify_rm_watch
#define __SNR_io_cancel __NR_io_cancel
#define __SNR_io_destroy __NR_io_destroy
#define __SNR_io_getevents __NR_io_getevents
#ifdef __NR_io_pgetevents
#define __SNR_io_pgetevents __NR_io_pgetevents
#else
#define __SNR_io_pgetevents __PNR_io_pgetevents
#endif
#ifdef __NR_io_pgetevents_time64
#define __SNR_io_pgetevents_time64 __NR_io_pgetevents_time64
#else
#define __SNR_io_pgetevents_time64 __PNR_io_pgetevents_time64
#endif