File: compat_unistd.h

package info (click to toggle)
systemtap 5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,552 kB
  • sloc: cpp: 81,117; ansic: 54,933; xml: 49,795; exp: 43,595; sh: 11,526; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (2233 lines) | stat: -rw-r--r-- 68,384 bytes parent folder | download | duplicates (3)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
/* -*- linux-c -*- 
 * Syscall compatibility defines.
 * Copyright (C) 2013-2019 Red Hat Inc.
 *
 * This file is part of systemtap, and is free software.  You can
 * redistribute it and/or modify it under the terms of the GNU General
 * Public License (GPL); either version 2, or (at your option) any
 * later version.
 */

#ifndef _COMPAT_UNISTD_H_
#define _COMPAT_UNISTD_H_

// Older kernels (like RHEL5) supported __NR_sendfile64. For newer
// kernels, we'll just define __NR_sendfile64 in terms of
// __NR_sendfile.
#ifndef __NR_sendfile64
#define __NR_sendfile64 __NR_sendfile
#endif

#ifndef __NR_syscall_max
#define __NR_syscall_max 0xffff
#endif
#ifndef __NR_syscall_compat_max
#define __NR_syscall_compat_max 0xffff
#endif

#ifndef __NR__llseek
#define __NR__llseek (__NR_syscall_max + 1)
#endif
#ifndef __NR__newselect
#define __NR__newselect (__NR_syscall_max + 1)
#endif
#ifndef __NR_access
#define __NR_access (__NR_syscall_max + 1)
#endif
#ifndef __NR_accept
#define __NR_accept (__NR_syscall_max + 1)
#endif
#ifndef __NR_accept4
#define __NR_accept4 (__NR_syscall_max + 1)
#endif
#ifndef __NR_bdflush
#define __NR_bdflush (__NR_syscall_max + 1)
#endif
#ifndef __NR_bind
#define __NR_bind (__NR_syscall_max + 1)
#endif
#ifndef __NR_bpf
#define __NR_bpf (__NR_syscall_max + 1)
#endif
#ifndef __NR_chmod
#define __NR_chmod (__NR_syscall_max + 1)
#endif
#ifndef __NR_chown
#define __NR_chown (__NR_syscall_max + 1)
#endif
#ifndef __NR_chown32
#define __NR_chown32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_compat_bdflush
#define __NR_compat_bdflush (__NR_syscall_max + 1)
#endif
#ifndef __NR_connect
#define __NR_connect (__NR_syscall_max + 1)
#endif
#ifndef __NR_copy_file_range
#define __NR_copy_file_range (__NR_syscall_max + 1)
#endif
#ifndef __NR_creat
#define __NR_creat (__NR_syscall_max + 1)
#endif
#ifndef __NR_dup2
#define __NR_dup2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_epoll_wait
#define __NR_epoll_wait (__NR_syscall_max + 1)
#endif
#ifndef __NR_eventfd
#define __NR_eventfd (__NR_syscall_max + 1)
#endif
#ifndef __NR_execveat
#define __NR_execveat (__NR_syscall_max + 1)
#endif
#ifndef __NR_faccessat2
#define __NR_faccessat2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_fadvise64_64
#define __NR_fadvise64_64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_fchown32
#define __NR_fchown32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_fcntl64
#define __NR_fcntl64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_fork
#define __NR_fork (__NR_syscall_max + 1)
#endif
#ifndef __NR_fstat64
#define __NR_fstat64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_fstatat64
#define __NR_fstatat64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_fstatfs64
#define __NR_fstatfs64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_ftruncate
#define __NR_ftruncate (__NR_syscall_max + 1)
#endif
#ifndef __NR_ftruncate64
#define __NR_ftruncate64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_futimesat
#define __NR_futimesat (__NR_syscall_max + 1)
#endif
#ifndef __NR_getcpu
#define __NR_getcpu (__NR_syscall_max + 1)
#endif
#ifndef __NR_getdents
#define __NR_getdents (__NR_syscall_max + 1)
#endif
#ifndef __NR_getegid32
#define __NR_getegid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_geteuid32
#define __NR_geteuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_getgid32
#define __NR_getgid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_getgroups32
#define __NR_getgroups32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_get_mempolicy
#define __NR_get_mempolicy (__NR_syscall_max + 1)
#endif
#ifndef __NR_getpeername
#define __NR_getpeername (__NR_syscall_max + 1)
#endif
#ifndef __NR_getpgrp
#define __NR_getpgrp (__NR_syscall_max + 1)
#endif
#ifndef __NR_getrandom
#define __NR_getrandom (__NR_syscall_max + 1)
#endif
#ifndef __NR_getresgid32
#define __NR_getresgid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_getresuid32
#define __NR_getresuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_getsockname
#define __NR_getsockname (__NR_syscall_max + 1)
#endif
#ifndef __NR_getsockopt
#define __NR_getsockopt (__NR_syscall_max + 1)
#endif
#ifndef __NR_getuid32
#define __NR_getuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_io_pgetevents
#define __NR_io_pgetevents (__NR_syscall_max + 1)
#endif
#ifndef __NR_inotify_init
#define __NR_inotify_init (__NR_syscall_max + 1)
#endif
#ifndef __NR_ipc
#define __NR_ipc (__NR_syscall_max + 1)
#endif
#ifndef __NR_kcmp
#define __NR_kcmp (__NR_syscall_max + 1)
#endif
#ifndef __NR_kexec_file_load
#define __NR_kexec_file_load (__NR_syscall_max + 1)
#endif
#ifndef __NR_lchown
#define __NR_lchown (__NR_syscall_max + 1)
#endif
#ifndef __NR_lchown32
#define __NR_lchown32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_link
#define __NR_link (__NR_syscall_max + 1)
#endif
#ifndef __NR_listen
#define __NR_listen (__NR_syscall_max + 1)
#endif
#ifndef __NR_lstat
#define __NR_lstat (__NR_syscall_max + 1)
#endif
#ifndef __NR_lstat64
#define __NR_lstat64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_membarrier
#define __NR_membarrier (__NR_syscall_max + 1)
#endif
#ifndef __NR_memfd_secret
#define __NR_memfd_secret (__NR_syscall_max + 1)
#endif
#ifndef __NR_migrate_pages
#define __NR_migrate_pages (__NR_syscall_max + 1)
#endif
#ifndef __NR_mkdir
#define __NR_mkdir (__NR_syscall_max + 1)
#endif
#ifndef __NR_mknod
#define __NR_mknod (__NR_syscall_max + 1)
#endif
#ifndef __NR_mlock2
#define __NR_mlock2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_mmap2
#define __NR_mmap2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_move_pages
#define __NR_move_pages (__NR_syscall_max + 1)
#endif
#ifndef __NR_msgctl
#define __NR_msgctl (__NR_syscall_max + 1)
#endif
#ifndef __NR_msgget
#define __NR_msgget (__NR_syscall_max + 1)
#endif
#ifndef __NR_msgrcv
#define __NR_msgrcv (__NR_syscall_max + 1)
#endif
#ifndef __NR_msgsnd
#define __NR_msgsnd (__NR_syscall_max + 1)
#endif
#ifndef __NR_nfsservctl
#define __NR_nfsservctl (__NR_syscall_max + 1)
#endif
#ifndef __NR_nice
#define __NR_nice (__NR_syscall_max + 1)
#endif
#ifndef __NR_oldfstat
#define __NR_oldfstat (__NR_syscall_max + 1)
#endif
#ifndef __NR_oldlstat
#define __NR_oldlstat (__NR_syscall_max + 1)
#endif
#ifndef __NR_oldolduname
#define __NR_oldolduname (__NR_syscall_max + 1)
#endif
#ifndef __NR_oldstat
#define __NR_oldstat (__NR_syscall_max + 1)
#endif
#ifndef __NR_olduname
#define __NR_olduname (__NR_syscall_max + 1)
#endif
#ifndef __NR_open
#define __NR_open (__NR_syscall_max + 1)
#endif
#ifndef __NR_pause
#define __NR_pause (__NR_syscall_max + 1)
#endif
#ifndef __NR_pipe
#define __NR_pipe (__NR_syscall_max + 1)
#endif
#ifndef __NR_poll
#define __NR_poll (__NR_syscall_max + 1)
#endif
#ifndef __NR_preadv2
#define __NR_preadv2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_pselect7
#define __NR_pselect7 (__NR_syscall_max + 1)
#endif
#ifndef __NR_pwritev2
#define __NR_pwritev2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_readdir
#define __NR_readdir (__NR_syscall_max + 1)
#endif
#ifndef __NR_readlink
#define __NR_readlink (__NR_syscall_max + 1)
#endif
#ifndef __NR_recv
#define __NR_recv (__NR_syscall_max + 1)
#endif
#ifndef __NR_recvfrom
#define __NR_recvfrom (__NR_syscall_max + 1)
#endif
#ifndef __NR_recvmsg
#define __NR_recvmsg (__NR_syscall_max + 1)
#endif
#ifndef __NR_rename
#define __NR_rename (__NR_syscall_max + 1)
#endif
#ifndef __NR_renameat2
#define __NR_renameat2 (__NR_syscall_max + 1)
#endif
#ifndef __NR_rmdir
#define __NR_rmdir (__NR_syscall_max + 1)
#endif
#ifndef __NR_rseq
#define __NR_rseq (__NR_syscall_max + 1)
#endif
#ifndef __NR_select
#define __NR_select (__NR_syscall_max + 1)
#endif
#ifndef __NR_semctl
#define __NR_semctl (__NR_syscall_max + 1)
#endif
#ifndef __NR_semget
#define __NR_semget (__NR_syscall_max + 1)
#endif
#ifndef __NR_semop
#define __NR_semop (__NR_syscall_max + 1)
#endif
#ifndef __NR_semtimedop
#define __NR_semtimedop (__NR_syscall_max + 1)
#endif
#ifndef __NR_send
#define __NR_send (__NR_syscall_max + 1)
#endif
#ifndef __NR_sendmmsg
#define __NR_sendmmsg (__NR_syscall_max + 1)
#endif
#ifndef __NR_sendmsg
#define __NR_sendmsg (__NR_syscall_max + 1)
#endif
#ifndef __NR_sendto
#define __NR_sendto (__NR_syscall_max + 1)
#endif
#ifndef __NR_setfsgid32
#define __NR_setfsgid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setfsuid32
#define __NR_setfsuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setgid32
#define __NR_setgid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setgroups32
#define __NR_setgroups32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_set_mempolicy
#define __NR_set_mempolicy (__NR_syscall_max + 1)
#endif
#ifndef __NR_setregid32
#define __NR_setregid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setresgid32
#define __NR_setresgid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setresuid32
#define __NR_setresuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setreuid32
#define __NR_setreuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_setsockopt
#define __NR_setsockopt (__NR_syscall_max + 1)
#endif
#ifndef __NR_setuid32
#define __NR_setuid32 (__NR_syscall_max + 1)
#endif
#ifndef __NR_sgetmask
#define __NR_sgetmask (__NR_syscall_max + 1)
#endif
#ifndef __NR_shmat
#define __NR_shmat (__NR_syscall_max + 1)
#endif
#ifndef __NR_shmctl
#define __NR_shmctl (__NR_syscall_max + 1)
#endif
#ifndef __NR_shmdt
#define __NR_shmdt (__NR_syscall_max + 1)
#endif
#ifndef __NR_shmget
#define __NR_shmget (__NR_syscall_max + 1)
#endif
#ifndef __NR_shutdown
#define __NR_shutdown (__NR_syscall_max + 1)
#endif
#ifndef __NR_sigaction
#define __NR_sigaction (__NR_syscall_max + 1)
#endif
#ifndef __NR_signal
#define __NR_signal (__NR_syscall_max + 1)
#endif
#ifndef __NR_sigpending
#define __NR_sigpending (__NR_syscall_max + 1)
#endif
#ifndef __NR_sigprocmask
#define __NR_sigprocmask (__NR_syscall_max + 1)
#endif
#ifndef __NR_sigsuspend
#define __NR_sigsuspend (__NR_syscall_max + 1)
#endif
#ifndef __NR_socket
#define __NR_socket (__NR_syscall_max + 1)
#endif
#ifndef __NR_socketcall
#define __NR_socketcall (__NR_syscall_max + 1)
#endif
#ifndef __NR_socketpair
#define __NR_socketpair (__NR_syscall_max + 1)
#endif
#ifndef __NR_ssetmask
#define __NR_ssetmask (__NR_syscall_max + 1)
#endif
#ifndef __NR_stat
#define __NR_stat (__NR_syscall_max + 1)
#endif
#ifndef __NR_stat64
#define __NR_stat64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_statfs64
#define __NR_statfs64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_statx
#define __NR_statx (__NR_syscall_max + 1)
#endif
#ifndef __NR_stime
#define __NR_stime (__NR_syscall_max + 1)
#endif
#ifndef __NR_symlink
#define __NR_symlink (__NR_syscall_max + 1)
#endif
#ifndef __NR_sync_file_range
#define __NR_sync_file_range (__NR_syscall_max + 1)
#endif
#ifndef __NR__sysctl
#define __NR__sysctl (__NR_syscall_max + 1)
#endif
#ifndef __NR_sysfs
#define __NR_sysfs (__NR_syscall_max + 1)
#endif
#ifndef __NR_truncate
#define __NR_truncate (__NR_syscall_max + 1)
#endif
#ifndef __NR_truncate64
#define __NR_truncate64 (__NR_syscall_max + 1)
#endif
#ifndef __NR_ugetrlimit
#define __NR_ugetrlimit (__NR_syscall_max + 1)
#endif
#ifndef __NR_umount
#define __NR_umount (__NR_syscall_max + 1)
#endif
#ifndef __NR_unlink
#define __NR_unlink (__NR_syscall_max + 1)
#endif
#ifndef __NR_uselib
#define __NR_uselib (__NR_syscall_max + 1)
#endif
#ifndef __NR_userfaultfd
#define __NR_userfaultfd (__NR_syscall_max + 1)
#endif
#ifndef __NR_ustat
#define __NR_ustat (__NR_syscall_max + 1)
#endif
#ifndef __NR_utimes
#define __NR_utimes (__NR_syscall_max + 1)
#endif
#ifndef __NR_vfork
#define __NR_vfork (__NR_syscall_max + 1)
#endif
#ifndef __NR_waitpid
#define __NR_waitpid (__NR_syscall_max + 1)
#endif
#ifndef __NR_alarm
#define __NR_alarm (__NR_syscall_max + 1)
#endif
#ifndef __NR_ioperm
#define __NR_ioperm (__NR_syscall_max + 1)
#endif
#ifndef __NR_mbind
#define __NR_mbind (__NR_syscall_max + 1)
#endif
#ifndef __NR_modify_ldt
#define __NR_modify_ldt (__NR_syscall_max + 1)
#endif
#ifndef __NR_time
#define __NR_time (__NR_syscall_max + 1)
#endif
#ifndef __NR_utime
#define __NR_utime (__NR_syscall_max + 1)
#endif
#ifndef __NR_pkey_alloc
#define __NR_pkey_alloc (__NR_syscall_max + 1)
#endif
#ifndef __NR_pkey_free
#define __NR_pkey_free (__NR_syscall_max + 1)
#endif
#ifndef __NR_pkey_mprotect
#define __NR_pkey_mprotect (__NR_syscall_max + 1)
#endif

