summaryrefslogtreecommitdiff
path: root/devdocs/go/syscall%2Findex.html
blob: 98841565639bedc76ae9b5f639827915128b8f25 (plain)
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
<h1> Package syscall  </h1>     <ul id="short-nav">
<li><code>import "syscall"</code></li>
<li><a href="#pkg-overview" class="overviewLink">Overview</a></li>
<li><a href="#pkg-index" class="indexLink">Index</a></li>
<li><a href="#pkg-subdirectories">Subdirectories</a></li>
</ul>     <h2 id="pkg-overview">Overview </h2> <p>Package syscall contains an interface to the low-level operating system primitives. The details vary depending on the underlying system, and by default, godoc will display the syscall documentation for the current system. If you want godoc to display syscall documentation for another system, set $GOOS and $GOARCH to the desired system. For example, if you want to view documentation for freebsd/arm on linux/amd64, set $GOOS to freebsd and $GOARCH to arm. The primary use of syscall is inside other packages that provide a more portable interface to the system, such as "os", "time" and "net". Use those packages rather than this one if you can. For details of the functions and data types in this package consult the manuals for the appropriate operating system. These calls return err == nil to indicate success; otherwise err is an operating system error describing the failure. On most systems, that error has type syscall.Errno. </p>
<p>NOTE: Most of the functions, types, and constants defined in this package are also available in the <span>golang.org/x/sys</span> package. That package has more system call support than this one, and most new code should prefer that package where possible. See <a href="https://golang.org/s/go1.4-syscall">https://golang.org/s/go1.4-syscall</a> for more information. </p>     <h2 id="pkg-index">Index </h2>  <ul id="manual-nav">
<li><a href="#pkg-constants">Constants</a></li>
<li><a href="#pkg-variables">Variables</a></li>
<li><a href="#Access">func Access(path string, mode uint32) (err error)</a></li>
<li><a href="#Acct">func Acct(path string) (err error)</a></li>
<li><a href="#Adjtimex">func Adjtimex(buf *Timex) (state int, err error)</a></li>
<li><a href="#AttachLsf">func AttachLsf(fd int, i []SockFilter) error</a></li>
<li><a href="#Bind">func Bind(fd int, sa Sockaddr) (err error)</a></li>
<li><a href="#BindToDevice">func BindToDevice(fd int, device string) (err error)</a></li>
<li><a href="#BytePtrFromString">func BytePtrFromString(s string) (*byte, error)</a></li>
<li><a href="#ByteSliceFromString">func ByteSliceFromString(s string) ([]byte, error)</a></li>
<li><a href="#Chdir">func Chdir(path string) (err error)</a></li>
<li><a href="#Chmod">func Chmod(path string, mode uint32) (err error)</a></li>
<li><a href="#Chown">func Chown(path string, uid int, gid int) (err error)</a></li>
<li><a href="#Chroot">func Chroot(path string) (err error)</a></li>
<li><a href="#Clearenv">func Clearenv()</a></li>
<li><a href="#Close">func Close(fd int) (err error)</a></li>
<li><a href="#CloseOnExec">func CloseOnExec(fd int)</a></li>
<li><a href="#CmsgLen">func CmsgLen(datalen int) int</a></li>
<li><a href="#CmsgSpace">func CmsgSpace(datalen int) int</a></li>
<li><a href="#Connect">func Connect(fd int, sa Sockaddr) (err error)</a></li>
<li><a href="#Creat">func Creat(path string, mode uint32) (fd int, err error)</a></li>
<li><a href="#DetachLsf">func DetachLsf(fd int) error</a></li>
<li><a href="#Dup">func Dup(oldfd int) (fd int, err error)</a></li>
<li><a href="#Dup2">func Dup2(oldfd int, newfd int) (err error)</a></li>
<li><a href="#Dup3">func Dup3(oldfd int, newfd int, flags int) (err error)</a></li>
<li><a href="#Environ">func Environ() []string</a></li>
<li><a href="#EpollCreate">func EpollCreate(size int) (fd int, err error)</a></li>
<li><a href="#EpollCreate1">func EpollCreate1(flag int) (fd int, err error)</a></li>
<li><a href="#EpollCtl">func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)</a></li>
<li><a href="#EpollWait">func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)</a></li>
<li><a href="#Exec">func Exec(argv0 string, argv []string, envv []string) (err error)</a></li>
<li><a href="#Exit">func Exit(code int)</a></li>
<li><a href="#Faccessat">func Faccessat(dirfd int, path string, mode uint32, flags int) (err error)</a></li>
<li><a href="#Fallocate">func Fallocate(fd int, mode uint32, off int64, len int64) (err error)</a></li>
<li><a href="#Fchdir">func Fchdir(fd int) (err error)</a></li>
<li><a href="#Fchmod">func Fchmod(fd int, mode uint32) (err error)</a></li>
<li><a href="#Fchmodat">func Fchmodat(dirfd int, path string, mode uint32, flags int) error</a></li>
<li><a href="#Fchown">func Fchown(fd int, uid int, gid int) (err error)</a></li>
<li><a href="#Fchownat">func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)</a></li>
<li><a href="#FcntlFlock">func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error</a></li>
<li><a href="#Fdatasync">func Fdatasync(fd int) (err error)</a></li>
<li><a href="#Flock">func Flock(fd int, how int) (err error)</a></li>
<li><a href="#ForkExec">func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)</a></li>
<li><a href="#Fstat">func Fstat(fd int, stat *Stat_t) (err error)</a></li>
<li><a href="#Fstatfs">func Fstatfs(fd int, buf *Statfs_t) (err error)</a></li>
<li><a href="#Fsync">func Fsync(fd int) (err error)</a></li>
<li><a href="#Ftruncate">func Ftruncate(fd int, length int64) (err error)</a></li>
<li><a href="#Futimes">func Futimes(fd int, tv []Timeval) (err error)</a></li>
<li><a href="#Futimesat">func Futimesat(dirfd int, path string, tv []Timeval) (err error)</a></li>
<li><a href="#Getcwd">func Getcwd(buf []byte) (n int, err error)</a></li>
<li><a href="#Getdents">func Getdents(fd int, buf []byte) (n int, err error)</a></li>
<li><a href="#Getegid">func Getegid() (egid int)</a></li>
<li><a href="#Getenv">func Getenv(key string) (value string, found bool)</a></li>
<li><a href="#Geteuid">func Geteuid() (euid int)</a></li>
<li><a href="#Getgid">func Getgid() (gid int)</a></li>
<li><a href="#Getgroups">func Getgroups() (gids []int, err error)</a></li>
<li><a href="#Getpagesize">func Getpagesize() int</a></li>
<li><a href="#Getpgid">func Getpgid(pid int) (pgid int, err error)</a></li>
<li><a href="#Getpgrp">func Getpgrp() (pid int)</a></li>
<li><a href="#Getpid">func Getpid() (pid int)</a></li>
<li><a href="#Getppid">func Getppid() (ppid int)</a></li>
<li><a href="#Getpriority">func Getpriority(which int, who int) (prio int, err error)</a></li>
<li><a href="#Getrlimit">func Getrlimit(resource int, rlim *Rlimit) (err error)</a></li>
<li><a href="#Getrusage">func Getrusage(who int, rusage *Rusage) (err error)</a></li>
<li><a href="#GetsockoptInet4Addr">func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error)</a></li>
<li><a href="#GetsockoptInt">func GetsockoptInt(fd, level, opt int) (value int, err error)</a></li>
<li><a href="#Gettid">func Gettid() (tid int)</a></li>
<li><a href="#Gettimeofday">func Gettimeofday(tv *Timeval) (err error)</a></li>
<li><a href="#Getuid">func Getuid() (uid int)</a></li>
<li><a href="#Getwd">func Getwd() (wd string, err error)</a></li>
<li><a href="#Getxattr">func Getxattr(path string, attr string, dest []byte) (sz int, err error)</a></li>
<li><a href="#InotifyAddWatch">func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)</a></li>
<li><a href="#InotifyInit">func InotifyInit() (fd int, err error)</a></li>
<li><a href="#InotifyInit1">func InotifyInit1(flags int) (fd int, err error)</a></li>
<li><a href="#InotifyRmWatch">func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)</a></li>
<li><a href="#Ioperm">func Ioperm(from int, num int, on int) (err error)</a></li>
<li><a href="#Iopl">func Iopl(level int) (err error)</a></li>
<li><a href="#Kill">func Kill(pid int, sig Signal) (err error)</a></li>
<li><a href="#Klogctl">func Klogctl(typ int, buf []byte) (n int, err error)</a></li>
<li><a href="#Lchown">func Lchown(path string, uid int, gid int) (err error)</a></li>
<li><a href="#Link">func Link(oldpath string, newpath string) (err error)</a></li>
<li><a href="#Listen">func Listen(s int, n int) (err error)</a></li>
<li><a href="#Listxattr">func Listxattr(path string, dest []byte) (sz int, err error)</a></li>
<li><a href="#LsfSocket">func LsfSocket(ifindex, proto int) (int, error)</a></li>
<li><a href="#Lstat">func Lstat(path string, stat *Stat_t) (err error)</a></li>
<li><a href="#Madvise">func Madvise(b []byte, advice int) (err error)</a></li>
<li><a href="#Mkdir">func Mkdir(path string, mode uint32) (err error)</a></li>
<li><a href="#Mkdirat">func Mkdirat(dirfd int, path string, mode uint32) (err error)</a></li>
<li><a href="#Mkfifo">func Mkfifo(path string, mode uint32) (err error)</a></li>
<li><a href="#Mknod">func Mknod(path string, mode uint32, dev int) (err error)</a></li>
<li><a href="#Mknodat">func Mknodat(dirfd int, path string, mode uint32, dev int) (err error)</a></li>
<li><a href="#Mlock">func Mlock(b []byte) (err error)</a></li>
<li><a href="#Mlockall">func Mlockall(flags int) (err error)</a></li>
<li><a href="#Mmap">func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)</a></li>
<li><a href="#Mount">func Mount(source string, target string, fstype string, flags uintptr, data string) (err error)</a></li>
<li><a href="#Mprotect">func Mprotect(b []byte, prot int) (err error)</a></li>
<li><a href="#Munlock">func Munlock(b []byte) (err error)</a></li>
<li><a href="#Munlockall">func Munlockall() (err error)</a></li>
<li><a href="#Munmap">func Munmap(b []byte) (err error)</a></li>
<li><a href="#Nanosleep">func Nanosleep(time *Timespec, leftover *Timespec) (err error)</a></li>
<li><a href="#NetlinkRIB">func NetlinkRIB(proto, family int) ([]byte, error)</a></li>
<li><a href="#Open">func Open(path string, mode int, perm uint32) (fd int, err error)</a></li>
<li><a href="#Openat">func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)</a></li>
<li><a href="#ParseDirent">func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)</a></li>
<li><a href="#ParseUnixRights">func ParseUnixRights(m *SocketControlMessage) ([]int, error)</a></li>
<li><a href="#Pause">func Pause() (err error)</a></li>
<li><a href="#Pipe">func Pipe(p []int) error</a></li>
<li><a href="#Pipe2">func Pipe2(p []int, flags int) error</a></li>
<li><a href="#PivotRoot">func PivotRoot(newroot string, putold string) (err error)</a></li>
<li><a href="#Pread">func Pread(fd int, p []byte, offset int64) (n int, err error)</a></li>
<li><a href="#PtraceAttach">func PtraceAttach(pid int) (err error)</a></li>
<li><a href="#PtraceCont">func PtraceCont(pid int, signal int) (err error)</a></li>
<li><a href="#PtraceDetach">func PtraceDetach(pid int) (err error)</a></li>
<li><a href="#PtraceGetEventMsg">func PtraceGetEventMsg(pid int) (msg uint, err error)</a></li>
<li><a href="#PtraceGetRegs">func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error)</a></li>
<li><a href="#PtracePeekData">func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error)</a></li>
<li><a href="#PtracePeekText">func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error)</a></li>
<li><a href="#PtracePokeData">func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error)</a></li>
<li><a href="#PtracePokeText">func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error)</a></li>
<li><a href="#PtraceSetOptions">func PtraceSetOptions(pid int, options int) (err error)</a></li>
<li><a href="#PtraceSetRegs">func PtraceSetRegs(pid int, regs *PtraceRegs) (err error)</a></li>
<li><a href="#PtraceSingleStep">func PtraceSingleStep(pid int) (err error)</a></li>
<li><a href="#PtraceSyscall">func PtraceSyscall(pid int, signal int) (err error)</a></li>
<li><a href="#Pwrite">func Pwrite(fd int, p []byte, offset int64) (n int, err error)</a></li>
<li><a href="#Read">func Read(fd int, p []byte) (n int, err error)</a></li>
<li><a href="#ReadDirent">func ReadDirent(fd int, buf []byte) (n int, err error)</a></li>
<li><a href="#Readlink">func Readlink(path string, buf []byte) (n int, err error)</a></li>
<li><a href="#Reboot">func Reboot(cmd int) (err error)</a></li>
<li><a href="#Removexattr">func Removexattr(path string, attr string) (err error)</a></li>
<li><a href="#Rename">func Rename(oldpath string, newpath string) (err error)</a></li>
<li><a href="#Renameat">func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)</a></li>
<li><a href="#Rmdir">func Rmdir(path string) error</a></li>
<li><a href="#Seek">func Seek(fd int, offset int64, whence int) (off int64, err error)</a></li>
<li><a href="#Select">func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)</a></li>
<li><a href="#Sendfile">func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)</a></li>
<li><a href="#Sendmsg">func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error)</a></li>
<li><a href="#SendmsgN">func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)</a></li>
<li><a href="#Sendto">func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error)</a></li>
<li><a href="#SetLsfPromisc">func SetLsfPromisc(name string, m bool) error</a></li>
<li><a href="#SetNonblock">func SetNonblock(fd int, nonblocking bool) (err error)</a></li>
<li><a href="#Setdomainname">func Setdomainname(p []byte) (err error)</a></li>
<li><a href="#Setegid">func Setegid(egid int) (err error)</a></li>
<li><a href="#Setenv">func Setenv(key, value string) error</a></li>
<li><a href="#Seteuid">func Seteuid(euid int) (err error)</a></li>
<li><a href="#Setfsgid">func Setfsgid(gid int) (err error)</a></li>
<li><a href="#Setfsuid">func Setfsuid(uid int) (err error)</a></li>
<li><a href="#Setgid">func Setgid(gid int) (err error)</a></li>
<li><a href="#Setgroups">func Setgroups(gids []int) (err error)</a></li>
<li><a href="#Sethostname">func Sethostname(p []byte) (err error)</a></li>
<li><a href="#Setpgid">func Setpgid(pid int, pgid int) (err error)</a></li>
<li><a href="#Setpriority">func Setpriority(which int, who int, prio int) (err error)</a></li>
<li><a href="#Setregid">func Setregid(rgid, egid int) (err error)</a></li>
<li><a href="#Setresgid">func Setresgid(rgid, egid, sgid int) (err error)</a></li>
<li><a href="#Setresuid">func Setresuid(ruid, euid, suid int) (err error)</a></li>
<li><a href="#Setreuid">func Setreuid(ruid, euid int) (err error)</a></li>
<li><a href="#Setrlimit">func Setrlimit(resource int, rlim *Rlimit) error</a></li>
<li><a href="#Setsid">func Setsid() (pid int, err error)</a></li>
<li><a href="#SetsockoptByte">func SetsockoptByte(fd, level, opt int, value byte) (err error)</a></li>
<li><a href="#SetsockoptICMPv6Filter">func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error</a></li>
<li><a href="#SetsockoptIPMreq">func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error)</a></li>
<li><a href="#SetsockoptIPMreqn">func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error)</a></li>
<li><a href="#SetsockoptIPv6Mreq">func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error)</a></li>
<li><a href="#SetsockoptInet4Addr">func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error)</a></li>
<li><a href="#SetsockoptInt">func SetsockoptInt(fd, level, opt int, value int) (err error)</a></li>
<li><a href="#SetsockoptLinger">func SetsockoptLinger(fd, level, opt int, l *Linger) (err error)</a></li>
<li><a href="#SetsockoptString">func SetsockoptString(fd, level, opt int, s string) (err error)</a></li>
<li><a href="#SetsockoptTimeval">func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error)</a></li>
<li><a href="#Settimeofday">func Settimeofday(tv *Timeval) (err error)</a></li>
<li><a href="#Setuid">func Setuid(uid int) (err error)</a></li>
<li><a href="#Setxattr">func Setxattr(path string, attr string, data []byte, flags int) (err error)</a></li>
<li><a href="#Shutdown">func Shutdown(fd int, how int) (err error)</a></li>
<li><a href="#SlicePtrFromStrings">func SlicePtrFromStrings(ss []string) ([]*byte, error)</a></li>
<li><a href="#Socket">func Socket(domain, typ, proto int) (fd int, err error)</a></li>
<li><a href="#Socketpair">func Socketpair(domain, typ, proto int) (fd [2]int, err error)</a></li>
<li><a href="#Splice">func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)</a></li>
<li><a href="#StartProcess">func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error)</a></li>
<li><a href="#Stat">func Stat(path string, stat *Stat_t) (err error)</a></li>
<li><a href="#Statfs">func Statfs(path string, buf *Statfs_t) (err error)</a></li>
<li><a href="#StringBytePtr">func StringBytePtr(s string) *byte</a></li>
<li><a href="#StringByteSlice">func StringByteSlice(s string) []byte</a></li>
<li><a href="#StringSlicePtr">func StringSlicePtr(ss []string) []*byte</a></li>
<li><a href="#Symlink">func Symlink(oldpath string, newpath string) (err error)</a></li>
<li><a href="#Sync">func Sync()</a></li>
<li><a href="#SyncFileRange">func SyncFileRange(fd int, off int64, n int64, flags int) (err error)</a></li>
<li><a href="#Sysinfo">func Sysinfo(info *Sysinfo_t) (err error)</a></li>
<li><a href="#Tee">func Tee(rfd int, wfd int, len int, flags int) (n int64, err error)</a></li>
<li><a href="#Tgkill">func Tgkill(tgid int, tid int, sig Signal) (err error)</a></li>
<li><a href="#Times">func Times(tms *Tms) (ticks uintptr, err error)</a></li>
<li><a href="#TimespecToNsec">func TimespecToNsec(ts Timespec) int64</a></li>
<li><a href="#TimevalToNsec">func TimevalToNsec(tv Timeval) int64</a></li>
<li><a href="#Truncate">func Truncate(path string, length int64) (err error)</a></li>
<li><a href="#Umask">func Umask(mask int) (oldmask int)</a></li>
<li><a href="#Uname">func Uname(buf *Utsname) (err error)</a></li>
<li><a href="#UnixCredentials">func UnixCredentials(ucred *Ucred) []byte</a></li>
<li><a href="#UnixRights">func UnixRights(fds ...int) []byte</a></li>
<li><a href="#Unlink">func Unlink(path string) error</a></li>
<li><a href="#Unlinkat">func Unlinkat(dirfd int, path string) error</a></li>
<li><a href="#Unmount">func Unmount(target string, flags int) (err error)</a></li>
<li><a href="#Unsetenv">func Unsetenv(key string) error</a></li>
<li><a href="#Unshare">func Unshare(flags int) (err error)</a></li>
<li><a href="#Ustat">func Ustat(dev int, ubuf *Ustat_t) (err error)</a></li>
<li><a href="#Utime">func Utime(path string, buf *Utimbuf) (err error)</a></li>
<li><a href="#Utimes">func Utimes(path string, tv []Timeval) (err error)</a></li>
<li><a href="#UtimesNano">func UtimesNano(path string, ts []Timespec) (err error)</a></li>
<li><a href="#Wait4">func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)</a></li>
<li><a href="#Write">func Write(fd int, p []byte) (n int, err error)</a></li>
<li><a href="#Cmsghdr">type Cmsghdr</a></li>
<li> <a href="#Cmsghdr.SetLen">func (cmsg *Cmsghdr) SetLen(length int)</a>
</li>
<li><a href="#Conn">type Conn</a></li>
<li><a href="#Credential">type Credential</a></li>
<li><a href="#Dirent">type Dirent</a></li>
<li><a href="#EpollEvent">type EpollEvent</a></li>
<li><a href="#Errno">type Errno</a></li>
<li> <a href="#AllThreadsSyscall">func AllThreadsSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)</a>
</li>
<li> <a href="#AllThreadsSyscall6">func AllThreadsSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)</a>
</li>
<li> <a href="#RawSyscall">func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)</a>
</li>
<li> <a href="#RawSyscall6">func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)</a>
</li>
<li> <a href="#Syscall">func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)</a>
</li>
<li> <a href="#Syscall6">func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)</a>
</li>
<li> <a href="#Errno.Error">func (e Errno) Error() string</a>
</li>
<li> <a href="#Errno.Is">func (e Errno) Is(target error) bool</a>
</li>
<li> <a href="#Errno.Temporary">func (e Errno) Temporary() bool</a>
</li>
<li> <a href="#Errno.Timeout">func (e Errno) Timeout() bool</a>
</li>
<li><a href="#FdSet">type FdSet</a></li>
<li><a href="#Flock_t">type Flock_t</a></li>
<li><a href="#Fsid">type Fsid</a></li>
<li><a href="#ICMPv6Filter">type ICMPv6Filter</a></li>
<li> <a href="#GetsockoptICMPv6Filter">func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error)</a>
</li>
<li><a href="#IPMreq">type IPMreq</a></li>
<li> <a href="#GetsockoptIPMreq">func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error)</a>
</li>
<li><a href="#IPMreqn">type IPMreqn</a></li>
<li> <a href="#GetsockoptIPMreqn">func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error)</a>
</li>
<li><a href="#IPv6MTUInfo">type IPv6MTUInfo</a></li>
<li> <a href="#GetsockoptIPv6MTUInfo">func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error)</a>
</li>
<li><a href="#IPv6Mreq">type IPv6Mreq</a></li>
<li> <a href="#GetsockoptIPv6Mreq">func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error)</a>
</li>
<li><a href="#IfAddrmsg">type IfAddrmsg</a></li>
<li><a href="#IfInfomsg">type IfInfomsg</a></li>
<li><a href="#Inet4Pktinfo">type Inet4Pktinfo</a></li>
<li><a href="#Inet6Pktinfo">type Inet6Pktinfo</a></li>
<li><a href="#InotifyEvent">type InotifyEvent</a></li>
<li><a href="#Iovec">type Iovec</a></li>
<li> <a href="#Iovec.SetLen">func (iov *Iovec) SetLen(length int)</a>
</li>
<li><a href="#Linger">type Linger</a></li>
<li><a href="#Msghdr">type Msghdr</a></li>
<li> <a href="#Msghdr.SetControllen">func (msghdr *Msghdr) SetControllen(length int)</a>
</li>
<li><a href="#NetlinkMessage">type NetlinkMessage</a></li>
<li> <a href="#ParseNetlinkMessage">func ParseNetlinkMessage(b []byte) ([]NetlinkMessage, error)</a>
</li>
<li><a href="#NetlinkRouteAttr">type NetlinkRouteAttr</a></li>
<li> <a href="#ParseNetlinkRouteAttr">func ParseNetlinkRouteAttr(m *NetlinkMessage) ([]NetlinkRouteAttr, error)</a>
</li>
<li><a href="#NetlinkRouteRequest">type NetlinkRouteRequest</a></li>
<li><a href="#NlAttr">type NlAttr</a></li>
<li><a href="#NlMsgerr">type NlMsgerr</a></li>
<li><a href="#NlMsghdr">type NlMsghdr</a></li>
<li><a href="#ProcAttr">type ProcAttr</a></li>
<li><a href="#PtraceRegs">type PtraceRegs</a></li>
<li> <a href="#PtraceRegs.PC">func (r *PtraceRegs) PC() uint64</a>
</li>
<li> <a href="#PtraceRegs.SetPC">func (r *PtraceRegs) SetPC(pc uint64)</a>
</li>
<li><a href="#RawConn">type RawConn</a></li>
<li><a href="#RawSockaddr">type RawSockaddr</a></li>
<li><a href="#RawSockaddrAny">type RawSockaddrAny</a></li>
<li><a href="#RawSockaddrInet4">type RawSockaddrInet4</a></li>
<li><a href="#RawSockaddrInet6">type RawSockaddrInet6</a></li>
<li><a href="#RawSockaddrLinklayer">type RawSockaddrLinklayer</a></li>
<li><a href="#RawSockaddrNetlink">type RawSockaddrNetlink</a></li>
<li><a href="#RawSockaddrUnix">type RawSockaddrUnix</a></li>
<li><a href="#Rlimit">type Rlimit</a></li>
<li><a href="#RtAttr">type RtAttr</a></li>
<li><a href="#RtGenmsg">type RtGenmsg</a></li>
<li><a href="#RtMsg">type RtMsg</a></li>
<li><a href="#RtNexthop">type RtNexthop</a></li>
<li><a href="#Rusage">type Rusage</a></li>
<li><a href="#Signal">type Signal</a></li>
<li> <a href="#Signal.Signal">func (s Signal) Signal()</a>
</li>
<li> <a href="#Signal.String">func (s Signal) String() string</a>
</li>
<li><a href="#SockFilter">type SockFilter</a></li>
<li> <a href="#LsfJump">func LsfJump(code, k, jt, jf int) *SockFilter</a>
</li>
<li> <a href="#LsfStmt">func LsfStmt(code, k int) *SockFilter</a>
</li>
<li><a href="#SockFprog">type SockFprog</a></li>
<li><a href="#Sockaddr">type Sockaddr</a></li>
<li> <a href="#Accept">func Accept(fd int) (nfd int, sa Sockaddr, err error)</a>
</li>
<li> <a href="#Accept4">func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error)</a>
</li>
<li> <a href="#Getpeername">func Getpeername(fd int) (sa Sockaddr, err error)</a>
</li>
<li> <a href="#Getsockname">func Getsockname(fd int) (sa Sockaddr, err error)</a>
</li>
<li> <a href="#Recvfrom">func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error)</a>
</li>
<li> <a href="#Recvmsg">func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error)</a>
</li>
<li><a href="#SockaddrInet4">type SockaddrInet4</a></li>
<li><a href="#SockaddrInet6">type SockaddrInet6</a></li>
<li><a href="#SockaddrLinklayer">type SockaddrLinklayer</a></li>
<li><a href="#SockaddrNetlink">type SockaddrNetlink</a></li>
<li><a href="#SockaddrUnix">type SockaddrUnix</a></li>
<li><a href="#SocketControlMessage">type SocketControlMessage</a></li>
<li> <a href="#ParseSocketControlMessage">func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error)</a>
</li>
<li><a href="#Stat_t">type Stat_t</a></li>
<li><a href="#Statfs_t">type Statfs_t</a></li>
<li><a href="#SysProcAttr">type SysProcAttr</a></li>
<li><a href="#SysProcIDMap">type SysProcIDMap</a></li>
<li><a href="#Sysinfo_t">type Sysinfo_t</a></li>
<li><a href="#TCPInfo">type TCPInfo</a></li>
<li><a href="#Termios">type Termios</a></li>
<li><a href="#Time_t">type Time_t</a></li>
<li> <a href="#Time">func Time(t *Time_t) (tt Time_t, err error)</a>
</li>
<li><a href="#Timespec">type Timespec</a></li>
<li> <a href="#NsecToTimespec">func NsecToTimespec(nsec int64) Timespec</a>
</li>
<li> <a href="#Timespec.Nano">func (ts *Timespec) Nano() int64</a>
</li>
<li> <a href="#Timespec.Unix">func (ts *Timespec) Unix() (sec int64, nsec int64)</a>
</li>
<li><a href="#Timeval">type Timeval</a></li>
<li> <a href="#NsecToTimeval">func NsecToTimeval(nsec int64) Timeval</a>
</li>
<li> <a href="#Timeval.Nano">func (tv *Timeval) Nano() int64</a>
</li>
<li> <a href="#Timeval.Unix">func (tv *Timeval) Unix() (sec int64, nsec int64)</a>
</li>
<li><a href="#Timex">type Timex</a></li>
<li><a href="#Tms">type Tms</a></li>
<li><a href="#Ucred">type Ucred</a></li>
<li> <a href="#GetsockoptUcred">func GetsockoptUcred(fd, level, opt int) (*Ucred, error)</a>
</li>
<li> <a href="#ParseUnixCredentials">func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error)</a>
</li>
<li><a href="#Ustat_t">type Ustat_t</a></li>
<li><a href="#Utimbuf">type Utimbuf</a></li>
<li><a href="#Utsname">type Utsname</a></li>
<li><a href="#WaitStatus">type WaitStatus</a></li>
<li> <a href="#WaitStatus.Continued">func (w WaitStatus) Continued() bool</a>
</li>
<li> <a href="#WaitStatus.CoreDump">func (w WaitStatus) CoreDump() bool</a>
</li>
<li> <a href="#WaitStatus.ExitStatus">func (w WaitStatus) ExitStatus() int</a>
</li>
<li> <a href="#WaitStatus.Exited">func (w WaitStatus) Exited() bool</a>
</li>
<li> <a href="#WaitStatus.Signal">func (w WaitStatus) Signal() Signal</a>
</li>
<li> <a href="#WaitStatus.Signaled">func (w WaitStatus) Signaled() bool</a>
</li>
<li> <a href="#WaitStatus.StopSignal">func (w WaitStatus) StopSignal() Signal</a>
</li>
<li> <a href="#WaitStatus.Stopped">func (w WaitStatus) Stopped() bool</a>
</li>
<li> <a href="#WaitStatus.TrapCause">func (w WaitStatus) TrapCause() int</a>
</li>
</ul> <h3>Package files</h3> <p>  <span>asan0.go</span> <span>dirent.go</span> <span>endian_little.go</span> <span>env_unix.go</span> <span>exec_linux.go</span> <span>exec_unix.go</span> <span>flock_linux.go</span> <span>forkpipe2.go</span> <span>lsf_linux.go</span> <span>msan0.go</span> <span>net.go</span> <span>netlink_linux.go</span> <span>rlimit.go</span> <span>rlimit_stub.go</span> <span>setuidgid_linux.go</span> <span>sockcmsg_linux.go</span> <span>sockcmsg_unix.go</span> <span>sockcmsg_unix_other.go</span> <span>syscall.go</span> <span>syscall_linux.go</span> <span>syscall_linux_accept4.go</span> <span>syscall_linux_amd64.go</span> <span>syscall_unix.go</span> <span>time_nofake.go</span> <span>timestruct.go</span> <span>zerrors_linux_amd64.go</span> <span>zsyscall_linux_amd64.go</span> <span>zsysnum_linux_amd64.go</span> <span>ztypes_linux_amd64.go</span>  </p>   <h2 id="pkg-constants">Constants</h2> <p>Linux unshare/clone/clone2/clone3 flags, architecture-independent, copied from linux/sched.h. </p>
<pre data-language="go">const (
    CLONE_VM             = 0x00000100 // set if VM shared between processes
    CLONE_FS             = 0x00000200 // set if fs info shared between processes
    CLONE_FILES          = 0x00000400 // set if open files shared between processes
    CLONE_SIGHAND        = 0x00000800 // set if signal handlers and blocked signals shared
    CLONE_PIDFD          = 0x00001000 // set if a pidfd should be placed in parent
    CLONE_PTRACE         = 0x00002000 // set if we want to let tracing continue on the child too
    CLONE_VFORK          = 0x00004000 // set if the parent wants the child to wake it up on mm_release
    CLONE_PARENT         = 0x00008000 // set if we want to have the same parent as the cloner
    CLONE_THREAD         = 0x00010000 // Same thread group?
    CLONE_NEWNS          = 0x00020000 // New mount namespace group
    CLONE_SYSVSEM        = 0x00040000 // share system V SEM_UNDO semantics
    CLONE_SETTLS         = 0x00080000 // create a new TLS for the child
    CLONE_PARENT_SETTID  = 0x00100000 // set the TID in the parent
    CLONE_CHILD_CLEARTID = 0x00200000 // clear the TID in the child
    CLONE_DETACHED       = 0x00400000 // Unused, ignored
    CLONE_UNTRACED       = 0x00800000 // set if the tracing process can't force CLONE_PTRACE on this clone
    CLONE_CHILD_SETTID   = 0x01000000 // set the TID in the child
    CLONE_NEWCGROUP      = 0x02000000 // New cgroup namespace
    CLONE_NEWUTS         = 0x04000000 // New utsname namespace
    CLONE_NEWIPC         = 0x08000000 // New ipc namespace
    CLONE_NEWUSER        = 0x10000000 // New user namespace
    CLONE_NEWPID         = 0x20000000 // New pid namespace
    CLONE_NEWNET         = 0x40000000 // New network namespace
    CLONE_IO             = 0x80000000 // Clone io context

    CLONE_CLEAR_SIGHAND = 0x100000000 // Clear any signal handler and reset to SIG_DFL.
    CLONE_INTO_CGROUP   = 0x200000000 // Clone into a specific cgroup given the right permissions.

    CLONE_NEWTIME = 0x00000080 // New time namespace
)</pre> <pre data-language="go">const (
    AF_ALG                           = 0x26
    AF_APPLETALK                     = 0x5
    AF_ASH                           = 0x12
    AF_ATMPVC                        = 0x8
    AF_ATMSVC                        = 0x14
    AF_AX25                          = 0x3
    AF_BLUETOOTH                     = 0x1f
    AF_BRIDGE                        = 0x7
    AF_CAIF                          = 0x25
    AF_CAN                           = 0x1d
    AF_DECnet                        = 0xc
    AF_ECONET                        = 0x13
    AF_FILE                          = 0x1
    AF_IEEE802154                    = 0x24
    AF_INET                          = 0x2
    AF_INET6                         = 0xa
    AF_IPX                           = 0x4
    AF_IRDA                          = 0x17
    AF_ISDN                          = 0x22
    AF_IUCV                          = 0x20
    AF_KEY                           = 0xf
    AF_LLC                           = 0x1a
    AF_LOCAL                         = 0x1
    AF_MAX                           = 0x27
    AF_NETBEUI                       = 0xd
    AF_NETLINK                       = 0x10
    AF_NETROM                        = 0x6
    AF_PACKET                        = 0x11
    AF_PHONET                        = 0x23
    AF_PPPOX                         = 0x18
    AF_RDS                           = 0x15
    AF_ROSE                          = 0xb
    AF_ROUTE                         = 0x10
    AF_RXRPC                         = 0x21
    AF_SECURITY                      = 0xe
    AF_SNA                           = 0x16
    AF_TIPC                          = 0x1e
    AF_UNIX                          = 0x1
    AF_UNSPEC                        = 0x0
    AF_WANPIPE                       = 0x19
    AF_X25                           = 0x9
    ARPHRD_ADAPT                     = 0x108
    ARPHRD_APPLETLK                  = 0x8
    ARPHRD_ARCNET                    = 0x7
    ARPHRD_ASH                       = 0x30d
    ARPHRD_ATM                       = 0x13
    ARPHRD_AX25                      = 0x3
    ARPHRD_BIF                       = 0x307
    ARPHRD_CHAOS                     = 0x5
    ARPHRD_CISCO                     = 0x201
    ARPHRD_CSLIP                     = 0x101
    ARPHRD_CSLIP6                    = 0x103
    ARPHRD_DDCMP                     = 0x205
    ARPHRD_DLCI                      = 0xf
    ARPHRD_ECONET                    = 0x30e
    ARPHRD_EETHER                    = 0x2
    ARPHRD_ETHER                     = 0x1
    ARPHRD_EUI64                     = 0x1b
    ARPHRD_FCAL                      = 0x311
    ARPHRD_FCFABRIC                  = 0x313
    ARPHRD_FCPL                      = 0x312
    ARPHRD_FCPP                      = 0x310
    ARPHRD_FDDI                      = 0x306
    ARPHRD_FRAD                      = 0x302
    ARPHRD_HDLC                      = 0x201
    ARPHRD_HIPPI                     = 0x30c
    ARPHRD_HWX25                     = 0x110
    ARPHRD_IEEE1394                  = 0x18
    ARPHRD_IEEE802                   = 0x6
    ARPHRD_IEEE80211                 = 0x321
    ARPHRD_IEEE80211_PRISM           = 0x322
    ARPHRD_IEEE80211_RADIOTAP        = 0x323
    ARPHRD_IEEE802154                = 0x324
    ARPHRD_IEEE802154_PHY            = 0x325
    ARPHRD_IEEE802_TR                = 0x320
    ARPHRD_INFINIBAND                = 0x20
    ARPHRD_IPDDP                     = 0x309
    ARPHRD_IPGRE                     = 0x30a
    ARPHRD_IRDA                      = 0x30f
    ARPHRD_LAPB                      = 0x204
    ARPHRD_LOCALTLK                  = 0x305
    ARPHRD_LOOPBACK                  = 0x304
    ARPHRD_METRICOM                  = 0x17
    ARPHRD_NETROM                    = 0x0
    ARPHRD_NONE                      = 0xfffe
    ARPHRD_PIMREG                    = 0x30b
    ARPHRD_PPP                       = 0x200
    ARPHRD_PRONET                    = 0x4
    ARPHRD_RAWHDLC                   = 0x206
    ARPHRD_ROSE                      = 0x10e
    ARPHRD_RSRVD                     = 0x104
    ARPHRD_SIT                       = 0x308
    ARPHRD_SKIP                      = 0x303
    ARPHRD_SLIP                      = 0x100
    ARPHRD_SLIP6                     = 0x102
    ARPHRD_TUNNEL                    = 0x300
    ARPHRD_TUNNEL6                   = 0x301
    ARPHRD_VOID                      = 0xffff
    ARPHRD_X25                       = 0x10f
    BPF_A                            = 0x10
    BPF_ABS                          = 0x20
    BPF_ADD                          = 0x0
    BPF_ALU                          = 0x4
    BPF_AND                          = 0x50
    BPF_B                            = 0x10
    BPF_DIV                          = 0x30
    BPF_H                            = 0x8
    BPF_IMM                          = 0x0
    BPF_IND                          = 0x40
    BPF_JA                           = 0x0
    BPF_JEQ                          = 0x10
    BPF_JGE                          = 0x30
    BPF_JGT                          = 0x20
    BPF_JMP                          = 0x5
    BPF_JSET                         = 0x40
    BPF_K                            = 0x0
    BPF_LD                           = 0x0
    BPF_LDX                          = 0x1
    BPF_LEN                          = 0x80
    BPF_LSH                          = 0x60
    BPF_MAJOR_VERSION                = 0x1
    BPF_MAXINSNS                     = 0x1000
    BPF_MEM                          = 0x60
    BPF_MEMWORDS                     = 0x10
    BPF_MINOR_VERSION                = 0x1
    BPF_MISC                         = 0x7
    BPF_MSH                          = 0xa0
    BPF_MUL                          = 0x20
    BPF_NEG                          = 0x80
    BPF_OR                           = 0x40
    BPF_RET                          = 0x6
    BPF_RSH                          = 0x70
    BPF_ST                           = 0x2
    BPF_STX                          = 0x3
    BPF_SUB                          = 0x10
    BPF_TAX                          = 0x0
    BPF_TXA                          = 0x80
    BPF_W                            = 0x0
    BPF_X                            = 0x8
    DT_BLK                           = 0x6
    DT_CHR                           = 0x2
    DT_DIR                           = 0x4
    DT_FIFO                          = 0x1
    DT_LNK                           = 0xa
    DT_REG                           = 0x8
    DT_SOCK                          = 0xc
    DT_UNKNOWN                       = 0x0
    DT_WHT                           = 0xe
    EPOLLERR                         = 0x8
    EPOLLET                          = -0x80000000
    EPOLLHUP                         = 0x10
    EPOLLIN                          = 0x1
    EPOLLMSG                         = 0x400
    EPOLLONESHOT                     = 0x40000000
    EPOLLOUT                         = 0x4
    EPOLLPRI                         = 0x2
    EPOLLRDBAND                      = 0x80
    EPOLLRDHUP                       = 0x2000
    EPOLLRDNORM                      = 0x40
    EPOLLWRBAND                      = 0x200
    EPOLLWRNORM                      = 0x100
    EPOLL_CLOEXEC                    = 0x80000
    EPOLL_CTL_ADD                    = 0x1
    EPOLL_CTL_DEL                    = 0x2
    EPOLL_CTL_MOD                    = 0x3
    EPOLL_NONBLOCK                   = 0x800
    ETH_P_1588                       = 0x88f7
    ETH_P_8021Q                      = 0x8100
    ETH_P_802_2                      = 0x4
    ETH_P_802_3                      = 0x1
    ETH_P_AARP                       = 0x80f3
    ETH_P_ALL                        = 0x3
    ETH_P_AOE                        = 0x88a2
    ETH_P_ARCNET                     = 0x1a
    ETH_P_ARP                        = 0x806
    ETH_P_ATALK                      = 0x809b
    ETH_P_ATMFATE                    = 0x8884
    ETH_P_ATMMPOA                    = 0x884c
    ETH_P_AX25                       = 0x2
    ETH_P_BPQ                        = 0x8ff
    ETH_P_CAIF                       = 0xf7
    ETH_P_CAN                        = 0xc
    ETH_P_CONTROL                    = 0x16
    ETH_P_CUST                       = 0x6006
    ETH_P_DDCMP                      = 0x6
    ETH_P_DEC                        = 0x6000
    ETH_P_DIAG                       = 0x6005
    ETH_P_DNA_DL                     = 0x6001
    ETH_P_DNA_RC                     = 0x6002
    ETH_P_DNA_RT                     = 0x6003
    ETH_P_DSA                        = 0x1b
    ETH_P_ECONET                     = 0x18
    ETH_P_EDSA                       = 0xdada
    ETH_P_FCOE                       = 0x8906
    ETH_P_FIP                        = 0x8914
    ETH_P_HDLC                       = 0x19
    ETH_P_IEEE802154                 = 0xf6
    ETH_P_IEEEPUP                    = 0xa00
    ETH_P_IEEEPUPAT                  = 0xa01
    ETH_P_IP                         = 0x800
    ETH_P_IPV6                       = 0x86dd
    ETH_P_IPX                        = 0x8137
    ETH_P_IRDA                       = 0x17
    ETH_P_LAT                        = 0x6004
    ETH_P_LINK_CTL                   = 0x886c
    ETH_P_LOCALTALK                  = 0x9
    ETH_P_LOOP                       = 0x60
    ETH_P_MOBITEX                    = 0x15
    ETH_P_MPLS_MC                    = 0x8848
    ETH_P_MPLS_UC                    = 0x8847
    ETH_P_PAE                        = 0x888e
    ETH_P_PAUSE                      = 0x8808
    ETH_P_PHONET                     = 0xf5
    ETH_P_PPPTALK                    = 0x10
    ETH_P_PPP_DISC                   = 0x8863
    ETH_P_PPP_MP                     = 0x8
    ETH_P_PPP_SES                    = 0x8864
    ETH_P_PUP                        = 0x200
    ETH_P_PUPAT                      = 0x201
    ETH_P_RARP                       = 0x8035
    ETH_P_SCA                        = 0x6007
    ETH_P_SLOW                       = 0x8809
    ETH_P_SNAP                       = 0x5
    ETH_P_TEB                        = 0x6558
    ETH_P_TIPC                       = 0x88ca
    ETH_P_TRAILER                    = 0x1c
    ETH_P_TR_802_2                   = 0x11
    ETH_P_WAN_PPP                    = 0x7
    ETH_P_WCCP                       = 0x883e
    ETH_P_X25                        = 0x805
    FD_CLOEXEC                       = 0x1
    FD_SETSIZE                       = 0x400
    F_DUPFD                          = 0x0
    F_DUPFD_CLOEXEC                  = 0x406
    F_EXLCK                          = 0x4
    F_GETFD                          = 0x1
    F_GETFL                          = 0x3
    F_GETLEASE                       = 0x401
    F_GETLK                          = 0x5
    F_GETLK64                        = 0x5
    F_GETOWN                         = 0x9
    F_GETOWN_EX                      = 0x10
    F_GETPIPE_SZ                     = 0x408
    F_GETSIG                         = 0xb
    F_LOCK                           = 0x1
    F_NOTIFY                         = 0x402
    F_OK                             = 0x0
    F_RDLCK                          = 0x0
    F_SETFD                          = 0x2
    F_SETFL                          = 0x4
    F_SETLEASE                       = 0x400
    F_SETLK                          = 0x6
    F_SETLK64                        = 0x6
    F_SETLKW                         = 0x7
    F_SETLKW64                       = 0x7
    F_SETOWN                         = 0x8
    F_SETOWN_EX                      = 0xf
    F_SETPIPE_SZ                     = 0x407
    F_SETSIG                         = 0xa
    F_SHLCK                          = 0x8
    F_TEST                           = 0x3
    F_TLOCK                          = 0x2
    F_ULOCK                          = 0x0
    F_UNLCK                          = 0x2
    F_WRLCK                          = 0x1
    ICMPV6_FILTER                    = 0x1
    IFA_F_DADFAILED                  = 0x8
    IFA_F_DEPRECATED                 = 0x20
    IFA_F_HOMEADDRESS                = 0x10
    IFA_F_NODAD                      = 0x2
    IFA_F_OPTIMISTIC                 = 0x4
    IFA_F_PERMANENT                  = 0x80
    IFA_F_SECONDARY                  = 0x1
    IFA_F_TEMPORARY                  = 0x1
    IFA_F_TENTATIVE                  = 0x40
    IFA_MAX                          = 0x7
    IFF_ALLMULTI                     = 0x200
    IFF_AUTOMEDIA                    = 0x4000
    IFF_BROADCAST                    = 0x2
    IFF_DEBUG                        = 0x4
    IFF_DYNAMIC                      = 0x8000
    IFF_LOOPBACK                     = 0x8
    IFF_MASTER                       = 0x400
    IFF_MULTICAST                    = 0x1000
    IFF_NOARP                        = 0x80
    IFF_NOTRAILERS                   = 0x20
    IFF_NO_PI                        = 0x1000
    IFF_ONE_QUEUE                    = 0x2000
    IFF_POINTOPOINT                  = 0x10
    IFF_PORTSEL                      = 0x2000
    IFF_PROMISC                      = 0x100
    IFF_RUNNING                      = 0x40
    IFF_SLAVE                        = 0x800
    IFF_TAP                          = 0x2
    IFF_TUN                          = 0x1
    IFF_TUN_EXCL                     = 0x8000
    IFF_UP                           = 0x1
    IFF_VNET_HDR                     = 0x4000
    IFNAMSIZ                         = 0x10
    IN_ACCESS                        = 0x1
    IN_ALL_EVENTS                    = 0xfff
    IN_ATTRIB                        = 0x4
    IN_CLASSA_HOST                   = 0xffffff
    IN_CLASSA_MAX                    = 0x80
    IN_CLASSA_NET                    = 0xff000000
    IN_CLASSA_NSHIFT                 = 0x18
    IN_CLASSB_HOST                   = 0xffff
    IN_CLASSB_MAX                    = 0x10000
    IN_CLASSB_NET                    = 0xffff0000
    IN_CLASSB_NSHIFT                 = 0x10
    IN_CLASSC_HOST                   = 0xff
    IN_CLASSC_NET                    = 0xffffff00
    IN_CLASSC_NSHIFT                 = 0x8
    IN_CLOEXEC                       = 0x80000
    IN_CLOSE                         = 0x18
    IN_CLOSE_NOWRITE                 = 0x10
    IN_CLOSE_WRITE                   = 0x8
    IN_CREATE                        = 0x100
    IN_DELETE                        = 0x200
    IN_DELETE_SELF                   = 0x400
    IN_DONT_FOLLOW                   = 0x2000000
    IN_EXCL_UNLINK                   = 0x4000000
    IN_IGNORED                       = 0x8000
    IN_ISDIR                         = 0x40000000
    IN_LOOPBACKNET                   = 0x7f
    IN_MASK_ADD                      = 0x20000000
    IN_MODIFY                        = 0x2
    IN_MOVE                          = 0xc0
    IN_MOVED_FROM                    = 0x40
    IN_MOVED_TO                      = 0x80
    IN_MOVE_SELF                     = 0x800
    IN_NONBLOCK                      = 0x800
    IN_ONESHOT                       = 0x80000000
    IN_ONLYDIR                       = 0x1000000
    IN_OPEN                          = 0x20
    IN_Q_OVERFLOW                    = 0x4000
    IN_UNMOUNT                       = 0x2000
    IPPROTO_AH                       = 0x33
    IPPROTO_COMP                     = 0x6c
    IPPROTO_DCCP                     = 0x21
    IPPROTO_DSTOPTS                  = 0x3c
    IPPROTO_EGP                      = 0x8
    IPPROTO_ENCAP                    = 0x62
    IPPROTO_ESP                      = 0x32
    IPPROTO_FRAGMENT                 = 0x2c
    IPPROTO_GRE                      = 0x2f
    IPPROTO_HOPOPTS                  = 0x0
    IPPROTO_ICMP                     = 0x1
    IPPROTO_ICMPV6                   = 0x3a
    IPPROTO_IDP                      = 0x16
    IPPROTO_IGMP                     = 0x2
    IPPROTO_IP                       = 0x0
    IPPROTO_IPIP                     = 0x4
    IPPROTO_IPV6                     = 0x29
    IPPROTO_MTP                      = 0x5c
    IPPROTO_NONE                     = 0x3b
    IPPROTO_PIM                      = 0x67
    IPPROTO_PUP                      = 0xc
    IPPROTO_RAW                      = 0xff
    IPPROTO_ROUTING                  = 0x2b
    IPPROTO_RSVP                     = 0x2e
    IPPROTO_SCTP                     = 0x84
    IPPROTO_TCP                      = 0x6
    IPPROTO_TP                       = 0x1d
    IPPROTO_UDP                      = 0x11
    IPPROTO_UDPLITE                  = 0x88
    IPV6_2292DSTOPTS                 = 0x4
    IPV6_2292HOPLIMIT                = 0x8
    IPV6_2292HOPOPTS                 = 0x3
    IPV6_2292PKTINFO                 = 0x2
    IPV6_2292PKTOPTIONS              = 0x6
    IPV6_2292RTHDR                   = 0x5
    IPV6_ADDRFORM                    = 0x1
    IPV6_ADD_MEMBERSHIP              = 0x14
    IPV6_AUTHHDR                     = 0xa
    IPV6_CHECKSUM                    = 0x7
    IPV6_DROP_MEMBERSHIP             = 0x15
    IPV6_DSTOPTS                     = 0x3b
    IPV6_HOPLIMIT                    = 0x34
    IPV6_HOPOPTS                     = 0x36
    IPV6_IPSEC_POLICY                = 0x22
    IPV6_JOIN_ANYCAST                = 0x1b
    IPV6_JOIN_GROUP                  = 0x14
    IPV6_LEAVE_ANYCAST               = 0x1c
    IPV6_LEAVE_GROUP                 = 0x15
    IPV6_MTU                         = 0x18
    IPV6_MTU_DISCOVER                = 0x17
    IPV6_MULTICAST_HOPS              = 0x12
    IPV6_MULTICAST_IF                = 0x11
    IPV6_MULTICAST_LOOP              = 0x13
    IPV6_NEXTHOP                     = 0x9
    IPV6_PKTINFO                     = 0x32
    IPV6_PMTUDISC_DO                 = 0x2
    IPV6_PMTUDISC_DONT               = 0x0
    IPV6_PMTUDISC_PROBE              = 0x3
    IPV6_PMTUDISC_WANT               = 0x1
    IPV6_RECVDSTOPTS                 = 0x3a
    IPV6_RECVERR                     = 0x19
    IPV6_RECVHOPLIMIT                = 0x33
    IPV6_RECVHOPOPTS                 = 0x35
    IPV6_RECVPKTINFO                 = 0x31
    IPV6_RECVRTHDR                   = 0x38
    IPV6_RECVTCLASS                  = 0x42
    IPV6_ROUTER_ALERT                = 0x16
    IPV6_RTHDR                       = 0x39
    IPV6_RTHDRDSTOPTS                = 0x37
    IPV6_RTHDR_LOOSE                 = 0x0
    IPV6_RTHDR_STRICT                = 0x1
    IPV6_RTHDR_TYPE_0                = 0x0
    IPV6_RXDSTOPTS                   = 0x3b
    IPV6_RXHOPOPTS                   = 0x36
    IPV6_TCLASS                      = 0x43
    IPV6_UNICAST_HOPS                = 0x10
    IPV6_V6ONLY                      = 0x1a
    IPV6_XFRM_POLICY                 = 0x23
    IP_ADD_MEMBERSHIP                = 0x23
    IP_ADD_SOURCE_MEMBERSHIP         = 0x27
    IP_BLOCK_SOURCE                  = 0x26
    IP_DEFAULT_MULTICAST_LOOP        = 0x1
    IP_DEFAULT_MULTICAST_TTL         = 0x1
    IP_DF                            = 0x4000
    IP_DROP_MEMBERSHIP               = 0x24
    IP_DROP_SOURCE_MEMBERSHIP        = 0x28
    IP_FREEBIND                      = 0xf
    IP_HDRINCL                       = 0x3
    IP_IPSEC_POLICY                  = 0x10
    IP_MAXPACKET                     = 0xffff
    IP_MAX_MEMBERSHIPS               = 0x14
    IP_MF                            = 0x2000
    IP_MINTTL                        = 0x15
    IP_MSFILTER                      = 0x29
    IP_MSS                           = 0x240
    IP_MTU                           = 0xe
    IP_MTU_DISCOVER                  = 0xa
    IP_MULTICAST_IF                  = 0x20
    IP_MULTICAST_LOOP                = 0x22
    IP_MULTICAST_TTL                 = 0x21
    IP_OFFMASK                       = 0x1fff
    IP_OPTIONS                       = 0x4
    IP_ORIGDSTADDR                   = 0x14
    IP_PASSSEC                       = 0x12
    IP_PKTINFO                       = 0x8
    IP_PKTOPTIONS                    = 0x9
    IP_PMTUDISC                      = 0xa
    IP_PMTUDISC_DO                   = 0x2
    IP_PMTUDISC_DONT                 = 0x0
    IP_PMTUDISC_PROBE                = 0x3
    IP_PMTUDISC_WANT                 = 0x1
    IP_RECVERR                       = 0xb
    IP_RECVOPTS                      = 0x6
    IP_RECVORIGDSTADDR               = 0x14
    IP_RECVRETOPTS                   = 0x7
    IP_RECVTOS                       = 0xd
    IP_RECVTTL                       = 0xc
    IP_RETOPTS                       = 0x7
    IP_RF                            = 0x8000
    IP_ROUTER_ALERT                  = 0x5
    IP_TOS                           = 0x1
    IP_TRANSPARENT                   = 0x13
    IP_TTL                           = 0x2
    IP_UNBLOCK_SOURCE                = 0x25
    IP_XFRM_POLICY                   = 0x11
    LINUX_REBOOT_CMD_CAD_OFF         = 0x0
    LINUX_REBOOT_CMD_CAD_ON          = 0x89abcdef
    LINUX_REBOOT_CMD_HALT            = 0xcdef0123
    LINUX_REBOOT_CMD_KEXEC           = 0x45584543
    LINUX_REBOOT_CMD_POWER_OFF       = 0x4321fedc
    LINUX_REBOOT_CMD_RESTART         = 0x1234567
    LINUX_REBOOT_CMD_RESTART2        = 0xa1b2c3d4
    LINUX_REBOOT_CMD_SW_SUSPEND      = 0xd000fce2
    LINUX_REBOOT_MAGIC1              = 0xfee1dead
    LINUX_REBOOT_MAGIC2              = 0x28121969
    LOCK_EX                          = 0x2
    LOCK_NB                          = 0x4
    LOCK_SH                          = 0x1
    LOCK_UN                          = 0x8
    MADV_DOFORK                      = 0xb
    MADV_DONTFORK                    = 0xa
    MADV_DONTNEED                    = 0x4
    MADV_HUGEPAGE                    = 0xe
    MADV_HWPOISON                    = 0x64
    MADV_MERGEABLE                   = 0xc
    MADV_NOHUGEPAGE                  = 0xf
    MADV_NORMAL                      = 0x0
    MADV_RANDOM                      = 0x1
    MADV_REMOVE                      = 0x9
    MADV_SEQUENTIAL                  = 0x2
    MADV_UNMERGEABLE                 = 0xd
    MADV_WILLNEED                    = 0x3
    MAP_32BIT                        = 0x40
    MAP_ANON                         = 0x20
    MAP_ANONYMOUS                    = 0x20
    MAP_DENYWRITE                    = 0x800
    MAP_EXECUTABLE                   = 0x1000
    MAP_FILE                         = 0x0
    MAP_FIXED                        = 0x10
    MAP_GROWSDOWN                    = 0x100
    MAP_HUGETLB                      = 0x40000
    MAP_LOCKED                       = 0x2000
    MAP_NONBLOCK                     = 0x10000
    MAP_NORESERVE                    = 0x4000
    MAP_POPULATE                     = 0x8000
    MAP_PRIVATE                      = 0x2
    MAP_SHARED                       = 0x1
    MAP_STACK                        = 0x20000
    MAP_TYPE                         = 0xf
    MCL_CURRENT                      = 0x1
    MCL_FUTURE                       = 0x2
    MNT_DETACH                       = 0x2
    MNT_EXPIRE                       = 0x4
    MNT_FORCE                        = 0x1
    MSG_CMSG_CLOEXEC                 = 0x40000000
    MSG_CONFIRM                      = 0x800
    MSG_CTRUNC                       = 0x8
    MSG_DONTROUTE                    = 0x4
    MSG_DONTWAIT                     = 0x40
    MSG_EOR                          = 0x80
    MSG_ERRQUEUE                     = 0x2000
    MSG_FASTOPEN                     = 0x20000000
    MSG_FIN                          = 0x200
    MSG_MORE                         = 0x8000
    MSG_NOSIGNAL                     = 0x4000
    MSG_OOB                          = 0x1
    MSG_PEEK                         = 0x2
    MSG_PROXY                        = 0x10
    MSG_RST                          = 0x1000
    MSG_SYN                          = 0x400
    MSG_TRUNC                        = 0x20
    MSG_TRYHARD                      = 0x4
    MSG_WAITALL                      = 0x100
    MSG_WAITFORONE                   = 0x10000
    MS_ACTIVE                        = 0x40000000
    MS_ASYNC                         = 0x1
    MS_BIND                          = 0x1000
    MS_DIRSYNC                       = 0x80
    MS_INVALIDATE                    = 0x2
    MS_I_VERSION                     = 0x800000
    MS_KERNMOUNT                     = 0x400000
    MS_MANDLOCK                      = 0x40
    MS_MGC_MSK                       = 0xffff0000
    MS_MGC_VAL                       = 0xc0ed0000
    MS_MOVE                          = 0x2000
    MS_NOATIME                       = 0x400
    MS_NODEV                         = 0x4
    MS_NODIRATIME                    = 0x800
    MS_NOEXEC                        = 0x8
    MS_NOSUID                        = 0x2
    MS_NOUSER                        = -0x80000000
    MS_POSIXACL                      = 0x10000
    MS_PRIVATE                       = 0x40000
    MS_RDONLY                        = 0x1
    MS_REC                           = 0x4000
    MS_RELATIME                      = 0x200000
    MS_REMOUNT                       = 0x20
    MS_RMT_MASK                      = 0x800051
    MS_SHARED                        = 0x100000
    MS_SILENT                        = 0x8000
    MS_SLAVE                         = 0x80000
    MS_STRICTATIME                   = 0x1000000
    MS_SYNC                          = 0x4
    MS_SYNCHRONOUS                   = 0x10
    MS_UNBINDABLE                    = 0x20000
    NAME_MAX                         = 0xff
    NETLINK_ADD_MEMBERSHIP           = 0x1
    NETLINK_AUDIT                    = 0x9
    NETLINK_BROADCAST_ERROR          = 0x4
    NETLINK_CONNECTOR                = 0xb
    NETLINK_DNRTMSG                  = 0xe
    NETLINK_DROP_MEMBERSHIP          = 0x2
    NETLINK_ECRYPTFS                 = 0x13
    NETLINK_FIB_LOOKUP               = 0xa
    NETLINK_FIREWALL                 = 0x3
    NETLINK_GENERIC                  = 0x10
    NETLINK_INET_DIAG                = 0x4
    NETLINK_IP6_FW                   = 0xd
    NETLINK_ISCSI                    = 0x8
    NETLINK_KOBJECT_UEVENT           = 0xf
    NETLINK_NETFILTER                = 0xc
    NETLINK_NFLOG                    = 0x5
    NETLINK_NO_ENOBUFS               = 0x5
    NETLINK_PKTINFO                  = 0x3
    NETLINK_ROUTE                    = 0x0
    NETLINK_SCSITRANSPORT            = 0x12
    NETLINK_SELINUX                  = 0x7
    NETLINK_UNUSED                   = 0x1
    NETLINK_USERSOCK                 = 0x2
    NETLINK_XFRM                     = 0x6
    NLA_ALIGNTO                      = 0x4
    NLA_F_NESTED                     = 0x8000
    NLA_F_NET_BYTEORDER              = 0x4000
    NLA_HDRLEN                       = 0x4
    NLMSG_ALIGNTO                    = 0x4
    NLMSG_DONE                       = 0x3
    NLMSG_ERROR                      = 0x2
    NLMSG_HDRLEN                     = 0x10
    NLMSG_MIN_TYPE                   = 0x10
    NLMSG_NOOP                       = 0x1
    NLMSG_OVERRUN                    = 0x4
    NLM_F_ACK                        = 0x4
    NLM_F_APPEND                     = 0x800
    NLM_F_ATOMIC                     = 0x400
    NLM_F_CREATE                     = 0x400
    NLM_F_DUMP                       = 0x300
    NLM_F_ECHO                       = 0x8
    NLM_F_EXCL                       = 0x200
    NLM_F_MATCH                      = 0x200
    NLM_F_MULTI                      = 0x2
    NLM_F_REPLACE                    = 0x100
    NLM_F_REQUEST                    = 0x1
    NLM_F_ROOT                       = 0x100
    O_ACCMODE                        = 0x3
    O_APPEND                         = 0x400
    O_ASYNC                          = 0x2000
    O_CLOEXEC                        = 0x80000
    O_CREAT                          = 0x40
    O_DIRECT                         = 0x4000
    O_DIRECTORY                      = 0x10000
    O_DSYNC                          = 0x1000
    O_EXCL                           = 0x80
    O_FSYNC                          = 0x101000
    O_LARGEFILE                      = 0x0
    O_NDELAY                         = 0x800
    O_NOATIME                        = 0x40000
    O_NOCTTY                         = 0x100
    O_NOFOLLOW                       = 0x20000
    O_NONBLOCK                       = 0x800
    O_RDONLY                         = 0x0
    O_RDWR                           = 0x2
    O_RSYNC                          = 0x101000
    O_SYNC                           = 0x101000
    O_TRUNC                          = 0x200
    O_WRONLY                         = 0x1
    PACKET_ADD_MEMBERSHIP            = 0x1
    PACKET_BROADCAST                 = 0x1
    PACKET_DROP_MEMBERSHIP           = 0x2
    PACKET_FASTROUTE                 = 0x6
    PACKET_HOST                      = 0x0
    PACKET_LOOPBACK                  = 0x5
    PACKET_MR_ALLMULTI               = 0x2
    PACKET_MR_MULTICAST              = 0x0
    PACKET_MR_PROMISC                = 0x1
    PACKET_MULTICAST                 = 0x2
    PACKET_OTHERHOST                 = 0x3
    PACKET_OUTGOING                  = 0x4
    PACKET_RECV_OUTPUT               = 0x3
    PACKET_RX_RING                   = 0x5
    PACKET_STATISTICS                = 0x6
    PRIO_PGRP                        = 0x1
    PRIO_PROCESS                     = 0x0
    PRIO_USER                        = 0x2
    PROT_EXEC                        = 0x4
    PROT_GROWSDOWN                   = 0x1000000
    PROT_GROWSUP                     = 0x2000000
    PROT_NONE                        = 0x0
    PROT_READ                        = 0x1
    PROT_WRITE                       = 0x2
    PR_CAPBSET_DROP                  = 0x18
    PR_CAPBSET_READ                  = 0x17
    PR_ENDIAN_BIG                    = 0x0
    PR_ENDIAN_LITTLE                 = 0x1
    PR_ENDIAN_PPC_LITTLE             = 0x2
    PR_FPEMU_NOPRINT                 = 0x1
    PR_FPEMU_SIGFPE                  = 0x2
    PR_FP_EXC_ASYNC                  = 0x2
    PR_FP_EXC_DISABLED               = 0x0
    PR_FP_EXC_DIV                    = 0x10000
    PR_FP_EXC_INV                    = 0x100000
    PR_FP_EXC_NONRECOV               = 0x1
    PR_FP_EXC_OVF                    = 0x20000
    PR_FP_EXC_PRECISE                = 0x3
    PR_FP_EXC_RES                    = 0x80000
    PR_FP_EXC_SW_ENABLE              = 0x80
    PR_FP_EXC_UND                    = 0x40000
    PR_GET_DUMPABLE                  = 0x3
    PR_GET_ENDIAN                    = 0x13
    PR_GET_FPEMU                     = 0x9
    PR_GET_FPEXC                     = 0xb
    PR_GET_KEEPCAPS                  = 0x7
    PR_GET_NAME                      = 0x10
    PR_GET_PDEATHSIG                 = 0x2
    PR_GET_SECCOMP                   = 0x15
    PR_GET_SECUREBITS                = 0x1b
    PR_GET_TIMERSLACK                = 0x1e
    PR_GET_TIMING                    = 0xd
    PR_GET_TSC                       = 0x19
    PR_GET_UNALIGN                   = 0x5
    PR_MCE_KILL                      = 0x21
    PR_MCE_KILL_CLEAR                = 0x0
    PR_MCE_KILL_DEFAULT              = 0x2
    PR_MCE_KILL_EARLY                = 0x1
    PR_MCE_KILL_GET                  = 0x22
    PR_MCE_KILL_LATE                 = 0x0
    PR_MCE_KILL_SET                  = 0x1
    PR_SET_DUMPABLE                  = 0x4
    PR_SET_ENDIAN                    = 0x14
    PR_SET_FPEMU                     = 0xa
    PR_SET_FPEXC                     = 0xc
    PR_SET_KEEPCAPS                  = 0x8
    PR_SET_NAME                      = 0xf
    PR_SET_PDEATHSIG                 = 0x1
    PR_SET_PTRACER                   = 0x59616d61
    PR_SET_SECCOMP                   = 0x16
    PR_SET_SECUREBITS                = 0x1c
    PR_SET_TIMERSLACK                = 0x1d
    PR_SET_TIMING                    = 0xe
    PR_SET_TSC                       = 0x1a
    PR_SET_UNALIGN                   = 0x6
    PR_TASK_PERF_EVENTS_DISABLE      = 0x1f
    PR_TASK_PERF_EVENTS_ENABLE       = 0x20
    PR_TIMING_STATISTICAL            = 0x0
    PR_TIMING_TIMESTAMP              = 0x1
    PR_TSC_ENABLE                    = 0x1
    PR_TSC_SIGSEGV                   = 0x2
    PR_UNALIGN_NOPRINT               = 0x1
    PR_UNALIGN_SIGBUS                = 0x2
    PTRACE_ARCH_PRCTL                = 0x1e
    PTRACE_ATTACH                    = 0x10
    PTRACE_CONT                      = 0x7
    PTRACE_DETACH                    = 0x11
    PTRACE_EVENT_CLONE               = 0x3
    PTRACE_EVENT_EXEC                = 0x4
    PTRACE_EVENT_EXIT                = 0x6
    PTRACE_EVENT_FORK                = 0x1
    PTRACE_EVENT_VFORK               = 0x2
    PTRACE_EVENT_VFORK_DONE          = 0x5
    PTRACE_GETEVENTMSG               = 0x4201
    PTRACE_GETFPREGS                 = 0xe
    PTRACE_GETFPXREGS                = 0x12
    PTRACE_GETREGS                   = 0xc
    PTRACE_GETREGSET                 = 0x4204
    PTRACE_GETSIGINFO                = 0x4202
    PTRACE_GET_THREAD_AREA           = 0x19
    PTRACE_KILL                      = 0x8
    PTRACE_OLDSETOPTIONS             = 0x15
    PTRACE_O_MASK                    = 0x7f
    PTRACE_O_TRACECLONE              = 0x8
    PTRACE_O_TRACEEXEC               = 0x10
    PTRACE_O_TRACEEXIT               = 0x40
    PTRACE_O_TRACEFORK               = 0x2
    PTRACE_O_TRACESYSGOOD            = 0x1
    PTRACE_O_TRACEVFORK              = 0x4
    PTRACE_O_TRACEVFORKDONE          = 0x20
    PTRACE_PEEKDATA                  = 0x2
    PTRACE_PEEKTEXT                  = 0x1
    PTRACE_PEEKUSR                   = 0x3
    PTRACE_POKEDATA                  = 0x5
    PTRACE_POKETEXT                  = 0x4
    PTRACE_POKEUSR                   = 0x6
    PTRACE_SETFPREGS                 = 0xf
    PTRACE_SETFPXREGS                = 0x13
    PTRACE_SETOPTIONS                = 0x4200
    PTRACE_SETREGS                   = 0xd
    PTRACE_SETREGSET                 = 0x4205
    PTRACE_SETSIGINFO                = 0x4203
    PTRACE_SET_THREAD_AREA           = 0x1a
    PTRACE_SINGLEBLOCK               = 0x21
    PTRACE_SINGLESTEP                = 0x9
    PTRACE_SYSCALL                   = 0x18
    PTRACE_SYSEMU                    = 0x1f
    PTRACE_SYSEMU_SINGLESTEP         = 0x20
    PTRACE_TRACEME                   = 0x0
    RLIMIT_AS                        = 0x9
    RLIMIT_CORE                      = 0x4
    RLIMIT_CPU                       = 0x0
    RLIMIT_DATA                      = 0x2
    RLIMIT_FSIZE                     = 0x1
    RLIMIT_NOFILE                    = 0x7
    RLIMIT_STACK                     = 0x3
    RLIM_INFINITY                    = -0x1
    RTAX_ADVMSS                      = 0x8
    RTAX_CWND                        = 0x7
    RTAX_FEATURES                    = 0xc
    RTAX_FEATURE_ALLFRAG             = 0x8
    RTAX_FEATURE_ECN                 = 0x1
    RTAX_FEATURE_SACK                = 0x2
    RTAX_FEATURE_TIMESTAMP           = 0x4
    RTAX_HOPLIMIT                    = 0xa
    RTAX_INITCWND                    = 0xb
    RTAX_INITRWND                    = 0xe
    RTAX_LOCK                        = 0x1
    RTAX_MAX                         = 0xe
    RTAX_MTU                         = 0x2
    RTAX_REORDERING                  = 0x9
    RTAX_RTO_MIN                     = 0xd
    RTAX_RTT                         = 0x4
    RTAX_RTTVAR                      = 0x5
    RTAX_SSTHRESH                    = 0x6
    RTAX_UNSPEC                      = 0x0
    RTAX_WINDOW                      = 0x3
    RTA_ALIGNTO                      = 0x4
    RTA_MAX                          = 0x10
    RTCF_DIRECTSRC                   = 0x4000000
    RTCF_DOREDIRECT                  = 0x1000000
    RTCF_LOG                         = 0x2000000
    RTCF_MASQ                        = 0x400000
    RTCF_NAT                         = 0x800000
    RTCF_VALVE                       = 0x200000
    RTF_ADDRCLASSMASK                = 0xf8000000
    RTF_ADDRCONF                     = 0x40000
    RTF_ALLONLINK                    = 0x20000
    RTF_BROADCAST                    = 0x10000000
    RTF_CACHE                        = 0x1000000
    RTF_DEFAULT                      = 0x10000
    RTF_DYNAMIC                      = 0x10
    RTF_FLOW                         = 0x2000000
    RTF_GATEWAY                      = 0x2
    RTF_HOST                         = 0x4
    RTF_INTERFACE                    = 0x40000000
    RTF_IRTT                         = 0x100
    RTF_LINKRT                       = 0x100000
    RTF_LOCAL                        = 0x80000000
    RTF_MODIFIED                     = 0x20
    RTF_MSS                          = 0x40
    RTF_MTU                          = 0x40
    RTF_MULTICAST                    = 0x20000000
    RTF_NAT                          = 0x8000000
    RTF_NOFORWARD                    = 0x1000
    RTF_NONEXTHOP                    = 0x200000
    RTF_NOPMTUDISC                   = 0x4000
    RTF_POLICY                       = 0x4000000
    RTF_REINSTATE                    = 0x8
    RTF_REJECT                       = 0x200
    RTF_STATIC                       = 0x400
    RTF_THROW                        = 0x2000
    RTF_UP                           = 0x1
    RTF_WINDOW                       = 0x80
    RTF_XRESOLVE                     = 0x800
    RTM_BASE                         = 0x10
    RTM_DELACTION                    = 0x31
    RTM_DELADDR                      = 0x15
    RTM_DELADDRLABEL                 = 0x49
    RTM_DELLINK                      = 0x11
    RTM_DELNEIGH                     = 0x1d
    RTM_DELQDISC                     = 0x25
    RTM_DELROUTE                     = 0x19
    RTM_DELRULE                      = 0x21
    RTM_DELTCLASS                    = 0x29
    RTM_DELTFILTER                   = 0x2d
    RTM_F_CLONED                     = 0x200
    RTM_F_EQUALIZE                   = 0x400
    RTM_F_NOTIFY                     = 0x100
    RTM_F_PREFIX                     = 0x800
    RTM_GETACTION                    = 0x32
    RTM_GETADDR                      = 0x16
    RTM_GETADDRLABEL                 = 0x4a
    RTM_GETANYCAST                   = 0x3e
    RTM_GETDCB                       = 0x4e
    RTM_GETLINK                      = 0x12
    RTM_GETMULTICAST                 = 0x3a
    RTM_GETNEIGH                     = 0x1e
    RTM_GETNEIGHTBL                  = 0x42
    RTM_GETQDISC                     = 0x26
    RTM_GETROUTE                     = 0x1a
    RTM_GETRULE                      = 0x22
    RTM_GETTCLASS                    = 0x2a
    RTM_GETTFILTER                   = 0x2e
    RTM_MAX                          = 0x4f
    RTM_NEWACTION                    = 0x30
    RTM_NEWADDR                      = 0x14
    RTM_NEWADDRLABEL                 = 0x48
    RTM_NEWLINK                      = 0x10
    RTM_NEWNDUSEROPT                 = 0x44
    RTM_NEWNEIGH                     = 0x1c
    RTM_NEWNEIGHTBL                  = 0x40
    RTM_NEWPREFIX                    = 0x34
    RTM_NEWQDISC                     = 0x24
    RTM_NEWROUTE                     = 0x18
    RTM_NEWRULE                      = 0x20
    RTM_NEWTCLASS                    = 0x28
    RTM_NEWTFILTER                   = 0x2c
    RTM_NR_FAMILIES                  = 0x10
    RTM_NR_MSGTYPES                  = 0x40
    RTM_SETDCB                       = 0x4f
    RTM_SETLINK                      = 0x13
    RTM_SETNEIGHTBL                  = 0x43
    RTNH_ALIGNTO                     = 0x4
    RTNH_F_DEAD                      = 0x1
    RTNH_F_ONLINK                    = 0x4
    RTNH_F_PERVASIVE                 = 0x2
    RTN_MAX                          = 0xb
    RTPROT_BIRD                      = 0xc
    RTPROT_BOOT                      = 0x3
    RTPROT_DHCP                      = 0x10
    RTPROT_DNROUTED                  = 0xd
    RTPROT_GATED                     = 0x8
    RTPROT_KERNEL                    = 0x2
    RTPROT_MRT                       = 0xa
    RTPROT_NTK                       = 0xf
    RTPROT_RA                        = 0x9
    RTPROT_REDIRECT                  = 0x1
    RTPROT_STATIC                    = 0x4
    RTPROT_UNSPEC                    = 0x0
    RTPROT_XORP                      = 0xe
    RTPROT_ZEBRA                     = 0xb
    RT_CLASS_DEFAULT                 = 0xfd
    RT_CLASS_LOCAL                   = 0xff
    RT_CLASS_MAIN                    = 0xfe
    RT_CLASS_MAX                     = 0xff
    RT_CLASS_UNSPEC                  = 0x0
    RUSAGE_CHILDREN                  = -0x1
    RUSAGE_SELF                      = 0x0
    RUSAGE_THREAD                    = 0x1
    SCM_CREDENTIALS                  = 0x2
    SCM_RIGHTS                       = 0x1
    SCM_TIMESTAMP                    = 0x1d
    SCM_TIMESTAMPING                 = 0x25
    SCM_TIMESTAMPNS                  = 0x23
    SHUT_RD                          = 0x0
    SHUT_RDWR                        = 0x2
    SHUT_WR                          = 0x1
    SIOCADDDLCI                      = 0x8980
    SIOCADDMULTI                     = 0x8931
    SIOCADDRT                        = 0x890b
    SIOCATMARK                       = 0x8905
    SIOCDARP                         = 0x8953
    SIOCDELDLCI                      = 0x8981
    SIOCDELMULTI                     = 0x8932
    SIOCDELRT                        = 0x890c
    SIOCDEVPRIVATE                   = 0x89f0
    SIOCDIFADDR                      = 0x8936
    SIOCDRARP                        = 0x8960
    SIOCGARP                         = 0x8954
    SIOCGIFADDR                      = 0x8915
    SIOCGIFBR                        = 0x8940
    SIOCGIFBRDADDR                   = 0x8919
    SIOCGIFCONF                      = 0x8912
    SIOCGIFCOUNT                     = 0x8938
    SIOCGIFDSTADDR                   = 0x8917
    SIOCGIFENCAP                     = 0x8925
    SIOCGIFFLAGS                     = 0x8913
    SIOCGIFHWADDR                    = 0x8927
    SIOCGIFINDEX                     = 0x8933
    SIOCGIFMAP                       = 0x8970
    SIOCGIFMEM                       = 0x891f
    SIOCGIFMETRIC                    = 0x891d
    SIOCGIFMTU                       = 0x8921
    SIOCGIFNAME                      = 0x8910
    SIOCGIFNETMASK                   = 0x891b
    SIOCGIFPFLAGS                    = 0x8935
    SIOCGIFSLAVE                     = 0x8929
    SIOCGIFTXQLEN                    = 0x8942
    SIOCGPGRP                        = 0x8904
    SIOCGRARP                        = 0x8961
    SIOCGSTAMP                       = 0x8906
    SIOCGSTAMPNS                     = 0x8907
    SIOCPROTOPRIVATE                 = 0x89e0
    SIOCRTMSG                        = 0x890d
    SIOCSARP                         = 0x8955
    SIOCSIFADDR                      = 0x8916
    SIOCSIFBR                        = 0x8941
    SIOCSIFBRDADDR                   = 0x891a
    SIOCSIFDSTADDR                   = 0x8918
    SIOCSIFENCAP                     = 0x8926
    SIOCSIFFLAGS                     = 0x8914
    SIOCSIFHWADDR                    = 0x8924
    SIOCSIFHWBROADCAST               = 0x8937
    SIOCSIFLINK                      = 0x8911
    SIOCSIFMAP                       = 0x8971
    SIOCSIFMEM                       = 0x8920
    SIOCSIFMETRIC                    = 0x891e
    SIOCSIFMTU                       = 0x8922
    SIOCSIFNAME                      = 0x8923
    SIOCSIFNETMASK                   = 0x891c
    SIOCSIFPFLAGS                    = 0x8934
    SIOCSIFSLAVE                     = 0x8930
    SIOCSIFTXQLEN                    = 0x8943
    SIOCSPGRP                        = 0x8902
    SIOCSRARP                        = 0x8962
    SOCK_CLOEXEC                     = 0x80000
    SOCK_DCCP                        = 0x6
    SOCK_DGRAM                       = 0x2
    SOCK_NONBLOCK                    = 0x800
    SOCK_PACKET                      = 0xa
    SOCK_RAW                         = 0x3
    SOCK_RDM                         = 0x4
    SOCK_SEQPACKET                   = 0x5
    SOCK_STREAM                      = 0x1
    SOL_AAL                          = 0x109
    SOL_ATM                          = 0x108
    SOL_DECNET                       = 0x105
    SOL_ICMPV6                       = 0x3a
    SOL_IP                           = 0x0
    SOL_IPV6                         = 0x29
    SOL_IRDA                         = 0x10a
    SOL_PACKET                       = 0x107
    SOL_RAW                          = 0xff
    SOL_SOCKET                       = 0x1
    SOL_TCP                          = 0x6
    SOL_X25                          = 0x106
    SOMAXCONN                        = 0x80
    SO_ACCEPTCONN                    = 0x1e
    SO_ATTACH_FILTER                 = 0x1a
    SO_BINDTODEVICE                  = 0x19
    SO_BROADCAST                     = 0x6
    SO_BSDCOMPAT                     = 0xe
    SO_DEBUG                         = 0x1
    SO_DETACH_FILTER                 = 0x1b
    SO_DOMAIN                        = 0x27
    SO_DONTROUTE                     = 0x5
    SO_ERROR                         = 0x4
    SO_KEEPALIVE                     = 0x9
    SO_LINGER                        = 0xd
    SO_MARK                          = 0x24
    SO_NO_CHECK                      = 0xb
    SO_OOBINLINE                     = 0xa
    SO_PASSCRED                      = 0x10
    SO_PASSSEC                       = 0x22
    SO_PEERCRED                      = 0x11
    SO_PEERNAME                      = 0x1c
    SO_PEERSEC                       = 0x1f
    SO_PRIORITY                      = 0xc
    SO_PROTOCOL                      = 0x26
    SO_RCVBUF                        = 0x8
    SO_RCVBUFFORCE                   = 0x21
    SO_RCVLOWAT                      = 0x12
    SO_RCVTIMEO                      = 0x14
    SO_REUSEADDR                     = 0x2
    SO_RXQ_OVFL                      = 0x28
    SO_SECURITY_AUTHENTICATION       = 0x16
    SO_SECURITY_ENCRYPTION_NETWORK   = 0x18
    SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
    SO_SNDBUF                        = 0x7
    SO_SNDBUFFORCE                   = 0x20
    SO_SNDLOWAT                      = 0x13
    SO_SNDTIMEO                      = 0x15
    SO_TIMESTAMP                     = 0x1d
    SO_TIMESTAMPING                  = 0x25
    SO_TIMESTAMPNS                   = 0x23
    SO_TYPE                          = 0x3
    S_BLKSIZE                        = 0x200
    S_IEXEC                          = 0x40
    S_IFBLK                          = 0x6000
    S_IFCHR                          = 0x2000
    S_IFDIR                          = 0x4000
    S_IFIFO                          = 0x1000
    S_IFLNK                          = 0xa000
    S_IFMT                           = 0xf000
    S_IFREG                          = 0x8000
    S_IFSOCK                         = 0xc000
    S_IREAD                          = 0x100
    S_IRGRP                          = 0x20
    S_IROTH                          = 0x4
    S_IRUSR                          = 0x100
    S_IRWXG                          = 0x38
    S_IRWXO                          = 0x7
    S_IRWXU                          = 0x1c0
    S_ISGID                          = 0x400
    S_ISUID                          = 0x800
    S_ISVTX                          = 0x200
    S_IWGRP                          = 0x10
    S_IWOTH                          = 0x2
    S_IWRITE                         = 0x80
    S_IWUSR                          = 0x80
    S_IXGRP                          = 0x8
    S_IXOTH                          = 0x1
    S_IXUSR                          = 0x40
    TCIFLUSH                         = 0x0
    TCIOFLUSH                        = 0x2
    TCOFLUSH                         = 0x1
    TCP_CONGESTION                   = 0xd
    TCP_CORK                         = 0x3
    TCP_DEFER_ACCEPT                 = 0x9
    TCP_INFO                         = 0xb
    TCP_KEEPCNT                      = 0x6
    TCP_KEEPIDLE                     = 0x4
    TCP_KEEPINTVL                    = 0x5
    TCP_LINGER2                      = 0x8
    TCP_MAXSEG                       = 0x2
    TCP_MAXWIN                       = 0xffff
    TCP_MAX_WINSHIFT                 = 0xe
    TCP_MD5SIG                       = 0xe
    TCP_MD5SIG_MAXKEYLEN             = 0x50
    TCP_MSS                          = 0x200
    TCP_NODELAY                      = 0x1
    TCP_QUICKACK                     = 0xc
    TCP_SYNCNT                       = 0x7
    TCP_WINDOW_CLAMP                 = 0xa
    TIOCCBRK                         = 0x5428
    TIOCCONS                         = 0x541d
    TIOCEXCL                         = 0x540c
    TIOCGDEV                         = 0x80045432
    TIOCGETD                         = 0x5424
    TIOCGICOUNT                      = 0x545d
    TIOCGLCKTRMIOS                   = 0x5456
    TIOCGPGRP                        = 0x540f
    TIOCGPTN                         = 0x80045430
    TIOCGRS485                       = 0x542e
    TIOCGSERIAL                      = 0x541e
    TIOCGSID                         = 0x5429
    TIOCGSOFTCAR                     = 0x5419
    TIOCGWINSZ                       = 0x5413
    TIOCINQ                          = 0x541b
    TIOCLINUX                        = 0x541c
    TIOCMBIC                         = 0x5417
    TIOCMBIS                         = 0x5416
    TIOCMGET                         = 0x5415
    TIOCMIWAIT                       = 0x545c
    TIOCMSET                         = 0x5418
    TIOCM_CAR                        = 0x40
    TIOCM_CD                         = 0x40
    TIOCM_CTS                        = 0x20
    TIOCM_DSR                        = 0x100
    TIOCM_DTR                        = 0x2
    TIOCM_LE                         = 0x1
    TIOCM_RI                         = 0x80
    TIOCM_RNG                        = 0x80
    TIOCM_RTS                        = 0x4
    TIOCM_SR                         = 0x10
    TIOCM_ST                         = 0x8
    TIOCNOTTY                        = 0x5422
    TIOCNXCL                         = 0x540d
    TIOCOUTQ                         = 0x5411
    TIOCPKT                          = 0x5420
    TIOCPKT_DATA                     = 0x0
    TIOCPKT_DOSTOP                   = 0x20
    TIOCPKT_FLUSHREAD                = 0x1
    TIOCPKT_FLUSHWRITE               = 0x2
    TIOCPKT_IOCTL                    = 0x40
    TIOCPKT_NOSTOP                   = 0x10
    TIOCPKT_START                    = 0x8
    TIOCPKT_STOP                     = 0x4
    TIOCSBRK                         = 0x5427
    TIOCSCTTY                        = 0x540e
    TIOCSERCONFIG                    = 0x5453
    TIOCSERGETLSR                    = 0x5459
    TIOCSERGETMULTI                  = 0x545a
    TIOCSERGSTRUCT                   = 0x5458
    TIOCSERGWILD                     = 0x5454
    TIOCSERSETMULTI                  = 0x545b
    TIOCSERSWILD                     = 0x5455
    TIOCSER_TEMT                     = 0x1
    TIOCSETD                         = 0x5423
    TIOCSIG                          = 0x40045436
    TIOCSLCKTRMIOS                   = 0x5457
    TIOCSPGRP                        = 0x5410
    TIOCSPTLCK                       = 0x40045431
    TIOCSRS485                       = 0x542f
    TIOCSSERIAL                      = 0x541f
    TIOCSSOFTCAR                     = 0x541a
    TIOCSTI                          = 0x5412
    TIOCSWINSZ                       = 0x5414
    TUNATTACHFILTER                  = 0x401054d5
    TUNDETACHFILTER                  = 0x401054d6
    TUNGETFEATURES                   = 0x800454cf
    TUNGETIFF                        = 0x800454d2
    TUNGETSNDBUF                     = 0x800454d3
    TUNGETVNETHDRSZ                  = 0x800454d7
    TUNSETDEBUG                      = 0x400454c9
    TUNSETGROUP                      = 0x400454ce
    TUNSETIFF                        = 0x400454ca
    TUNSETLINK                       = 0x400454cd
    TUNSETNOCSUM                     = 0x400454c8
    TUNSETOFFLOAD                    = 0x400454d0
    TUNSETOWNER                      = 0x400454cc
    TUNSETPERSIST                    = 0x400454cb
    TUNSETSNDBUF                     = 0x400454d4
    TUNSETTXFILTER                   = 0x400454d1
    TUNSETVNETHDRSZ                  = 0x400454d8
    WALL                             = 0x40000000
    WCLONE                           = 0x80000000
    WCONTINUED                       = 0x8
    WEXITED                          = 0x4
    WNOHANG                          = 0x1
    WNOTHREAD                        = 0x20000000
    WNOWAIT                          = 0x1000000
    WORDSIZE                         = 0x40
    WSTOPPED                         = 0x2
    WUNTRACED                        = 0x2
)</pre> <p>Errors </p>
<pre data-language="go">const (
    E2BIG           = Errno(0x7)
    EACCES          = Errno(0xd)
    EADDRINUSE      = Errno(0x62)
    EADDRNOTAVAIL   = Errno(0x63)
    EADV            = Errno(0x44)
    EAFNOSUPPORT    = Errno(0x61)
    EAGAIN          = Errno(0xb)
    EALREADY        = Errno(0x72)
    EBADE           = Errno(0x34)
    EBADF           = Errno(0x9)
    EBADFD          = Errno(0x4d)
    EBADMSG         = Errno(0x4a)
    EBADR           = Errno(0x35)
    EBADRQC         = Errno(0x38)
    EBADSLT         = Errno(0x39)
    EBFONT          = Errno(0x3b)
    EBUSY           = Errno(0x10)
    ECANCELED       = Errno(0x7d)
    ECHILD          = Errno(0xa)
    ECHRNG          = Errno(0x2c)
    ECOMM           = Errno(0x46)
    ECONNABORTED    = Errno(0x67)
    ECONNREFUSED    = Errno(0x6f)
    ECONNRESET      = Errno(0x68)
    EDEADLK         = Errno(0x23)
    EDEADLOCK       = Errno(0x23)
    EDESTADDRREQ    = Errno(0x59)
    EDOM            = Errno(0x21)
    EDOTDOT         = Errno(0x49)
    EDQUOT          = Errno(0x7a)
    EEXIST          = Errno(0x11)
    EFAULT          = Errno(0xe)
    EFBIG           = Errno(0x1b)
    EHOSTDOWN       = Errno(0x70)
    EHOSTUNREACH    = Errno(0x71)
    EIDRM           = Errno(0x2b)
    EILSEQ          = Errno(0x54)
    EINPROGRESS     = Errno(0x73)
    EINTR           = Errno(0x4)
    EINVAL          = Errno(0x16)
    EIO             = Errno(0x5)
    EISCONN         = Errno(0x6a)
    EISDIR          = Errno(0x15)
    EISNAM          = Errno(0x78)
    EKEYEXPIRED     = Errno(0x7f)
    EKEYREJECTED    = Errno(0x81)
    EKEYREVOKED     = Errno(0x80)
    EL2HLT          = Errno(0x33)
    EL2NSYNC        = Errno(0x2d)
    EL3HLT          = Errno(0x2e)
    EL3RST          = Errno(0x2f)
    ELIBACC         = Errno(0x4f)
    ELIBBAD         = Errno(0x50)
    ELIBEXEC        = Errno(0x53)
    ELIBMAX         = Errno(0x52)
    ELIBSCN         = Errno(0x51)
    ELNRNG          = Errno(0x30)
    ELOOP           = Errno(0x28)
    EMEDIUMTYPE     = Errno(0x7c)
    EMFILE          = Errno(0x18)
    EMLINK          = Errno(0x1f)
    EMSGSIZE        = Errno(0x5a)
    EMULTIHOP       = Errno(0x48)
    ENAMETOOLONG    = Errno(0x24)
    ENAVAIL         = Errno(0x77)
    ENETDOWN        = Errno(0x64)
    ENETRESET       = Errno(0x66)
    ENETUNREACH     = Errno(0x65)
    ENFILE          = Errno(0x17)
    ENOANO          = Errno(0x37)
    ENOBUFS         = Errno(0x69)
    ENOCSI          = Errno(0x32)
    ENODATA         = Errno(0x3d)
    ENODEV          = Errno(0x13)
    ENOENT          = Errno(0x2)
    ENOEXEC         = Errno(0x8)
    ENOKEY          = Errno(0x7e)
    ENOLCK          = Errno(0x25)
    ENOLINK         = Errno(0x43)
    ENOMEDIUM       = Errno(0x7b)
    ENOMEM          = Errno(0xc)
    ENOMSG          = Errno(0x2a)
    ENONET          = Errno(0x40)
    ENOPKG          = Errno(0x41)
    ENOPROTOOPT     = Errno(0x5c)
    ENOSPC          = Errno(0x1c)
    ENOSR           = Errno(0x3f)
    ENOSTR          = Errno(0x3c)
    ENOSYS          = Errno(0x26)
    ENOTBLK         = Errno(0xf)
    ENOTCONN        = Errno(0x6b)
    ENOTDIR         = Errno(0x14)
    ENOTEMPTY       = Errno(0x27)
    ENOTNAM         = Errno(0x76)
    ENOTRECOVERABLE = Errno(0x83)
    ENOTSOCK        = Errno(0x58)
    ENOTSUP         = Errno(0x5f)
    ENOTTY          = Errno(0x19)
    ENOTUNIQ        = Errno(0x4c)
    ENXIO           = Errno(0x6)
    EOPNOTSUPP      = Errno(0x5f)
    EOVERFLOW       = Errno(0x4b)
    EOWNERDEAD      = Errno(0x82)
    EPERM           = Errno(0x1)
    EPFNOSUPPORT    = Errno(0x60)
    EPIPE           = Errno(0x20)
    EPROTO          = Errno(0x47)
    EPROTONOSUPPORT = Errno(0x5d)
    EPROTOTYPE      = Errno(0x5b)
    ERANGE          = Errno(0x22)
    EREMCHG         = Errno(0x4e)
    EREMOTE         = Errno(0x42)
    EREMOTEIO       = Errno(0x79)
    ERESTART        = Errno(0x55)
    ERFKILL         = Errno(0x84)
    EROFS           = Errno(0x1e)
    ESHUTDOWN       = Errno(0x6c)
    ESOCKTNOSUPPORT = Errno(0x5e)
    ESPIPE          = Errno(0x1d)
    ESRCH           = Errno(0x3)
    ESRMNT          = Errno(0x45)
    ESTALE          = Errno(0x74)
    ESTRPIPE        = Errno(0x56)
    ETIME           = Errno(0x3e)
    ETIMEDOUT       = Errno(0x6e)
    ETOOMANYREFS    = Errno(0x6d)
    ETXTBSY         = Errno(0x1a)
    EUCLEAN         = Errno(0x75)
    EUNATCH         = Errno(0x31)
    EUSERS          = Errno(0x57)
    EWOULDBLOCK     = Errno(0xb)
    EXDEV           = Errno(0x12)
    EXFULL          = Errno(0x36)
)</pre> <p>Signals </p>
<pre data-language="go">const (
    SIGABRT   = Signal(0x6)
    SIGALRM   = Signal(0xe)
    SIGBUS    = Signal(0x7)
    SIGCHLD   = Signal(0x11)
    SIGCLD    = Signal(0x11)
    SIGCONT   = Signal(0x12)
    SIGFPE    = Signal(0x8)
    SIGHUP    = Signal(0x1)
    SIGILL    = Signal(0x4)
    SIGINT    = Signal(0x2)
    SIGIO     = Signal(0x1d)
    SIGIOT    = Signal(0x6)
    SIGKILL   = Signal(0x9)
    SIGPIPE   = Signal(0xd)
    SIGPOLL   = Signal(0x1d)
    SIGPROF   = Signal(0x1b)
    SIGPWR    = Signal(0x1e)
    SIGQUIT   = Signal(0x3)
    SIGSEGV   = Signal(0xb)
    SIGSTKFLT = Signal(0x10)
    SIGSTOP   = Signal(0x13)
    SIGSYS    = Signal(0x1f)
    SIGTERM   = Signal(0xf)
    SIGTRAP   = Signal(0x5)
    SIGTSTP   = Signal(0x14)
    SIGTTIN   = Signal(0x15)
    SIGTTOU   = Signal(0x16)
    SIGUNUSED = Signal(0x1f)
    SIGURG    = Signal(0x17)
    SIGUSR1   = Signal(0xa)
    SIGUSR2   = Signal(0xc)
    SIGVTALRM = Signal(0x1a)
    SIGWINCH  = Signal(0x1c)
    SIGXCPU   = Signal(0x18)
    SIGXFSZ   = Signal(0x19)
)</pre> <pre data-language="go">const (
    SYS_READ                   = 0
    SYS_WRITE                  = 1
    SYS_OPEN                   = 2
    SYS_CLOSE                  = 3
    SYS_STAT                   = 4
    SYS_FSTAT                  = 5
    SYS_LSTAT                  = 6
    SYS_POLL                   = 7
    SYS_LSEEK                  = 8
    SYS_MMAP                   = 9
    SYS_MPROTECT               = 10
    SYS_MUNMAP                 = 11
    SYS_BRK                    = 12
    SYS_RT_SIGACTION           = 13
    SYS_RT_SIGPROCMASK         = 14
    SYS_RT_SIGRETURN           = 15
    SYS_IOCTL                  = 16
    SYS_PREAD64                = 17
    SYS_PWRITE64               = 18
    SYS_READV                  = 19
    SYS_WRITEV                 = 20
    SYS_ACCESS                 = 21
    SYS_PIPE                   = 22
    SYS_SELECT                 = 23
    SYS_SCHED_YIELD            = 24
    SYS_MREMAP                 = 25
    SYS_MSYNC                  = 26
    SYS_MINCORE                = 27
    SYS_MADVISE                = 28
    SYS_SHMGET                 = 29
    SYS_SHMAT                  = 30
    SYS_SHMCTL                 = 31
    SYS_DUP                    = 32
    SYS_DUP2                   = 33
    SYS_PAUSE                  = 34
    SYS_NANOSLEEP              = 35
    SYS_GETITIMER              = 36
    SYS_ALARM                  = 37
    SYS_SETITIMER              = 38
    SYS_GETPID                 = 39
    SYS_SENDFILE               = 40
    SYS_SOCKET                 = 41
    SYS_CONNECT                = 42
    SYS_ACCEPT                 = 43
    SYS_SENDTO                 = 44
    SYS_RECVFROM               = 45
    SYS_SENDMSG                = 46
    SYS_RECVMSG                = 47
    SYS_SHUTDOWN               = 48
    SYS_BIND                   = 49
    SYS_LISTEN                 = 50
    SYS_GETSOCKNAME            = 51
    SYS_GETPEERNAME            = 52
    SYS_SOCKETPAIR             = 53
    SYS_SETSOCKOPT             = 54
    SYS_GETSOCKOPT             = 55
    SYS_CLONE                  = 56
    SYS_FORK                   = 57
    SYS_VFORK                  = 58
    SYS_EXECVE                 = 59
    SYS_EXIT                   = 60
    SYS_WAIT4                  = 61
    SYS_KILL                   = 62
    SYS_UNAME                  = 63
    SYS_SEMGET                 = 64
    SYS_SEMOP                  = 65
    SYS_SEMCTL                 = 66
    SYS_SHMDT                  = 67
    SYS_MSGGET                 = 68
    SYS_MSGSND                 = 69
    SYS_MSGRCV                 = 70
    SYS_MSGCTL                 = 71
    SYS_FCNTL                  = 72
    SYS_FLOCK                  = 73
    SYS_FSYNC                  = 74
    SYS_FDATASYNC              = 75
    SYS_TRUNCATE               = 76
    SYS_FTRUNCATE              = 77
    SYS_GETDENTS               = 78
    SYS_GETCWD                 = 79
    SYS_CHDIR                  = 80
    SYS_FCHDIR                 = 81
    SYS_RENAME                 = 82
    SYS_MKDIR                  = 83
    SYS_RMDIR                  = 84
    SYS_CREAT                  = 85
    SYS_LINK                   = 86
    SYS_UNLINK                 = 87
    SYS_SYMLINK                = 88
    SYS_READLINK               = 89
    SYS_CHMOD                  = 90
    SYS_FCHMOD                 = 91
    SYS_CHOWN                  = 92
    SYS_FCHOWN                 = 93
    SYS_LCHOWN                 = 94
    SYS_UMASK                  = 95
    SYS_GETTIMEOFDAY           = 96
    SYS_GETRLIMIT              = 97
    SYS_GETRUSAGE              = 98
    SYS_SYSINFO                = 99
    SYS_TIMES                  = 100
    SYS_PTRACE                 = 101
    SYS_GETUID                 = 102
    SYS_SYSLOG                 = 103
    SYS_GETGID                 = 104
    SYS_SETUID                 = 105
    SYS_SETGID                 = 106
    SYS_GETEUID                = 107
    SYS_GETEGID                = 108
    SYS_SETPGID                = 109
    SYS_GETPPID                = 110
    SYS_GETPGRP                = 111
    SYS_SETSID                 = 112
    SYS_SETREUID               = 113
    SYS_SETREGID               = 114
    SYS_GETGROUPS              = 115
    SYS_SETGROUPS              = 116
    SYS_SETRESUID              = 117
    SYS_GETRESUID              = 118
    SYS_SETRESGID              = 119
    SYS_GETRESGID              = 120
    SYS_GETPGID                = 121
    SYS_SETFSUID               = 122
    SYS_SETFSGID               = 123
    SYS_GETSID                 = 124
    SYS_CAPGET                 = 125
    SYS_CAPSET                 = 126
    SYS_RT_SIGPENDING          = 127
    SYS_RT_SIGTIMEDWAIT        = 128
    SYS_RT_SIGQUEUEINFO        = 129
    SYS_RT_SIGSUSPEND          = 130
    SYS_SIGALTSTACK            = 131
    SYS_UTIME                  = 132
    SYS_MKNOD                  = 133
    SYS_USELIB                 = 134
    SYS_PERSONALITY            = 135
    SYS_USTAT                  = 136
    SYS_STATFS                 = 137
    SYS_FSTATFS                = 138
    SYS_SYSFS                  = 139
    SYS_GETPRIORITY            = 140
    SYS_SETPRIORITY            = 141
    SYS_SCHED_SETPARAM         = 142
    SYS_SCHED_GETPARAM         = 143
    SYS_SCHED_SETSCHEDULER     = 144
    SYS_SCHED_GETSCHEDULER     = 145
    SYS_SCHED_GET_PRIORITY_MAX = 146
    SYS_SCHED_GET_PRIORITY_MIN = 147
    SYS_SCHED_RR_GET_INTERVAL  = 148
    SYS_MLOCK                  = 149
    SYS_MUNLOCK                = 150
    SYS_MLOCKALL               = 151
    SYS_MUNLOCKALL             = 152
    SYS_VHANGUP                = 153
    SYS_MODIFY_LDT             = 154
    SYS_PIVOT_ROOT             = 155
    SYS__SYSCTL                = 156
    SYS_PRCTL                  = 157
    SYS_ARCH_PRCTL             = 158
    SYS_ADJTIMEX               = 159
    SYS_SETRLIMIT              = 160
    SYS_CHROOT                 = 161
    SYS_SYNC                   = 162
    SYS_ACCT                   = 163
    SYS_SETTIMEOFDAY           = 164
    SYS_MOUNT                  = 165
    SYS_UMOUNT2                = 166
    SYS_SWAPON                 = 167
    SYS_SWAPOFF                = 168
    SYS_REBOOT                 = 169
    SYS_SETHOSTNAME            = 170
    SYS_SETDOMAINNAME          = 171
    SYS_IOPL                   = 172
    SYS_IOPERM                 = 173
    SYS_CREATE_MODULE          = 174
    SYS_INIT_MODULE            = 175
    SYS_DELETE_MODULE          = 176
    SYS_GET_KERNEL_SYMS        = 177
    SYS_QUERY_MODULE           = 178
    SYS_QUOTACTL               = 179
    SYS_NFSSERVCTL             = 180
    SYS_GETPMSG                = 181
    SYS_PUTPMSG                = 182
    SYS_AFS_SYSCALL            = 183
    SYS_TUXCALL                = 184
    SYS_SECURITY               = 185
    SYS_GETTID                 = 186
    SYS_READAHEAD              = 187
    SYS_SETXATTR               = 188
    SYS_LSETXATTR              = 189
    SYS_FSETXATTR              = 190
    SYS_GETXATTR               = 191
    SYS_LGETXATTR              = 192
    SYS_FGETXATTR              = 193
    SYS_LISTXATTR              = 194
    SYS_LLISTXATTR             = 195
    SYS_FLISTXATTR             = 196
    SYS_REMOVEXATTR            = 197
    SYS_LREMOVEXATTR           = 198
    SYS_FREMOVEXATTR           = 199
    SYS_TKILL                  = 200
    SYS_TIME                   = 201
    SYS_FUTEX                  = 202
    SYS_SCHED_SETAFFINITY      = 203
    SYS_SCHED_GETAFFINITY      = 204
    SYS_SET_THREAD_AREA        = 205
    SYS_IO_SETUP               = 206
    SYS_IO_DESTROY             = 207
    SYS_IO_GETEVENTS           = 208
    SYS_IO_SUBMIT              = 209
    SYS_IO_CANCEL              = 210
    SYS_GET_THREAD_AREA        = 211
    SYS_LOOKUP_DCOOKIE         = 212
    SYS_EPOLL_CREATE           = 213
    SYS_EPOLL_CTL_OLD          = 214
    SYS_EPOLL_WAIT_OLD         = 215
    SYS_REMAP_FILE_PAGES       = 216
    SYS_GETDENTS64             = 217
    SYS_SET_TID_ADDRESS        = 218
    SYS_RESTART_SYSCALL        = 219
    SYS_SEMTIMEDOP             = 220
    SYS_FADVISE64              = 221
    SYS_TIMER_CREATE           = 222
    SYS_TIMER_SETTIME          = 223
    SYS_TIMER_GETTIME          = 224
    SYS_TIMER_GETOVERRUN       = 225
    SYS_TIMER_DELETE           = 226
    SYS_CLOCK_SETTIME          = 227
    SYS_CLOCK_GETTIME          = 228
    SYS_CLOCK_GETRES           = 229
    SYS_CLOCK_NANOSLEEP        = 230
    SYS_EXIT_GROUP             = 231
    SYS_EPOLL_WAIT             = 232
    SYS_EPOLL_CTL              = 233
    SYS_TGKILL                 = 234
    SYS_UTIMES                 = 235
    SYS_VSERVER                = 236
    SYS_MBIND                  = 237
    SYS_SET_MEMPOLICY          = 238
    SYS_GET_MEMPOLICY          = 239
    SYS_MQ_OPEN                = 240
    SYS_MQ_UNLINK              = 241
    SYS_MQ_TIMEDSEND           = 242
    SYS_MQ_TIMEDRECEIVE        = 243
    SYS_MQ_NOTIFY              = 244
    SYS_MQ_GETSETATTR          = 245
    SYS_KEXEC_LOAD             = 246
    SYS_WAITID                 = 247
    SYS_ADD_KEY                = 248
    SYS_REQUEST_KEY            = 249
    SYS_KEYCTL                 = 250
    SYS_IOPRIO_SET             = 251
    SYS_IOPRIO_GET             = 252
    SYS_INOTIFY_INIT           = 253
    SYS_INOTIFY_ADD_WATCH      = 254
    SYS_INOTIFY_RM_WATCH       = 255
    SYS_MIGRATE_PAGES          = 256
    SYS_OPENAT                 = 257
    SYS_MKDIRAT                = 258
    SYS_MKNODAT                = 259
    SYS_FCHOWNAT               = 260
    SYS_FUTIMESAT              = 261
    SYS_NEWFSTATAT             = 262
    SYS_UNLINKAT               = 263
    SYS_RENAMEAT               = 264
    SYS_LINKAT                 = 265
    SYS_SYMLINKAT              = 266
    SYS_READLINKAT             = 267
    SYS_FCHMODAT               = 268
    SYS_FACCESSAT              = 269
    SYS_PSELECT6               = 270
    SYS_PPOLL                  = 271
    SYS_UNSHARE                = 272
    SYS_SET_ROBUST_LIST        = 273
    SYS_GET_ROBUST_LIST        = 274
    SYS_SPLICE                 = 275
    SYS_TEE                    = 276
    SYS_SYNC_FILE_RANGE        = 277
    SYS_VMSPLICE               = 278
    SYS_MOVE_PAGES             = 279
    SYS_UTIMENSAT              = 280
    SYS_EPOLL_PWAIT            = 281
    SYS_SIGNALFD               = 282
    SYS_TIMERFD_CREATE         = 283
    SYS_EVENTFD                = 284
    SYS_FALLOCATE              = 285
    SYS_TIMERFD_SETTIME        = 286
    SYS_TIMERFD_GETTIME        = 287
    SYS_ACCEPT4                = 288
    SYS_SIGNALFD4              = 289
    SYS_EVENTFD2               = 290
    SYS_EPOLL_CREATE1          = 291
    SYS_DUP3                   = 292
    SYS_PIPE2                  = 293
    SYS_INOTIFY_INIT1          = 294
    SYS_PREADV                 = 295
    SYS_PWRITEV                = 296
    SYS_RT_TGSIGQUEUEINFO      = 297
    SYS_PERF_EVENT_OPEN        = 298
    SYS_RECVMMSG               = 299
    SYS_FANOTIFY_INIT          = 300
    SYS_FANOTIFY_MARK          = 301
    SYS_PRLIMIT64              = 302
)</pre> <pre data-language="go">const (
    SizeofSockaddrInet4     = 0x10
    SizeofSockaddrInet6     = 0x1c
    SizeofSockaddrAny       = 0x70
    SizeofSockaddrUnix      = 0x6e
    SizeofSockaddrLinklayer = 0x14
    SizeofSockaddrNetlink   = 0xc
    SizeofLinger            = 0x8
    SizeofIPMreq            = 0x8
    SizeofIPMreqn           = 0xc
    SizeofIPv6Mreq          = 0x14
    SizeofMsghdr            = 0x38
    SizeofCmsghdr           = 0x10
    SizeofInet4Pktinfo      = 0xc
    SizeofInet6Pktinfo      = 0x14
    SizeofIPv6MTUInfo       = 0x20
    SizeofICMPv6Filter      = 0x20
    SizeofUcred             = 0xc
    SizeofTCPInfo           = 0x68
)</pre> <pre data-language="go">const (
    IFA_UNSPEC          = 0x0
    IFA_ADDRESS         = 0x1
    IFA_LOCAL           = 0x2
    IFA_LABEL           = 0x3
    IFA_BROADCAST       = 0x4
    IFA_ANYCAST         = 0x5
    IFA_CACHEINFO       = 0x6
    IFA_MULTICAST       = 0x7
    IFLA_UNSPEC         = 0x0
    IFLA_ADDRESS        = 0x1
    IFLA_BROADCAST      = 0x2
    IFLA_IFNAME         = 0x3
    IFLA_MTU            = 0x4
    IFLA_LINK           = 0x5
    IFLA_QDISC          = 0x6
    IFLA_STATS          = 0x7
    IFLA_COST           = 0x8
    IFLA_PRIORITY       = 0x9
    IFLA_MASTER         = 0xa
    IFLA_WIRELESS       = 0xb
    IFLA_PROTINFO       = 0xc
    IFLA_TXQLEN         = 0xd
    IFLA_MAP            = 0xe
    IFLA_WEIGHT         = 0xf
    IFLA_OPERSTATE      = 0x10
    IFLA_LINKMODE       = 0x11
    IFLA_LINKINFO       = 0x12
    IFLA_NET_NS_PID     = 0x13
    IFLA_IFALIAS        = 0x14
    IFLA_MAX            = 0x1d
    RT_SCOPE_UNIVERSE   = 0x0
    RT_SCOPE_SITE       = 0xc8
    RT_SCOPE_LINK       = 0xfd
    RT_SCOPE_HOST       = 0xfe
    RT_SCOPE_NOWHERE    = 0xff
    RT_TABLE_UNSPEC     = 0x0
    RT_TABLE_COMPAT     = 0xfc
    RT_TABLE_DEFAULT    = 0xfd
    RT_TABLE_MAIN       = 0xfe
    RT_TABLE_LOCAL      = 0xff
    RT_TABLE_MAX        = 0xffffffff
    RTA_UNSPEC          = 0x0
    RTA_DST             = 0x1
    RTA_SRC             = 0x2
    RTA_IIF             = 0x3
    RTA_OIF             = 0x4
    RTA_GATEWAY         = 0x5
    RTA_PRIORITY        = 0x6
    RTA_PREFSRC         = 0x7
    RTA_METRICS         = 0x8
    RTA_MULTIPATH       = 0x9
    RTA_FLOW            = 0xb
    RTA_CACHEINFO       = 0xc
    RTA_TABLE           = 0xf
    RTN_UNSPEC          = 0x0
    RTN_UNICAST         = 0x1
    RTN_LOCAL           = 0x2
    RTN_BROADCAST       = 0x3
    RTN_ANYCAST         = 0x4
    RTN_MULTICAST       = 0x5
    RTN_BLACKHOLE       = 0x6
    RTN_UNREACHABLE     = 0x7
    RTN_PROHIBIT        = 0x8
    RTN_THROW           = 0x9
    RTN_NAT             = 0xa
    RTN_XRESOLVE        = 0xb
    RTNLGRP_NONE        = 0x0
    RTNLGRP_LINK        = 0x1
    RTNLGRP_NOTIFY      = 0x2
    RTNLGRP_NEIGH       = 0x3
    RTNLGRP_TC          = 0x4
    RTNLGRP_IPV4_IFADDR = 0x5
    RTNLGRP_IPV4_MROUTE = 0x6
    RTNLGRP_IPV4_ROUTE  = 0x7
    RTNLGRP_IPV4_RULE   = 0x8
    RTNLGRP_IPV6_IFADDR = 0x9
    RTNLGRP_IPV6_MROUTE = 0xa
    RTNLGRP_IPV6_ROUTE  = 0xb
    RTNLGRP_IPV6_IFINFO = 0xc
    RTNLGRP_IPV6_PREFIX = 0x12
    RTNLGRP_IPV6_RULE   = 0x13
    RTNLGRP_ND_USEROPT  = 0x14
    SizeofNlMsghdr      = 0x10
    SizeofNlMsgerr      = 0x14
    SizeofRtGenmsg      = 0x1
    SizeofNlAttr        = 0x4
    SizeofRtAttr        = 0x4
    SizeofIfInfomsg     = 0x10
    SizeofIfAddrmsg     = 0x8
    SizeofRtMsg         = 0xc
    SizeofRtNexthop     = 0x8
)</pre> <pre data-language="go">const (
    SizeofSockFilter = 0x8
    SizeofSockFprog  = 0x10
)</pre> <pre data-language="go">const (
    VINTR    = 0x0
    VQUIT    = 0x1
    VERASE   = 0x2
    VKILL    = 0x3
    VEOF     = 0x4
    VTIME    = 0x5
    VMIN     = 0x6
    VSWTC    = 0x7
    VSTART   = 0x8
    VSTOP    = 0x9
    VSUSP    = 0xa
    VEOL     = 0xb
    VREPRINT = 0xc
    VDISCARD = 0xd
    VWERASE  = 0xe
    VLNEXT   = 0xf
    VEOL2    = 0x10
    IGNBRK   = 0x1
    BRKINT   = 0x2
    IGNPAR   = 0x4
    PARMRK   = 0x8
    INPCK    = 0x10
    ISTRIP   = 0x20
    INLCR    = 0x40
    IGNCR    = 0x80
    ICRNL    = 0x100
    IUCLC    = 0x200
    IXON     = 0x400
    IXANY    = 0x800
    IXOFF    = 0x1000
    IMAXBEL  = 0x2000
    IUTF8    = 0x4000
    OPOST    = 0x1
    OLCUC    = 0x2
    ONLCR    = 0x4
    OCRNL    = 0x8
    ONOCR    = 0x10
    ONLRET   = 0x20
    OFILL    = 0x40
    OFDEL    = 0x80
    B0       = 0x0
    B50      = 0x1
    B75      = 0x2
    B110     = 0x3
    B134     = 0x4
    B150     = 0x5
    B200     = 0x6
    B300     = 0x7
    B600     = 0x8
    B1200    = 0x9
    B1800    = 0xa
    B2400    = 0xb
    B4800    = 0xc
    B9600    = 0xd
    B19200   = 0xe
    B38400   = 0xf
    CSIZE    = 0x30
    CS5      = 0x0
    CS6      = 0x10
    CS7      = 0x20
    CS8      = 0x30
    CSTOPB   = 0x40
    CREAD    = 0x80
    PARENB   = 0x100
    PARODD   = 0x200
    HUPCL    = 0x400
    CLOCAL   = 0x800
    B57600   = 0x1001
    B115200  = 0x1002
    B230400  = 0x1003
    B460800  = 0x1004
    B500000  = 0x1005
    B576000  = 0x1006
    B921600  = 0x1007
    B1000000 = 0x1008
    B1152000 = 0x1009
    B1500000 = 0x100a
    B2000000 = 0x100b
    B2500000 = 0x100c
    B3000000 = 0x100d
    B3500000 = 0x100e
    B4000000 = 0x100f
    ISIG     = 0x1
    ICANON   = 0x2
    XCASE    = 0x4
    ECHO     = 0x8
    ECHOE    = 0x10
    ECHOK    = 0x20
    ECHONL   = 0x40
    NOFLSH   = 0x80
    TOSTOP   = 0x100
    ECHOCTL  = 0x200
    ECHOPRT  = 0x400
    ECHOKE   = 0x800
    FLUSHO   = 0x1000
    PENDIN   = 0x4000
    IEXTEN   = 0x8000
    TCGETS   = 0x5401
    TCSETS   = 0x5402
)</pre> <pre data-language="go">const ImplementsGetwd = true</pre> <pre data-language="go">const (
    PathMax = 0x1000
)</pre> <pre data-language="go">const SizeofInotifyEvent = 0x10</pre> <h2 id="pkg-variables">Variables</h2> <pre data-language="go">var (
    Stdin  = 0
    Stdout = 1
    Stderr = 2
)</pre> <p>ForkLock is used to synchronize creation of new file descriptors with fork. </p>
<p>We want the child in a fork/exec sequence to inherit only the file descriptors we intend. To do that, we mark all file descriptors close-on-exec and then, in the child, explicitly unmark the ones we want the exec'ed program to keep. Unix doesn't make this easy: there is, in general, no way to allocate a new file descriptor close-on-exec. Instead you have to allocate the descriptor and then mark it close-on-exec. If a fork happens between those two events, the child's exec will inherit an unwanted file descriptor. </p>
<p>This lock solves that race: the create new fd/mark close-on-exec operation is done holding ForkLock for reading, and the fork itself is done holding ForkLock for writing. At least, that's the idea. There are some complications. </p>
<p>Some system calls that create new file descriptors can block for arbitrarily long times: open on a hung NFS server or named pipe, accept on a socket, and so on. We can't reasonably grab the lock across those operations. </p>
<p>It is worse to inherit some file descriptors than others. If a non-malicious child accidentally inherits an open ordinary file, that's not a big deal. On the other hand, if a long-lived child accidentally inherits the write end of a pipe, then the reader of that pipe will not see EOF until that child exits, potentially causing the parent program to hang. This is a common problem in threaded C programs that use popen. </p>
<p>Luckily, the file descriptors that are most important not to inherit are not the ones that can take an arbitrarily long time to create: pipe returns instantly, and the net package uses non-blocking I/O to accept on a listening socket. The rules for which file descriptor-creating operations use the ForkLock are as follows: </p>
<ul> <li>Pipe. Use pipe2 if available. Otherwise, does not block, so use ForkLock. </li>
<li>Socket. Use SOCK_CLOEXEC if available. Otherwise, does not block, so use ForkLock. </li>
<li>Open. Use O_CLOEXEC if available. Otherwise, may block, so live with the race. </li>
<li>Dup. Use F_DUPFD_CLOEXEC or dup3 if available. Otherwise, does not block, so use ForkLock. </li>
</ul> <pre data-language="go">var ForkLock sync.RWMutex</pre> <p>For testing: clients can set this flag to force creation of IPv6 sockets to return EAFNOSUPPORT. </p>
<pre data-language="go">var SocketDisableIPv6 bool</pre> <h2 id="Access">func <span>Access</span>  </h2> <pre data-language="go">func Access(path string, mode uint32) (err error)</pre> <h2 id="Acct">func <span>Acct</span>  </h2> <pre data-language="go">func Acct(path string) (err error)</pre> <h2 id="Adjtimex">func <span>Adjtimex</span>  </h2> <pre data-language="go">func Adjtimex(buf *Timex) (state int, err error)</pre> <h2 id="AttachLsf">func <span>AttachLsf</span>  </h2> <pre data-language="go">func AttachLsf(fd int, i []SockFilter) error</pre> <p>Deprecated: Use golang.org/x/net/bpf instead. </p>
<h2 id="Bind">func <span>Bind</span>  </h2> <pre data-language="go">func Bind(fd int, sa Sockaddr) (err error)</pre> <h2 id="BindToDevice">func <span>BindToDevice</span>  </h2> <pre data-language="go">func BindToDevice(fd int, device string) (err error)</pre> <p>BindToDevice binds the socket associated with fd to device. </p>
<h2 id="BytePtrFromString">func <span>BytePtrFromString</span>  <span title="Added in Go 1.1">1.1</span> </h2> <pre data-language="go">func BytePtrFromString(s string) (*byte, error)</pre> <p>BytePtrFromString returns a pointer to a NUL-terminated array of bytes containing the text of s. If s contains a NUL byte at any location, it returns (nil, EINVAL). </p>
<h2 id="ByteSliceFromString">func <span>ByteSliceFromString</span>  <span title="Added in Go 1.1">1.1</span> </h2> <pre data-language="go">func ByteSliceFromString(s string) ([]byte, error)</pre> <p>ByteSliceFromString returns a NUL-terminated slice of bytes containing the text of s. If s contains a NUL byte at any location, it returns (nil, EINVAL). </p>
<h2 id="Chdir">func <span>Chdir</span>  </h2> <pre data-language="go">func Chdir(path string) (err error)</pre> <h2 id="Chmod">func <span>Chmod</span>  </h2> <pre data-language="go">func Chmod(path string, mode uint32) (err error)</pre> <h2 id="Chown">func <span>Chown</span>  </h2> <pre data-language="go">func Chown(path string, uid int, gid int) (err error)</pre> <h2 id="Chroot">func <span>Chroot</span>  </h2> <pre data-language="go">func Chroot(path string) (err error)</pre> <h2 id="Clearenv">func <span>Clearenv</span>  </h2> <pre data-language="go">func Clearenv()</pre> <h2 id="Close">func <span>Close</span>  </h2> <pre data-language="go">func Close(fd int) (err error)</pre> <h2 id="CloseOnExec">func <span>CloseOnExec</span>  </h2> <pre data-language="go">func CloseOnExec(fd int)</pre> <h2 id="CmsgLen">func <span>CmsgLen</span>  </h2> <pre data-language="go">func CmsgLen(datalen int) int</pre> <p>CmsgLen returns the value to store in the Len field of the Cmsghdr structure, taking into account any necessary alignment. </p>
<h2 id="CmsgSpace">func <span>CmsgSpace</span>  </h2> <pre data-language="go">func CmsgSpace(datalen int) int</pre> <p>CmsgSpace returns the number of bytes an ancillary element with payload of the passed data length occupies. </p>
<h2 id="Connect">func <span>Connect</span>  </h2> <pre data-language="go">func Connect(fd int, sa Sockaddr) (err error)</pre> <h2 id="Creat">func <span>Creat</span>  </h2> <pre data-language="go">func Creat(path string, mode uint32) (fd int, err error)</pre> <h2 id="DetachLsf">func <span>DetachLsf</span>  </h2> <pre data-language="go">func DetachLsf(fd int) error</pre> <p>Deprecated: Use golang.org/x/net/bpf instead. </p>
<h2 id="Dup">func <span>Dup</span>  </h2> <pre data-language="go">func Dup(oldfd int) (fd int, err error)</pre> <h2 id="Dup2">func <span>Dup2</span>  </h2> <pre data-language="go">func Dup2(oldfd int, newfd int) (err error)</pre> <h2 id="Dup3">func <span>Dup3</span>  </h2> <pre data-language="go">func Dup3(oldfd int, newfd int, flags int) (err error)</pre> <h2 id="Environ">func <span>Environ</span>  </h2> <pre data-language="go">func Environ() []string</pre> <h2 id="EpollCreate">func <span>EpollCreate</span>  </h2> <pre data-language="go">func EpollCreate(size int) (fd int, err error)</pre> <h2 id="EpollCreate1">func <span>EpollCreate1</span>  </h2> <pre data-language="go">func EpollCreate1(flag int) (fd int, err error)</pre> <h2 id="EpollCtl">func <span>EpollCtl</span>  </h2> <pre data-language="go">func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)</pre> <h2 id="EpollWait">func <span>EpollWait</span>  </h2> <pre data-language="go">func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)</pre> <h2 id="Exec">func <span>Exec</span>  </h2> <pre data-language="go">func Exec(argv0 string, argv []string, envv []string) (err error)</pre> <p>Exec invokes the execve(2) system call. </p>
<h2 id="Exit">func <span>Exit</span>  </h2> <pre data-language="go">func Exit(code int)</pre> <h2 id="Faccessat">func <span>Faccessat</span>  </h2> <pre data-language="go">func Faccessat(dirfd int, path string, mode uint32, flags int) (err error)</pre> <h2 id="Fallocate">func <span>Fallocate</span>  </h2> <pre data-language="go">func Fallocate(fd int, mode uint32, off int64, len int64) (err error)</pre> <h2 id="Fchdir">func <span>Fchdir</span>  </h2> <pre data-language="go">func Fchdir(fd int) (err error)</pre> <h2 id="Fchmod">func <span>Fchmod</span>  </h2> <pre data-language="go">func Fchmod(fd int, mode uint32) (err error)</pre> <h2 id="Fchmodat">func <span>Fchmodat</span>  </h2> <pre data-language="go">func Fchmodat(dirfd int, path string, mode uint32, flags int) error</pre> <h2 id="Fchown">func <span>Fchown</span>  </h2> <pre data-language="go">func Fchown(fd int, uid int, gid int) (err error)</pre> <h2 id="Fchownat">func <span>Fchownat</span>  </h2> <pre data-language="go">func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)</pre> <h2 id="FcntlFlock">func <span>FcntlFlock</span>  </h2> <pre data-language="go">func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error</pre> <p>FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. </p>
<h2 id="Fdatasync">func <span>Fdatasync</span>  </h2> <pre data-language="go">func Fdatasync(fd int) (err error)</pre> <h2 id="Flock">func <span>Flock</span>  </h2> <pre data-language="go">func Flock(fd int, how int) (err error)</pre> <h2 id="ForkExec">func <span>ForkExec</span>  </h2> <pre data-language="go">func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)</pre> <p>Combination of fork and exec, careful to be thread safe. </p>
<h2 id="Fstat">func <span>Fstat</span>  </h2> <pre data-language="go">func Fstat(fd int, stat *Stat_t) (err error)</pre> <h2 id="Fstatfs">func <span>Fstatfs</span>  </h2> <pre data-language="go">func Fstatfs(fd int, buf *Statfs_t) (err error)</pre> <h2 id="Fsync">func <span>Fsync</span>  </h2> <pre data-language="go">func Fsync(fd int) (err error)</pre> <h2 id="Ftruncate">func <span>Ftruncate</span>  </h2> <pre data-language="go">func Ftruncate(fd int, length int64) (err error)</pre> <h2 id="Futimes">func <span>Futimes</span>  </h2> <pre data-language="go">func Futimes(fd int, tv []Timeval) (err error)</pre> <h2 id="Futimesat">func <span>Futimesat</span>  </h2> <pre data-language="go">func Futimesat(dirfd int, path string, tv []Timeval) (err error)</pre> <h2 id="Getcwd">func <span>Getcwd</span>  </h2> <pre data-language="go">func Getcwd(buf []byte) (n int, err error)</pre> <h2 id="Getdents">func <span>Getdents</span>  </h2> <pre data-language="go">func Getdents(fd int, buf []byte) (n int, err error)</pre> <h2 id="Getegid">func <span>Getegid</span>  </h2> <pre data-language="go">func Getegid() (egid int)</pre> <h2 id="Getenv">func <span>Getenv</span>  </h2> <pre data-language="go">func Getenv(key string) (value string, found bool)</pre> <h2 id="Geteuid">func <span>Geteuid</span>  </h2> <pre data-language="go">func Geteuid() (euid int)</pre> <h2 id="Getgid">func <span>Getgid</span>  </h2> <pre data-language="go">func Getgid() (gid int)</pre> <h2 id="Getgroups">func <span>Getgroups</span>  </h2> <pre data-language="go">func Getgroups() (gids []int, err error)</pre> <h2 id="Getpagesize">func <span>Getpagesize</span>  </h2> <pre data-language="go">func Getpagesize() int</pre> <h2 id="Getpgid">func <span>Getpgid</span>  </h2> <pre data-language="go">func Getpgid(pid int) (pgid int, err error)</pre> <h2 id="Getpgrp">func <span>Getpgrp</span>  </h2> <pre data-language="go">func Getpgrp() (pid int)</pre> <h2 id="Getpid">func <span>Getpid</span>  </h2> <pre data-language="go">func Getpid() (pid int)</pre> <h2 id="Getppid">func <span>Getppid</span>  </h2> <pre data-language="go">func Getppid() (ppid int)</pre> <h2 id="Getpriority">func <span>Getpriority</span>  </h2> <pre data-language="go">func Getpriority(which int, who int) (prio int, err error)</pre> <h2 id="Getrlimit">func <span>Getrlimit</span>  </h2> <pre data-language="go">func Getrlimit(resource int, rlim *Rlimit) (err error)</pre> <h2 id="Getrusage">func <span>Getrusage</span>  </h2> <pre data-language="go">func Getrusage(who int, rusage *Rusage) (err error)</pre> <h2 id="GetsockoptInet4Addr">func <span>GetsockoptInet4Addr</span>  </h2> <pre data-language="go">func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error)</pre> <h2 id="GetsockoptInt">func <span>GetsockoptInt</span>  </h2> <pre data-language="go">func GetsockoptInt(fd, level, opt int) (value int, err error)</pre> <h2 id="Gettid">func <span>Gettid</span>  </h2> <pre data-language="go">func Gettid() (tid int)</pre> <h2 id="Gettimeofday">func <span>Gettimeofday</span>  </h2> <pre data-language="go">func Gettimeofday(tv *Timeval) (err error)</pre> <h2 id="Getuid">func <span>Getuid</span>  </h2> <pre data-language="go">func Getuid() (uid int)</pre> <h2 id="Getwd">func <span>Getwd</span>  </h2> <pre data-language="go">func Getwd() (wd string, err error)</pre> <h2 id="Getxattr">func <span>Getxattr</span>  </h2> <pre data-language="go">func Getxattr(path string, attr string, dest []byte) (sz int, err error)</pre> <h2 id="InotifyAddWatch">func <span>InotifyAddWatch</span>  </h2> <pre data-language="go">func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)</pre> <h2 id="InotifyInit">func <span>InotifyInit</span>  </h2> <pre data-language="go">func InotifyInit() (fd int, err error)</pre> <h2 id="InotifyInit1">func <span>InotifyInit1</span>  </h2> <pre data-language="go">func InotifyInit1(flags int) (fd int, err error)</pre> <h2 id="InotifyRmWatch">func <span>InotifyRmWatch</span>  </h2> <pre data-language="go">func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)</pre> <h2 id="Ioperm">func <span>Ioperm</span>  </h2> <pre data-language="go">func Ioperm(from int, num int, on int) (err error)</pre> <h2 id="Iopl">func <span>Iopl</span>  </h2> <pre data-language="go">func Iopl(level int) (err error)</pre> <h2 id="Kill">func <span>Kill</span>  </h2> <pre data-language="go">func Kill(pid int, sig Signal) (err error)</pre> <h2 id="Klogctl">func <span>Klogctl</span>  </h2> <pre data-language="go">func Klogctl(typ int, buf []byte) (n int, err error)</pre> <h2 id="Lchown">func <span>Lchown</span>  </h2> <pre data-language="go">func Lchown(path string, uid int, gid int) (err error)</pre> <h2 id="Link">func <span>Link</span>  </h2> <pre data-language="go">func Link(oldpath string, newpath string) (err error)</pre> <h2 id="Listen">func <span>Listen</span>  </h2> <pre data-language="go">func Listen(s int, n int) (err error)</pre> <h2 id="Listxattr">func <span>Listxattr</span>  </h2> <pre data-language="go">func Listxattr(path string, dest []byte) (sz int, err error)</pre> <h2 id="LsfSocket">func <span>LsfSocket</span>  </h2> <pre data-language="go">func LsfSocket(ifindex, proto int) (int, error)</pre> <p>Deprecated: Use golang.org/x/net/bpf instead. </p>
<h2 id="Lstat">func <span>Lstat</span>  </h2> <pre data-language="go">func Lstat(path string, stat *Stat_t) (err error)</pre> <h2 id="Madvise">func <span>Madvise</span>  </h2> <pre data-language="go">func Madvise(b []byte, advice int) (err error)</pre> <h2 id="Mkdir">func <span>Mkdir</span>  </h2> <pre data-language="go">func Mkdir(path string, mode uint32) (err error)</pre> <h2 id="Mkdirat">func <span>Mkdirat</span>  </h2> <pre data-language="go">func Mkdirat(dirfd int, path string, mode uint32) (err error)</pre> <h2 id="Mkfifo">func <span>Mkfifo</span>  </h2> <pre data-language="go">func Mkfifo(path string, mode uint32) (err error)</pre> <h2 id="Mknod">func <span>Mknod</span>  </h2> <pre data-language="go">func Mknod(path string, mode uint32, dev int) (err error)</pre> <h2 id="Mknodat">func <span>Mknodat</span>  </h2> <pre data-language="go">func Mknodat(dirfd int, path string, mode uint32, dev int) (err error)</pre> <h2 id="Mlock">func <span>Mlock</span>  </h2> <pre data-language="go">func Mlock(b []byte) (err error)</pre> <h2 id="Mlockall">func <span>Mlockall</span>  </h2> <pre data-language="go">func Mlockall(flags int) (err error)</pre> <h2 id="Mmap">func <span>Mmap</span>  </h2> <pre data-language="go">func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)</pre> <h2 id="Mount">func <span>Mount</span>  </h2> <pre data-language="go">func Mount(source string, target string, fstype string, flags uintptr, data string) (err error)</pre> <h2 id="Mprotect">func <span>Mprotect</span>  </h2> <pre data-language="go">func Mprotect(b []byte, prot int) (err error)</pre> <h2 id="Munlock">func <span>Munlock</span>  </h2> <pre data-language="go">func Munlock(b []byte) (err error)</pre> <h2 id="Munlockall">func <span>Munlockall</span>  </h2> <pre data-language="go">func Munlockall() (err error)</pre> <h2 id="Munmap">func <span>Munmap</span>  </h2> <pre data-language="go">func Munmap(b []byte) (err error)</pre> <h2 id="Nanosleep">func <span>Nanosleep</span>  </h2> <pre data-language="go">func Nanosleep(time *Timespec, leftover *Timespec) (err error)</pre> <h2 id="NetlinkRIB">func <span>NetlinkRIB</span>  </h2> <pre data-language="go">func NetlinkRIB(proto, family int) ([]byte, error)</pre> <p>NetlinkRIB returns routing information base, as known as RIB, which consists of network facility information, states and parameters. </p>
<h2 id="Open">func <span>Open</span>  </h2> <pre data-language="go">func Open(path string, mode int, perm uint32) (fd int, err error)</pre> <h2 id="Openat">func <span>Openat</span>  </h2> <pre data-language="go">func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)</pre> <h2 id="ParseDirent">func <span>ParseDirent</span>  </h2> <pre data-language="go">func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)</pre> <p>ParseDirent parses up to max directory entries in buf, appending the names to names. It returns the number of bytes consumed from buf, the number of entries added to names, and the new names slice. </p>
<h2 id="ParseUnixRights">func <span>ParseUnixRights</span>  </h2> <pre data-language="go">func ParseUnixRights(m *SocketControlMessage) ([]int, error)</pre> <p>ParseUnixRights decodes a socket control message that contains an integer array of open file descriptors from another process. </p>
<h2 id="Pause">func <span>Pause</span>  </h2> <pre data-language="go">func Pause() (err error)</pre> <h2 id="Pipe">func <span>Pipe</span>  </h2> <pre data-language="go">func Pipe(p []int) error</pre> <h2 id="Pipe2">func <span>Pipe2</span>  </h2> <pre data-language="go">func Pipe2(p []int, flags int) error</pre> <h2 id="PivotRoot">func <span>PivotRoot</span>  </h2> <pre data-language="go">func PivotRoot(newroot string, putold string) (err error)</pre> <h2 id="Pread">func <span>Pread</span>  </h2> <pre data-language="go">func Pread(fd int, p []byte, offset int64) (n int, err error)</pre> <h2 id="PtraceAttach">func <span>PtraceAttach</span>  </h2> <pre data-language="go">func PtraceAttach(pid int) (err error)</pre> <h2 id="PtraceCont">func <span>PtraceCont</span>  </h2> <pre data-language="go">func PtraceCont(pid int, signal int) (err error)</pre> <h2 id="PtraceDetach">func <span>PtraceDetach</span>  </h2> <pre data-language="go">func PtraceDetach(pid int) (err error)</pre> <h2 id="PtraceGetEventMsg">func <span>PtraceGetEventMsg</span>  </h2> <pre data-language="go">func PtraceGetEventMsg(pid int) (msg uint, err error)</pre> <h2 id="PtraceGetRegs">func <span>PtraceGetRegs</span>  </h2> <pre data-language="go">func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error)</pre> <h2 id="PtracePeekData">func <span>PtracePeekData</span>  </h2> <pre data-language="go">func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error)</pre> <h2 id="PtracePeekText">func <span>PtracePeekText</span>  </h2> <pre data-language="go">func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error)</pre> <h2 id="PtracePokeData">func <span>PtracePokeData</span>  </h2> <pre data-language="go">func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error)</pre> <h2 id="PtracePokeText">func <span>PtracePokeText</span>  </h2> <pre data-language="go">func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error)</pre> <h2 id="PtraceSetOptions">func <span>PtraceSetOptions</span>  </h2> <pre data-language="go">func PtraceSetOptions(pid int, options int) (err error)</pre> <h2 id="PtraceSetRegs">func <span>PtraceSetRegs</span>  </h2> <pre data-language="go">func PtraceSetRegs(pid int, regs *PtraceRegs) (err error)</pre> <h2 id="PtraceSingleStep">func <span>PtraceSingleStep</span>  </h2> <pre data-language="go">func PtraceSingleStep(pid int) (err error)</pre> <h2 id="PtraceSyscall">func <span>PtraceSyscall</span>  </h2> <pre data-language="go">func PtraceSyscall(pid int, signal int) (err error)</pre> <h2 id="Pwrite">func <span>Pwrite</span>  </h2> <pre data-language="go">func Pwrite(fd int, p []byte, offset int64) (n int, err error)</pre> <h2 id="Read">func <span>Read</span>  </h2> <pre data-language="go">func Read(fd int, p []byte) (n int, err error)</pre> <h2 id="ReadDirent">func <span>ReadDirent</span>  </h2> <pre data-language="go">func ReadDirent(fd int, buf []byte) (n int, err error)</pre> <h2 id="Readlink">func <span>Readlink</span>  </h2> <pre data-language="go">func Readlink(path string, buf []byte) (n int, err error)</pre> <h2 id="Reboot">func <span>Reboot</span>  </h2> <pre data-language="go">func Reboot(cmd int) (err error)</pre> <h2 id="Removexattr">func <span>Removexattr</span>  </h2> <pre data-language="go">func Removexattr(path string, attr string) (err error)</pre> <h2 id="Rename">func <span>Rename</span>  </h2> <pre data-language="go">func Rename(oldpath string, newpath string) (err error)</pre> <h2 id="Renameat">func <span>Renameat</span>  </h2> <pre data-language="go">func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)</pre> <h2 id="Rmdir">func <span>Rmdir</span>  </h2> <pre data-language="go">func Rmdir(path string) error</pre> <h2 id="Seek">func <span>Seek</span>  </h2> <pre data-language="go">func Seek(fd int, offset int64, whence int) (off int64, err error)</pre> <h2 id="Select">func <span>Select</span>  </h2> <pre data-language="go">func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)</pre> <h2 id="Sendfile">func <span>Sendfile</span>  </h2> <pre data-language="go">func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)</pre> <h2 id="Sendmsg">func <span>Sendmsg</span>  </h2> <pre data-language="go">func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error)</pre> <h2 id="SendmsgN">func <span>SendmsgN</span>  </h2> <pre data-language="go">func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)</pre> <h2 id="Sendto">func <span>Sendto</span>  </h2> <pre data-language="go">func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error)</pre> <h2 id="SetLsfPromisc">func <span>SetLsfPromisc</span>  </h2> <pre data-language="go">func SetLsfPromisc(name string, m bool) error</pre> <p>Deprecated: Use golang.org/x/net/bpf instead. </p>
<h2 id="SetNonblock">func <span>SetNonblock</span>  </h2> <pre data-language="go">func SetNonblock(fd int, nonblocking bool) (err error)</pre> <h2 id="Setdomainname">func <span>Setdomainname</span>  </h2> <pre data-language="go">func Setdomainname(p []byte) (err error)</pre> <h2 id="Setegid">func <span>Setegid</span>  </h2> <pre data-language="go">func Setegid(egid int) (err error)</pre> <h2 id="Setenv">func <span>Setenv</span>  </h2> <pre data-language="go">func Setenv(key, value string) error</pre> <h2 id="Seteuid">func <span>Seteuid</span>  </h2> <pre data-language="go">func Seteuid(euid int) (err error)</pre> <h2 id="Setfsgid">func <span>Setfsgid</span>  </h2> <pre data-language="go">func Setfsgid(gid int) (err error)</pre> <h2 id="Setfsuid">func <span>Setfsuid</span>  </h2> <pre data-language="go">func Setfsuid(uid int) (err error)</pre> <h2 id="Setgid">func <span>Setgid</span>  </h2> <pre data-language="go">func Setgid(gid int) (err error)</pre> <h2 id="Setgroups">func <span>Setgroups</span>  </h2> <pre data-language="go">func Setgroups(gids []int) (err error)</pre> <h2 id="Sethostname">func <span>Sethostname</span>  </h2> <pre data-language="go">func Sethostname(p []byte) (err error)</pre> <h2 id="Setpgid">func <span>Setpgid</span>  </h2> <pre data-language="go">func Setpgid(pid int, pgid int) (err error)</pre> <h2 id="Setpriority">func <span>Setpriority</span>  </h2> <pre data-language="go">func Setpriority(which int, who int, prio int) (err error)</pre> <h2 id="Setregid">func <span>Setregid</span>  </h2> <pre data-language="go">func Setregid(rgid, egid int) (err error)</pre> <h2 id="Setresgid">func <span>Setresgid</span>  </h2> <pre data-language="go">func Setresgid(rgid, egid, sgid int) (err error)</pre> <h2 id="Setresuid">func <span>Setresuid</span>  </h2> <pre data-language="go">func Setresuid(ruid, euid, suid int) (err error)</pre> <h2 id="Setreuid">func <span>Setreuid</span>  </h2> <pre data-language="go">func Setreuid(ruid, euid int) (err error)</pre> <h2 id="Setrlimit">func <span>Setrlimit</span>  </h2> <pre data-language="go">func Setrlimit(resource int, rlim *Rlimit) error</pre> <h2 id="Setsid">func <span>Setsid</span>  </h2> <pre data-language="go">func Setsid() (pid int, err error)</pre> <h2 id="SetsockoptByte">func <span>SetsockoptByte</span>  </h2> <pre data-language="go">func SetsockoptByte(fd, level, opt int, value byte) (err error)</pre> <h2 id="SetsockoptICMPv6Filter">func <span>SetsockoptICMPv6Filter</span>  </h2> <pre data-language="go">func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error</pre> <h2 id="SetsockoptIPMreq">func <span>SetsockoptIPMreq</span>  </h2> <pre data-language="go">func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error)</pre> <h2 id="SetsockoptIPMreqn">func <span>SetsockoptIPMreqn</span>  </h2> <pre data-language="go">func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error)</pre> <h2 id="SetsockoptIPv6Mreq">func <span>SetsockoptIPv6Mreq</span>  </h2> <pre data-language="go">func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error)</pre> <h2 id="SetsockoptInet4Addr">func <span>SetsockoptInet4Addr</span>  </h2> <pre data-language="go">func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error)</pre> <h2 id="SetsockoptInt">func <span>SetsockoptInt</span>  </h2> <pre data-language="go">func SetsockoptInt(fd, level, opt int, value int) (err error)</pre> <h2 id="SetsockoptLinger">func <span>SetsockoptLinger</span>  </h2> <pre data-language="go">func SetsockoptLinger(fd, level, opt int, l *Linger) (err error)</pre> <h2 id="SetsockoptString">func <span>SetsockoptString</span>  </h2> <pre data-language="go">func SetsockoptString(fd, level, opt int, s string) (err error)</pre> <h2 id="SetsockoptTimeval">func <span>SetsockoptTimeval</span>  </h2> <pre data-language="go">func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error)</pre> <h2 id="Settimeofday">func <span>Settimeofday</span>  </h2> <pre data-language="go">func Settimeofday(tv *Timeval) (err error)</pre> <h2 id="Setuid">func <span>Setuid</span>  </h2> <pre data-language="go">func Setuid(uid int) (err error)</pre> <h2 id="Setxattr">func <span>Setxattr</span>  </h2> <pre data-language="go">func Setxattr(path string, attr string, data []byte, flags int) (err error)</pre> <h2 id="Shutdown">func <span>Shutdown</span>  </h2> <pre data-language="go">func Shutdown(fd int, how int) (err error)</pre> <h2 id="SlicePtrFromStrings">func <span>SlicePtrFromStrings</span>  </h2> <pre data-language="go">func SlicePtrFromStrings(ss []string) ([]*byte, error)</pre> <p>SlicePtrFromStrings converts a slice of strings to a slice of pointers to NUL-terminated byte arrays. If any string contains a NUL byte, it returns (nil, EINVAL). </p>
<h2 id="Socket">func <span>Socket</span>  </h2> <pre data-language="go">func Socket(domain, typ, proto int) (fd int, err error)</pre> <h2 id="Socketpair">func <span>Socketpair</span>  </h2> <pre data-language="go">func Socketpair(domain, typ, proto int) (fd [2]int, err error)</pre> <h2 id="Splice">func <span>Splice</span>  </h2> <pre data-language="go">func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)</pre> <h2 id="StartProcess">func <span>StartProcess</span>  </h2> <pre data-language="go">func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error)</pre> <p>StartProcess wraps ForkExec for package os. </p>
<h2 id="Stat">func <span>Stat</span>  </h2> <pre data-language="go">func Stat(path string, stat *Stat_t) (err error)</pre> <h2 id="Statfs">func <span>Statfs</span>  </h2> <pre data-language="go">func Statfs(path string, buf *Statfs_t) (err error)</pre> <h2 id="StringBytePtr">func <span>StringBytePtr</span>  </h2> <pre data-language="go">func StringBytePtr(s string) *byte</pre> <p>StringBytePtr returns a pointer to a NUL-terminated array of bytes. If s contains a NUL byte this function panics instead of returning an error. </p>
<p>Deprecated: Use BytePtrFromString instead. </p>
<h2 id="StringByteSlice">func <span>StringByteSlice</span>  </h2> <pre data-language="go">func StringByteSlice(s string) []byte</pre> <p>StringByteSlice converts a string to a NUL-terminated []byte, If s contains a NUL byte this function panics instead of returning an error. </p>
<p>Deprecated: Use ByteSliceFromString instead. </p>
<h2 id="StringSlicePtr">func <span>StringSlicePtr</span>  </h2> <pre data-language="go">func StringSlicePtr(ss []string) []*byte</pre> <p>StringSlicePtr converts a slice of strings to a slice of pointers to NUL-terminated byte arrays. If any string contains a NUL byte this function panics instead of returning an error. </p>
<p>Deprecated: Use SlicePtrFromStrings instead. </p>
<h2 id="Symlink">func <span>Symlink</span>  </h2> <pre data-language="go">func Symlink(oldpath string, newpath string) (err error)</pre> <h2 id="Sync">func <span>Sync</span>  </h2> <pre data-language="go">func Sync()</pre> <h2 id="SyncFileRange">func <span>SyncFileRange</span>  </h2> <pre data-language="go">func SyncFileRange(fd int, off int64, n int64, flags int) (err error)</pre> <h2 id="Sysinfo">func <span>Sysinfo</span>  </h2> <pre data-language="go">func Sysinfo(info *Sysinfo_t) (err error)</pre> <h2 id="Tee">func <span>Tee</span>  </h2> <pre data-language="go">func Tee(rfd int, wfd int, len int, flags int) (n int64, err error)</pre> <h2 id="Tgkill">func <span>Tgkill</span>  </h2> <pre data-language="go">func Tgkill(tgid int, tid int, sig Signal) (err error)</pre> <h2 id="Times">func <span>Times</span>  </h2> <pre data-language="go">func Times(tms *Tms) (ticks uintptr, err error)</pre> <h2 id="TimespecToNsec">func <span>TimespecToNsec</span>  <span title="Added in Go 1.1">1.1</span> </h2> <pre data-language="go">func TimespecToNsec(ts Timespec) int64</pre> <p>TimespecToNsec returns the time stored in ts as nanoseconds. </p>
<h2 id="TimevalToNsec">func <span>TimevalToNsec</span>  </h2> <pre data-language="go">func TimevalToNsec(tv Timeval) int64</pre> <p>TimevalToNsec returns the time stored in tv as nanoseconds. </p>
<h2 id="Truncate">func <span>Truncate</span>  </h2> <pre data-language="go">func Truncate(path string, length int64) (err error)</pre> <h2 id="Umask">func <span>Umask</span>  </h2> <pre data-language="go">func Umask(mask int) (oldmask int)</pre> <h2 id="Uname">func <span>Uname</span>  </h2> <pre data-language="go">func Uname(buf *Utsname) (err error)</pre> <h2 id="UnixCredentials">func <span>UnixCredentials</span>  </h2> <pre data-language="go">func UnixCredentials(ucred *Ucred) []byte</pre> <p>UnixCredentials encodes credentials into a socket control message for sending to another process. This can be used for authentication. </p>
<h2 id="UnixRights">func <span>UnixRights</span>  </h2> <pre data-language="go">func UnixRights(fds ...int) []byte</pre> <p>UnixRights encodes a set of open file descriptors into a socket control message for sending to another process. </p>
<h2 id="Unlink">func <span>Unlink</span>  </h2> <pre data-language="go">func Unlink(path string) error</pre> <h2 id="Unlinkat">func <span>Unlinkat</span>  </h2> <pre data-language="go">func Unlinkat(dirfd int, path string) error</pre> <h2 id="Unmount">func <span>Unmount</span>  </h2> <pre data-language="go">func Unmount(target string, flags int) (err error)</pre> <h2 id="Unsetenv">func <span>Unsetenv</span>  <span title="Added in Go 1.4">1.4</span> </h2> <pre data-language="go">func Unsetenv(key string) error</pre> <h2 id="Unshare">func <span>Unshare</span>  </h2> <pre data-language="go">func Unshare(flags int) (err error)</pre> <h2 id="Ustat">func <span>Ustat</span>  </h2> <pre data-language="go">func Ustat(dev int, ubuf *Ustat_t) (err error)</pre> <h2 id="Utime">func <span>Utime</span>  </h2> <pre data-language="go">func Utime(path string, buf *Utimbuf) (err error)</pre> <h2 id="Utimes">func <span>Utimes</span>  </h2> <pre data-language="go">func Utimes(path string, tv []Timeval) (err error)</pre> <h2 id="UtimesNano">func <span>UtimesNano</span>  <span title="Added in Go 1.1">1.1</span> </h2> <pre data-language="go">func UtimesNano(path string, ts []Timespec) (err error)</pre> <h2 id="Wait4">func <span>Wait4</span>  </h2> <pre data-language="go">func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)</pre> <h2 id="Write">func <span>Write</span>  </h2> <pre data-language="go">func Write(fd int, p []byte) (n int, err error)</pre> <h2 id="Cmsghdr">type <span>Cmsghdr</span>  </h2> <pre data-language="go">type Cmsghdr struct {
    Len   uint64
    Level int32
    Type  int32
}
</pre> <h3 id="Cmsghdr.SetLen">func (*Cmsghdr) <span>SetLen</span>  </h3> <pre data-language="go">func (cmsg *Cmsghdr) SetLen(length int)</pre> <h2 id="Conn">type <span>Conn</span>  <span title="Added in Go 1.9">1.9</span> </h2> <p>Conn is implemented by some types in the net and os packages to provide access to the underlying file descriptor or handle. </p>
<pre data-language="go">type Conn interface {
    // SyscallConn returns a raw network connection.
    SyscallConn() (RawConn, error)
}</pre> <h2 id="Credential">type <span>Credential</span>  </h2> <p>Credential holds user and group identities to be assumed by a child process started by StartProcess. </p>
<pre data-language="go">type Credential struct {
    Uid         uint32   // User ID.
    Gid         uint32   // Group ID.
    Groups      []uint32 // Supplementary group IDs.
    NoSetGroups bool     // If true, don't set supplementary groups
}
</pre> <h2 id="Dirent">type <span>Dirent</span>  </h2> <pre data-language="go">type Dirent struct {
    Ino       uint64
    Off       int64
    Reclen    uint16
    Type      uint8
    Name      [256]int8
    Pad_cgo_0 [5]byte
}
</pre> <h2 id="EpollEvent">type <span>EpollEvent</span>  </h2> <pre data-language="go">type EpollEvent struct {
    Events uint32
    Fd     int32
    Pad    int32
}
</pre> <h2 id="Errno">type <span>Errno</span>  </h2> <p>An Errno is an unsigned number describing an error condition. It implements the error interface. The zero Errno is by convention a non-error, so code to convert from Errno to error should use: </p>
<pre data-language="go">err = nil
if errno != 0 {
	err = errno
}
</pre> <p>Errno values can be tested against error values using errors.Is. For example: </p>
<pre data-language="go">_, _, err := syscall.Syscall(...)
if errors.Is(err, fs.ErrNotExist) ...
</pre> <pre data-language="go">type Errno uintptr</pre> <h3 id="AllThreadsSyscall">func <span>AllThreadsSyscall</span>  </h3> <pre data-language="go">func AllThreadsSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)</pre> <p>AllThreadsSyscall performs a syscall on each OS thread of the Go runtime. It first invokes the syscall on one thread. Should that invocation fail, it returns immediately with the error status. Otherwise, it invokes the syscall on all of the remaining threads in parallel. It will terminate the program if it observes any invoked syscall's return value differs from that of the first invocation. </p>
<p>AllThreadsSyscall is intended for emulating simultaneous process-wide state changes that require consistently modifying per-thread state of the Go runtime. </p>
<p>AllThreadsSyscall is unaware of any threads that are launched explicitly by cgo linked code, so the function always returns ENOTSUP in binaries that use cgo. </p>
<h3 id="AllThreadsSyscall6">func <span>AllThreadsSyscall6</span>  </h3> <pre data-language="go">func AllThreadsSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)</pre> <p>AllThreadsSyscall6 is like AllThreadsSyscall, but extended to six arguments. </p>
<h3 id="RawSyscall">func <span>RawSyscall</span>  </h3> <pre data-language="go">func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)</pre> <h3 id="RawSyscall6">func <span>RawSyscall6</span>  </h3> <pre data-language="go">func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)</pre> <h3 id="Syscall">func <span>Syscall</span>  </h3> <pre data-language="go">func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)</pre> <h3 id="Syscall6">func <span>Syscall6</span>  </h3> <pre data-language="go">func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)</pre> <h3 id="Errno.Error">func (Errno) <span>Error</span>  </h3> <pre data-language="go">func (e Errno) Error() string</pre> <h3 id="Errno.Is">func (Errno) <span>Is</span>  <span title="Added in Go 1.13">1.13</span> </h3> <pre data-language="go">func (e Errno) Is(target error) bool</pre> <h3 id="Errno.Temporary">func (Errno) <span>Temporary</span>  </h3> <pre data-language="go">func (e Errno) Temporary() bool</pre> <h3 id="Errno.Timeout">func (Errno) <span>Timeout</span>  </h3> <pre data-language="go">func (e Errno) Timeout() bool</pre> <h2 id="FdSet">type <span>FdSet</span>  </h2> <pre data-language="go">type FdSet struct {
    Bits [16]int64
}
</pre> <h2 id="Flock_t">type <span>Flock_t</span>  </h2> <pre data-language="go">type Flock_t struct {
    Type      int16
    Whence    int16
    Pad_cgo_0 [4]byte
    Start     int64
    Len       int64
    Pid       int32
    Pad_cgo_1 [4]byte
}
</pre> <h2 id="Fsid">type <span>Fsid</span>  </h2> <pre data-language="go">type Fsid struct {
    X__val [2]int32
}
</pre> <h2 id="ICMPv6Filter">type <span>ICMPv6Filter</span>  </h2> <pre data-language="go">type ICMPv6Filter struct {
    Data [8]uint32
}
</pre> <h3 id="GetsockoptICMPv6Filter">func <span>GetsockoptICMPv6Filter</span>  </h3> <pre data-language="go">func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error)</pre> <h2 id="IPMreq">type <span>IPMreq</span>  </h2> <pre data-language="go">type IPMreq struct {
    Multiaddr [4]byte /* in_addr */
    Interface [4]byte /* in_addr */
}
</pre> <h3 id="GetsockoptIPMreq">func <span>GetsockoptIPMreq</span>  </h3> <pre data-language="go">func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error)</pre> <h2 id="IPMreqn">type <span>IPMreqn</span>  </h2> <pre data-language="go">type IPMreqn struct {
    Multiaddr [4]byte /* in_addr */
    Address   [4]byte /* in_addr */
    Ifindex   int32
}
</pre> <h3 id="GetsockoptIPMreqn">func <span>GetsockoptIPMreqn</span>  </h3> <pre data-language="go">func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error)</pre> <h2 id="IPv6MTUInfo">type <span>IPv6MTUInfo</span>  </h2> <pre data-language="go">type IPv6MTUInfo struct {
    Addr RawSockaddrInet6
    Mtu  uint32
}
</pre> <h3 id="GetsockoptIPv6MTUInfo">func <span>GetsockoptIPv6MTUInfo</span>  </h3> <pre data-language="go">func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error)</pre> <h2 id="IPv6Mreq">type <span>IPv6Mreq</span>  </h2> <pre data-language="go">type IPv6Mreq struct {
    Multiaddr [16]byte /* in6_addr */
    Interface uint32
}
</pre> <h3 id="GetsockoptIPv6Mreq">func <span>GetsockoptIPv6Mreq</span>  </h3> <pre data-language="go">func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error)</pre> <h2 id="IfAddrmsg">type <span>IfAddrmsg</span>  </h2> <pre data-language="go">type IfAddrmsg struct {
    Family    uint8
    Prefixlen uint8
    Flags     uint8
    Scope     uint8
    Index     uint32
}
</pre> <h2 id="IfInfomsg">type <span>IfInfomsg</span>  </h2> <pre data-language="go">type IfInfomsg struct {
    Family     uint8
    X__ifi_pad uint8
    Type       uint16
    Index      int32
    Flags      uint32
    Change     uint32
}
</pre> <h2 id="Inet4Pktinfo">type <span>Inet4Pktinfo</span>  </h2> <pre data-language="go">type Inet4Pktinfo struct {
    Ifindex  int32
    Spec_dst [4]byte /* in_addr */
    Addr     [4]byte /* in_addr */
}
</pre> <h2 id="Inet6Pktinfo">type <span>Inet6Pktinfo</span>  </h2> <pre data-language="go">type Inet6Pktinfo struct {
    Addr    [16]byte /* in6_addr */
    Ifindex uint32
}
</pre> <h2 id="InotifyEvent">type <span>InotifyEvent</span>  </h2> <pre data-language="go">type InotifyEvent struct {
    Wd     int32
    Mask   uint32
    Cookie uint32
    Len    uint32
    Name   [0]uint8
}
</pre> <h2 id="Iovec">type <span>Iovec</span>  </h2> <pre data-language="go">type Iovec struct {
    Base *byte
    Len  uint64
}
</pre> <h3 id="Iovec.SetLen">func (*Iovec) <span>SetLen</span>  </h3> <pre data-language="go">func (iov *Iovec) SetLen(length int)</pre> <h2 id="Linger">type <span>Linger</span>  </h2> <pre data-language="go">type Linger struct {
    Onoff  int32
    Linger int32
}
</pre> <h2 id="Msghdr">type <span>Msghdr</span>  </h2> <pre data-language="go">type Msghdr struct {
    Name       *byte
    Namelen    uint32
    Pad_cgo_0  [4]byte
    Iov        *Iovec
    Iovlen     uint64
    Control    *byte
    Controllen uint64
    Flags      int32
    Pad_cgo_1  [4]byte
}
</pre> <h3 id="Msghdr.SetControllen">func (*Msghdr) <span>SetControllen</span>  </h3> <pre data-language="go">func (msghdr *Msghdr) SetControllen(length int)</pre> <h2 id="NetlinkMessage">type <span>NetlinkMessage</span>  </h2> <p>NetlinkMessage represents a netlink message. </p>
<pre data-language="go">type NetlinkMessage struct {
    Header NlMsghdr
    Data   []byte
}
</pre> <h3 id="ParseNetlinkMessage">func <span>ParseNetlinkMessage</span>  </h3> <pre data-language="go">func ParseNetlinkMessage(b []byte) ([]NetlinkMessage, error)</pre> <p>ParseNetlinkMessage parses b as an array of netlink messages and returns the slice containing the NetlinkMessage structures. </p>
<h2 id="NetlinkRouteAttr">type <span>NetlinkRouteAttr</span>  </h2> <p>NetlinkRouteAttr represents a netlink route attribute. </p>
<pre data-language="go">type NetlinkRouteAttr struct {
    Attr  RtAttr
    Value []byte
}
</pre> <h3 id="ParseNetlinkRouteAttr">func <span>ParseNetlinkRouteAttr</span>  </h3> <pre data-language="go">func ParseNetlinkRouteAttr(m *NetlinkMessage) ([]NetlinkRouteAttr, error)</pre> <p>ParseNetlinkRouteAttr parses m's payload as an array of netlink route attributes and returns the slice containing the NetlinkRouteAttr structures. </p>
<h2 id="NetlinkRouteRequest">type <span>NetlinkRouteRequest</span>  </h2> <p>NetlinkRouteRequest represents a request message to receive routing and link states from the kernel. </p>
<pre data-language="go">type NetlinkRouteRequest struct {
    Header NlMsghdr
    Data   RtGenmsg
}
</pre> <h2 id="NlAttr">type <span>NlAttr</span>  </h2> <pre data-language="go">type NlAttr struct {
    Len  uint16
    Type uint16
}
</pre> <h2 id="NlMsgerr">type <span>NlMsgerr</span>  </h2> <pre data-language="go">type NlMsgerr struct {
    Error int32
    Msg   NlMsghdr
}
</pre> <h2 id="NlMsghdr">type <span>NlMsghdr</span>  </h2> <pre data-language="go">type NlMsghdr struct {
    Len   uint32
    Type  uint16
    Flags uint16
    Seq   uint32
    Pid   uint32
}
</pre> <h2 id="ProcAttr">type <span>ProcAttr</span>  </h2> <p>ProcAttr holds attributes that will be applied to a new process started by StartProcess. </p>
<pre data-language="go">type ProcAttr struct {
    Dir   string    // Current working directory.
    Env   []string  // Environment.
    Files []uintptr // File descriptors.
    Sys   *SysProcAttr
}
</pre> <h2 id="PtraceRegs">type <span>PtraceRegs</span>  </h2> <pre data-language="go">type PtraceRegs struct {
    R15      uint64
    R14      uint64
    R13      uint64
    R12      uint64
    Rbp      uint64
    Rbx      uint64
    R11      uint64
    R10      uint64
    R9       uint64
    R8       uint64
    Rax      uint64
    Rcx      uint64
    Rdx      uint64
    Rsi      uint64
    Rdi      uint64
    Orig_rax uint64
    Rip      uint64
    Cs       uint64
    Eflags   uint64
    Rsp      uint64
    Ss       uint64
    Fs_base  uint64
    Gs_base  uint64
    Ds       uint64
    Es       uint64
    Fs       uint64
    Gs       uint64
}
</pre> <h3 id="PtraceRegs.PC">func (*PtraceRegs) <span>PC</span>  </h3> <pre data-language="go">func (r *PtraceRegs) PC() uint64</pre> <h3 id="PtraceRegs.SetPC">func (*PtraceRegs) <span>SetPC</span>  </h3> <pre data-language="go">func (r *PtraceRegs) SetPC(pc uint64)</pre> <h2 id="RawConn">type <span>RawConn</span>  <span title="Added in Go 1.9">1.9</span> </h2> <p>A RawConn is a raw network connection. </p>
<pre data-language="go">type RawConn interface {
    // Control invokes f on the underlying connection's file
    // descriptor or handle.
    // The file descriptor fd is guaranteed to remain valid while
    // f executes but not after f returns.
    Control(f func(fd uintptr)) error

    // Read invokes f on the underlying connection's file
    // descriptor or handle; f is expected to try to read from the
    // file descriptor.
    // If f returns true, Read returns. Otherwise Read blocks
    // waiting for the connection to be ready for reading and
    // tries again repeatedly.
    // The file descriptor is guaranteed to remain valid while f
    // executes but not after f returns.
    Read(f func(fd uintptr) (done bool)) error

    // Write is like Read but for writing.
    Write(f func(fd uintptr) (done bool)) error
}</pre> <h2 id="RawSockaddr">type <span>RawSockaddr</span>  </h2> <pre data-language="go">type RawSockaddr struct {
    Family uint16
    Data   [14]int8
}
</pre> <h2 id="RawSockaddrAny">type <span>RawSockaddrAny</span>  </h2> <pre data-language="go">type RawSockaddrAny struct {
    Addr RawSockaddr
    Pad  [96]int8
}
</pre> <h2 id="RawSockaddrInet4">type <span>RawSockaddrInet4</span>  </h2> <pre data-language="go">type RawSockaddrInet4 struct {
    Family uint16
    Port   uint16
    Addr   [4]byte /* in_addr */
    Zero   [8]uint8
}
</pre> <h2 id="RawSockaddrInet6">type <span>RawSockaddrInet6</span>  <span title="Added in Go 1.1">1.1</span> </h2> <pre data-language="go">type RawSockaddrInet6 struct {
    Family   uint16
    Port     uint16
    Flowinfo uint32
    Addr     [16]byte /* in6_addr */
    Scope_id uint32
}
</pre> <h2 id="RawSockaddrLinklayer">type <span>RawSockaddrLinklayer</span>  </h2> <pre data-language="go">type RawSockaddrLinklayer struct {
    Family   uint16
    Protocol uint16
    Ifindex  int32
    Hatype   uint16
    Pkttype  uint8
    Halen    uint8
    Addr     [8]uint8
}
</pre> <h2 id="RawSockaddrNetlink">type <span>RawSockaddrNetlink</span>  </h2> <pre data-language="go">type RawSockaddrNetlink struct {
    Family uint16
    Pad    uint16
    Pid    uint32
    Groups uint32
}
</pre> <h2 id="RawSockaddrUnix">type <span>RawSockaddrUnix</span>  <span title="Added in Go 1.12">1.12</span> </h2> <pre data-language="go">type RawSockaddrUnix struct {
    Family uint16
    Path   [108]int8
}
</pre> <h2 id="Rlimit">type <span>Rlimit</span>  </h2> <pre data-language="go">type Rlimit struct {
    Cur uint64
    Max uint64
}
</pre> <h2 id="RtAttr">type <span>RtAttr</span>  </h2> <pre data-language="go">type RtAttr struct {
    Len  uint16
    Type uint16
}
</pre> <h2 id="RtGenmsg">type <span>RtGenmsg</span>  </h2> <pre data-language="go">type RtGenmsg struct {
    Family uint8
}
</pre> <h2 id="RtMsg">type <span>RtMsg</span>  </h2> <pre data-language="go">type RtMsg struct {
    Family   uint8
    Dst_len  uint8
    Src_len  uint8
    Tos      uint8
    Table    uint8
    Protocol uint8
    Scope    uint8
    Type     uint8
    Flags    uint32
}
</pre> <h2 id="RtNexthop">type <span>RtNexthop</span>  </h2> <pre data-language="go">type RtNexthop struct {
    Len     uint16
    Flags   uint8
    Hops    uint8
    Ifindex int32
}
</pre> <h2 id="Rusage">type <span>Rusage</span>  </h2> <pre data-language="go">type Rusage struct {
    Utime    Timeval
    Stime    Timeval
    Maxrss   int64
    Ixrss    int64
    Idrss    int64
    Isrss    int64
    Minflt   int64
    Majflt   int64
    Nswap    int64
    Inblock  int64
    Oublock  int64
    Msgsnd   int64
    Msgrcv   int64
    Nsignals int64
    Nvcsw    int64
    Nivcsw   int64
}
</pre> <h2 id="Signal">type <span>Signal</span>  </h2> <p>A Signal is a number describing a process signal. It implements the os.Signal interface. </p>
<pre data-language="go">type Signal int</pre> <h3 id="Signal.Signal">func (Signal) <span>Signal</span>  </h3> <pre data-language="go">func (s Signal) Signal()</pre> <h3 id="Signal.String">func (Signal) <span>String</span>  </h3> <pre data-language="go">func (s Signal) String() string</pre> <h2 id="SockFilter">type <span>SockFilter</span>  </h2> <pre data-language="go">type SockFilter struct {
    Code uint16
    Jt   uint8
    Jf   uint8
    K    uint32
}
</pre> <h3 id="LsfJump">func <span>LsfJump</span>  </h3> <pre data-language="go">func LsfJump(code, k, jt, jf int) *SockFilter</pre> <p>Deprecated: Use golang.org/x/net/bpf instead. </p>
<h3 id="LsfStmt">func <span>LsfStmt</span>  </h3> <pre data-language="go">func LsfStmt(code, k int) *SockFilter</pre> <p>Deprecated: Use golang.org/x/net/bpf instead. </p>
<h2 id="SockFprog">type <span>SockFprog</span>  </h2> <pre data-language="go">type SockFprog struct {
    Len       uint16
    Pad_cgo_0 [6]byte
    Filter    *SockFilter
}
</pre> <h2 id="Sockaddr">type <span>Sockaddr</span>  </h2> <pre data-language="go">type Sockaddr interface {
    // contains filtered or unexported methods
}</pre> <h3 id="Accept">func <span>Accept</span>  </h3> <pre data-language="go">func Accept(fd int) (nfd int, sa Sockaddr, err error)</pre> <h3 id="Accept4">func <span>Accept4</span>  </h3> <pre data-language="go">func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error)</pre> <h3 id="Getpeername">func <span>Getpeername</span>  </h3> <pre data-language="go">func Getpeername(fd int) (sa Sockaddr, err error)</pre> <h3 id="Getsockname">func <span>Getsockname</span>  </h3> <pre data-language="go">func Getsockname(fd int) (sa Sockaddr, err error)</pre> <h3 id="Recvfrom">func <span>Recvfrom</span>  </h3> <pre data-language="go">func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error)</pre> <h3 id="Recvmsg">func <span>Recvmsg</span>  </h3> <pre data-language="go">func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error)</pre> <h2 id="SockaddrInet4">type <span>SockaddrInet4</span>  </h2> <pre data-language="go">type SockaddrInet4 struct {
    Port int
    Addr [4]byte
    // contains filtered or unexported fields
}
</pre> <h2 id="SockaddrInet6">type <span>SockaddrInet6</span>  </h2> <pre data-language="go">type SockaddrInet6 struct {
    Port   int
    ZoneId uint32
    Addr   [16]byte
    // contains filtered or unexported fields
}
</pre> <h2 id="SockaddrLinklayer">type <span>SockaddrLinklayer</span>  </h2> <pre data-language="go">type SockaddrLinklayer struct {
    Protocol uint16
    Ifindex  int
    Hatype   uint16
    Pkttype  uint8
    Halen    uint8
    Addr     [8]byte
    // contains filtered or unexported fields
}
</pre> <h2 id="SockaddrNetlink">type <span>SockaddrNetlink</span>  </h2> <pre data-language="go">type SockaddrNetlink struct {
    Family uint16
    Pad    uint16
    Pid    uint32
    Groups uint32
    // contains filtered or unexported fields
}
</pre> <h2 id="SockaddrUnix">type <span>SockaddrUnix</span>  </h2> <pre data-language="go">type SockaddrUnix struct {
    Name string
    // contains filtered or unexported fields
}
</pre> <h2 id="SocketControlMessage">type <span>SocketControlMessage</span>  </h2> <p>SocketControlMessage represents a socket control message. </p>
<pre data-language="go">type SocketControlMessage struct {
    Header Cmsghdr
    Data   []byte
}
</pre> <h3 id="ParseSocketControlMessage">func <span>ParseSocketControlMessage</span>  </h3> <pre data-language="go">func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error)</pre> <p>ParseSocketControlMessage parses b as an array of socket control messages. </p>
<h2 id="Stat_t">type <span>Stat_t</span>  </h2> <pre data-language="go">type Stat_t struct {
    Dev       uint64
    Ino       uint64
    Nlink     uint64
    Mode      uint32
    Uid       uint32
    Gid       uint32
    X__pad0   int32
    Rdev      uint64
    Size      int64
    Blksize   int64
    Blocks    int64
    Atim      Timespec
    Mtim      Timespec
    Ctim      Timespec
    X__unused [3]int64
}
</pre> <h2 id="Statfs_t">type <span>Statfs_t</span>  </h2> <pre data-language="go">type Statfs_t struct {
    Type    int64
    Bsize   int64
    Blocks  uint64
    Bfree   uint64
    Bavail  uint64
    Files   uint64
    Ffree   uint64
    Fsid    Fsid
    Namelen int64
    Frsize  int64
    Flags   int64
    Spare   [4]int64
}
</pre> <h2 id="SysProcAttr">type <span>SysProcAttr</span>  </h2> <pre data-language="go">type SysProcAttr struct {
    Chroot     string      // Chroot.
    Credential *Credential // Credential.
    // Ptrace tells the child to call ptrace(PTRACE_TRACEME).
    // Call runtime.LockOSThread before starting a process with this set,
    // and don't call UnlockOSThread until done with PtraceSyscall calls.
    Ptrace bool
    Setsid bool // Create session.
    // Setpgid sets the process group ID of the child to Pgid,
    // or, if Pgid == 0, to the new child's process ID.
    Setpgid bool
    // Setctty sets the controlling terminal of the child to
    // file descriptor Ctty. Ctty must be a descriptor number
    // in the child process: an index into ProcAttr.Files.
    // This is only meaningful if Setsid is true.
    Setctty bool
    Noctty  bool // Detach fd 0 from controlling terminal.
    Ctty    int  // Controlling TTY fd.
    // Foreground places the child process group in the foreground.
    // This implies Setpgid. The Ctty field must be set to
    // the descriptor of the controlling TTY.
    // Unlike Setctty, in this case Ctty must be a descriptor
    // number in the parent process.
    Foreground bool
    Pgid       int // Child's process group ID if Setpgid.
    // Pdeathsig, if non-zero, is a signal that the kernel will send to
    // the child process when the creating thread dies. Note that the signal
    // is sent on thread termination, which may happen before process termination.
    // There are more details at https://go.dev/issue/27505.
    Pdeathsig    Signal
    Cloneflags   uintptr        // Flags for clone calls.
    Unshareflags uintptr        // Flags for unshare calls.
    UidMappings  []SysProcIDMap // User ID mappings for user namespaces.
    GidMappings  []SysProcIDMap // Group ID mappings for user namespaces.
    // GidMappingsEnableSetgroups enabling setgroups syscall.
    // If false, then setgroups syscall will be disabled for the child process.
    // This parameter is no-op if GidMappings == nil. Otherwise for unprivileged
    // users this should be set to false for mappings work.
    GidMappingsEnableSetgroups bool
    AmbientCaps                []uintptr // Ambient capabilities.
    UseCgroupFD                bool      // Whether to make use of the CgroupFD field.
    CgroupFD                   int       // File descriptor of a cgroup to put the new process into.
    // PidFD, if not nil, is used to store the pidfd of a child, if the
    // functionality is supported by the kernel, or -1. Note *PidFD is
    // changed only if the process starts successfully.
    PidFD *int
}
</pre> <h2 id="SysProcIDMap">type <span>SysProcIDMap</span>  </h2> <p>SysProcIDMap holds Container ID to Host ID mappings used for User Namespaces in Linux. See user_namespaces(7). </p>
<pre data-language="go">type SysProcIDMap struct {
    ContainerID int // Container ID.
    HostID      int // Host ID.
    Size        int // Size.
}
</pre> <h2 id="Sysinfo_t">type <span>Sysinfo_t</span>  </h2> <pre data-language="go">type Sysinfo_t struct {
    Uptime    int64
    Loads     [3]uint64
    Totalram  uint64
    Freeram   uint64
    Sharedram uint64
    Bufferram uint64
    Totalswap uint64
    Freeswap  uint64
    Procs     uint16
    Pad       uint16
    Pad_cgo_0 [4]byte
    Totalhigh uint64
    Freehigh  uint64
    Unit      uint32
    X_f       [0]byte
    Pad_cgo_1 [4]byte
}
</pre> <h2 id="TCPInfo">type <span>TCPInfo</span>  </h2> <pre data-language="go">type TCPInfo struct {
    State          uint8
    Ca_state       uint8
    Retransmits    uint8
    Probes         uint8
    Backoff        uint8
    Options        uint8
    Pad_cgo_0      [2]byte
    Rto            uint32
    Ato            uint32
    Snd_mss        uint32
    Rcv_mss        uint32
    Unacked        uint32
    Sacked         uint32
    Lost           uint32
    Retrans        uint32
    Fackets        uint32
    Last_data_sent uint32
    Last_ack_sent  uint32
    Last_data_recv uint32
    Last_ack_recv  uint32
    Pmtu           uint32
    Rcv_ssthresh   uint32
    Rtt            uint32
    Rttvar         uint32
    Snd_ssthresh   uint32
    Snd_cwnd       uint32
    Advmss         uint32
    Reordering     uint32
    Rcv_rtt        uint32
    Rcv_space      uint32
    Total_retrans  uint32
}
</pre> <h2 id="Termios">type <span>Termios</span>  </h2> <pre data-language="go">type Termios struct {
    Iflag     uint32
    Oflag     uint32
    Cflag     uint32
    Lflag     uint32
    Line      uint8
    Cc        [32]uint8
    Pad_cgo_0 [3]byte
    Ispeed    uint32
    Ospeed    uint32
}
</pre> <h2 id="Time_t">type <span>Time_t</span>  </h2> <pre data-language="go">type Time_t int64</pre> <h3 id="Time">func <span>Time</span>  </h3> <pre data-language="go">func Time(t *Time_t) (tt Time_t, err error)</pre> <h2 id="Timespec">type <span>Timespec</span>  </h2> <pre data-language="go">type Timespec struct {
    Sec  int64
    Nsec int64
}
</pre> <h3 id="NsecToTimespec">func <span>NsecToTimespec</span>  <span title="Added in Go 1.1">1.1</span> </h3> <pre data-language="go">func NsecToTimespec(nsec int64) Timespec</pre> <p>NsecToTimespec converts a number of nanoseconds into a Timespec. </p>
<h3 id="Timespec.Nano">func (*Timespec) <span>Nano</span>  </h3> <pre data-language="go">func (ts *Timespec) Nano() int64</pre> <p>Nano returns the time stored in ts as nanoseconds. </p>
<h3 id="Timespec.Unix">func (*Timespec) <span>Unix</span>  </h3> <pre data-language="go">func (ts *Timespec) Unix() (sec int64, nsec int64)</pre> <p>Unix returns the time stored in ts as seconds plus nanoseconds. </p>
<h2 id="Timeval">type <span>Timeval</span>  </h2> <pre data-language="go">type Timeval struct {
    Sec  int64
    Usec int64
}
</pre> <h3 id="NsecToTimeval">func <span>NsecToTimeval</span>  </h3> <pre data-language="go">func NsecToTimeval(nsec int64) Timeval</pre> <p>NsecToTimeval converts a number of nanoseconds into a Timeval. </p>
<h3 id="Timeval.Nano">func (*Timeval) <span>Nano</span>  </h3> <pre data-language="go">func (tv *Timeval) Nano() int64</pre> <p>Nano returns the time stored in tv as nanoseconds. </p>
<h3 id="Timeval.Unix">func (*Timeval) <span>Unix</span>  </h3> <pre data-language="go">func (tv *Timeval) Unix() (sec int64, nsec int64)</pre> <p>Unix returns the time stored in tv as seconds plus nanoseconds. </p>
<h2 id="Timex">type <span>Timex</span>  </h2> <pre data-language="go">type Timex struct {
    Modes     uint32
    Pad_cgo_0 [4]byte
    Offset    int64
    Freq      int64
    Maxerror  int64
    Esterror  int64
    Status    int32
    Pad_cgo_1 [4]byte
    Constant  int64
    Precision int64
    Tolerance int64
    Time      Timeval
    Tick      int64
    Ppsfreq   int64
    Jitter    int64
    Shift     int32
    Pad_cgo_2 [4]byte
    Stabil    int64
    Jitcnt    int64
    Calcnt    int64
    Errcnt    int64
    Stbcnt    int64
    Tai       int32
    Pad_cgo_3 [44]byte
}
</pre> <h2 id="Tms">type <span>Tms</span>  </h2> <pre data-language="go">type Tms struct {
    Utime  int64
    Stime  int64
    Cutime int64
    Cstime int64
}
</pre> <h2 id="Ucred">type <span>Ucred</span>  </h2> <pre data-language="go">type Ucred struct {
    Pid int32
    Uid uint32
    Gid uint32
}
</pre> <h3 id="GetsockoptUcred">func <span>GetsockoptUcred</span>  </h3> <pre data-language="go">func GetsockoptUcred(fd, level, opt int) (*Ucred, error)</pre> <h3 id="ParseUnixCredentials">func <span>ParseUnixCredentials</span>  </h3> <pre data-language="go">func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error)</pre> <p>ParseUnixCredentials decodes a socket control message that contains credentials in a Ucred structure. To receive such a message, the SO_PASSCRED option must be enabled on the socket. </p>
<h2 id="Ustat_t">type <span>Ustat_t</span>  </h2> <pre data-language="go">type Ustat_t struct {
    Tfree     int32
    Pad_cgo_0 [4]byte
    Tinode    uint64
    Fname     [6]int8
    Fpack     [6]int8
    Pad_cgo_1 [4]byte
}
</pre> <h2 id="Utimbuf">type <span>Utimbuf</span>  </h2> <pre data-language="go">type Utimbuf struct {
    Actime  int64
    Modtime int64
}
</pre> <h2 id="Utsname">type <span>Utsname</span>  </h2> <pre data-language="go">type Utsname struct {
    Sysname    [65]int8
    Nodename   [65]int8
    Release    [65]int8
    Version    [65]int8
    Machine    [65]int8
    Domainname [65]int8
}
</pre> <h2 id="WaitStatus">type <span>WaitStatus</span>  </h2> <pre data-language="go">type WaitStatus uint32</pre> <h3 id="WaitStatus.Continued">func (WaitStatus) <span>Continued</span>  </h3> <pre data-language="go">func (w WaitStatus) Continued() bool</pre> <h3 id="WaitStatus.CoreDump">func (WaitStatus) <span>CoreDump</span>  </h3> <pre data-language="go">func (w WaitStatus) CoreDump() bool</pre> <h3 id="WaitStatus.ExitStatus">func (WaitStatus) <span>ExitStatus</span>  </h3> <pre data-language="go">func (w WaitStatus) ExitStatus() int</pre> <h3 id="WaitStatus.Exited">func (WaitStatus) <span>Exited</span>  </h3> <pre data-language="go">func (w WaitStatus) Exited() bool</pre> <h3 id="WaitStatus.Signal">func (WaitStatus) <span>Signal</span>  </h3> <pre data-language="go">func (w WaitStatus) Signal() Signal</pre> <h3 id="WaitStatus.Signaled">func (WaitStatus) <span>Signaled</span>  </h3> <pre data-language="go">func (w WaitStatus) Signaled() bool</pre> <h3 id="WaitStatus.StopSignal">func (WaitStatus) <span>StopSignal</span>  </h3> <pre data-language="go">func (w WaitStatus) StopSignal() Signal</pre> <h3 id="WaitStatus.Stopped">func (WaitStatus) <span>Stopped</span>  </h3> <pre data-language="go">func (w WaitStatus) Stopped() bool</pre> <h3 id="WaitStatus.TrapCause">func (WaitStatus) <span>TrapCause</span>  </h3> <pre data-language="go">func (w WaitStatus) TrapCause() int</pre> <h2 id="pkg-subdirectories">Subdirectories</h2> <div class="pkg-dir"> <table> <tr> <th class="pkg-name">Name</th> <th class="pkg-synopsis">Synopsis</th> </tr> <tr> <td colspan="2"><a href="../index">..</a></td> </tr> <tr> <td class="pkg-name"> <a href="js/index">js</a> </td> <td class="pkg-synopsis"> Package js gives access to the WebAssembly host environment when using the js/wasm architecture. </td> </tr> </table> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; Google, Inc.<br>Licensed under the Creative Commons Attribution License 3.0.<br>
    <a href="http://golang.org/pkg/syscall/" class="_attribution-link">http://golang.org/pkg/syscall/</a>
  </p>
</div>