Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

   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
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
 $FreeBSD$
;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
;
; System call name/number master file.
; Processed to created init_sysent.c, syscalls.c and syscall.h.

; Columns: number audit type name alt{name,tag,rtyp}/comments
;	number	system call number, must be in order
;	audit	the audit event associated with the system call
;		A value of AUE_NULL means no auditing, but it also means that
;		there is no audit event for the call at this time. For the
;		case where the event exists, but we don't want auditing, the
;		event should be #defined to AUE_NULL in audit_kevents.h.
;	type	one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
;		COMPAT7, COMPAT11, COMPAT12, NODEF, NOARGS, NOPROTO, NOSTD
;		The COMPAT* options may be combined with one or more NO*
;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
;	name	pseudo-prototype of syscall routine
;		If one of the following alts is different, then all appear:
;	altname	name of system call if different
;	alttag	name of args struct tag if different from [o]`name'"_args"
;	altrtyp	return type if not int (bogus - syscalls always return int)
;		for UNIMPL/OBSOL, name continues with comments

; types:
;	STD	always included
;	COMPAT	included on COMPAT #ifdef
;	COMPAT4	included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
;	COMPAT6	included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
;	COMPAT7	included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
;	COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
;	COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat)
;	COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat)
;	OBSOL	obsolete, not included in system, only specifies name
;	UNIMPL	not implemented, placeholder only
;	NOSTD	implemented but as a lkm that can be statically
;		compiled in; sysent entry will be filled with lkmressys
;		so the SYSCALL_MODULE macro works
;	NOARGS	same as STD except do not create structure in sys/sysproto.h
;	NODEF	same as STD except only have the entry in the syscall table
;		added.  Meaning - do not create structure or function
;		prototype in sys/sysproto.h
;	NOPROTO	same as STD except do not create structure or
;		function prototype in sys/sysproto.h.  Does add a
;		definition to syscall.h besides adding a sysent.
;	NOTSTATIC syscall is loadable

; annotations:
;	SAL 2.0 annotations are used to specify how system calls treat
;	arguments that are passed using pointers. There are three basic
;	annotations.
;
;	_In_    Object pointed to will be read and not modified.
;	_Out_   Object pointed to will be written and not read.
;	_Inout_ Object pointed to will be written and read.
;
;	These annotations are used alone when the pointer refers to a single
;	object i.e. scalar types, structs, and pointers, and not NULL. Adding
;	the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
;	refer to NULL.
;
;	For pointers to arrays, additional suffixes are added:
;
;	_In_z_, _Out_z_, _Inout_z_:
;	    for a NUL terminated array e.g. a string.
;	_In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
;	    for a NUL terminated array e.g. a string, of known length n bytes.
;	_In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
;	    for an array of n elements.
;	_In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
;	    for a buffer of n-bytes.

; Please copy any additions and changes to the following compatability tables:
; sys/compat/freebsd32/syscalls.master

; #ifdef's, etc. may be included, and are copied to the output files.

#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>

; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.

0	AUE_NULL	STD {
		int nosys(void);
	} syscall nosys_args int
1	AUE_EXIT	STD {
		void sys_exit(
		    int rval
		);
	} exit sys_exit_args void
2	AUE_FORK	STD {
		int fork(void);
	}
3	AUE_READ	STD {
		ssize_t read(
		    int fd,
		    _Out_writes_bytes_(nbyte) void *buf,
		    size_t nbyte
		);
	}
4	AUE_WRITE	STD {
		ssize_t write(
		    int fd,
		    _In_reads_bytes_(nbyte) const void *buf,
		    size_t nbyte
		);
	}
5	AUE_OPEN_RWTC	STD {
		int open(
		    _In_z_ const char *path,
		    int flags,
		    mode_t mode
		);
	}
; XXX should be		{ int open(const char *path, int flags, ...); }
; but we're not ready for varargs.
6	AUE_CLOSE	STD {
		int close(
		    int fd
		);
	}
7	AUE_WAIT4	STD {
		int wait4(
		    int pid,
		    _Out_opt_ int *status,
		    int options,
		    _Out_opt_ struct rusage *rusage
		);
	}
8	AUE_CREAT	COMPAT {
		int creat(
		    _In_z_ const char *path,
		    int mode
		);
	}
9	AUE_LINK	STD {
		int link(
		    _In_z_ const char *path,
		    _In_z_ const char *link
		);
	}
10	AUE_UNLINK	STD {
		int unlink(
		    _In_z_ const char *path
		);
	}
11	AUE_NULL	OBSOL	execv
12	AUE_CHDIR	STD {
		int chdir(
		    _In_z_ const char *path
		);
	}
13	AUE_FCHDIR	STD {
		int fchdir(
		    int fd
		);
	}
14	AUE_MKNOD	COMPAT11 {
		int mknod(
		    _In_z_ const char *path,
		    int mode,
		    uint32_t dev
		);
	}
15	AUE_CHMOD	STD {
		int chmod(
		    _In_z_ const char *path,
		    mode_t mode
		);
	}
16	AUE_CHOWN	STD {
		int chown(
		    _In_z_ const char *path,
		    int uid,
		    int gid
		);
	}
17	AUE_NULL	STD {
		void *break(
		    _In_ char *nsize
		);
	}
18	AUE_GETFSSTAT	COMPAT4 {
		int getfsstat(
		    _Out_writes_bytes_opt_(bufsize) struct ostatfs *buf,
		    long bufsize,
		    int mode
		);
	}
19	AUE_LSEEK	COMPAT {
		long lseek(
		    int fd,
		    long offset,
		    int whence
		);
	}
20	AUE_GETPID	STD {
		pid_t getpid(void);
	}
21	AUE_MOUNT	STD {
		int mount(
		    _In_z_ const char *type,
		    _In_z_ const char *path,
		    int flags,
		    _In_opt_ void *data
		);
	}
22	AUE_UMOUNT	STD {
		int unmount(
		    _In_z_ const char *path,
		    int flags
		);
	}
23	AUE_SETUID	STD {
		int setuid(
		    uid_t uid
		);
	}
24	AUE_GETUID	STD {
		uid_t getuid(void);
	}
25	AUE_GETEUID	STD {
		uid_t geteuid(void);
	}
26	AUE_PTRACE	STD {
		int ptrace(
		    int req,
		    pid_t pid,
		    _Inout_opt_ caddr_t addr,
		    int data
		);
	}
27	AUE_RECVMSG	STD {
		int recvmsg(
		    int s,
		    _Inout_ struct msghdr *msg,
		    int flags
		);
	}
28	AUE_SENDMSG	STD {
		int sendmsg(
		    int s,
		    _In_ struct msghdr *msg,
		    int flags
		);
	}
29	AUE_RECVFROM	STD {
		int recvfrom(
		    int s,
		    _Out_writes_bytes_(len) void *buf,
		    size_t len,
		    int flags,
		    _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from,
		    _Inout_opt_ __socklen_t *fromlenaddr
		);
	}
30	AUE_ACCEPT	STD {
		int accept(
		    int s,
		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
		    _Inout_opt_ __socklen_t *anamelen
		);
	}
31	AUE_GETPEERNAME	STD {
		int getpeername(
		    int fdes,
		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
		    _Inout_opt_ __socklen_t *alen
		);
	}
32	AUE_GETSOCKNAME	STD {
		int getsockname(
		    int fdes,
		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
		    _Inout_ __socklen_t *alen
		);
	}
33	AUE_ACCESS	STD {
		int access(
		    _In_z_ const char *path,
		    int amode
		);
	}
34	AUE_CHFLAGS	STD {
		int chflags(
		    _In_z_ const char *path,
		    u_long flags
		);
	}
35	AUE_FCHFLAGS	STD {
		int fchflags(
		    int fd,
		    u_long flags
		);
	}
36	AUE_SYNC	STD {
		int sync(void);
	}
37	AUE_KILL	STD {
		int kill(
		    int pid,
		    int signum
		);
	}
38	AUE_STAT	COMPAT {
		int stat(
		    _In_z_ const char *path,
		    _Out_ struct ostat *ub
		);
	}
39	AUE_GETPPID	STD {
		pid_t getppid(void);
	}
40	AUE_LSTAT	COMPAT {
		int lstat(
		    _In_z_ const char *path,
		    _Out_ struct ostat *ub
		);
	}
41	AUE_DUP		STD {
		int dup(
		    u_int fd
		);
	}
42	AUE_PIPE	COMPAT10 {
		int pipe(void);
	}
43	AUE_GETEGID	STD {
		gid_t getegid(void);
	}
44	AUE_PROFILE	STD {
		int profil(
		    _Out_writes_bytes_(size) char *samples,
		    size_t size,
		    size_t offset,
		    u_int scale
		);
	}
45	AUE_KTRACE	STD {
		int ktrace(
		    _In_z_ const char *fname,
		    int ops,
		    int facs,
		    int pid
		);
	}
46	AUE_SIGACTION	COMPAT {
		int sigaction(
		    int signum,
		    _In_opt_ struct osigaction *nsa,
		    _Out_opt_ struct osigaction *osa
		);
	}
47	AUE_GETGID	STD {
		gid_t getgid(void);
	}
48	AUE_SIGPROCMASK	COMPAT {
		int sigprocmask(
		    int how,
		    osigset_t mask
		);
	}
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it, and we return the old mask as the
; (int) return value.
49	AUE_GETLOGIN	STD {
		int getlogin(
		    _Out_writes_z_(namelen) char *namebuf,
		    u_int namelen
		);
	}
50	AUE_SETLOGIN	STD {
		int setlogin(
		    _In_z_ const char *namebuf
		);
	}
51	AUE_ACCT	STD {
		int acct(
		    _In_z_ const char *path
		);
	}
52	AUE_SIGPENDING	COMPAT {
		int sigpending(void);
	}
53	AUE_SIGALTSTACK	STD {
		int sigaltstack(
		    _In_opt_ stack_t *ss,
		    _Out_opt_ stack_t *oss
		);
	}
54	AUE_IOCTL	STD {
		int ioctl(
		    int fd,
		    u_long com,
		    _Inout_opt_ char *data
		);
	}
55	AUE_REBOOT	STD {
		int reboot(
		    int opt
		);
	}
56	AUE_REVOKE	STD {
		int revoke(
		    _In_z_ const char *path
		);
	}
57	AUE_SYMLINK	STD {
		int symlink(
		    _In_z_ const char *path,
		    _In_z_ const char *link
		);
	}
58	AUE_READLINK	STD {
		ssize_t readlink(
		    _In_z_ const char *path,
		    _Out_writes_z_(count) char *buf,
		    size_t count
		);
	}
59	AUE_EXECVE	STD {
		int execve(
		    _In_z_ const char *fname,
		    _In_z_ char **argv,
		    _In_z_ char **envv
		);
	}
60	AUE_UMASK	STD {
		int umask(
		    mode_t newmask
		);
	}
61	AUE_CHROOT	STD {
		int chroot(
		    _In_z_ const char *path
		);
	}
62	AUE_FSTAT	COMPAT {
		int fstat(
		    int fd,
		    _Out_ struct ostat *sb
		);
	}
63	AUE_NULL	COMPAT {
		int getkerninfo(
		    int op,
		    _Out_writes_bytes_opt(
		    *size) char *where,
		    _Inout_opt_ size_t *size,
		    int arg
		);
	}
64	AUE_NULL	COMPAT {
		int getpagesize(void);
	}
65	AUE_MSYNC	STD {
		int msync(
		    _In_ void *addr,
		    size_t len,
		    int flags
		);
	}
66	AUE_VFORK	STD {
		int vfork(void);
	}
67	AUE_NULL	OBSOL	vread
68	AUE_NULL	OBSOL	vwrite
69	AUE_SBRK	STD {
		int sbrk(
		    int incr
		);
	}
70	AUE_SSTK	STD {
		int sstk(
		    int incr
		);
	}
71	AUE_MMAP	COMPAT {
		void *mmap(
		    _In_ void *addr,
		    int len,
		    int prot,
		    int flags,
		    int fd,
		    long pos
		);
	}
72	AUE_O_VADVISE	COMPAT11 {
		int vadvise(
		    int anom
		);
	}
73	AUE_MUNMAP	STD {
		int munmap(
		    _In_ void *addr,
		    size_t len
		);
	}
74	AUE_MPROTECT	STD {
		int mprotect(
		    _In_ void *addr,
		    size_t len,
		    int prot
		);
	}
75	AUE_MADVISE	STD {
		int madvise(
		    _In_ void *addr,
		    size_t len,
		    int behav
		);
	}
76	AUE_NULL	OBSOL	vhangup
77	AUE_NULL	OBSOL	vlimit
78	AUE_MINCORE	STD {
		int mincore(
		    _In_ const void *addr,
		    size_t len,
		    _Out_writes_bytes_(len/PAGE_SIZE) char *vec
		);
	}
79	AUE_GETGROUPS	STD {
		int getgroups(
		    u_int gidsetsize,
		    _Out_writes_opt_(gidsetsize) gid_t *gidset
		);
	}
80	AUE_SETGROUPS	STD {
		int setgroups(
		    u_int gidsetsize,
		    _In_reads_(gidsetsize) gid_t *gidset
		);
	}
81	AUE_GETPGRP	STD {
		int getpgrp(void);
	}
82	AUE_SETPGRP	STD {
		int setpgid(
		    int pid,
		    int pgid
		);
	}
83	AUE_SETITIMER	STD {
		int setitimer(
		    u_int which,
		    _In_ struct itimerval *itv,
		    _Out_opt_ struct itimerval *oitv
		);
	}
84	AUE_WAIT4	COMPAT {
		int wait(void);
	}
85	AUE_SWAPON	STD {
		int swapon(
		    _In_z_ const char *name
		);
	}
86	AUE_GETITIMER	STD {
		int getitimer(
		    u_int which,
		    _Out_ struct itimerval *itv
		);
	}
87	AUE_SYSCTL	COMPAT {
		int gethostname(
		    _Out_writes_z_(len) char *hostname,
		    u_int len
		);
	}
88	AUE_SYSCTL	COMPAT {
		int sethostname(
		    _In_reads_z_(len) char *hostname,
		    u_int len
		);
	}
89	AUE_GETDTABLESIZE	STD {
		int getdtablesize(void);
	}
90	AUE_DUP2	STD {
		int dup2(
		    u_int from,
		    u_int to
		);
	}
91	AUE_NULL	UNIMPL	getdopt
92	AUE_FCNTL	STD {
		int fcntl(
		    int fd,
		    int cmd,
		    long arg
		);
	}
; XXX should be { int fcntl(int fd, int cmd, ...); }
; but we're not ready for varargs.
93	AUE_SELECT	STD {
		int select(
		    int nd,
		    _Inout_opt_ fd_set *in,
		    _Inout_opt_ fd_set *ou,
		    _Inout_opt_ fd_set *ex,
		    _In_opt_ struct timeval *tv
		);
	}
94	AUE_NULL	UNIMPL	setdopt
95	AUE_FSYNC	STD {
		int fsync(
		    int fd
		);
	}
96	AUE_SETPRIORITY	STD {
		int setpriority(
		    int which,
		    int who,
		    int prio
		);
	}
97	AUE_SOCKET	STD {
		int socket(
		    int domain,
		    int type,
		    int protocol
		);
	}
98	AUE_CONNECT	STD {
		int connect(
		    int s,
		    _In_reads_bytes_(namelen) const struct sockaddr *name,
		    int namelen
		);
	}
99	AUE_ACCEPT	COMPAT {
		int accept(
		    int s,
		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
		    int *anamelen
		);
	}
100	AUE_GETPRIORITY	STD {
		int getpriority(
		    int which,
		    int who
		);
	}
101	AUE_SEND	COMPAT {
		int send(
		    int s,
		    _In_reads_bytes_(len) const void *buf,
		    int len,
		    int flags
		);
	}
102	AUE_RECV	COMPAT {
		int recv(
		    int s,
		    _Out_writes_bytes_(len) void *buf,
		    int len,
		    int flags
		);
	}
103	AUE_SIGRETURN	COMPAT {
		int sigreturn(
		    _In_ struct osigcontext *sigcntxp
		);
	}
104	AUE_BIND	STD {
		int bind(
		    int s,
		    _In_reads_bytes_(namelen) const struct sockaddr *name,
		    int namelen
		);
	}
105	AUE_SETSOCKOPT	STD {
		int setsockopt(
		    int s,
		    int level,
		    int name,
		    _In_reads_bytes_opt_(valsize) const void *val,
		    int valsize
		);
	}
106	AUE_LISTEN	STD {
		int listen(
		    int s,
		    int backlog
		);
	}
107	AUE_NULL	OBSOL	vtimes
108	AUE_NULL	COMPAT {
		int sigvec(
		    int signum,
		    _In_opt_ struct sigvec *nsv,
		    _Out_opt_ struct sigvec *osv
		);
	}
109	AUE_NULL	COMPAT {
		int sigblock(
		    int mask
		);
	}
110	AUE_NULL	COMPAT {
		int sigsetmask(
		    int mask
		);
	}
111	AUE_NULL	COMPAT {
		int sigsuspend(
		    osigset_t mask
		);
	}
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it.
112	AUE_NULL	COMPAT {
		int sigstack(
		    _In_opt_ struct sigstack *nss,
		    _Out_opt_ struct sigstack *oss
		);
	}
113	AUE_RECVMSG	COMPAT {
		int recvmsg(
		    int s,
		    _Inout_ struct omsghdr *msg,
		    int flags
		);
	}
114	AUE_SENDMSG	COMPAT {
		int sendmsg(
		    int s,
		    _In_ const void *msg,
		    int flags
		);
	}
115	AUE_NULL	OBSOL	vtrace
116	AUE_GETTIMEOFDAY	STD {
		int gettimeofday(
		    _Out_ struct timeval *tp,
		    _Out_opt_ struct timezone *tzp
		);
	}
117	AUE_GETRUSAGE	STD {
		int getrusage(
		    int who,
		    _Out_ struct rusage *rusage
		);
	}
118	AUE_GETSOCKOPT	STD {
		int getsockopt(
		    int s,
		    int level,
		    int name,
		    _Out_writes_bytes_opt_(*avalsize) void *val,
		    _Inout_  int *avalsize
		);
	}
119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
120	AUE_READV	STD {
		int readv(
		    int fd,
		    _Inout_updates_(iovcnt) struct iovec *iovp,
		    u_int iovcnt
		);
	}
121	AUE_WRITEV	STD {
		int writev(
		    int fd,
		    _In_reads_opt_(iovcnt) struct iovec *iovp,
		    u_int iovcnt
		);
	}
122	AUE_SETTIMEOFDAY	STD {
		int settimeofday(
		    _In_ struct timeval *tv,
		    _In_opt_ struct timezone *tzp
		);
	}
123	AUE_FCHOWN	STD {
		int fchown(
		    int fd,
		    int uid,
		    int gid
		);
	}
124	AUE_FCHMOD	STD {
		int fchmod(
		    int fd,
		    mode_t mode
		);
	}
125	AUE_RECVFROM	COMPAT|NOARGS {
		int recvfrom(
		    int s,
		    _Out_writes_(len) void *buf,
		    size_t len,
		    int flags,
		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
		    _Inout_ int *fromlenaddr
		);
	} recvfrom recvfrom_args int
126	AUE_SETREUID	STD {
		int setreuid(
		    int ruid,
		    int euid
		);
	}
127	AUE_SETREGID	STD {
		int setregid(
		    int rgid,
		    int egid
		);
	}
128	AUE_RENAME	STD {
		int rename(
		    _In_z_ const char *from,
		    _In_z_ const char *to
		);
	}
129	AUE_TRUNCATE	COMPAT {
		int truncate(
		    _In_z_ const char *path,
		    long length
		);
	}
130	AUE_FTRUNCATE	COMPAT {
		int ftruncate(
		    int fd,
		    long length
		);
	}
131	AUE_FLOCK	STD {
		int flock(
		    int fd,
		    int how
		);
	}
132	AUE_MKFIFO	STD {
		int mkfifo(
		    _In_z_ const char *path,
		    mode_t mode
		);
	}
133	AUE_SENDTO	STD {
		int sendto(
		    int s,
		    _In_reads_bytes_(len) const void *buf,
		    size_t len,
		    int flags,
		    _In_reads_bytes_opt_(tolen) const struct sockaddr *to,
		    int tolen
		);
	}
134	AUE_SHUTDOWN	STD {
		int shutdown(
		    int s,
		    int how
		);
	}
135	AUE_SOCKETPAIR	STD {
		int socketpair(
		    int domain,
		    int type,
		    int protocol,
		    _Out_writes_(2) int *rsv
		);
	}
136	AUE_MKDIR	STD {
		int mkdir(
		    _In_z_ const char *path,
		    mode_t mode
		);
	}
137	AUE_RMDIR	STD {
		int rmdir(
		    _In_z_ const char *path
		);
	}
138	AUE_UTIMES	STD {
		int utimes(
		    _In_z_ const char *path,
		    _In_ struct timeval *tptr
		);
	}
139	AUE_NULL	OBSOL	4.2 sigreturn
140	AUE_ADJTIME	STD {
		int adjtime(
		    _In_ struct timeval *delta,
		    _Out_opt_ struct timeval *olddelta
		);
	}
141	AUE_GETPEERNAME	COMPAT {
		int getpeername(
		    int fdes,
		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
		    _Inout_opt_ int *alen
		);
	}
142	AUE_SYSCTL	COMPAT {
		long gethostid(void);
	}
143	AUE_SYSCTL	COMPAT {
		int sethostid(
		    long hostid
		);
	}
144	AUE_GETRLIMIT	COMPAT {
		int getrlimit(
		    u_int which,
		    _Out_ struct orlimit *rlp
		);
	}
145	AUE_SETRLIMIT	COMPAT {
		int setrlimit(
		    u_int which,
		    _Out_ struct orlimit *rlp
		);
	}
146	AUE_KILLPG	COMPAT {
		int killpg(
		    int pgid,
		    int signum
		);
	}
147	AUE_SETSID	STD {
		int setsid(void);
	}
148	AUE_QUOTACTL	STD {
		int quotactl(
		    _In_z_ const char *path,
		    int cmd,
		    int uid,
		    _In_ void *arg
		);
	}
149	AUE_O_QUOTA	COMPAT {
		int quota(void);
	}
150	AUE_GETSOCKNAME	COMPAT|NOARGS {
		int getsockname(
		    int fdec,
		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
		    _Inout_ int *alen
		);
	} getsockname getsockname_args int

; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls.  (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD.
151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
; 154 is initialised by the NLM code, if present.
154	AUE_NULL	NOSTD {
		int nlm_syscall(
		    int debug_level,
		    int grace_period,
		    int addr_count,
		    _In_reads_(addr_count) char **addrs
		);
	}
; 155 is initialized by the NFS code, if present.
155	AUE_NFS_SVC	NOSTD {
		int nfssvc(
		    int flag,
		    _In_ void *argp
		);
	}
156	AUE_GETDIRENTRIES	COMPAT {
		int getdirentries(
		    int fd,
		    _Out_writes_bytes_(count) char *buf,
		    u_int count,
		    _Out_ long *basep
		);
	}
157	AUE_STATFS	COMPAT4 {
		int statfs(
		    _In_z_ const char *path,
		    _Out_ struct ostatfs *buf
		);
	}
158	AUE_FSTATFS	COMPAT4 {
		int fstatfs(
		    int fd,
		    _Out_ struct ostatfs *buf
		);
	}
159	AUE_NULL	UNIMPL	nosys
160	AUE_LGETFH	STD {
		int lgetfh(
		    _In_z_ const char *fname,
		    _Out_ struct fhandle *fhp
		);
	}
161	AUE_NFS_GETFH	STD {
		int getfh(
		    _In_z_ const char *fname,
		    _Out_ struct fhandle *fhp
		);
	}
162	AUE_SYSCTL	COMPAT4 {
		int getdomainname(
		    _Out_writes_z_(len) char *domainname,
		    int len
		);
	}
163	AUE_SYSCTL	COMPAT4 {
		int setdomainname(
		    _In_reads_z_(len) char *domainname,
		    int len
		);
	}
164	AUE_NULL	COMPAT4 {
		int uname(
		    _Out_ struct utsname *name
		);
	}
165	AUE_SYSARCH	STD {
		int sysarch(
		    int op,
		    _In_z_ char *parms
		);
	}
166	AUE_RTPRIO	STD {
		int rtprio(
		    int function,
		    pid_t pid,
		    _Inout_ struct rtprio *rtp
		);
	}
167	AUE_NULL	UNIMPL	nosys
168	AUE_NULL	UNIMPL	nosys
169	AUE_SEMSYS	NOSTD {
		int semsys(
		    int which,
		    int a2,
		    int a3,
		    int a4,
		    int a5
		);
	}
; XXX should be { int semsys(int which, ...); }
170	AUE_MSGSYS	NOSTD {
		int msgsys(
		    int which,
		    int a2,
		    int a3,
		    int a4,
		    int a5,
		    int a6
		);
	}
; XXX should be { int msgsys(int which, ...); }
171	AUE_SHMSYS	NOSTD {
		int shmsys(
		    int which,
		    int a2,
		    int a3,
		    int a4
		);
	}
; XXX should be { int shmsys(int which, ...); }
172	AUE_NULL	UNIMPL	nosys
173	AUE_PREAD	COMPAT6 {
		ssize_t pread(
		    int fd,
		    _Out_writes_bytes_(nbyte) void *buf,
		    size_t nbyte,
		    int pad,
		    off_t offset
		);
	}
174	AUE_PWRITE	COMPAT6 {
		ssize_t pwrite(
		    int fd,
		    _In_reads_bytes_(nbyte) const void *buf,
		    size_t nbyte,
		    int pad,
		    off_t offset
		);
	}
175	AUE_SETFIB	STD {
		int setfib(
		    int fibnum
		);
	}
176	AUE_NTP_ADJTIME	STD {
		int ntp_adjtime(
		    _Inout_ struct timex *tp
		);
	}
177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
180	AUE_NULL	UNIMPL	nosys

; Syscalls 181-199 are used by/reserved for BSD
181	AUE_SETGID	STD {
		int setgid(
		    gid_t gid
		);
	}
182	AUE_SETEGID	STD {
		int setegid(
		    gid_t egid
		);
	}
183	AUE_SETEUID	STD {
		int seteuid(
		    uid_t euid
		);
	}
184	AUE_NULL	OBSOL	lfs_bmapv
185	AUE_NULL	OBSOL	lfs_markv
186	AUE_NULL	OBSOL	lfs_segclean
187	AUE_NULL	OBSOL	lfs_segwait
188	AUE_STAT	COMPAT11 {
		int stat(
		    _In_z_ const char *path,
		    _Out_ struct freebsd11_stat *ub
		);
	}
189	AUE_FSTAT	COMPAT11 {
		int fstat(
		    int fd,
		    _Out_ struct freebsd11_stat *sb
		);
	}
190	AUE_LSTAT	COMPAT11 {
		int lstat(
		    _In_z_ const char *path,
		    _Out_ struct freebsd11_stat *ub
		);
	}
191	AUE_PATHCONF	STD {
		int pathconf(
		    _In_z_ const char *path,
		    int name
		);
	}
192	AUE_FPATHCONF	STD {
		int fpathconf(
		    int fd,
		    int name
		);
	}
193	AUE_NULL	UNIMPL	nosys
194	AUE_GETRLIMIT	STD {
		int getrlimit(
		    u_int which,
		    _Out_ struct rlimit *rlp
		);
	} getrlimit __getrlimit_args int
195	AUE_SETRLIMIT	STD {
		int setrlimit(
		    u_int which,
		    _In_ struct rlimit *rlp
		);
	} setrlimit __setrlimit_args int
196	AUE_GETDIRENTRIES	COMPAT11 {
		int getdirentries(
		    int fd,
		    _Out_writes_bytes_(count) char *buf,
		    u_int count,
		    _Out_ long *basep
		);
	}
197	AUE_MMAP	COMPAT6 {
		void *mmap(
		    _In_ void *addr,
		    size_t len,
		    int prot,
		    int flags,
		    int fd,
		    int pad,
		    off_t pos
		);
	}
198	AUE_NULL	NOPROTO {
		int nosys(void);
	} __syscall __syscall_args int
199	AUE_LSEEK	COMPAT6 {
		off_t lseek(
		    int fd,
		    int pad,
		    off_t offset,
		    int whence
		);
	}
200	AUE_TRUNCATE	COMPAT6 {
		int truncate(
		    _In_z_ const char *path,
		    int pad,
		    off_t length
		);
	}
201	AUE_FTRUNCATE	COMPAT6 {
		int ftruncate(
		    int fd,
		    int pad,
		    off_t length
		);
	}
202	AUE_SYSCTL	STD {
		int __sysctl(
		    _In_reads_(namelen) int *name,
		    u_int namelen,
		    _Out_writes_bytes_opt_(*oldlenp) void *old,
		    _Inout_opt_ size_t *oldlenp,
		    _In_reads_bytes_opt_(newlen) const void *new,
		    size_t newlen
		);
	} __sysctl sysctl_args int
203	AUE_MLOCK	STD {
		int mlock(
		    _In_ const void *addr,
		    size_t len
		);
	}
204	AUE_MUNLOCK	STD {
		int munlock(
		    _In_ const void *addr,
		    size_t len
		);
	}
205	AUE_UNDELETE	STD {
		int undelete(
		    _In_z_ const char *path
		);
	}
206	AUE_FUTIMES	STD {
		int futimes(
		    int fd,
		    _In_reads_(2) struct timeval *tptr
		);
	}
207	AUE_GETPGID	STD {
		int getpgid(
		    pid_t pid
		);
	}
208	AUE_NULL	UNIMPL	nosys
209	AUE_POLL	STD {
		int poll(
		    _Inout_updates_(nfds) struct pollfd *fds,
		    u_int nfds,
		    int timeout
		);
	}
;
; The following are reserved for loadable syscalls
;
210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int

220	AUE_SEMCTL	COMPAT7|NOSTD {
		int __semctl(
		    int semid,
		    int semnum,
		    int cmd,
		    union semun_old *arg
		);
	}
221	AUE_SEMGET	NOSTD {
		int semget(
		    key_t key,
		    int nsems,
		    int semflg
		);
	}
222	AUE_SEMOP	NOSTD {
		int semop(
		    int semid,
		    _In_reads_(nsops) struct sembuf *sops,
		    size_t nsops
		);
	}
223	AUE_NULL	OBSOL	semconfig
224	AUE_MSGCTL	COMPAT7|NOSTD {
		int msgctl(
		    int msqid,
		    int cmd,
		    struct msqid_ds_old *buf
		);
	}
225	AUE_MSGGET	NOSTD {
		int msgget(
		    key_t key,
		    int msgflg
		);
	}
226	AUE_MSGSND	NOSTD {
		int msgsnd(
		    int msqid,
		    _In_reads_bytes_(msgsz) const void *msgp,
		    size_t msgsz,
		    int msgflg
		);
	}
227	AUE_MSGRCV	NOSTD {
		ssize_t msgrcv(
		    int msqid,
		    _Out_writes_bytes_(msgsz) void *msgp,
		    size_t msgsz,
		    long msgtyp,
		    int msgflg
		);
	}
228	AUE_SHMAT	NOSTD {
		void *shmat(
		    int shmid,
		    _In_ const void *shmaddr,
		    int shmflg
		);
	}
229	AUE_SHMCTL	COMPAT7|NOSTD {
		int shmctl(
		    int shmid,
		    int cmd,
		    struct shmid_ds_old *buf
		);
	}
230	AUE_SHMDT	NOSTD {
		int shmdt(
		    _In_ const void *shmaddr
		);
	}
231	AUE_SHMGET	NOSTD {
		int shmget(
		    key_t key,
		    size_t size,
		    int shmflg
		);
	}
232	AUE_NULL	STD {
		int clock_gettime(
		    clockid_t clock_id,
		    _Out_ struct timespec *tp
		);
	}
233	AUE_CLOCK_SETTIME	STD {
		int clock_settime(
		    clockid_t clock_id,
		    _In_ const struct timespec *tp
		);
	}
234	AUE_NULL	STD {
		int clock_getres(
		    clockid_t clock_id,
		    _Out_ struct timespec *tp
		);
	}
235	AUE_NULL	STD {
		int ktimer_create(
		    clockid_t clock_id,
		    _In_ struct sigevent *evp,
		    _Out_ int *timerid
		);
	}
236	AUE_NULL	STD {
		int ktimer_delete(
		    int timerid
		);
	}
237	AUE_NULL	STD {
		int ktimer_settime(
		    int timerid,
		    int flags,
		    _In_ const struct itimerspec *value,
		    _Out_opt_ struct itimerspec *ovalue
		);
	}
238	AUE_NULL	STD {
		int ktimer_gettime(
		    int timerid,
		    _Out_ struct itimerspec *value
		);
	}
239	AUE_NULL	STD {
		int ktimer_getoverrun(
		    int timerid
		);
	}
240	AUE_NULL	STD {
		int nanosleep(
		    _In_ const struct timespec *rqtp,
		    _Out_opt_ struct timespec *rmtp
		);
	}
241	AUE_NULL	STD {
		int ffclock_getcounter(
		    _Out_ ffcounter *ffcount
		);
	}
242	AUE_NULL	STD {
		int ffclock_setestimate(
		    _In_ struct ffclock_estimate *cest
		);
	}
243	AUE_NULL	STD {
		int ffclock_getestimate(
		    _Out_ struct ffclock_estimate *cest
		);
	}
244	AUE_NULL	STD {
		int clock_nanosleep(
		    clockid_t clock_id,
		    int flags,
		    _In_ const struct timespec *rqtp,
		    _Out_opt_ struct timespec *rmtp
		);
	}
245-246	AUE_NULL	UNIMPL	nosys
247	AUE_NULL	STD {
		int clock_getcpuclockid2(
		    id_t id,
		    int which,
		    _Out_ clockid_t *clock_id
		);
	}
248	AUE_NULL	STD {
		int ntp_gettime(
		    _Out_ struct ntptimeval *ntvp
		);
	}
249	AUE_NULL	UNIMPL	nosys
; syscall numbers initially used in OpenBSD
250	AUE_MINHERIT	STD {
		int minherit(
		    _In_ void *addr,
		    size_t len,
		    int inherit
		);
	}
251	AUE_RFORK	STD {
		int rfork(
		    int flags
		);
	}
252	AUE_POLL	OBSOL	openbsd_poll
253	AUE_ISSETUGID	STD {
		int issetugid(void);
	}
254	AUE_LCHOWN	STD {
		int lchown(
		    _In_z_ const char *path,
		    int uid,
		    int gid
		);
	}
255	AUE_AIO_READ	STD {
		int aio_read(
		    _Inout_ struct aiocb *aiocbp
		);
	}
256	AUE_AIO_WRITE	STD {
		int aio_write(
		    _Inout_ struct aiocb *aiocbp
		);
	}
257	AUE_LIO_LISTIO	STD {
		int lio_listio(
		    int mode,
		    _Inout_updates_(nent) struct aiocb * const *acb_list,
		    int nent,
		    _In_opt_ struct sigevent *sig
		);
	}
258-271	AUE_NULL	UNIMPL	nosys
272	AUE_O_GETDENTS	COMPAT11 {
		int getdents(
		    int fd,
		    _Out_writes_bytes_(count) char *buf,
		    size_t count
		);
	}
273	AUE_NULL	UNIMPL	nosys
274	AUE_LCHMOD	STD {
		int lchmod(
		    _In_z_ const char *path,
		    mode_t mode
		);
	}
275	AUE_NULL	OBSOL	netbsd_lchown
276	AUE_LUTIMES	STD {
		int lutimes(
		    _In_z_ const char *path,
		    _In_ struct timeval *tptr
		);
	}
277	AUE_NULL	OBSOL	netbsd_msync
278	AUE_STAT	COMPAT11 {
		int nstat(
		    _In_z_ const char *path,
		    _Out_ struct nstat *ub
		);
	}
279	AUE_FSTAT	COMPAT11 {
		int nfstat(
		    int fd,
		    _Out_ struct nstat *sb
		);
	}
280	AUE_LSTAT	COMPAT11 {
		int nlstat(
		    _In_z_ const char *path,
		    _Out_ struct nstat *ub
		);
	}
281-288	AUE_NULL	UNIMPL	nosys
289	AUE_PREADV	STD {
		ssize_t preadv(
		    int fd,
		    _In_reads_(iovcnt) struct iovec *iovp,
		    u_int iovcnt,
		    off_t offset
		);
	}
290	AUE_PWRITEV	STD {
		ssize_t pwritev(
		    int fd,
		    _In_reads_(iovcnt) struct iovec *iovp,
		    u_int iovcnt,
		    off_t offset
		);
	}
291-296	AUE_NULL	UNIMPL	nosys
297	AUE_FHSTATFS	COMPAT4 {
		int fhstatfs(
		    _In_ const struct fhandle *u_fhp,
		    _Out_ struct ostatfs *buf
		);
	}
298	AUE_FHOPEN	STD {
		int fhopen(
		    _In_ const struct fhandle *u_fhp,
		    int flags
		);
	}
299	AUE_FHSTAT	COMPAT11 {
		int fhstat(
		    _In_ const struct fhandle *u_fhp,
		    _Out_ struct freebsd11_stat *sb
		);
	}
300	AUE_NULL	STD {
		int modnext(
		    int modid
		);
	}
301	AUE_NULL	STD {
		int modstat(
		    int modid,
		    _Out_ struct module_stat *stat
		);
	}
302	AUE_NULL	STD {
		int modfnext(
		    int modid
		);
	}
303	AUE_NULL	STD {
		int modfind(
		    _In_z_ const char *name
		);
	}
304	AUE_MODLOAD	STD {
		int kldload(
		    _In_z_ const char *file
		);
	}
305	AUE_MODUNLOAD	STD {
		int kldunload(
		    int fileid
		);
	}
306	AUE_NULL	STD {
		int kldfind(
		    _In_z_ const char *file
		);
	}
307	AUE_NULL	STD {
		int kldnext(
		    int fileid
		);
	}
308	AUE_NULL	STD {
		int kldstat(
		    int fileid,
		    _Out_ struct kld_file_stat *stat
		);
	}
309	AUE_NULL	STD {
		int kldfirstmod(
		    int fileid
		);
	}
310	AUE_GETSID	STD {
		int getsid(
		    pid_t pid
		);
	}
311	AUE_SETRESUID	STD {
		int setresuid(
		    uid_t ruid,
		    uid_t euid,
		    uid_t suid
		);
	}
312	AUE_SETRESGID	STD {
		int setresgid(
		    gid_t rgid,
		    gid_t egid,
		    gid_t sgid
		);
	}
313	AUE_NULL	OBSOL	signanosleep
314	AUE_AIO_RETURN	STD {
		ssize_t aio_return(
		    _Inout_ struct aiocb *aiocbp
		);
	}
315	AUE_AIO_SUSPEND	STD {
		int aio_suspend(
		    _Inout_updates_(nent) struct aiocb * const * aiocbp,
		    int nent,
		    _In_opt_ const struct timespec *timeout
		);
	}
316	AUE_AIO_CANCEL	STD {
		int aio_cancel(
		    int fd,
		    _In_opt_ struct aiocb *aiocbp
		);
	}
317	AUE_AIO_ERROR	STD {
		int aio_error(
		    _In_ struct aiocb *aiocbp
		);
	}
318	AUE_AIO_READ	COMPAT6 {
		int aio_read(
		    _Inout_  struct oaiocb *aiocbp
		);
	}
319	AUE_AIO_WRITE	COMPAT6 {
		int aio_write(
		    _Inout_ struct oaiocb *aiocbp
		);
	}
320	AUE_LIO_LISTIO	COMPAT6 {
		int lio_listio(
		    int mode,
		    _Inout_updates_(nent) struct oaiocb * const *acb_list,
		    int nent,
		    _In_opt_ struct osigevent *sig
		);
	}
321	AUE_NULL	STD {
		int yield(void);
	}
322	AUE_NULL	OBSOL	thr_sleep
323	AUE_NULL	OBSOL	thr_wakeup
324	AUE_MLOCKALL	STD {
		int mlockall(
		    int how
		);
	}
325	AUE_MUNLOCKALL	STD {
		int munlockall(void); }
326	AUE_GETCWD	STD {
		int __getcwd(
		    _Out_writes_z_(buflen) char *buf,
		    size_t buflen
		);
	}
327	AUE_NULL	STD {
		int sched_setparam(
		    pid_t pid,
		    _In_ const struct sched_param *param
		);
	}
328	AUE_NULL	STD {
		int sched_getparam(
		    pid_t pid,
		    _Out_ struct sched_param *param
		);
	}
329	AUE_NULL	STD {
		int sched_setscheduler(
		    pid_t pid,
		    int policy,
		    _In_ const struct sched_param *param
		);
	}
330	AUE_NULL	STD {
		int sched_getscheduler(
		    pid_t pid
		);
	}
331	AUE_NULL	STD {
		int sched_yield(void);
	}
332	AUE_NULL	STD {
		int sched_get_priority_max(
		    int policy
		);
	}
333	AUE_NULL	STD {
		int sched_get_priority_min(
		    int policy
		);
	}
334	AUE_NULL	STD {
		int sched_rr_get_interval(
		    pid_t pid,
		    _Out_ struct timespec *interval
		);
	}
335	AUE_NULL	STD {
		int utrace(
		   _In_reads_bytes_(len) const void *addr,
		    size_t len
		);
	}
336	AUE_SENDFILE	COMPAT4 {
		int sendfile(
		    int fd,
		    int s,
		    off_t offset,
		    size_t nbytes,
		    _In_opt_ struct sf_hdtr *hdtr,
		    _Out_opt_ off_t *sbytes,
		    int flags
		);
	}
337	AUE_NULL	STD {
		int kldsym(
		    int fileid,
		    int cmd,
		    _In_ void *data
		);
	}
338	AUE_JAIL	STD {
		int jail(
		    _In_ struct jail *jail
		);
	}
339	AUE_NULL	NOSTD|NOTSTATIC {
		int nnpfs_syscall(
		    int operation,
		    char *a_pathP,
		    int a_opcode,
		    void *a_paramsP,
		    int a_followSymlinks
		);
	}
340	AUE_SIGPROCMASK	STD {
		int sigprocmask(
		    int how,
		    _In_opt_ const sigset_t *set,
		    _Out_opt_ sigset_t *oset
		);
	}
341	AUE_SIGSUSPEND	STD {
		int sigsuspend(
		    _In_ const sigset_t *sigmask
		);
	}
342	AUE_SIGACTION	COMPAT4 {
		int sigaction(
		    int sig,
		    _In_opt_ const struct sigaction *act,
		    _Out_opt_ struct sigaction *oact
		);
	}
343	AUE_SIGPENDING	STD {
		int sigpending(
		    _In_ sigset_t *set
		);
	}
344	AUE_SIGRETURN	COMPAT4 {
		int sigreturn(
		    _In_ const struct ucontext4 *sigcntxp
		);
	}
345	AUE_SIGWAIT	STD {
		int sigtimedwait(
		    _In_ const sigset_t *set,
		    _Out_opt_ siginfo_t *info,
		    _In_opt_ const struct timespec *timeout
		);
	}
346	AUE_NULL	STD {
		int sigwaitinfo(
		    _In_ const sigset_t *set,
		    _Out_opt_ siginfo_t *info
		);
	}
347	AUE_ACL_GET_FILE	STD {
		int __acl_get_file(
		    _In_z_ const char *path,
		    acl_type_t type,
		    _Out_ struct acl *aclp
		);
	}
348	AUE_ACL_SET_FILE	STD {
		int __acl_set_file(
		    _In_z_ const char *path,
		    acl_type_t type,
		    _In_ struct acl *aclp
		);
	}
349	AUE_ACL_GET_FD	STD {
		int __acl_get_fd(
		    int filedes,
		    acl_type_t type,
		    _Out_ struct acl *aclp
		);
	}
350	AUE_ACL_SET_FD	STD {
		int __acl_set_fd(
		    int filedes,
		    acl_type_t type,
		    _In_ struct acl *aclp
		);
	}
351	AUE_ACL_DELETE_FILE	STD {
		int __acl_delete_file(
		    _In_z_ const char *path,
		    acl_type_t type
		);
	}
352	AUE_ACL_DELETE_FD	STD {
		int __acl_delete_fd(
		    int filedes,
		    acl_type_t type
		);
	}
353	AUE_ACL_CHECK_FILE	STD {
		int __acl_aclcheck_file(
		    _In_z_ const char *path,
		    acl_type_t type,
		    _In_ struct acl *aclp
		);
	}
354	AUE_ACL_CHECK_FD	STD {
		int __acl_aclcheck_fd(
		    int filedes,
		    acl_type_t type,
		    _In_ struct acl *aclp
		);
	}
355	AUE_EXTATTRCTL	STD {
		int extattrctl(
		    _In_z_ const char *path,
		    int cmd,
		    _In_z_opt_ const char *filename,
		    int attrnamespace,
		    _In_z_ const char *attrname
		);
	}
356	AUE_EXTATTR_SET_FILE	STD {
		ssize_t extattr_set_file(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _In_z_ const char *attrname,
		    _In_reads_bytes_(nbytes) void *data,
		    size_t nbytes
		);
	}
357	AUE_EXTATTR_GET_FILE	STD {
		ssize_t extattr_get_file(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _In_z_ const char *attrname,
		    _Out_writes_bytes_(nbytes) void *data,
		    size_t nbytes
		);
	}
358	AUE_EXTATTR_DELETE_FILE	STD {
		int extattr_delete_file(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _In_z_ const char *attrname
		);
	}
359	AUE_AIO_WAITCOMPLETE	STD {
		ssize_t aio_waitcomplete(
		    _Outptr_result_maybenull_ struct aiocb **aiocbp,
		    _In_opt_ struct timespec *timeout
		);
	}
360	AUE_GETRESUID	STD {
		int getresuid(
		    _Out_opt_ uid_t *ruid,
		    _Out_opt_ uid_t *euid,
		    _Out_opt_ uid_t *suid
		);
	}
361	AUE_GETRESGID	STD {
		int getresgid(
		    _Out_opt_ gid_t *rgid,
		    _Out_opt_ gid_t *egid,
		    _Out_opt_ gid_t *sgid
		);
	}
362	AUE_KQUEUE	STD {
		int kqueue(void);
	}
363	AUE_KEVENT	COMPAT11 {
		int kevent(
		    int fd,
		    _In_reads_opt_(nchanges) struct kevent_freebsd11 *changelist,
		    int nchanges,
		    _Out_writes_opt_(nevents) struct kevent_freebsd11 *eventlist,
		    int nevents,
		    _In_opt_ const struct timespec *timeout
		);
	}
364	AUE_NULL	OBSOL	__cap_get_proc
365	AUE_NULL	OBSOL	__cap_set_proc
366	AUE_NULL	OBSOL	__cap_get_fd
367	AUE_NULL	OBSOL	__cap_get_file
368	AUE_NULL	OBSOL	__cap_set_fd
369	AUE_NULL	OBSOL	__cap_set_file
370	AUE_NULL	UNIMPL	nosys
371	AUE_EXTATTR_SET_FD	STD {
		ssize_t extattr_set_fd(
		    int fd,
		    int attrnamespace,
		    _In_z_ const char *attrname,
		    _In_reads_bytes_(nbytes) void *data,
		    size_t nbytes
		);
	}
372	AUE_EXTATTR_GET_FD	STD {
		ssize_t extattr_get_fd(
		    int fd,
		    int attrnamespace,
		    _In_z_ const char *attrname,
		    _Out_writes_bytes_(nbytes) void *data,
		    size_t nbytes
		);
	}
373	AUE_EXTATTR_DELETE_FD	STD {
		int extattr_delete_fd(
		    int fd,
		    int attrnamespace,
		    _In_z_ const char *attrname
		);
	}
374	AUE_SETUGID	STD {
		int __setugid(
		    int flag
		);
	}
375	AUE_NULL	OBSOL	nfsclnt
376	AUE_EACCESS	STD {
		int eaccess(
		    _In_z_ const char *path,
		    int amode
		);
	}
377	AUE_NULL	NOSTD|NOTSTATIC {
		int afs3_syscall(
		    long syscall,
		    long parm1,
		    long parm2,
		    long parm3,
		    long parm4,
		    long parm5,
		    long parm6
		);
	}
378	AUE_NMOUNT	STD {
		int nmount(
		    _In_reads_(iovcnt) struct iovec *iovp,
		    unsigned int iovcnt,
		    int flags
		);
	}
379	AUE_NULL	OBSOL	kse_exit
380	AUE_NULL	OBSOL	kse_wakeup
381	AUE_NULL	OBSOL	kse_create
382	AUE_NULL	OBSOL	kse_thr_interrupt
383	AUE_NULL	OBSOL	kse_release
384	AUE_NULL	STD {
		int __mac_get_proc(
		    _In_ struct mac *mac_p
		);
	}
385	AUE_NULL	STD {
		int __mac_set_proc(
		    _In_ struct mac *mac_p
		);
	}
386	AUE_NULL	STD {
		int __mac_get_fd(
		    int fd,
		    _In_ struct mac *mac_p
		);
	}
387	AUE_NULL	STD {
		int __mac_get_file(
		    _In_z_ const char *path_p,
		    _In_ struct mac *mac_p
		);
	}
388	AUE_NULL	STD {
		int __mac_set_fd(
		    int fd,
		    _In_ struct mac *mac_p
		);
	}
389	AUE_NULL	STD {
		int __mac_set_file(
		    _In_z_ const char *path_p,
		    _In_ struct mac *mac_p
		);
	}
390	AUE_NULL	STD {
		int kenv(
		    int what,
		    _In_z_opt_ const char *name,
		    _Inout_updates_opt_(len) char *value,
		    int len
		);
	}
391	AUE_LCHFLAGS	STD {
		int lchflags(
		    _In_z_ const char *path,
		    u_long flags
		);
	}
392	AUE_NULL	STD {
		int uuidgen(
		    _Out_writes_(count) struct uuid *store,
		    int count
		);
	}
393	AUE_SENDFILE	STD {
		int sendfile(
		    int fd,
		    int s,
		    off_t offset,
		    size_t nbytes,
		    _In_opt_ struct sf_hdtr *hdtr,
		    _Out_opt_ off_t *sbytes,
		    int flags
		);
	}
394	AUE_NULL	STD {
		int mac_syscall(
		    _In_z_ const char *policy,
		    int call,
		    _In_opt_ void *arg
		);
	}
395	AUE_GETFSSTAT	COMPAT11 {
		int getfsstat(
		    _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf,
		    long bufsize,
		    int mode
		);
	}
396	AUE_STATFS	COMPAT11 {
		int statfs(
		    _In_z_ const char *path,
		    _Out_ struct freebsd11_statfs *buf
		);
	}
397	AUE_FSTATFS	COMPAT11 {
		int fstatfs(
		    int fd,
		    _Out_ struct freebsd11_statfs *buf
		);
	}
398	AUE_FHSTATFS	COMPAT11 {
		int fhstatfs(
		    _In_ const struct fhandle *u_fhp,
		    _Out_ struct freebsd11_statfs *buf
		);
	}
399	AUE_NULL	UNIMPL	nosys
400	AUE_SEMCLOSE	NOSTD {
		int ksem_close(
		    semid_t id
		);
	}
401	AUE_SEMPOST	NOSTD {
		int ksem_post(
		    semid_t id
		);
	}
402	AUE_SEMWAIT	NOSTD {
		int ksem_wait(
		    semid_t id
		);
	}
403	AUE_SEMTRYWAIT	NOSTD {
		int ksem_trywait(
		    semid_t id
		);
	}
404	AUE_SEMINIT	NOSTD {
		int ksem_init(
		    _Out_ semid_t *idp,
		    unsigned int value
		);
	}
405	AUE_SEMOPEN	NOSTD {
		int ksem_open(
		    _Out_ semid_t *idp,
		    _In_z_ const char *name,
		    int oflag,
		    mode_t mode,
		    unsigned int value
		);
	}
406	AUE_SEMUNLINK	NOSTD {
		int ksem_unlink(
		    _In_z_ const char *name
		);
	}
407	AUE_SEMGETVALUE	NOSTD {
		int ksem_getvalue(
		    semid_t id,
		    _Out_ int *val
		);
	}
408	AUE_SEMDESTROY	NOSTD {
		int ksem_destroy(
		    semid_t id
		);
	}
409	AUE_NULL	STD {
		int __mac_get_pid(
		    pid_t pid,
		    _In_ struct mac *mac_p
		);
	}
410	AUE_NULL	STD {
		int __mac_get_link(
		    _In_z_ const char *path_p,
		    _In_ struct mac *mac_p
		);
	}
411	AUE_NULL	STD {
		int __mac_set_link(
		    _In_z_ const char *path_p,
		    _In_ struct mac *mac_p
		);
	}
412	AUE_EXTATTR_SET_LINK	STD {
		ssize_t extattr_set_link(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _In_z_ const char *attrname,
		    _In_reads_bytes_(nbytes) void *data,
		    size_t nbytes
		);
	}
413	AUE_EXTATTR_GET_LINK	STD {
		ssize_t extattr_get_link(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _In_z_ const char *attrname,
		    _Out_writes_bytes_(nbytes) void *data,
		    size_t nbytes
		);
	}
414	AUE_EXTATTR_DELETE_LINK	STD {
		int extattr_delete_link(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _In_z_ const char *attrname
		);
	}
415	AUE_NULL	STD {
		int __mac_execve(
		    _In_z_ const char *fname,
		    _In_ char **argv,
		    _In_ char **envv,
		    _In_ struct mac *mac_p
		);
	}
416	AUE_SIGACTION	STD {
		int sigaction(
		    int sig,
		    _In_opt_ const struct sigaction *act,
		    _Out_opt_ struct sigaction *oact
		);
	}
417	AUE_SIGRETURN	STD {
		int sigreturn(
		    _In_ const struct __ucontext *sigcntxp
		);
	}
418	AUE_NULL	UNIMPL	__xstat
419	AUE_NULL	UNIMPL	__xfstat
420	AUE_NULL	UNIMPL	__xlstat
421	AUE_NULL	STD {
		int getcontext(
		    _Out_ struct __ucontext *ucp
		);
	}
422	AUE_NULL	STD {
		int setcontext(
		    _In_ const struct __ucontext *ucp
		);
	}
423	AUE_NULL	STD {
		int swapcontext(
		    _Out_ struct __ucontext *oucp,
		    _In_ const struct __ucontext *ucp
		);
	}
424	AUE_SWAPOFF	STD {
		int swapoff(
		    _In_z_ const char *name
		);
	}
425	AUE_ACL_GET_LINK	STD {
		int __acl_get_link(
		    _In_z_ const char *path,
		    acl_type_t type,
		    _Out_ struct acl *aclp
		);
	}
426	AUE_ACL_SET_LINK	STD {
		int __acl_set_link(
		    _In_z_ const char *path,
		    acl_type_t type,
		    _In_ struct acl *aclp
		);
	}
427	AUE_ACL_DELETE_LINK	STD {
		int __acl_delete_link(
		    _In_z_ const char *path,
		    acl_type_t type
		);
	}
428	AUE_ACL_CHECK_LINK	STD {
		int __acl_aclcheck_link(
		    _In_z_ const char *path,
		    acl_type_t type,
		    _In_ struct acl *aclp
		);
	}
429	AUE_SIGWAIT	STD {
		int sigwait(
		    _In_ const sigset_t *set,
		    _Out_ int *sig
		);
	}
430	AUE_THR_CREATE	STD {
		int thr_create(
		    _In_ ucontext_t *ctx,
		    _Out_ long *id,
		    int flags
		);
	}
431	AUE_THR_EXIT	STD {
		void thr_exit(
		    _Out_opt_ long *state
		);
	}
432	AUE_NULL	STD {
		int thr_self(
		    _Out_ long *id
		);
	}
433	AUE_THR_KILL	STD {
		int thr_kill(
		    long id,
		    int sig
		);
	}
434-435	AUE_NULL	UNIMPL	nosys
436	AUE_JAIL_ATTACH	STD {
		int jail_attach(
		    int jid
		);
	}
437	AUE_EXTATTR_LIST_FD	STD {
		ssize_t extattr_list_fd(
		    int fd,
		    int attrnamespace,
		    _Out_writes_bytes_opt_(nbytes) void *data,
		    size_t nbytes
		);
	}
438	AUE_EXTATTR_LIST_FILE	STD {
		ssize_t extattr_list_file(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _Out_writes_bytes_opt_(nbytes) void *data,
		    size_t nbytes
		);
	}
439	AUE_EXTATTR_LIST_LINK	STD {
		ssize_t extattr_list_link(
		    _In_z_ const char *path,
		    int attrnamespace,
		    _Out_writes_bytes_opt_(nbytes)
		    void *data,
		    size_t nbytes
		);
	}
440	AUE_NULL	OBSOL	kse_switchin
441	AUE_SEMWAIT	NOSTD {
		int ksem_timedwait(
		    semid_t id,
		    _In_opt_ const struct timespec *abstime
		);
	}
442	AUE_NULL	STD {
		int thr_suspend(
		    _In_opt_ const struct timespec *timeout
		);
	}
443	AUE_NULL	STD {
		int thr_wake(
		    long id
		);
	}
444	AUE_MODUNLOAD	STD {
		int kldunloadf(
		    int fileid,
		    int flags
		);
	}
445	AUE_AUDIT	STD {
		int audit(
		    _In_reads_bytes_(length) const void *record,
		    u_int length
		);
	}
446	AUE_AUDITON	STD {
		int auditon(
		    int cmd,
		    _In_opt_ void *data,
		    u_int length
		);
	}
447	AUE_GETAUID	STD {
		int getauid(
		    _Out_ uid_t *auid
		);
	}
448	AUE_SETAUID	STD {
		int setauid(
		    _In_ uid_t *auid
		);
	}
449	AUE_GETAUDIT	STD {
		int getaudit(
		    _Out_ struct auditinfo *auditinfo
		);
	}
450	AUE_SETAUDIT	STD {
		int setaudit(
		    _In_ struct auditinfo *auditinfo
		);
	}
451	AUE_GETAUDIT_ADDR	STD {
		int getaudit_addr(
		    _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr,
		    u_int length
		);
	}
452	AUE_SETAUDIT_ADDR	STD {
		int setaudit_addr(
		    _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr,
		    u_int length
		);
	}
453	AUE_AUDITCTL	STD {
		int auditctl(
		    _In_z_ const char *path
		);
	}
454	AUE_NULL	STD {
		int _umtx_op(
		    _Inout_ void *obj,
		    int op,
		    u_long val,
		    _In_ void *uaddr1,
		    _In_ void *uaddr2
		);
	}
455	AUE_THR_NEW	STD {
		int thr_new(
		    _In_ struct thr_param *param,
		    int param_size
		);
	}
456	AUE_NULL	STD {
		int sigqueue(
		    pid_t pid,
		    int signum,
		    _In_ void *value
		);
	}

457	AUE_MQ_OPEN	NOSTD {
		int kmq_open(
		    _In_z_ const char *path,
		    int flags,
		    mode_t mode,
		    _In_opt_ const struct mq_attr *attr
		);
	}
458	AUE_MQ_SETATTR	NOSTD {
		int kmq_setattr(
		    int mqd,
		    _In_opt_ const struct mq_attr *attr,
		    _Out_opt_ struct mq_attr *oattr
		);
	}
459	AUE_MQ_TIMEDRECEIVE	NOSTD {
		int kmq_timedreceive(
		    int mqd,
		    _Out_writes_bytes_(msg_len) char *msg_ptr,
		    size_t msg_len,
		    _Out_opt_ unsigned *msg_prio,
		    _In_opt_ const struct timespec *abs_timeout
		);
	}
460	AUE_MQ_TIMEDSEND	NOSTD {
		int kmq_timedsend(
		    int mqd,
		    _In_reads_bytes_(msg_len) const char *msg_ptr,
		    size_t msg_len,
		    unsigned msg_prio,
		    _In_opt_ const struct timespec *abs_timeout
		);
	}
461	AUE_MQ_NOTIFY	NOSTD {
		int kmq_notify(
		    int mqd,
		    _In_opt_ const struct sigevent *sigev
		);
	}
462	AUE_MQ_UNLINK	NOSTD {
		int kmq_unlink(
		    _In_z_ const char *path
		);
	}
463	AUE_NULL	STD {
		int abort2(
		    _In_z_ const char *why,
		    int nargs,
		    _In_reads_(nargs) void **args
		);
	}
464	AUE_NULL	STD {
		int thr_set_name(
		    long id,
		    _In_z_ const char *name
		);
	}
465	AUE_AIO_FSYNC	STD {
		int aio_fsync(
		    int op,
		    _In_ struct aiocb *aiocbp
		);
	}
466	AUE_RTPRIO	STD {
		int rtprio_thread(
		    int function,
		    lwpid_t lwpid,
		    _Inout_ struct rtprio *rtp
		);
	}
467-468	AUE_NULL	UNIMPL	nosys
469	AUE_NULL	UNIMPL	__getpath_fromfd
470	AUE_NULL	UNIMPL	__getpath_fromaddr
471	AUE_SCTP_PEELOFF	NOSTD {
		int sctp_peeloff(
		    int sd,
		    uint32_t name
		);
	}
472	AUE_SCTP_GENERIC_SENDMSG	NOSTD {
		int sctp_generic_sendmsg(
		    int sd,
		    _In_reads_bytes_(mlen) void *msg,
		    int mlen,
		    _In_reads_bytes_(tolen) struct sockaddr *to,
		    __socklen_t tolen,
		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
		    int flags
		);
	}
473	AUE_SCTP_GENERIC_SENDMSG_IOV	NOSTD {
		int sctp_generic_sendmsg_iov(
		    int sd,
		    _In_reads_(iovlen) struct iovec *iov,
		    int iovlen,
		    _In_reads_bytes_(tolen) struct sockaddr *to,
		    __socklen_t tolen,
		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
		    int flags
		);
	}
474	AUE_SCTP_GENERIC_RECVMSG	NOSTD {
		int sctp_generic_recvmsg(
		    int sd,
		    _In_reads_(iovlen) struct iovec *iov,
		    int iovlen,
		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
		    _Out_ __socklen_t *fromlenaddr,
		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
		    _Out_opt_ int *msg_flags
		);
	}
475	AUE_PREAD	STD {
		ssize_t pread(
		    int fd,
		    _Out_writes_bytes_(nbyte) void *buf,
		    size_t nbyte,
		    off_t offset
		);
	}
476	AUE_PWRITE	STD {
		ssize_t pwrite(
		    int fd,
		    _In_reads_bytes_(nbyte) const void *buf,
		    size_t nbyte,
		    off_t offset
		);
	}
477	AUE_MMAP	STD {
		void *mmap(
		    _In_ void *addr,
		    size_t len,
		    int prot,
		    int flags,
		    int fd,
		    off_t pos
		);
	}
478	AUE_LSEEK	STD {
		off_t lseek(
		    int fd,
		    off_t offset,
		    int whence
		);
	}
479	AUE_TRUNCATE	STD {
		int truncate(
		    _In_z_ const char *path,
		    off_t length
		);
	}
480	AUE_FTRUNCATE	STD {
		int ftruncate(
		    int fd,
		    off_t length
		);
	}
481	AUE_THR_KILL2	STD {
		int thr_kill2(
		    pid_t pid,
		    long id,
		    int sig
		);
	}
482	AUE_SHMOPEN	COMPAT12 {
		int shm_open(
		    _In_z_ const char *path,
		    int flags,
		    mode_t mode
		);
	}
483	AUE_SHMUNLINK	STD {
		int shm_unlink(
		    _In_z_ const char *path
		);
	}
484	AUE_NULL	STD {
		int cpuset(
		    _Out_ cpusetid_t *setid
		);
	}
485	AUE_NULL	STD {
		int cpuset_setid(
		    cpuwhich_t which,
		    id_t id,
		    cpusetid_t setid
		);
	}
486	AUE_NULL	STD {
		int cpuset_getid(
		    cpulevel_t level,
		    cpuwhich_t which,
		    id_t id,
		    _Out_ cpusetid_t *setid
		);
	}
487	AUE_NULL	STD {
		int cpuset_getaffinity(
		    cpulevel_t level,
		    cpuwhich_t which,
		    id_t id,
		    size_t cpusetsize,
		    _Out_ cpuset_t *mask
		);
	}
488	AUE_NULL	STD {
		int cpuset_setaffinity(
		    cpulevel_t level,
		    cpuwhich_t which,
		    id_t id,
		    size_t cpusetsize,
		    _Out_ const cpuset_t *mask
		);
	}
489	AUE_FACCESSAT	STD {
		int faccessat(
		    int fd,
		    _In_z_ const char *path,
		    int amode,
		    int flag
		);
	}
490	AUE_FCHMODAT	STD {
		int fchmodat(
		    int fd,
		    _In_z_ const char *path,
		    mode_t mode,
		    int flag
		);
	}
491	AUE_FCHOWNAT	STD {
		int fchownat(
		    int fd,
		    _In_z_ const char *path,
		    uid_t uid,
		    gid_t gid,
		    int flag
		);
	}
492	AUE_FEXECVE	STD {
		int fexecve(
		    int fd,
		    _In_ char **argv,
		    _In_ char **envv
		);
	}
493	AUE_FSTATAT	COMPAT11 {
		int fstatat(
		    int fd,
		    _In_z_ const char *path,
		    _Out_ struct freebsd11_stat *buf,
		    int flag
		);
	}
494	AUE_FUTIMESAT	STD {
		int futimesat(
		    int fd,
		    _In_z_ const char *path,
		    _In_reads_(2) struct timeval *times
		);
	}
495	AUE_LINKAT	STD {
		int linkat(
		    int fd1,
		    _In_z_ const char *path1,
		    int fd2,
		    _In_z_ const char *path2,
		    int flag
		);
	}
496	AUE_MKDIRAT	STD {
		int mkdirat(
		    int fd,
		    _In_z_ const char *path,
		    mode_t mode
		);
	}
497	AUE_MKFIFOAT	STD {
		int mkfifoat(
		    int fd,
		    _In_z_ const char *path,
		    mode_t mode
		);
	}
498	AUE_MKNODAT	COMPAT11 {
		int mknodat(
		    int fd,
		    _In_z_ const char *path,
		    mode_t mode,
		    uint32_t dev
		);
	}
; XXX: see the comment for open
499	AUE_OPENAT_RWTC	STD {
		int openat(
		    int fd,
		    _In_z_ const char *path,
		    int flag,
		    mode_t mode
		);
	}
500	AUE_READLINKAT	STD {
		ssize_t readlinkat(
		    int fd,
		    _In_z_ const char *path,
		    _Out_writes_bytes_(bufsize) char *buf,
		    size_t bufsize
		);
	}
501	AUE_RENAMEAT	STD {
		int renameat(
		    int oldfd,
		    _In_z_ const char *old,
		    int newfd,
		    _In_z_ const char *new
		);
	}
502	AUE_SYMLINKAT	STD {
		int symlinkat(
		    _In_z_ const char *path1,
		    int fd,
		    _In_z_ const char *path2
		);
	}
503	AUE_UNLINKAT	STD {
		int unlinkat(
		    int fd,
		    _In_z_ const char *path,
		    int flag
		);
	}
504	AUE_POSIX_OPENPT	STD {
		int posix_openpt(
		    int flags
		);
	}
; 505 is initialised by the kgssapi code, if present.
505	AUE_NULL	NOSTD {
		int gssd_syscall(
		    _In_z_ const char *path
		);
	}
506	AUE_JAIL_GET	STD {
		int jail_get(
		    _In_reads_(iovcnt) struct iovec *iovp,
		    unsigned int iovcnt,
		    int flags
		);
	}
507	AUE_JAIL_SET	STD {
		int jail_set(
		    _In_reads_(iovcnt) struct iovec *iovp,
		    unsigned int iovcnt,
		    int flags
		);
	}
508	AUE_JAIL_REMOVE	STD {
		int jail_remove(
		    int jid
		);
	}
509	AUE_CLOSEFROM	COMPAT12 {
		int closefrom(
		    int lowfd
		);
	}
510	AUE_SEMCTL	NOSTD {
		int __semctl(
		    int semid,
		    int semnum,
		    int cmd,
		    _Inout_ union semun *arg
		);
	}
511	AUE_MSGCTL	NOSTD {
		int msgctl(
		    int msqid,
		    int cmd,
		    _Inout_opt_ struct msqid_ds *buf
		);
	}
512	AUE_SHMCTL	NOSTD {
		int shmctl(
		    int shmid,
		    int cmd,
		    _Inout_opt_ struct shmid_ds *buf
		);
	}
513	AUE_LPATHCONF	STD {
		int lpathconf(
		    _In_z_ const char *path,
		    int name
		);
	}
514	AUE_NULL	OBSOL	cap_new
515	AUE_CAP_RIGHTS_GET	STD {
		int __cap_rights_get(
		    int version,
		    int fd,
		    _Out_ cap_rights_t *rightsp
		);
	}
516	AUE_CAP_ENTER	STD {
		int cap_enter(void);
	}
517	AUE_CAP_GETMODE	STD {
		int cap_getmode(
		    _Out_ u_int *modep
		);
	}
518	AUE_PDFORK	STD {
		int pdfork(
		    _Out_ int *fdp,
		    int flags
		);
	}
519	AUE_PDKILL	STD {
		int pdkill(
		    int fd,
		    int signum
		);
	}
520	AUE_PDGETPID	STD {
		int pdgetpid(
		    int fd,
		    _Out_ pid_t *pidp
		);
	}
521	AUE_PDWAIT	UNIMPL	pdwait4
522	AUE_SELECT	STD {
		int pselect(
		    int nd,
		    _Inout_opt_ fd_set *in,
		    _Inout_opt_ fd_set *ou,
		    _Inout_opt_ fd_set *ex,
		    _In_opt_ const struct timespec *ts,
		    _In_opt_ const sigset_t *sm
		);
	}
523	AUE_GETLOGINCLASS	STD {
		int getloginclass(
		    _Out_writes_z_(namelen) char *namebuf,
		    size_t namelen
		);
	}
524	AUE_SETLOGINCLASS	STD {
		int setloginclass(
		    _In_z_ const char *namebuf
		);
	}
525	AUE_NULL	STD {
		int rctl_get_racct(
		    _In_reads_bytes_(inbuflen) const void *inbufp,
		    size_t inbuflen,
		    _Out_writes_bytes_(outbuflen) void *outbufp,
		    size_t outbuflen
		);
	}
526	AUE_NULL	STD {
		int rctl_get_rules(
		    _In_reads_bytes_(inbuflen) const void *inbufp,
		    size_t inbuflen,
		    _Out_writes_bytes_(outbuflen) void *outbufp,
		    size_t outbuflen
		);
	}
527	AUE_NULL	STD {
		int rctl_get_limits(
		    _In_reads_bytes_(inbuflen) const void *inbufp,
		    size_t inbuflen,
		    _Out_writes_bytes_(outbuflen) void *outbufp,
		    size_t outbuflen
		);
	}
528	AUE_NULL	STD {
		int rctl_add_rule(
		    _In_reads_bytes_(inbuflen) const void *inbufp,
		    size_t inbuflen,
		    _Out_writes_bytes_(outbuflen) void *outbufp,
		    size_t outbuflen
		);
	}
529	AUE_NULL	STD {
		int rctl_remove_rule(
		    _In_reads_bytes_(inbuflen) const void *inbufp,
		    size_t inbuflen,
		    _Out_writes_bytes_(outbuflen) void *outbufp,
		    size_t outbuflen
		);
	}
530	AUE_POSIX_FALLOCATE	STD {
		int posix_fallocate(
		    int fd,
		    off_t offset,
		    off_t len
		);
	}
531	AUE_POSIX_FADVISE	STD {
		int posix_fadvise(
		    int fd,
		    off_t offset,
		    off_t len,
		    int advice
		);
	}
532	AUE_WAIT6	STD {
		int wait6(
		    idtype_t idtype,
		    id_t id,
		    _Out_opt_ int *status,
		    int options,
		    _Out_opt_ struct __wrusage *wrusage,
		    _Out_opt_ siginfo_t *info
		);
	}
533	AUE_CAP_RIGHTS_LIMIT	STD {
		int cap_rights_limit(
		    int fd,
		    _In_ cap_rights_t *rightsp
		);
	}
534	AUE_CAP_IOCTLS_LIMIT	STD {
		int cap_ioctls_limit(
		    int fd,
		    _In_reads_(ncmds) const u_long *cmds,
		    size_t ncmds
		);
	}
535	AUE_CAP_IOCTLS_GET	STD {
		ssize_t cap_ioctls_get(
		    int fd,
		    _Out_writes_(maxcmds) u_long *cmds,
		    size_t maxcmds
		);
	}
536	AUE_CAP_FCNTLS_LIMIT	STD {
		int cap_fcntls_limit(
		    int fd,
		    uint32_t fcntlrights
		);
	}
537	AUE_CAP_FCNTLS_GET	STD {
		int cap_fcntls_get(
		    int fd,
		    _Out_ uint32_t *fcntlrightsp
		);
	}
538	AUE_BINDAT	STD {
		int bindat(
		    int fd,
		    int s,
		    _In_reads_bytes_(namelen) const struct sockaddr *name,
		    int namelen
		);
	}
539	AUE_CONNECTAT	STD {
		int connectat(
		    int fd,
		    int s,
		    _In_reads_bytes_(namelen) const struct sockaddr *name,
		    int namelen
		);
	}
540	AUE_CHFLAGSAT	STD {
		int chflagsat(
		    int fd,
		    _In_z_ const char *path,
		    u_long flags,
		    int atflag
		);
	}
541	AUE_ACCEPT	STD {
		int accept4(
		    int s,
		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
		    _Inout_opt_ __socklen_t *anamelen,
		    int flags
		);
	}
542	AUE_PIPE	STD {
		int pipe2(
		    _Out_writes_(2) int *fildes,
		    int flags
		);
	}
543	AUE_AIO_MLOCK	STD {
		int aio_mlock(
		    _In_ struct aiocb *aiocbp
		);
	}
544	AUE_PROCCTL	STD {
		int procctl(
		    idtype_t idtype,
		    id_t id,
		    int com,
		    _In_opt_ void *data
		);
	}
545	AUE_POLL	STD {
		int ppoll(
		    _Inout_updates_(nfds) struct pollfd *fds,
		    u_int nfds,
		    _In_opt_ const struct timespec *ts,
		    _In_opt_ const sigset_t *set
		);
	}
546	AUE_FUTIMES	STD {
		int futimens(
		    int fd,
		    _In_reads_(2) struct timespec *times
		);
	}
547	AUE_FUTIMESAT	STD {
		int utimensat(
		    int fd,
		    _In_z_ const char *path,
		    _In_reads_(2) struct timespec *times,
		    int flag
		);
	}
548	AUE_NULL	OBSOL	numa_getaffinity
549	AUE_NULL	OBSOL	numa_setaffinity
550	AUE_FSYNC	STD {
		int fdatasync(
		    int fd
		);
	}
551	AUE_FSTAT	STD {
		int fstat(
		    int fd,
		    _Out_ struct stat *sb
		);
	}
552	AUE_FSTATAT	STD {
		int fstatat(
		    int fd,
		    _In_z_ const char *path,
		    _Out_ struct stat *buf,
		    int flag
		);
	}
553	AUE_FHSTAT	STD {
		int fhstat(
		    _In_ const struct fhandle *u_fhp,
		    _Out_ struct stat *sb
		);
	}
554	AUE_GETDIRENTRIES STD {
		ssize_t getdirentries(
		    int fd,
		    _Out_writes_bytes_(count) char *buf,
		    size_t count,
		    _Out_ off_t *basep
		);
	}
555	AUE_STATFS	STD {
		int statfs(
		    _In_z_ const char *path,
		    _Out_ struct statfs *buf
		);
	}
556	AUE_FSTATFS	STD {
		int fstatfs(
		    int fd,
		    _Out_ struct statfs *buf
		);
	}
557	AUE_GETFSSTAT	STD {
		int getfsstat(
		    _Out_writes_bytes_opt_(bufsize) struct statfs *buf,
		    long bufsize,
		    int mode
		);
	}
558	AUE_FHSTATFS	STD {
		int fhstatfs(
		    _In_ const struct fhandle *u_fhp,
		    _Out_ struct statfs *buf
		);
	}
559	AUE_MKNODAT	STD {
		int mknodat(
		    int fd,
		    _In_z_ const char *path,
		    mode_t mode,
		    dev_t dev
		);
	}
560	AUE_KEVENT	STD {
		int kevent(
		    int fd,
		    _In_reads_opt_(nchanges) struct kevent *changelist,
		    int nchanges,
		    _Out_writes_opt_(nevents) struct kevent *eventlist,
		    int nevents,
		    _In_opt_ const struct timespec *timeout
		);
	}
561	AUE_NULL	STD {
		int cpuset_getdomain(
		    cpulevel_t level,
		    cpuwhich_t which,
		    id_t id,
		    size_t domainsetsize,
		    _Out_writes_bytes_(domainsetsize) domainset_t *mask,
		    _Out_ int *policy
		);
	}
562	AUE_NULL	STD {
		int cpuset_setdomain(
		    cpulevel_t level,
		    cpuwhich_t which,
		    id_t id,
		    size_t domainsetsize,
		    _In_ domainset_t *mask,
		    int policy
		);
	}
563	AUE_NULL	STD {
		int getrandom(
		    _Out_writes_bytes_(buflen) void *buf,
		    size_t buflen,
		    unsigned int flags
		);
	}
564	AUE_NULL	STD {
		int getfhat(
		    int fd,
		    _In_z_ char *path,
		    _Out_ struct fhandle *fhp,
		    int flags
		);
	}
565	AUE_NULL	STD {
		int fhlink(
		    _In_ struct fhandle *fhp,
		    _In_z_ const char *to
		);
	}
566	AUE_NULL	STD {
		int fhlinkat(
		    _In_ struct fhandle *fhp,
		    int tofd,
		    _In_z_ const char *to,
		);
	}
567	AUE_NULL	STD {
		int fhreadlink(
		    _In_ struct fhandle *fhp,
		    _Out_writes_(bufsize) char *buf,
		    size_t bufsize
		);
	}
568	AUE_UNLINKAT	STD {
		int funlinkat(
		    int dfd,
		    _In_z_ const char *path,
		    int fd,
		    int flag
		);
	}
569	AUE_NULL	STD {
		ssize_t copy_file_range(
		    int infd,
		    _Inout_opt_ off_t *inoffp,
		    int outfd,
		    _Inout_opt_ off_t *outoffp,
		    size_t len,
		    unsigned int flags
		);
	}
570	AUE_SYSCTL	STD {
		int __sysctlbyname(
		    _In_reads_(namelen) const char *name,
		    size_t namelen,
		    _Out_writes_bytes_opt_(*oldlenp) void *old,
		    _Inout_opt_ size_t *oldlenp,
		    _In_reads_bytes_opt_(newlen) void *new,
		    size_t newlen
		);
	}
571	AUE_SHMOPEN	STD {
		int shm_open2(
		    _In_z_ const char *path,
		    int flags,
		    mode_t mode,
		    int shmflags,
		    _In_z_ const char *name
		);
	}
572	AUE_SHMRENAME	STD {
		int shm_rename(
		    _In_z_ const char *path_from,
		    _In_z_ const char *path_to,
		    int flags
		);
	}
573	AUE_NULL	STD {
		int sigfastblock(
		    int cmd,
		    _Inout_opt_ uint32_t *ptr
		);
	}
574	AUE_REALPATHAT	STD {
		int __realpathat(
		    int fd,
		    _In_z_ const char *path,
		    _Out_writes_z_(size) char *buf,
		    size_t size,
		    int flags
		);
	}
575	AUE_CLOSERANGE	STD {
		int close_range(
		    u_int lowfd,
		    u_int highfd,
		    int flags
		);
	}
; 576 is initialised by the krpc code, if present.
576	AUE_NULL	NOSTD {
		int rpctls_syscall(
		    int op,
		    _In_z_ const char *path
		);
	}

; Please copy any additions and changes to the following compatability tables:
; sys/compat/freebsd32/syscalls.master
; vim: syntax=off