#if defined(__x86_64__)

// On older kernels (like RHEL5), we have to define our own 32-bit
// syscall numbers.
#ifndef __NR_ia32__llseek
#define __NR_ia32__llseek 140
#endif
#ifndef __NR_ia32__newselect
#define __NR_ia32__newselect 142
#endif
#ifndef __NR_ia32__sysctl
#define __NR_ia32__sysctl 149
#endif
#ifndef __NR_ia32_access
#define __NR_ia32_access 33
#endif
#ifndef __NR_ia32_acct
#define __NR_ia32_acct 51
#endif
#ifndef __NR_ia32_add_key
#define __NR_ia32_add_key 286
#endif
#ifndef __NR_ia32_adjtimex
#define __NR_ia32_adjtimex 124
#endif
#ifndef __NR_ia32_alarm
#define __NR_ia32_alarm 27
#endif
#ifndef __NR_ia32_arch_prctl
#define __NR_ia32_arch_prctl 384
#endif
#ifndef __NR_ia32_bpf
#define __NR_ia32_bpf 357
#endif
#ifndef __NR_ia32_brk
#define __NR_ia32_brk 45
#endif
#ifndef __NR_ia32_capget
#define __NR_ia32_capget 184
#endif
#ifndef __NR_ia32_capset
#define __NR_ia32_capset 185
#endif
#ifndef __NR_ia32_chdir
#define __NR_ia32_chdir 12
#endif
#ifndef __NR_ia32_chmod
#define __NR_ia32_chmod 15
#endif
#ifndef __NR_ia32_chown
#define __NR_ia32_chown 182
#endif
#ifndef __NR_ia32_chown32
#define __NR_ia32_chown32 212
#endif
#ifndef __NR_ia32_chroot
#define __NR_ia32_chroot 61
#endif
#ifndef __NR_ia32_clock_adjtime
#define __NR_ia32_clock_adjtime 343
#endif
#ifndef __NR_ia32_clock_getres
#define __NR_ia32_clock_getres 266
#endif
#ifndef __NR_ia32_clock_gettime
#define __NR_ia32_clock_gettime 265
#endif
#ifndef __NR_ia32_clock_nanosleep
#define __NR_ia32_clock_nanosleep 267
#endif
#ifndef __NR_ia32_clock_settime
#define __NR_ia32_clock_settime 264
#endif
#ifndef __NR_ia32_clone
#define __NR_ia32_clone 120
#endif
#ifndef __NR_ia32_close
#define __NR_ia32_close 6
#endif
#ifndef __NR_ia32_copy_file_range
#define __NR_ia32_copy_file_range 377
#endif
#ifndef __NR_ia32_creat
#define __NR_ia32_creat 8
#endif
#ifndef __NR_ia32_delete_module
#define __NR_ia32_delete_module 129
#endif
#ifndef __NR_ia32_dup
#define __NR_ia32_dup 41
#endif
#ifndef __NR_ia32_dup2
#define __NR_ia32_dup2 63
#endif
#ifndef __NR_ia32_dup3
#define __NR_ia32_dup3 330
#endif
#ifndef __NR_ia32_epoll_create
#define __NR_ia32_epoll_create 254
#endif
#ifndef __NR_ia32_epoll_create1
#define __NR_ia32_epoll_create1 329
#endif
#ifndef __NR_ia32_epoll_ctl
#define __NR_ia32_epoll_ctl 255
#endif
#ifndef __NR_ia32_epoll_pwait
#define __NR_ia32_epoll_pwait 319
#endif
#ifndef __NR_ia32_epoll_wait
#define __NR_ia32_epoll_wait 256
#endif
#ifndef __NR_ia32_eventfd
#define __NR_ia32_eventfd 323
#endif
#ifndef __NR_ia32_eventfd2
#define __NR_ia32_eventfd2 328
#endif
#ifndef __NR_ia32_execve
#define __NR_ia32_execve 11
#endif
#ifndef __NR_ia32_execveat
#define __NR_ia32_execveat 358
#endif
#ifndef __NR_ia32_exit
#define __NR_ia32_exit 1
#endif
#ifndef __NR_ia32_exit_group
#define __NR_ia32_exit_group 252
#endif
#ifndef __NR_ia32_faccessat
#define __NR_ia32_faccessat 307
#endif
#ifndef __NR_ia32_faccessat2
#define __NR_ia32_faccessat2 439
#endif
#ifndef __NR_ia32_fadvise64
#define __NR_ia32_fadvise64 250
#endif
#ifndef __NR_ia32_fadvise64_64
#define __NR_ia32_fadvise64_64 272
#endif
#ifndef __NR_ia32_fallocate
#define __NR_ia32_fallocate 324
#endif
#ifndef __NR_ia32_fanotify_init
#define __NR_ia32_fanotify_init 338
#endif
#ifndef __NR_ia32_fanotify_mark
#define __NR_ia32_fanotify_mark 339
#endif
#ifndef __NR_ia32_fchdir
#define __NR_ia32_fchdir 133
#endif
#ifndef __NR_ia32_fchmod
#define __NR_ia32_fchmod 94
#endif
#ifndef __NR_ia32_fchmodat
#define __NR_ia32_fchmodat 306
#endif
#ifndef __NR_ia32_fchown
#define __NR_ia32_fchown 95
#endif
#ifndef __NR_ia32_fchown32
#define __NR_ia32_fchown32 207
#endif
#ifndef __NR_ia32_fchownat
#define __NR_ia32_fchownat 298
#endif
#ifndef __NR_ia32_fcntl
#define __NR_ia32_fcntl 55
#endif
#ifndef __NR_ia32_fcntl64
#define __NR_ia32_fcntl64 221
#endif
#ifndef __NR_ia32_fdatasync
#define __NR_ia32_fdatasync 148
#endif
#ifndef __NR_ia32_fgetxattr
#define __NR_ia32_fgetxattr 231
#endif
#ifndef __NR_ia32_finit_module
#define __NR_ia32_finit_module 350
#endif
#ifndef __NR_ia32_flistxattr
#define __NR_ia32_flistxattr 234
#endif
#ifndef __NR_ia32_flock
#define __NR_ia32_flock 143
#endif
#ifndef __NR_ia32_fork
#define __NR_ia32_fork 2
#endif
#ifndef __NR_ia32_fremovexattr
#define __NR_ia32_fremovexattr 237
#endif
#ifndef __NR_ia32_fsetxattr
#define __NR_ia32_fsetxattr 228
#endif
#ifndef __NR_ia32_fstat
#define __NR_ia32_fstat 108
#endif
#ifndef __NR_ia32_fstat64
#define __NR_ia32_fstat64 197
#endif
#ifndef __NR_ia32_fstatat64
#define __NR_ia32_fstatat64 300
#endif
#ifndef __NR_ia32_fstatfs
#define __NR_ia32_fstatfs 100
#endif
#ifndef __NR_ia32_fstatfs64
#define __NR_ia32_fstatfs64 269
#endif
#ifndef __NR_ia32_fsync
#define __NR_ia32_fsync 118
#endif
#ifndef __NR_ia32_ftruncate
#define __NR_ia32_ftruncate 93
#endif
#ifndef __NR_ia32_futex
#define __NR_ia32_futex 240
#endif
#ifndef __NR_ia32_futimesat
#define __NR_ia32_futimesat 299
#endif
#ifndef __NR_ia32_get_mempolicy
#define __NR_ia32_get_mempolicy 275
#endif
#ifndef __NR_ia32_get_robust_list
#define __NR_ia32_get_robust_list 312
#endif
#ifndef __NR_ia32_getcpu
#define __NR_ia32_getcpu 318
#endif
#ifndef __NR_ia32_getcwd
#define __NR_ia32_getcwd 183
#endif
#ifndef __NR_ia32_getdents
#define __NR_ia32_getdents 141
#endif
#ifndef __NR_ia32_getdents64
#define __NR_ia32_getdents64 220
#endif
#ifndef __NR_ia32_getegid
#define __NR_ia32_getegid 50
#endif
#ifndef __NR_ia32_getegid32
#define __NR_ia32_getegid32 202
#endif
#ifndef __NR_ia32_geteuid
#define __NR_ia32_geteuid 49
#endif
#ifndef __NR_ia32_geteuid32
#define __NR_ia32_geteuid32 201
#endif
#ifndef __NR_ia32_getgid
#define __NR_ia32_getgid 47
#endif
#ifndef __NR_ia32_getgid32
#define __NR_ia32_getgid32 200
#endif
#ifndef __NR_ia32_getgroups
#define __NR_ia32_getgroups 80
#endif
#ifndef __NR_ia32_getgroups32
#define __NR_ia32_getgroups32 205
#endif
#ifndef __NR_ia32_getitimer
#define __NR_ia32_getitimer 105
#endif
#ifndef __NR_ia32_getpgid
#define __NR_ia32_getpgid 132
#endif
#ifndef __NR_ia32_getpgrp
#define __NR_ia32_getpgrp 65
#endif
#ifndef __NR_ia32_getpid
#define __NR_ia32_getpid 20
#endif
#ifndef __NR_ia32_getppid
#define __NR_ia32_getppid 64
#endif
#ifndef __NR_ia32_getpriority
#define __NR_ia32_getpriority 96
#endif
#ifndef __NR_ia32_getrandom
#define __NR_ia32_getrandom 355
#endif
#ifndef __NR_ia32_getresgid
#define __NR_ia32_getresgid 171
#endif
#ifndef __NR_ia32_getresgid32
#define __NR_ia32_getresgid32 211
#endif
#ifndef __NR_ia32_getresuid
#define __NR_ia32_getresuid 165
#endif
#ifndef __NR_ia32_getresuid32
#define __NR_ia32_getresuid32 209
#endif
#ifndef __NR_ia32_getrlimit
#define __NR_ia32_getrlimit 76
#endif
#ifndef __NR_ia32_getrusage
#define __NR_ia32_getrusage 77
#endif
#ifndef __NR_ia32_getsid
#define __NR_ia32_getsid 147
#endif
#ifndef __NR_ia32_gettid
#define __NR_ia32_gettid 224
#endif
#ifndef __NR_ia32_gettimeofday
#define __NR_ia32_gettimeofday 78
#endif
#ifndef __NR_ia32_getuid
#define __NR_ia32_getuid 24
#endif
#ifndef __NR_ia32_getuid32
#define __NR_ia32_getuid32 199
#endif
#ifndef __NR_ia32_getxattr
#define __NR_ia32_getxattr 229
#endif
#ifndef __NR_ia32_init_module
#define __NR_ia32_init_module 128
#endif
#ifndef __NR_ia32_inotify_add_watch
#define __NR_ia32_inotify_add_watch 292
#endif
#ifndef __NR_ia32_inotify_init
#define __NR_ia32_inotify_init 291
#endif
#ifndef __NR_ia32_inotify_init1
#define __NR_ia32_inotify_init1 332
#endif
#ifndef __NR_ia32_inotify_rm_watch
#define __NR_ia32_inotify_rm_watch 293
#endif
#ifndef __NR_ia32_io_cancel
#define __NR_ia32_io_cancel 249
#endif
#ifndef __NR_ia32_io_destroy
#define __NR_ia32_io_destroy 246
#endif
#ifndef __NR_ia32_io_getevents
#define __NR_ia32_io_getevents 247
#endif
#ifndef __NR_ia32_io_setup
#define __NR_ia32_io_setup 245
#endif
#ifndef __NR_ia32_io_submit
#define __NR_ia32_io_submit 248
#endif
#ifndef __NR_ia32_ioctl
#define __NR_ia32_ioctl 54
#endif
#ifndef __NR_ia32_ioperm
#define __NR_ia32_ioperm 101
#endif
#ifndef __NR_ia32_ioprio_get
#define __NR_ia32_ioprio_get 290
#endif
#ifndef __NR_ia32_ioprio_set
#define __NR_ia32_ioprio_set 289
#endif
#ifndef __NR_ia32_ipc
#define __NR_ia32_ipc 117
#endif
#ifndef __NR_ia32_kcmp
#define __NR_ia32_kcmp 349
#endif
#ifndef __NR_ia32_kexec_file_load
// x86_64 doesn't have kexec_file_load for 32-bit, just use
// __NR_syscall_compat_max for __NR_ia32_kexec_file_load
#define __NR_ia32_kexec_file_load (__NR_syscall_compat_max + 1)
#endif
#ifndef __NR_ia32_kexec_load
#define __NR_ia32_kexec_load 283
#endif
#ifndef __NR_ia32_keyctl
#define __NR_ia32_keyctl 288
#endif
#ifndef __NR_ia32_kill
#define __NR_ia32_kill 37
#endif
#ifndef __NR_ia32_lchown
#define __NR_ia32_lchown 16
#endif
#ifndef __NR_ia32_lchown32
#define __NR_ia32_lchown32 198
#endif
#ifndef __NR_ia32_lgetxattr
#define __NR_ia32_lgetxattr 230
#endif
#ifndef __NR_ia32_link
#define __NR_ia32_link 9
#endif
#ifndef __NR_ia32_linkat
#define __NR_ia32_linkat 303
#endif
#ifndef __NR_ia32_listxattr
#define __NR_ia32_listxattr 232
#endif
#ifndef __NR_ia32_llistxattr
#define __NR_ia32_llistxattr 233
#endif
#ifndef __NR_ia32_lookup_dcookie
#define __NR_ia32_lookup_dcookie 253
#endif
#ifndef __NR_ia32_lremovexattr
#define __NR_ia32_lremovexattr 236
#endif
#ifndef __NR_ia32_lseek
#define __NR_ia32_lseek 19
#endif
#ifndef __NR_ia32_lsetxattr
#define __NR_ia32_lsetxattr 227
#endif
#ifndef __NR_ia32_lstat
#define __NR_ia32_lstat 107
#endif
#ifndef __NR_ia32_lstat64
#define __NR_ia32_lstat64 196
#endif
#ifndef __NR_ia32_madvise
#define __NR_ia32_madvise 219
#endif
#ifndef __NR_ia32_mbind
#define __NR_ia32_mbind 274
#endif
#ifndef __NR_ia32_membarrier
#define __NR_ia32_membarrier 375
#endif
#ifndef __NR_ia32_memfd_create
#define __NR_ia32_memfd_create 356
#endif
#ifndef __NR_ia32_memfd_secret
#define __NR_ia32_memfd_secret 447
#endif
#ifndef __NR_ia32_migrate_pages
#define __NR_ia32_migrate_pages 294
#endif
#ifndef __NR_ia32_mincore
#define __NR_ia32_mincore 218
#endif
#ifndef __NR_ia32_mkdir
#define __NR_ia32_mkdir 39
#endif
#ifndef __NR_ia32_mkdirat
#define __NR_ia32_mkdirat 296
#endif
#ifndef __NR_ia32_mknod
#define __NR_ia32_mknod 14
#endif
#ifndef __NR_ia32_mknodat
#define __NR_ia32_mknodat 297
#endif
#ifndef __NR_ia32_mlock
#define __NR_ia32_mlock 150
#endif
#ifndef __NR_ia32_mlock2
#define __NR_ia32_mlock2 376
#endif
#ifndef __NR_ia32_mlockall
#define __NR_ia32_mlockall 152
#endif
#ifndef __NR_ia32_mmap2
#define __NR_ia32_mmap2 192
#endif
#ifndef __NR_ia32_modify_ldt
#define __NR_ia32_modify_ldt 123
#endif
#ifndef __NR_ia32_mount
#define __NR_ia32_mount 21
#endif
#ifndef __NR_ia32_move_pages
#define __NR_ia32_move_pages 317
#endif
#ifndef __NR_ia32_mprotect
#define __NR_ia32_mprotect 125
#endif
#ifndef __NR_ia32_mq_getsetattr
#define __NR_ia32_mq_getsetattr 282
#endif
#ifndef __NR_ia32_mq_notify
#define __NR_ia32_mq_notify 281
#endif
#ifndef __NR_ia32_mq_open
#define __NR_ia32_mq_open 277
#endif
#ifndef __NR_ia32_mq_timedreceive
#define __NR_ia32_mq_timedreceive 280
#endif
#ifndef __NR_ia32_mq_timedsend
#define __NR_ia32_mq_timedsend 279
#endif
#ifndef __NR_ia32_mq_unlink
#define __NR_ia32_mq_unlink 278
#endif
#ifndef __NR_ia32_mremap
#define __NR_ia32_mremap 163
#endif
#ifndef __NR_ia32_msync
#define __NR_ia32_msync 144
#endif
#ifndef __NR_ia32_munlock
#define __NR_ia32_munlock 151
#endif
#ifndef __NR_ia32_munlockall
#define __NR_ia32_munlockall 153
#endif
#ifndef __NR_ia32_munmap
#define __NR_ia32_munmap 91
#endif
#ifndef __NR_ia32_name_to_handle_at
#define __NR_ia32_name_to_handle_at 341
#endif
#ifndef __NR_ia32_nanosleep
#define __NR_ia32_nanosleep 162
#endif
#ifndef __NR_ia32_nfsservctl
#define __NR_ia32_nfsservctl 169
#endif
#ifndef __NR_ia32_nice
#define __NR_ia32_nice 34
#endif
#ifndef __NR_ia32_oldfstat
#define __NR_ia32_oldfstat 28
#endif
#ifndef __NR_ia32_oldlstat
#define __NR_ia32_oldlstat 84
#endif
#ifndef __NR_ia32_oldolduname
#define __NR_ia32_oldolduname 59
#endif
#ifndef __NR_ia32_oldstat
#define __NR_ia32_oldstat 18
#endif
#ifndef __NR_ia32_olduname
#define __NR_ia32_olduname 109
#endif
#ifndef __NR_ia32_open
#define __NR_ia32_open 5
#endif
#ifndef __NR_ia32_open_by_handle_at
#define __NR_ia32_open_by_handle_at 342
#endif
#ifndef __NR_ia32_openat
#define __NR_ia32_openat 295
#endif
#ifndef __NR_ia32_pause
#define __NR_ia32_pause 29
#endif
#ifndef __NR_ia32_perf_event_open
#define __NR_ia32_perf_event_open 336
#endif
#ifndef __NR_ia32_personality
#define __NR_ia32_personality 136
#endif
#ifndef __NR_ia32_pipe
#define __NR_ia32_pipe 42
#endif
#ifndef __NR_ia32_pipe2
#define __NR_ia32_pipe2 331
#endif
#ifndef __NR_ia32_pivot_root
#define __NR_ia32_pivot_root 217
#endif
#ifndef __NR_ia32_pkey_alloc
#define __NR_ia32_pkey_alloc 381
#endif
#ifndef __NR_ia32_pkey_free
#define __NR_ia32_pkey_free 382
#endif
#ifndef __NR_ia32_pkey_mprotect
#define __NR_ia32_pkey_mprotect 380
#endif
#ifndef __NR_ia32_poll
#define __NR_ia32_poll 168
#endif
#ifndef __NR_ia32_ppoll
#define __NR_ia32_ppoll 309
#endif
#ifndef __NR_ia32_prctl
#define __NR_ia32_prctl 172
#endif
#ifndef __NR_ia32_pread64
#define __NR_ia32_pread64 180
#endif
#ifndef __NR_ia32_preadv
#define __NR_ia32_preadv 333
#endif
#ifndef __NR_ia32_preadv2
#define __NR_ia32_preadv2 378
#endif
#ifndef __NR_ia32_prlimit64
#define __NR_ia32_prlimit64 340
#endif
#ifndef __NR_ia32_process_vm_readv
#define __NR_ia32_process_vm_readv 347
#endif
#ifndef __NR_ia32_process_vm_writev
#define __NR_ia32_process_vm_writev 348
#endif
#ifndef __NR_ia32_pselect6
#define __NR_ia32_pselect6 308
#endif
#ifndef __NR_ia32_pselect7
// Since a kernel that had a pselect7 syscall can't be found, just use
// __NR_syscall_compat_max for __NR_ia32_pselect7.
#define __NR_ia32_pselect7 (__NR_syscall_compat_max + 1)
#endif
#ifndef __NR_ia32_ptrace
#define __NR_ia32_ptrace 26
#endif
#ifndef __NR_ia32_pwrite64
#define __NR_ia32_pwrite64 181
#endif
#ifndef __NR_ia32_pwritev
#define __NR_ia32_pwritev 334
#endif
#ifndef __NR_ia32_pwritev2
#define __NR_ia32_pwritev2 379
#endif
#ifndef __NR_ia32_quotactl
#define __NR_ia32_quotactl 131
#endif
#ifndef __NR_ia32_read
#define __NR_ia32_read 3
#endif
#ifndef __NR_ia32_readdir
#define __NR_ia32_readdir 89
#endif
#ifndef __NR_ia32_readlink
#define __NR_ia32_readlink 85
#endif
#ifndef __NR_ia32_readlinkat
#define __NR_ia32_readlinkat 305
#endif
#ifndef __NR_ia32_readv
#define __NR_ia32_readv 145
#endif
#ifndef __NR_ia32_reboot
#define __NR_ia32_reboot 88
#endif
#ifndef __NR_ia32_recvmmsg
#define __NR_ia32_recvmmsg 337
#endif
#ifndef __NR_ia32_remap_file_pages
#define __NR_ia32_remap_file_pages 257
#endif
#ifndef __NR_ia32_removexattr
#define __NR_ia32_removexattr 235
#endif
#ifndef __NR_ia32_rename
#define __NR_ia32_rename 38
#endif
#ifndef __NR_ia32_renameat
#define __NR_ia32_renameat 302
#endif
#ifndef __NR_ia32_renameat2
#define __NR_ia32_renameat2 353
#endif
#ifndef __NR_ia32_request_key
#define __NR_ia32_request_key 287
#endif
#ifndef __NR_ia32_restart_syscall
#define __NR_ia32_restart_syscall 0
#endif
#ifndef __NR_ia32_rmdir
#define __NR_ia32_rmdir 40
#endif
#ifndef __NR_ia32_rt_sigaction
#define __NR_ia32_rt_sigaction 174
#endif
#ifndef __NR_ia32_rt_sigpending
#define __NR_ia32_rt_sigpending 176
#endif
#ifndef __NR_ia32_rt_sigprocmask
#define __NR_ia32_rt_sigprocmask 175
#endif
#ifndef __NR_ia32_rt_sigqueueinfo
#define __NR_ia32_rt_sigqueueinfo 178
#endif
#ifndef __NR_ia32_rt_sigsuspend
#define __NR_ia32_rt_sigsuspend 179
#endif
#ifndef __NR_ia32_rt_sigtimedwait
#define __NR_ia32_rt_sigtimedwait 177
#endif
#ifndef __NR_ia32_rt_tgsigqueueinfo
#define __NR_ia32_rt_tgsigqueueinfo 335
#endif
#ifndef __NR_ia32_sched_get_priority_max
#define __NR_ia32_sched_get_priority_max 159
#endif
#ifndef __NR_ia32_sched_get_priority_min
#define __NR_ia32_sched_get_priority_min 160
#endif
#ifndef __NR_ia32_sched_getaffinity
#define __NR_ia32_sched_getaffinity 242
#endif
#ifndef __NR_ia32_sched_getattr
#define __NR_ia32_sched_getattr 352
#endif
#ifndef __NR_ia32_sched_getparam
#define __NR_ia32_sched_getparam 155
#endif
#ifndef __NR_ia32_sched_getscheduler
#define __NR_ia32_sched_getscheduler 157
#endif
#ifndef __NR_ia32_sched_rr_get_interval
#define __NR_ia32_sched_rr_get_interval 161
#endif
#ifndef __NR_ia32_sched_setaffinity
#define __NR_ia32_sched_setaffinity 241
#endif
#ifndef __NR_ia32_sched_setattr
#define __NR_ia32_sched_setattr 351
#endif
#ifndef __NR_ia32_sched_setparam
#define __NR_ia32_sched_setparam 154
#endif
#ifndef __NR_ia32_sched_setscheduler
#define __NR_ia32_sched_setscheduler 156
#endif
#ifndef __NR_ia32_sched_yield
#define __NR_ia32_sched_yield 158
#endif
#ifndef __NR_ia32_seccomp
#define __NR_ia32_seccomp 354
#endif
#ifndef __NR_ia32_sendfile
#define __NR_ia32_sendfile 187
#endif
#ifndef __NR_ia32_sendmmsg
#define __NR_ia32_sendmmsg 345
#endif
#ifndef __NR_ia32_set_mempolicy
#define __NR_ia32_set_mempolicy 276
#endif
#ifndef __NR_ia32_set_robust_list
#define __NR_ia32_set_robust_list 311
#endif
#ifndef __NR_ia32_set_tid_address
#define __NR_ia32_set_tid_address 258
#endif
#ifndef __NR_ia32_setdomainname
#define __NR_ia32_setdomainname 121
#endif
#ifndef __NR_ia32_setfsgid
#define __NR_ia32_setfsgid 139
#endif
#ifndef __NR_ia32_setfsgid32
#define __NR_ia32_setfsgid32 216
#endif
#ifndef __NR_ia32_setfsuid
#define __NR_ia32_setfsuid 138
#endif
#ifndef __NR_ia32_setfsuid32
#define __NR_ia32_setfsuid32 215
#endif
#ifndef __NR_ia32_setgid
#define __NR_ia32_setgid 46
#endif
#ifndef __NR_ia32_setgid32
#define __NR_ia32_setgid32 214
#endif
#ifndef __NR_ia32_setgroups
#define __NR_ia32_setgroups 81
#endif
#ifndef __NR_ia32_setgroups32
#define __NR_ia32_setgroups32 206
#endif
#ifndef __NR_ia32_sethostname
#define __NR_ia32_sethostname 74
#endif
#ifndef __NR_ia32_setitimer
#define __NR_ia32_setitimer 104
#endif
#ifndef __NR_ia32_setns
#define __NR_ia32_setns 346
#endif
#ifndef __NR_ia32_setpgid
#define __NR_ia32_setpgid 57
#endif
#ifndef __NR_ia32_setpriority
#define __NR_ia32_setpriority 97
#endif
#ifndef __NR_ia32_setregid
#define __NR_ia32_setregid 71
#endif
#ifndef __NR_ia32_setregid32
#define __NR_ia32_setregid32 204
#endif
#ifndef __NR_ia32_setresgid
#define __NR_ia32_setresgid 170
#endif
#ifndef __NR_ia32_setresgid32
#define __NR_ia32_setresgid32 210
#endif
#ifndef __NR_ia32_setresuid
#define __NR_ia32_setresuid 164
#endif
#ifndef __NR_ia32_setresuid32
#define __NR_ia32_setresuid32 208
#endif
#ifndef __NR_ia32_setreuid
#define __NR_ia32_setreuid 70
#endif
#ifndef __NR_ia32_setreuid32
#define __NR_ia32_setreuid32 203
#endif
#ifndef __NR_ia32_setrlimit
#define __NR_ia32_setrlimit 75
#endif
#ifndef __NR_ia32_setsid
#define __NR_ia32_setsid 66
#endif
#ifndef __NR_ia32_settimeofday
#define __NR_ia32_settimeofday 79
#endif
#ifndef __NR_ia32_setuid
#define __NR_ia32_setuid 23
#endif
#ifndef __NR_ia32_setuid32
#define __NR_ia32_setuid32 213
#endif
#ifndef __NR_ia32_setxattr
#define __NR_ia32_setxattr 226
#endif
#ifndef __NR_ia32_sgetmask
#define __NR_ia32_sgetmask 68
#endif
// Since a kernel that had a 32-bit shmctl syscall can't be found
// (they all used __NR_ipc), just use __NR_syscall_compat_max.
#ifndef __NR_ia32_shmctl
#define __NR_ia32_shmctl (__NR_syscall_compat_max + 1)
#endif
#ifndef __NR_ia32_sigaction
#define __NR_ia32_sigaction 67
#endif
#ifndef __NR_ia32_sigaltstack
#define __NR_ia32_sigaltstack 186
#endif
#ifndef __NR_ia32_signal
#define __NR_ia32_signal 48
#endif
#ifndef __NR_ia32_signalfd
#define __NR_ia32_signalfd 321
#endif
#ifndef __NR_ia32_signalfd4
#define __NR_ia32_signalfd4 327
#endif
#ifndef __NR_ia32_sigpending
#define __NR_ia32_sigpending 73
#endif
#ifndef __NR_ia32_sigprocmask
#define __NR_ia32_sigprocmask 126
#endif
#ifndef __NR_ia32_sigsuspend
#define __NR_ia32_sigsuspend 72
#endif
#ifndef __NR_ia32_socketcall
#define __NR_ia32_socketcall 102
#endif
#ifndef __NR_ia32_splice
#define __NR_ia32_splice 313
#endif
#ifndef __NR_ia32_ssetmask
#define __NR_ia32_ssetmask 69
#endif
#ifndef __NR_ia32_stat
#define __NR_ia32_stat 106
#endif
#ifndef __NR_ia32_stat64
#define __NR_ia32_stat64 195
#endif
#ifndef __NR_ia32_statfs
#define __NR_ia32_statfs 99
#endif
#ifndef __NR_ia32_statfs64
#define __NR_ia32_statfs64 268
#endif
#ifndef __NR_ia32_statx
#define __NR_ia32_statx 383
#endif
#ifndef __NR_ia32_stime
#define __NR_ia32_stime 25
#endif
#ifndef __NR_ia32_swapoff
#define __NR_ia32_swapoff 115
#endif
#ifndef __NR_ia32_swapon
#define __NR_ia32_swapon 87
#endif
#ifndef __NR_ia32_symlink
#define __NR_ia32_symlink 83
#endif
#ifndef __NR_ia32_symlinkat
#define __NR_ia32_symlinkat 304
#endif
#ifndef __NR_ia32_sync
#define __NR_ia32_sync 36
#endif
#ifndef __NR_ia32_sync_file_range
#define __NR_ia32_sync_file_range 314
#endif
#ifndef __NR_ia32_syncfs
#define __NR_ia32_syncfs 344
#endif
#ifndef __NR_ia32_sysfs
#define __NR_ia32_sysfs 135
#endif
#ifndef __NR_ia32_sysinfo
#define __NR_ia32_sysinfo 116
#endif
#ifndef __NR_ia32_syslog
#define __NR_ia32_syslog 103
#endif
#ifndef __NR_ia32_tee
#define __NR_ia32_tee 315
#endif
#ifndef __NR_ia32_tgkill
#define __NR_ia32_tgkill 270
#endif
#ifndef __NR_ia32_time
#define __NR_ia32_time 13
#endif
#ifndef __NR_ia32_timer_create
#define __NR_ia32_timer_create 259
#endif
#ifndef __NR_ia32_timer_delete
#define __NR_ia32_timer_delete 263
#endif
#ifndef __NR_ia32_timer_getoverrun
#define __NR_ia32_timer_getoverrun 262
#endif
#ifndef __NR_ia32_timer_gettime
#define __NR_ia32_timer_gettime 261
#endif
#ifndef __NR_ia32_timer_settime
#define __NR_ia32_timer_settime 260
#endif
#ifndef __NR_ia32_timerfd_create
#define __NR_ia32_timerfd_create 322
#endif
#ifndef __NR_ia32_timerfd_gettime
#define __NR_ia32_timerfd_gettime 326
#endif
#ifndef __NR_ia32_timerfd_settime
#define __NR_ia32_timerfd_settime 325
#endif
#ifndef __NR_ia32_times
#define __NR_ia32_times 43
#endif
#ifndef __NR_ia32_tkill
#define __NR_ia32_tkill 238
#endif
#ifndef __NR_ia32_truncate
#define __NR_ia32_truncate 92
#endif
#ifndef __NR_ia32_ugetrlimit
#define __NR_ia32_ugetrlimit 191
#endif
#ifndef __NR_ia32_umask
#define __NR_ia32_umask 60
#endif
#ifndef __NR_ia32_umount
#define __NR_ia32_umount 22
#endif
#ifndef __NR_ia32_umount2
#define __NR_ia32_umount2 52
#endif
#ifndef __NR_ia32_uname
#define __NR_ia32_uname 122
#endif
#ifndef __NR_ia32_unlink
#define __NR_ia32_unlink 10
#endif
#ifndef __NR_ia32_unlinkat
#define __NR_ia32_unlinkat 301
#endif
#ifndef __NR_ia32_unshare
#define __NR_ia32_unshare 310
#endif
#ifndef __NR_ia32_uselib
#define __NR_ia32_uselib 86
#endif
#ifndef __NR_ia32_userfaultfd
#define __NR_ia32_userfaultfd 374
#endif
#ifndef __NR_ia32_ustat
#define __NR_ia32_ustat 62
#endif
#ifndef __NR_ia32_utime
#define __NR_ia32_utime 30
#endif
#ifndef __NR_ia32_utimensat
#define __NR_ia32_utimensat 320
#endif
#ifndef __NR_ia32_utimes
#define __NR_ia32_utimes 271
#endif
#ifndef __NR_ia32_vfork
#define __NR_ia32_vfork 190
#endif
#ifndef __NR_ia32_vhangup
#define __NR_ia32_vhangup 111
#endif
#ifndef __NR_ia32_vmsplice
#define __NR_ia32_vmsplice 316
#endif
#ifndef __NR_ia32_wait4
#define __NR_ia32_wait4 114
#endif
#ifndef __NR_ia32_waitid
#define __NR_ia32_waitid 284
#endif
#ifndef __NR_ia32_waitpid
#define __NR_ia32_waitpid 7
#endif
#ifndef __NR_ia32_write
#define __NR_ia32_write 4
#endif
#ifndef __NR_ia32_writev
#define __NR_ia32_writev 146
#endif

#define __NR_compat__llseek		__NR_ia32__llseek
#define __NR_compat__newselect		__NR_ia32__newselect
#define __NR_compat__sysctl		__NR_ia32__sysctl
#define __NR_compat_access		__NR_ia32_access
#define __NR_compat_acct		__NR_ia32_acct
#define __NR_compat_add_key		__NR_ia32_add_key
#define __NR_compat_adjtimex		__NR_ia32_adjtimex
#define __NR_compat_alarm		__NR_ia32_alarm
#define __NR_compat_bpf			__NR_ia32_bpf
#define __NR_compat_brk			__NR_ia32_brk
#define __NR_compat_capget		__NR_ia32_capget
#define __NR_compat_capset		__NR_ia32_capset
#define __NR_compat_chdir		__NR_ia32_chdir
#define __NR_compat_chmod		__NR_ia32_chmod
#define __NR_compat_chown		__NR_ia32_chown
#define __NR_compat_chown32		__NR_ia32_chown32
#define __NR_compat_chroot		__NR_ia32_chroot
#define __NR_compat_clock_adjtime	__NR_ia32_clock_adjtime
#define __NR_compat_clock_getres	__NR_ia32_clock_getres
#define __NR_compat_clock_gettime	__NR_ia32_clock_gettime
#define __NR_compat_clock_nanosleep	__NR_ia32_clock_nanosleep
#define __NR_compat_clock_settime	__NR_ia32_clock_settime
#define __NR_compat_clone		__NR_ia32_clone
#define __NR_compat_close		__NR_ia32_close
#define __NR_compat_copy_file_range	__NR_ia32_copy_file_range
#define __NR_compat_creat		__NR_ia32_creat
#define __NR_compat_delete_module	__NR_ia32_delete_module
#define __NR_compat_dup			__NR_ia32_dup
#define __NR_compat_dup2		__NR_ia32_dup2
#define __NR_compat_dup3		__NR_ia32_dup3
#define __NR_compat_epoll_create	__NR_ia32_epoll_create
#define __NR_compat_epoll_create1	__NR_ia32_epoll_create1
#define __NR_compat_epoll_ctl		__NR_ia32_epoll_ctl
#define __NR_compat_epoll_pwait		__NR_ia32_epoll_pwait
#define __NR_compat_epoll_wait		__NR_ia32_epoll_wait
#define __NR_compat_eventfd		__NR_ia32_eventfd
#define __NR_compat_eventfd2		__NR_ia32_eventfd2
#define __NR_compat_execve		__NR_ia32_execve
#define __NR_compat_execveat		__NR_ia32_execveat
#define __NR_compat_exit		__NR_ia32_exit
#define __NR_compat_exit_group		__NR_ia32_exit_group
#define __NR_compat_faccessat		__NR_ia32_faccessat
#define __NR_compat_faccessat2		__NR_ia32_faccessat2
#define __NR_compat_fanotify_init	__NR_ia32_fanotify_init
#define __NR_compat_fanotify_mark	__NR_ia32_fanotify_mark
#define __NR_compat_fchdir		__NR_ia32_fchdir
#define __NR_compat_fchmod		__NR_ia32_fchmod
#define __NR_compat_fchmodat		__NR_ia32_fchmodat
#define __NR_compat_fchown		__NR_ia32_fchown
#define __NR_compat_fchown32		__NR_ia32_fchown32
#define __NR_compat_fchownat		__NR_ia32_fchownat
#define __NR_compat_fcntl		__NR_ia32_fcntl
#define __NR_compat_fcntl64		__NR_ia32_fcntl64
#define __NR_compat_fdatasync		__NR_ia32_fdatasync
#define __NR_compat_fgetxattr		__NR_ia32_fgetxattr
#define __NR_compat_finit_module	__NR_ia32_finit_module
#define __NR_compat_flistxattr		__NR_ia32_flistxattr
#define __NR_compat_flock		__NR_ia32_flock
#define __NR_compat_fork		__NR_ia32_fork
#define __NR_compat_fremovexattr	__NR_ia32_fremovexattr
#define __NR_compat_fsetxattr		__NR_ia32_fsetxattr
#define __NR_compat_fstat		__NR_ia32_fstat
#define __NR_compat_fstat64		__NR_ia32_fstat64
#define __NR_compat_fstatat64		__NR_ia32_fstatat64
#define __NR_compat_fstatfs		__NR_ia32_fstatfs
#define __NR_compat_fstatfs64		__NR_ia32_fstatfs64
#define __NR_compat_fsync		__NR_ia32_fsync
#define __NR_compat_ftruncate		__NR_ia32_ftruncate
#define __NR_compat_futex		__NR_ia32_futex
#define __NR_compat_futimesat		__NR_ia32_futimesat
#define __NR_compat_get_mempolicy	__NR_ia32_get_mempolicy
#define __NR_compat_get_robust_list	__NR_ia32_get_robust_list
#define __NR_compat_getcpu		__NR_ia32_getcpu
#define __NR_compat_getcwd		__NR_ia32_getcwd
#define __NR_compat_getdents		__NR_ia32_getdents
#define __NR_compat_getdents64		__NR_ia32_getdents64
#define __NR_compat_getegid		__NR_ia32_getegid
#define __NR_compat_getegid32		__NR_ia32_getegid32
#define __NR_compat_geteuid		__NR_ia32_geteuid
#define __NR_compat_geteuid32		__NR_ia32_geteuid32
#define __NR_compat_getgid		__NR_ia32_getgid
#define __NR_compat_getgid32		__NR_ia32_getgid32
#define __NR_compat_getgroups		__NR_ia32_getgroups
#define __NR_compat_getgroups32		__NR_ia32_getgroups32
#define __NR_compat_getitimer		__NR_ia32_getitimer
#define __NR_compat_getpgid		__NR_ia32_getpgid
#define __NR_compat_getpgrp		__NR_ia32_getpgrp
#define __NR_compat_getpid		__NR_ia32_getpid
#define __NR_compat_getppid		__NR_ia32_getppid
#define __NR_compat_getpriority		__NR_ia32_getpriority
#define __NR_compat_getrandom		__NR_ia32_getrandom
#define __NR_compat_getresgid		__NR_ia32_getresgid
#define __NR_compat_getresgid32		__NR_ia32_getresgid32
#define __NR_compat_getresuid		__NR_ia32_getresuid
#define __NR_compat_getresuid32		__NR_ia32_getresuid32
#define __NR_compat_getrlimit		__NR_ia32_getrlimit
#define __NR_compat_getrusage		__NR_ia32_getrusage
#define __NR_compat_getsid		__NR_ia32_getsid
#define __NR_compat_gettid		__NR_ia32_gettid
#define __NR_compat_gettimeofday	__NR_ia32_gettimeofday
#define __NR_compat_getuid		__NR_ia32_getuid
#define __NR_compat_getuid32		__NR_ia32_getuid32
#define __NR_compat_getxattr		__NR_ia32_getxattr
#define __NR_compat_init_module		__NR_ia32_init_module
#define __NR_compat_inotify_add_watch	__NR_ia32_inotify_add_watch
#define __NR_compat_inotify_init	__NR_ia32_inotify_init
#define __NR_compat_inotify_init1	__NR_ia32_inotify_init1
#define __NR_compat_inotify_rm_watch	__NR_ia32_inotify_rm_watch
#define __NR_compat_io_cancel		__NR_ia32_io_cancel
#define __NR_compat_io_destroy		__NR_ia32_io_destroy
#define __NR_compat_io_getevents	__NR_ia32_io_getevents
#define __NR_compat_io_setup		__NR_ia32_io_setup
#define __NR_compat_io_submit		__NR_ia32_io_submit
#define __NR_compat_ioctl		__NR_ia32_ioctl
#define __NR_compat_ioperm		__NR_ia32_ioperm
#define __NR_compat_ioprio_get		__NR_ia32_ioprio_get
#define __NR_compat_ioprio_set		__NR_ia32_ioprio_set
#define __NR_compat_ipc			__NR_ia32_ipc
#define __NR_compat_kcmp		__NR_ia32_kcmp
#define __NR_compat_kexec_file_load	__NR_ia32_kexec_file_load
#define __NR_compat_kexec_load		__NR_ia32_kexec_load
#define __NR_compat_keyctl		__NR_ia32_keyctl
#define __NR_compat_kill		__NR_ia32_kill
#define __NR_compat_lchown		__NR_ia32_lchown
#define __NR_compat_lchown32		__NR_ia32_lchown32
#define __NR_compat_lgetxattr		__NR_ia32_lgetxattr
#define __NR_compat_link		__NR_ia32_link
#define __NR_compat_linkat		__NR_ia32_linkat
#define __NR_compat_listxattr		__NR_ia32_listxattr
#define __NR_compat_llistxattr		__NR_ia32_llistxattr
#define __NR_compat_lremovexattr	__NR_ia32_lremovexattr
#define __NR_compat_lseek		__NR_ia32_lseek
#define __NR_compat_lsetxattr		__NR_ia32_lsetxattr
#define __NR_compat_lstat		__NR_ia32_lstat
#define __NR_compat_lstat64		__NR_ia32_lstat64
#define __NR_compat_madvise		__NR_ia32_madvise
#define __NR_compat_mbind		__NR_ia32_mbind
#define __NR_compat_membarrier		__NR_ia32_membarrier
#define __NR_compat_memfd_create	__NR_ia32_memfd_create
#define __NR_compat_memfd_secret	__NR_ia32_memfd_secret
#define __NR_compat_migrate_pages	__NR_ia32_migrate_pages
#define __NR_compat_mincore		__NR_ia32_mincore
#define __NR_compat_mkdir		__NR_ia32_mkdir
#define __NR_compat_mkdirat		__NR_ia32_mkdirat
#define __NR_compat_mknod		__NR_ia32_mknod
#define __NR_compat_mknodat		__NR_ia32_mknodat
#define __NR_compat_mlock		__NR_ia32_mlock
#define __NR_compat_mlock2		__NR_ia32_mlock2
#define __NR_compat_mlockall		__NR_ia32_mlockall
#define __NR_compat_mmap2		__NR_ia32_mmap2
#define __NR_compat_modify_ldt		__NR_ia32_modify_ldt
#define __NR_compat_mount		__NR_ia32_mount
#define __NR_compat_move_pages		__NR_ia32_move_pages
#define __NR_compat_mprotect		__NR_ia32_mprotect
#define __NR_compat_mq_getsetattr	__NR_ia32_mq_getsetattr
#define __NR_compat_mq_notify		__NR_ia32_mq_notify
#define __NR_compat_mq_open		__NR_ia32_mq_open
#define __NR_compat_mq_timedreceive	__NR_ia32_mq_timedreceive
#define __NR_compat_mq_timedsend	__NR_ia32_mq_timedsend
#define __NR_compat_mq_unlink		__NR_ia32_mq_unlink
#define __NR_compat_mremap		__NR_ia32_mremap
#define __NR_compat_msync		__NR_ia32_msync
#define __NR_compat_munlock		__NR_ia32_munlock
#define __NR_compat_munlockall		__NR_ia32_munlockall
#define __NR_compat_munmap		__NR_ia32_munmap
#define __NR_compat_name_to_handle_at	__NR_ia32_name_to_handle_at
#define __NR_compat_nanosleep		__NR_ia32_nanosleep
#define __NR_compat_nfsservctl		__NR_ia32_nfsservctl
#define __NR_compat_nice		__NR_ia32_nice
#define __NR_compat_oldfstat		__NR_ia32_oldfstat
#define __NR_compat_oldlstat		__NR_ia32_oldlstat
#define __NR_compat_oldolduname		__NR_ia32_oldolduname
#define __NR_compat_oldstat		__NR_ia32_oldstat
#define __NR_compat_olduname		__NR_ia32_olduname
#define __NR_compat_open		__NR_ia32_open
#define __NR_compat_open_by_handle_at	__NR_ia32_open_by_handle_at
#define __NR_compat_openat		__NR_ia32_openat
#define __NR_compat_pause		__NR_ia32_pause
#define __NR_compat_perf_event_open	__NR_ia32_perf_event_open
#define __NR_compat_personality		__NR_ia32_personality
#define __NR_compat_pipe		__NR_ia32_pipe
#define __NR_compat_pipe2		__NR_ia32_pipe2
#define __NR_compat_pivot_root		__NR_ia32_pivot_root
#define __NR_compat_pkey_alloc		__NR_ia32_pkey_alloc
#define __NR_compat_pkey_free		__NR_ia32_pkey_free
#define __NR_compat_pkey_mprotect	__NR_ia32_pkey_mprotect
#define __NR_compat_poll		__NR_ia32_poll
#define __NR_compat_ppoll		__NR_ia32_ppoll
#define __NR_compat_prctl		__NR_ia32_prctl
#define __NR_compat_pread64		__NR_ia32_pread64
#define __NR_compat_preadv		__NR_ia32_preadv
#define __NR_compat_preadv2		__NR_ia32_preadv2
#define __NR_compat_prlimit64		__NR_ia32_prlimit64
#define __NR_compat_process_vm_readv	__NR_ia32_process_vm_readv
#define __NR_compat_process_vm_writev	__NR_ia32_process_vm_writev
#define __NR_compat_pselect6		__NR_ia32_pselect6
#define __NR_compat_pselect7		__NR_ia32_pselect7
#define __NR_compat_ptrace		__NR_ia32_ptrace
#define __NR_compat_pwrite64		__NR_ia32_pwrite64
#define __NR_compat_pwritev		__NR_ia32_pwritev
#define __NR_compat_pwritev2		__NR_ia32_pwritev2
#define __NR_compat_quotactl		__NR_ia32_quotactl
#define __NR_compat_read		__NR_ia32_read
#define __NR_compat_readdir		__NR_ia32_readdir
#define __NR_compat_readlink		__NR_ia32_readlink
#define __NR_compat_readlinkat		__NR_ia32_readlinkat
#define __NR_compat_readv		__NR_ia32_readv
#define __NR_compat_reboot		__NR_ia32_reboot
#define __NR_compat_recvmmsg		__NR_ia32_recvmmsg
#define __NR_compat_remap_file_pages	__NR_ia32_remap_file_pages
#define __NR_compat_removexattr		__NR_ia32_removexattr
#define __NR_compat_rename		__NR_ia32_rename
#define __NR_compat_renameat		__NR_ia32_renameat
#define __NR_compat_renameat2		__NR_ia32_renameat2
#define __NR_compat_request_key		__NR_ia32_request_key
#define __NR_compat_restart_syscall	__NR_ia32_restart_syscall
#define __NR_compat_rmdir		__NR_ia32_rmdir
#define __NR_compat_rt_sigaction	__NR_ia32_rt_sigaction
#define __NR_compat_rt_sigpending	__NR_ia32_rt_sigpending
#define __NR_compat_rt_sigprocmask	__NR_ia32_rt_sigprocmask
#define __NR_compat_rt_sigqueueinfo	__NR_ia32_rt_sigqueueinfo
#define __NR_compat_rt_sigsuspend	__NR_ia32_rt_sigsuspend
#define __NR_compat_rt_sigtimedwait	__NR_ia32_rt_sigtimedwait
#define __NR_compat_rt_tgsigqueueinfo	__NR_ia32_rt_tgsigqueueinfo
#define __NR_compat_sched_get_priority_max	__NR_ia32_sched_get_priority_max
#define __NR_compat_sched_get_priority_min	__NR_ia32_sched_get_priority_min
#define __NR_compat_sched_getaffinity	__NR_ia32_sched_getaffinity
#define __NR_compat_sched_getattr	__NR_ia32_sched_getattr
#define __NR_compat_sched_getparam	__NR_ia32_sched_getparam
#define __NR_compat_sched_getscheduler	__NR_ia32_sched_getscheduler
#define __NR_compat_sched_rr_get_interval	__NR_ia32_sched_rr_get_interval
#define __NR_compat_sched_setaffinity	__NR_ia32_sched_setaffinity
#define __NR_compat_sched_setattr	__NR_ia32_sched_setattr
#define __NR_compat_sched_setparam	__NR_ia32_sched_setparam
#define __NR_compat_sched_setscheduler	__NR_ia32_sched_setscheduler
#define __NR_compat_sched_yield		__NR_ia32_sched_yield
#define __NR_compat_seccomp		__NR_ia32_seccomp
#define __NR_compat_sendfile		__NR_ia32_sendfile
#define __NR_compat_sendmmsg		__NR_ia32_sendmmsg
#define __NR_compat_set_mempolicy	__NR_ia32_set_mempolicy
#define __NR_compat_set_robust_list	__NR_ia32_set_robust_list
#define __NR_compat_set_tid_address	__NR_ia32_set_tid_address
#define __NR_compat_setdomainname	__NR_ia32_setdomainname
#define __NR_compat_setfsgid		__NR_ia32_setfsgid
#define __NR_compat_setfsgid32		__NR_ia32_setfsgid32
#define __NR_compat_setfsuid		__NR_ia32_setfsuid
#define __NR_compat_setfsuid32		__NR_ia32_setfsuid32
#define __NR_compat_setgid		__NR_ia32_setgid
#define __NR_compat_setgid32		__NR_ia32_setgid32
#define __NR_compat_setgroups		__NR_ia32_setgroups
#define __NR_compat_setgroups32		__NR_ia32_setgroups32
#define __NR_compat_sethostname		__NR_ia32_sethostname
#define __NR_compat_setitimer		__NR_ia32_setitimer
#define __NR_compat_setns		__NR_ia32_setns
#define __NR_compat_setpgid		__NR_ia32_setpgid
#define __NR_compat_setpriority		__NR_ia32_setpriority
#define __NR_compat_setregid		__NR_ia32_setregid
#define __NR_compat_setregid32		__NR_ia32_setregid32
#define __NR_compat_setresgid		__NR_ia32_setresgid
#define __NR_compat_setresgid32		__NR_ia32_setresgid32
#define __NR_compat_setresuid		__NR_ia32_setresuid
#define __NR_compat_setresuid32		__NR_ia32_setresuid32
#define __NR_compat_setreuid		__NR_ia32_setreuid
#define __NR_compat_setreuid32		__NR_ia32_setreuid32
#define __NR_compat_setrlimit		__NR_ia32_setrlimit
#define __NR_compat_setsid		__NR_ia32_setsid
#define __NR_compat_settimeofday	__NR_ia32_settimeofday
#define __NR_compat_setuid		__NR_ia32_setuid
#define __NR_compat_setuid32		__NR_ia32_setuid32
#define __NR_compat_setxattr		__NR_ia32_setxattr
#define __NR_compat_sgetmask		__NR_ia32_sgetmask
#define __NR_compat_shmctl		__NR_ia32_shmctl
#define __NR_compat_sigaction		__NR_ia32_sigaction
#define __NR_compat_sigaltstack		__NR_ia32_sigaltstack
#define __NR_compat_signal		__NR_ia32_signal
#define __NR_compat_signalfd		__NR_ia32_signalfd
#define __NR_compat_signalfd4		__NR_ia32_signalfd4
#define __NR_compat_sigpending		__NR_ia32_sigpending
#define __NR_compat_sigprocmask		__NR_ia32_sigprocmask
#define __NR_compat_sigsuspend		__NR_ia32_sigsuspend
#define __NR_compat_socketcall		__NR_ia32_socketcall
#define __NR_compat_splice		__NR_ia32_splice
#define __NR_compat_ssetmask		__NR_ia32_ssetmask
#define __NR_compat_stat		__NR_ia32_stat
#define __NR_compat_stat64		__NR_ia32_stat64
#define __NR_compat_statfs		__NR_ia32_statfs
#define __NR_compat_statfs64		__NR_ia32_statfs64
#define __NR_compat_statx		__NR_ia32_statx
#define __NR_compat_stime		__NR_ia32_stime
#define __NR_compat_swapoff		__NR_ia32_swapoff
#define __NR_compat_swapon		__NR_ia32_swapon
#define __NR_compat_symlink		__NR_ia32_symlink
#define __NR_compat_symlinkat		__NR_ia32_symlinkat
#define __NR_compat_sync		__NR_ia32_sync
#define __NR_compat_sync_file_range	__NR_ia32_sync_file_range
#define __NR_compat_syncfs		__NR_ia32_syncfs
#define __NR_compat_sysfs		__NR_ia32_sysfs
#define __NR_compat_sysinfo		__NR_ia32_sysinfo
#define __NR_compat_syslog		__NR_ia32_syslog
#define __NR_compat_tee			__NR_ia32_tee
#define __NR_compat_tgkill		__NR_ia32_tgkill
#define __NR_compat_time		__NR_ia32_time
#define __NR_compat_timer_create	__NR_ia32_timer_create
#define __NR_compat_timer_delete	__NR_ia32_timer_delete
#define __NR_compat_timer_getoverrun	__NR_ia32_timer_getoverrun
#define __NR_compat_timer_gettime	__NR_ia32_timer_gettime
#define __NR_compat_timer_settime	__NR_ia32_timer_settime
#define __NR_compat_timerfd_create	__NR_ia32_timerfd_create
#define __NR_compat_timerfd_gettime	__NR_ia32_timerfd_gettime
#define __NR_compat_timerfd_settime	__NR_ia32_timerfd_settime
#define __NR_compat_times		__NR_ia32_times
#define __NR_compat_tkill		__NR_ia32_tkill
#define __NR_compat_truncate		__NR_ia32_truncate
#define __NR_compat_ugetrlimit		__NR_ia32_ugetrlimit
#define __NR_compat_umask		__NR_ia32_umask
#define __NR_compat_umount		__NR_ia32_umount
#define __NR_compat_umount2		__NR_ia32_umount2
#define __NR_compat_uname		__NR_ia32_uname
#define __NR_compat_unlink		__NR_ia32_unlink
#define __NR_compat_unlinkat		__NR_ia32_unlinkat
#define __NR_compat_unshare		__NR_ia32_unshare
#define __NR_compat_uselib		__NR_ia32_uselib
#define __NR_compat_userfaultfd		__NR_ia32_userfaultfd
#define __NR_compat_ustat		__NR_ia32_ustat
#define __NR_compat_utime		__NR_ia32_utime
#define __NR_compat_utimensat		__NR_ia32_utimensat
#define __NR_compat_utimes		__NR_ia32_utimes
#define __NR_compat_vfork		__NR_ia32_vfork
#define __NR_compat_vhangup		__NR_ia32_vhangup
#define __NR_compat_vmsplice		__NR_ia32_vmsplice
#define __NR_compat_wait4		__NR_ia32_wait4
#define __NR_compat_waitid		__NR_ia32_waitid
#define __NR_compat_waitpid		__NR_ia32_waitpid
#define __NR_compat_write		__NR_ia32_write
#define __NR_compat_writev		__NR_ia32_writev

#endif	/* __x86_64__ */

#if defined(__powerpc64__) || defined (__s390x__) || defined(__aarch64__)

// On the ppc64 and s390x, the 32-bit syscalls use the same number
// as the 64-bit syscalls.
//
// On arm64, the 32-bit syscall *can* use different numbers than the
// 64-bit syscalls, but the majority do not. The following syscalls
// use the same number.

#define __NR_compat__llseek		__NR__llseek
#define __NR_compat__newselect		__NR__newselect
#define __NR_compat__sysctl		__NR__sysctl
#define __NR_compat_access		__NR_access
#define __NR_compat_acct		__NR_acct
#define __NR_compat_add_key		__NR_add_key
#define __NR_compat_adjtimex		__NR_adjtimex
#define __NR_compat_alarm		__NR_alarm
#define __NR_compat_bpf			__NR_bpf
#define __NR_compat_brk			__NR_brk
#define __NR_compat_capget		__NR_capget
#define __NR_compat_capset		__NR_capset
#define __NR_compat_chdir		__NR_chdir
#define __NR_compat_chmod		__NR_chmod
#define __NR_compat_chown		__NR_chown
#define __NR_compat_chown32		__NR_chown32
#define __NR_compat_chroot		__NR_chroot
#define __NR_compat_clock_adjtime	__NR_clock_adjtime
#if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0))
#define __NR_compat_clock_getres	__NR_clock_getres
#define __NR_compat_clock_gettime	__NR_clock_gettime
#endif
#define __NR_compat_clock_nanosleep	__NR_clock_nanosleep
#define __NR_compat_clock_settime	__NR_clock_settime
#define __NR_compat_clone		__NR_clone
#define __NR_compat_close		__NR_close
#define __NR_compat_copy_file_range	__NR_copy_file_range
#define __NR_compat_creat		__NR_creat
#define __NR_compat_delete_module	__NR_delete_module
#define __NR_compat_dup			__NR_dup
#define __NR_compat_dup2		__NR_dup2
#define __NR_compat_dup3		__NR_dup3
#define __NR_compat_epoll_create	__NR_epoll_create
#define __NR_compat_epoll_create1	__NR_epoll_create1
#define __NR_compat_epoll_ctl		__NR_epoll_ctl
#define __NR_compat_epoll_pwait		__NR_epoll_pwait
#define __NR_compat_epoll_wait		__NR_epoll_wait
#define __NR_compat_eventfd		__NR_eventfd
#define __NR_compat_eventfd2		__NR_eventfd2
#define __NR_compat_execve		__NR_execve
#define __NR_compat_execveat		__NR_execveat
#if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
#define __NR_compat_exit		__NR_exit
#endif
#define __NR_compat_exit_group		__NR_exit_group
#define __NR_compat_faccessat		__NR_faccessat
#define __NR_compat_faccessat2		__NR_faccessat2
#define __NR_compat_fanotify_init	__NR_fanotify_init
#define __NR_compat_fanotify_mark	__NR_fanotify_mark
#define __NR_compat_fchdir		__NR_fchdir
#define __NR_compat_fchmod		__NR_fchmod
#define __NR_compat_fchmodat		__NR_fchmodat
#define __NR_compat_fchown		__NR_fchown
#define __NR_compat_fchown32		__NR_fchown32
#define __NR_compat_fchownat		__NR_fchownat
#define __NR_compat_fcntl		__NR_fcntl
#define __NR_compat_fcntl64		__NR_fcntl64
#define __NR_compat_fdatasync		__NR_fdatasync
#define __NR_compat_fgetxattr		__NR_fgetxattr
#define __NR_compat_finit_module	__NR_finit_module
#define __NR_compat_flistxattr		__NR_flistxattr
#define __NR_compat_flock		__NR_flock
#define __NR_compat_fork		__NR_fork
#define __NR_compat_fremovexattr	__NR_fremovexattr
#define __NR_compat_fsetxattr		__NR_fsetxattr
#define __NR_compat_fstat		__NR_fstat
#define __NR_compat_fstat64		__NR_fstat64
#define __NR_compat_fstatat64		__NR_fstatat64
#define __NR_compat_fstatfs		__NR_fstatfs
#define __NR_compat_fstatfs64		__NR_fstatfs64
#define __NR_compat_fsync		__NR_fsync
#define __NR_compat_ftruncate		__NR_ftruncate
#define __NR_compat_futex		__NR_futex
#define __NR_compat_futimesat		__NR_futimesat
#define __NR_compat_get_mempolicy	__NR_get_mempolicy
#define __NR_compat_get_robust_list	__NR_get_robust_list
#define __NR_compat_getcpu		__NR_getcpu
#define __NR_compat_getcwd		__NR_getcwd
#define __NR_compat_getdents		__NR_getdents
#define __NR_compat_getdents64		__NR_getdents64
#define __NR_compat_getegid		__NR_getegid
#define __NR_compat_getegid32		__NR_getegid32
#define __NR_compat_geteuid		__NR_geteuid
#define __NR_compat_geteuid32		__NR_geteuid32
#define __NR_compat_getgid		__NR_getgid
#define __NR_compat_getgid32		__NR_getgid32
#define __NR_compat_getgroups		__NR_getgroups
#define __NR_compat_getgroups32		__NR_getgroups32
#define __NR_compat_getitimer		__NR_getitimer
#define __NR_compat_getpgid		__NR_getpgid
#define __NR_compat_getpgrp		__NR_getpgrp
#define __NR_compat_getpid		__NR_getpid
#define __NR_compat_getppid		__NR_getppid
#define __NR_compat_getpriority		__NR_getpriority
#define __NR_compat_getrandom		__NR_getrandom
#define __NR_compat_getresgid		__NR_getresgid
#define __NR_compat_getresgid32		__NR_getresgid32
#define __NR_compat_getresuid		__NR_getresuid
#define __NR_compat_getresuid32		__NR_getresuid32
#define __NR_compat_getrlimit		__NR_getrlimit
#define __NR_compat_getrusage		__NR_getrusage
#define __NR_compat_getsid		__NR_getsid
#define __NR_compat_gettid		__NR_gettid
#if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0))
#define __NR_compat_gettimeofday	__NR_gettimeofday
#endif
#define __NR_compat_getuid		__NR_getuid
#define __NR_compat_getuid32		__NR_getuid32
#define __NR_compat_getxattr		__NR_getxattr
#define __NR_compat_init_module		__NR_init_module
#define __NR_compat_inotify_add_watch	__NR_inotify_add_watch
#define __NR_compat_inotify_init	__NR_inotify_init
#define __NR_compat_inotify_init1	__NR_inotify_init1
#define __NR_compat_inotify_rm_watch	__NR_inotify_rm_watch
#define __NR_compat_io_cancel		__NR_io_cancel
#define __NR_compat_io_destroy		__NR_io_destroy
#define __NR_compat_io_getevents	__NR_io_getevents
#define __NR_compat_io_setup		__NR_io_setup
#define __NR_compat_io_submit		__NR_io_submit
#define __NR_compat_ioctl		__NR_ioctl
#define __NR_compat_ioperm		__NR_ioperm
#define __NR_compat_ioprio_get		__NR_ioprio_get
#define __NR_compat_ioprio_set		__NR_ioprio_set
#define __NR_compat_ipc			__NR_ipc
#define __NR_compat_kcmp		__NR_kcmp
#define __NR_compat_kexec_file_load	__NR_kexec_file_load
#define __NR_compat_kexec_load		__NR_kexec_load
#define __NR_compat_keyctl		__NR_keyctl
#define __NR_compat_kill		__NR_kill
#define __NR_compat_lchown		__NR_lchown
#define __NR_compat_lchown32		__NR_lchown32
#define __NR_compat_lgetxattr		__NR_lgetxattr
#define __NR_compat_link		__NR_link
#define __NR_compat_linkat		__NR_linkat
#define __NR_compat_listxattr		__NR_listxattr
#define __NR_compat_llistxattr		__NR_llistxattr
#define __NR_compat_lremovexattr	__NR_lremovexattr
#define __NR_compat_lseek		__NR_lseek
#define __NR_compat_lsetxattr		__NR_lsetxattr
#define __NR_compat_lstat		__NR_lstat
#define __NR_compat_lstat64		__NR_lstat64
#define __NR_compat_madvise		__NR_madvise
#define __NR_compat_mbind		__NR_mbind
#define __NR_compat_membarrier		__NR_membarrier
#define __NR_compat_memfd_create	__NR_memfd_create
#define __NR_compat_memfd_secret  	__NR_memfd_secret
#define __NR_compat_migrate_pages	__NR_migrate_pages
#define __NR_compat_mincore		__NR_mincore
#define __NR_compat_mkdir		__NR_mkdir
#define __NR_compat_mkdirat		__NR_mkdirat
#define __NR_compat_mknod		__NR_mknod
#define __NR_compat_mknodat		__NR_mknodat
#define __NR_compat_mlock		__NR_mlock
#define __NR_compat_mlock2		__NR_mlock2
#define __NR_compat_mlockall		__NR_mlockall
#define __NR_compat_mmap2		__NR_mmap2
#define __NR_compat_modify_ldt		__NR_modify_ldt
#define __NR_compat_mount		__NR_mount
#define __NR_compat_move_pages		__NR_move_pages
#define __NR_compat_mprotect		__NR_mprotect
#define __NR_compat_mq_getsetattr	__NR_mq_getsetattr
#define __NR_compat_mq_notify		__NR_mq_notify
#define __NR_compat_mq_open		__NR_mq_open
#define __NR_compat_mq_timedreceive	__NR_mq_timedreceive
#define __NR_compat_mq_timedsend	__NR_mq_timedsend
#define __NR_compat_mq_unlink		__NR_mq_unlink
#define __NR_compat_mremap		__NR_mremap
#define __NR_compat_msync		__NR_msync
#define __NR_compat_munlock		__NR_munlock
#define __NR_compat_munlockall		__NR_munlockall
#define __NR_compat_munmap		__NR_munmap
#define __NR_compat_name_to_handle_at	__NR_name_to_handle_at
#define __NR_compat_nanosleep		__NR_nanosleep
#define __NR_compat_nfsservctl		__NR_nfsservctl
#define __NR_compat_nice		__NR_nice
#define __NR_compat_oldfstat		__NR_oldfstat
#define __NR_compat_oldlstat		__NR_oldlstat
#define __NR_compat_oldolduname		__NR_oldolduname
#define __NR_compat_oldstat		__NR_oldstat
#define __NR_compat_olduname		__NR_olduname
#define __NR_compat_open		__NR_open
#define __NR_compat_open_by_handle_at	__NR_open_by_handle_at
#define __NR_compat_openat		__NR_openat
#define __NR_compat_pause		__NR_pause
#define __NR_compat_perf_event_open	__NR_perf_event_open
#define __NR_compat_personality		__NR_personality
#define __NR_compat_pipe		__NR_pipe
#define __NR_compat_pipe2		__NR_pipe2
#define __NR_compat_pivot_root		__NR_pivot_root
#define __NR_compat_pkey_alloc		__NR_pkey_alloc
#define __NR_compat_pkey_free		__NR_pkey_free
#define __NR_compat_pkey_mprotect	__NR_pkey_mprotect
#define __NR_compat_poll		__NR_poll
#define __NR_compat_ppoll		__NR_ppoll
#define __NR_compat_prctl		__NR_prctl
#define __NR_compat_pread64		__NR_pread64
#define __NR_compat_preadv		__NR_preadv
#define __NR_compat_preadv2		__NR_preadv2
#define __NR_compat_prlimit64		__NR_prlimit64
#define __NR_compat_process_vm_readv	__NR_process_vm_readv
#define __NR_compat_process_vm_writev	__NR_process_vm_writev
#define __NR_compat_pselect6		__NR_pselect6
#define __NR_compat_pselect7		__NR_pselect7
#define __NR_compat_ptrace		__NR_ptrace
#define __NR_compat_pwrite64		__NR_pwrite64
#define __NR_compat_pwritev		__NR_pwritev
#define __NR_compat_pwritev2		__NR_pwritev2
#define __NR_compat_quotactl		__NR_quotactl
#if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
#define __NR_compat_read		__NR_read
#endif
#define __NR_compat_readdir		__NR_readdir
#define __NR_compat_readlink		__NR_readlink
#define __NR_compat_readlinkat		__NR_readlinkat
#define __NR_compat_readv		__NR_readv
#define __NR_compat_reboot		__NR_reboot
#define __NR_compat_recvmmsg		__NR_recvmmsg
#define __NR_compat_remap_file_pages	__NR_remap_file_pages
#define __NR_compat_removexattr		__NR_removexattr
#define __NR_compat_rename		__NR_rename
#define __NR_compat_renameat		__NR_renameat
#define __NR_compat_renameat2		__NR_renameat2
#define __NR_compat_request_key		__NR_request_key
#if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0))
#define __NR_compat_restart_syscall	__NR_restart_syscall
#endif
#define __NR_compat_rmdir		__NR_rmdir
#define __NR_compat_rt_sigaction	__NR_rt_sigaction
#define __NR_compat_rt_sigpending	__NR_rt_sigpending
#define __NR_compat_rt_sigprocmask	__NR_rt_sigprocmask
#define __NR_compat_rt_sigqueueinfo	__NR_rt_sigqueueinfo
#define __NR_compat_rt_sigsuspend	__NR_rt_sigsuspend
#define __NR_compat_rt_sigtimedwait	__NR_rt_sigtimedwait
#define __NR_compat_rt_tgsigqueueinfo	__NR_rt_tgsigqueueinfo
#define __NR_compat_sched_get_priority_max	__NR_sched_get_priority_max
#define __NR_compat_sched_get_priority_min	__NR_sched_get_priority_min
#define __NR_compat_sched_getaffinity	__NR_sched_getaffinity
#define __NR_compat_sched_getattr	__NR_sched_getattr
#define __NR_compat_sched_getparam	__NR_sched_getparam
#define __NR_compat_sched_getscheduler	__NR_sched_getscheduler
#define __NR_compat_sched_rr_get_interval	__NR_sched_rr_get_interval
#define __NR_compat_sched_setaffinity	__NR_sched_setaffinity
#define __NR_compat_sched_setattr	__NR_sched_setattr
#define __NR_compat_sched_setparam	__NR_sched_setparam
#define __NR_compat_sched_setscheduler	__NR_sched_setscheduler
#define __NR_compat_sched_yield		__NR_sched_yield
#define __NR_compat_seccomp		__NR_seccomp
#define __NR_compat_sendfile		__NR_sendfile
#define __NR_compat_sendmmsg		__NR_sendmmsg
#define __NR_compat_set_mempolicy	__NR_set_mempolicy
#define __NR_compat_set_robust_list	__NR_set_robust_list
#define __NR_compat_set_tid_address	__NR_set_tid_address
#define __NR_compat_setdomainname	__NR_setdomainname
#define __NR_compat_setfsgid		__NR_setfsgid
#define __NR_compat_setfsgid32		__NR_setfsgid32
#define __NR_compat_setfsuid		__NR_setfsuid
#define __NR_compat_setfsuid32		__NR_setfsuid32
#define __NR_compat_setgid		__NR_setgid
#define __NR_compat_setgid32		__NR_setgid32
#define __NR_compat_setgroups		__NR_setgroups
#define __NR_compat_setgroups32		__NR_setgroups32
#define __NR_compat_sethostname		__NR_sethostname
#define __NR_compat_setitimer		__NR_setitimer
#define __NR_compat_setns		__NR_setns
#define __NR_compat_setpgid		__NR_setpgid
#define __NR_compat_setpriority		__NR_setpriority
#define __NR_compat_setregid		__NR_setregid
#define __NR_compat_setregid32		__NR_setregid32
#define __NR_compat_setresgid		__NR_setresgid
#define __NR_compat_setresgid32		__NR_setresgid32
#define __NR_compat_setresuid		__NR_setresuid
#define __NR_compat_setresuid32		__NR_setresuid32
#define __NR_compat_setreuid		__NR_setreuid
#define __NR_compat_setreuid32		__NR_setreuid32
#define __NR_compat_setrlimit		__NR_setrlimit
#define __NR_compat_setsid		__NR_setsid
#define __NR_compat_settimeofday	__NR_settimeofday
#define __NR_compat_setuid		__NR_setuid
#define __NR_compat_setuid32		__NR_setuid32
#define __NR_compat_setxattr		__NR_setxattr
#define __NR_compat_sgetmask		__NR_sgetmask
#define __NR_compat_shmctl		__NR_shmctl
#define __NR_compat_sigaction		__NR_sigaction
#define __NR_compat_sigaltstack		__NR_sigaltstack
#define __NR_compat_signal		__NR_signal
#define __NR_compat_signalfd		__NR_signalfd
#define __NR_compat_signalfd4		__NR_signalfd4
#define __NR_compat_sigpending		__NR_sigpending
#define __NR_compat_sigprocmask		__NR_sigprocmask
#define __NR_compat_sigsuspend		__NR_sigsuspend
#define __NR_compat_socketcall		__NR_socketcall
#define __NR_compat_splice		__NR_splice
#define __NR_compat_ssetmask		__NR_ssetmask
#define __NR_compat_stat		__NR_stat
#define __NR_compat_stat64		__NR_stat64
#define __NR_compat_statfs		__NR_statfs
#define __NR_compat_statfs64		__NR_statfs64
#define __NR_compat_statx		__NR_statx
#define __NR_compat_stime		__NR_stime
#define __NR_compat_swapoff		__NR_swapoff
#define __NR_compat_swapon		__NR_swapon
#define __NR_compat_symlink		__NR_symlink
#define __NR_compat_symlinkat		__NR_symlinkat
#define __NR_compat_sync		__NR_sync
#define __NR_compat_sync_file_range	__NR_sync_file_range
#define __NR_compat_syncfs		__NR_syncfs
#define __NR_compat_sysfs		__NR_sysfs
#define __NR_compat_sysinfo		__NR_sysinfo
#define __NR_compat_syslog		__NR_syslog
#define __NR_compat_tee			__NR_tee
#define __NR_compat_tgkill		__NR_tgkill
#define __NR_compat_time		__NR_time
#define __NR_compat_timer_create	__NR_timer_create
#define __NR_compat_timer_delete	__NR_timer_delete
#define __NR_compat_timer_getoverrun	__NR_timer_getoverrun
#define __NR_compat_timer_gettime	__NR_timer_gettime
#define __NR_compat_timer_settime	__NR_timer_settime
#define __NR_compat_timerfd_create	__NR_timerfd_create
#define __NR_compat_timerfd_gettime	__NR_timerfd_gettime
#define __NR_compat_timerfd_settime	__NR_timerfd_settime
#define __NR_compat_times		__NR_times
#define __NR_compat_tkill		__NR_tkill
#define __NR_compat_truncate		__NR_truncate
#define __NR_compat_ugetrlimit		__NR_ugetrlimit
#define __NR_compat_umask		__NR_umask
#define __NR_compat_umount		__NR_umount
#define __NR_compat_umount2		__NR_umount2
#define __NR_compat_uname		__NR_uname
#define __NR_compat_unlink		__NR_unlink
#define __NR_compat_unlinkat		__NR_unlinkat
#define __NR_compat_unshare		__NR_unshare
#define __NR_compat_uselib		__NR_uselib
#define __NR_compat_userfaultfd		__NR_userfaultfd
#define __NR_compat_ustat		__NR_ustat
#define __NR_compat_utime		__NR_utime
#define __NR_compat_utimensat		__NR_utimensat
#define __NR_compat_utimes		__NR_utimes
#define __NR_compat_vfork		__NR_vfork
#define __NR_compat_vhangup		__NR_vhangup
#define __NR_compat_vmsplice		__NR_vmsplice
#define __NR_compat_wait4		__NR_wait4
#define __NR_compat_waitid		__NR_waitid
#define __NR_compat_waitpid		__NR_waitpid
#if !(defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
#define __NR_compat_write		__NR_write
#endif
#define __NR_compat_writev		__NR_writev

#endif	/* __powerpc64__ || __s390x__ || __aarch64__ */

#if defined(__ia64__)

// On RHEL5 ia64, __NR_umount2 doesn't exist. So, define it in terms
// of __NR_umount.

#ifndef __NR_umount2
#define __NR_umount2 __NR_umount
#endif

#endif	/* __ia64__ */

#endif /* _COMPAT_UNISTD_H_ */