1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
/* automatically generated by rust-bindgen 0.61.0 */

#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub const RTAPI_NAME_LEN: u32 = 31;
pub const __GNUC_VA_LIST: u32 = 1;
pub const RTAPI_NO_FP: u32 = 0;
pub const RTAPI_USES_FP: u32 = 1;
pub const LINUX_VERSION_CODE: u32 = 0;
pub const _SPAWN_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 31;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 0;
pub const __LONG_DOUBLE_USES_FLOAT128: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const _SCHED_H: u32 = 1;
pub const _BITS_TYPES_H: u32 = 1;
pub const __TIMESIZE: u32 = 64;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const _BITS_ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const _BITS_ENDIANNESS_H: u32 = 1;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const _BITS_SCHED_H: u32 = 1;
pub const SCHED_OTHER: u32 = 0;
pub const SCHED_FIFO: u32 = 1;
pub const SCHED_RR: u32 = 2;
pub const _BITS_TYPES_STRUCT_SCHED_PARAM: u32 = 1;
pub const _BITS_CPU_SET_H: u32 = 1;
pub const __CPU_SETSIZE: u32 = 1024;
pub const _SYS_TYPES_H: u32 = 1;
pub const __clock_t_defined: u32 = 1;
pub const __clockid_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 64;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 48;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __have_pthread_attr_t: u32 = 1;
pub const POSIX_SPAWN_RESETIDS: u32 = 1;
pub const POSIX_SPAWN_SETPGROUP: u32 = 2;
pub const POSIX_SPAWN_SETSIGDEF: u32 = 4;
pub const POSIX_SPAWN_SETSIGMASK: u32 = 8;
pub const POSIX_SPAWN_SETSCHEDPARAM: u32 = 16;
pub const POSIX_SPAWN_SETSCHEDULER: u32 = 32;
pub const _ERRNO_H: u32 = 1;
pub const _BITS_ERRNO_H: u32 = 1;
pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
pub const ESRCH: u32 = 3;
pub const EINTR: u32 = 4;
pub const EIO: u32 = 5;
pub const ENXIO: u32 = 6;
pub const E2BIG: u32 = 7;
pub const ENOEXEC: u32 = 8;
pub const EBADF: u32 = 9;
pub const ECHILD: u32 = 10;
pub const EAGAIN: u32 = 11;
pub const ENOMEM: u32 = 12;
pub const EACCES: u32 = 13;
pub const EFAULT: u32 = 14;
pub const ENOTBLK: u32 = 15;
pub const EBUSY: u32 = 16;
pub const EEXIST: u32 = 17;
pub const EXDEV: u32 = 18;
pub const ENODEV: u32 = 19;
pub const ENOTDIR: u32 = 20;
pub const EISDIR: u32 = 21;
pub const EINVAL: u32 = 22;
pub const ENFILE: u32 = 23;
pub const EMFILE: u32 = 24;
pub const ENOTTY: u32 = 25;
pub const ETXTBSY: u32 = 26;
pub const EFBIG: u32 = 27;
pub const ENOSPC: u32 = 28;
pub const ESPIPE: u32 = 29;
pub const EROFS: u32 = 30;
pub const EMLINK: u32 = 31;
pub const EPIPE: u32 = 32;
pub const EDOM: u32 = 33;
pub const ERANGE: u32 = 34;
pub const EDEADLK: u32 = 35;
pub const ENAMETOOLONG: u32 = 36;
pub const ENOLCK: u32 = 37;
pub const ENOSYS: u32 = 38;
pub const ENOTEMPTY: u32 = 39;
pub const ELOOP: u32 = 40;
pub const EWOULDBLOCK: u32 = 11;
pub const ENOMSG: u32 = 42;
pub const EIDRM: u32 = 43;
pub const ECHRNG: u32 = 44;
pub const EL2NSYNC: u32 = 45;
pub const EL3HLT: u32 = 46;
pub const EL3RST: u32 = 47;
pub const ELNRNG: u32 = 48;
pub const EUNATCH: u32 = 49;
pub const ENOCSI: u32 = 50;
pub const EL2HLT: u32 = 51;
pub const EBADE: u32 = 52;
pub const EBADR: u32 = 53;
pub const EXFULL: u32 = 54;
pub const ENOANO: u32 = 55;
pub const EBADRQC: u32 = 56;
pub const EBADSLT: u32 = 57;
pub const EDEADLOCK: u32 = 35;
pub const EBFONT: u32 = 59;
pub const ENOSTR: u32 = 60;
pub const ENODATA: u32 = 61;
pub const ETIME: u32 = 62;
pub const ENOSR: u32 = 63;
pub const ENONET: u32 = 64;
pub const ENOPKG: u32 = 65;
pub const EREMOTE: u32 = 66;
pub const ENOLINK: u32 = 67;
pub const EADV: u32 = 68;
pub const ESRMNT: u32 = 69;
pub const ECOMM: u32 = 70;
pub const EPROTO: u32 = 71;
pub const EMULTIHOP: u32 = 72;
pub const EDOTDOT: u32 = 73;
pub const EBADMSG: u32 = 74;
pub const EOVERFLOW: u32 = 75;
pub const ENOTUNIQ: u32 = 76;
pub const EBADFD: u32 = 77;
pub const EREMCHG: u32 = 78;
pub const ELIBACC: u32 = 79;
pub const ELIBBAD: u32 = 80;
pub const ELIBSCN: u32 = 81;
pub const ELIBMAX: u32 = 82;
pub const ELIBEXEC: u32 = 83;
pub const EILSEQ: u32 = 84;
pub const ERESTART: u32 = 85;
pub const ESTRPIPE: u32 = 86;
pub const EUSERS: u32 = 87;
pub const ENOTSOCK: u32 = 88;
pub const EDESTADDRREQ: u32 = 89;
pub const EMSGSIZE: u32 = 90;
pub const EPROTOTYPE: u32 = 91;
pub const ENOPROTOOPT: u32 = 92;
pub const EPROTONOSUPPORT: u32 = 93;
pub const ESOCKTNOSUPPORT: u32 = 94;
pub const EOPNOTSUPP: u32 = 95;
pub const EPFNOSUPPORT: u32 = 96;
pub const EAFNOSUPPORT: u32 = 97;
pub const EADDRINUSE: u32 = 98;
pub const EADDRNOTAVAIL: u32 = 99;
pub const ENETDOWN: u32 = 100;
pub const ENETUNREACH: u32 = 101;
pub const ENETRESET: u32 = 102;
pub const ECONNABORTED: u32 = 103;
pub const ECONNRESET: u32 = 104;
pub const ENOBUFS: u32 = 105;
pub const EISCONN: u32 = 106;
pub const ENOTCONN: u32 = 107;
pub const ESHUTDOWN: u32 = 108;
pub const ETOOMANYREFS: u32 = 109;
pub const ETIMEDOUT: u32 = 110;
pub const ECONNREFUSED: u32 = 111;
pub const EHOSTDOWN: u32 = 112;
pub const EHOSTUNREACH: u32 = 113;
pub const EALREADY: u32 = 114;
pub const EINPROGRESS: u32 = 115;
pub const ESTALE: u32 = 116;
pub const EUCLEAN: u32 = 117;
pub const ENOTNAM: u32 = 118;
pub const ENAVAIL: u32 = 119;
pub const EISNAM: u32 = 120;
pub const EREMOTEIO: u32 = 121;
pub const EDQUOT: u32 = 122;
pub const ENOMEDIUM: u32 = 123;
pub const EMEDIUMTYPE: u32 = 124;
pub const ECANCELED: u32 = 125;
pub const ENOKEY: u32 = 126;
pub const EKEYEXPIRED: u32 = 127;
pub const EKEYREVOKED: u32 = 128;
pub const EKEYREJECTED: u32 = 129;
pub const EOWNERDEAD: u32 = 130;
pub const ENOTRECOVERABLE: u32 = 131;
pub const ERFKILL: u32 = 132;
pub const EHWPOISON: u32 = 133;
pub const ENOTSUP: u32 = 95;
pub const HAL_NAME_LEN: u32 = 47;
pub const HAL_LOCK_NONE: u32 = 0;
pub const HAL_LOCK_LOAD: u32 = 1;
pub const HAL_LOCK_CONFIG: u32 = 2;
pub const HAL_LOCK_PARAMS: u32 = 4;
pub const HAL_LOCK_RUN: u32 = 8;
pub const HAL_LOCK_TUNE: u32 = 3;
pub const HAL_LOCK_ALL: u32 = 255;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const _INTTYPES_H: u32 = 1;
pub const _STDINT_H: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const ____gwchar_t_defined: u32 = 1;
pub const __PRI64_PREFIX: &[u8; 2usize] = b"l\0";
pub const __PRIPTR_PREFIX: &[u8; 2usize] = b"l\0";
pub const PRId8: &[u8; 2usize] = b"d\0";
pub const PRId16: &[u8; 2usize] = b"d\0";
pub const PRId32: &[u8; 2usize] = b"d\0";
pub const PRId64: &[u8; 3usize] = b"ld\0";
pub const PRIdLEAST8: &[u8; 2usize] = b"d\0";
pub const PRIdLEAST16: &[u8; 2usize] = b"d\0";
pub const PRIdLEAST32: &[u8; 2usize] = b"d\0";
pub const PRIdLEAST64: &[u8; 3usize] = b"ld\0";
pub const PRIdFAST8: &[u8; 2usize] = b"d\0";
pub const PRIdFAST16: &[u8; 3usize] = b"ld\0";
pub const PRIdFAST32: &[u8; 3usize] = b"ld\0";
pub const PRIdFAST64: &[u8; 3usize] = b"ld\0";
pub const PRIi8: &[u8; 2usize] = b"i\0";
pub const PRIi16: &[u8; 2usize] = b"i\0";
pub const PRIi32: &[u8; 2usize] = b"i\0";
pub const PRIi64: &[u8; 3usize] = b"li\0";
pub const PRIiLEAST8: &[u8; 2usize] = b"i\0";
pub const PRIiLEAST16: &[u8; 2usize] = b"i\0";
pub const PRIiLEAST32: &[u8; 2usize] = b"i\0";
pub const PRIiLEAST64: &[u8; 3usize] = b"li\0";
pub const PRIiFAST8: &[u8; 2usize] = b"i\0";
pub const PRIiFAST16: &[u8; 3usize] = b"li\0";
pub const PRIiFAST32: &[u8; 3usize] = b"li\0";
pub const PRIiFAST64: &[u8; 3usize] = b"li\0";
pub const PRIo8: &[u8; 2usize] = b"o\0";
pub const PRIo16: &[u8; 2usize] = b"o\0";
pub const PRIo32: &[u8; 2usize] = b"o\0";
pub const PRIo64: &[u8; 3usize] = b"lo\0";
pub const PRIoLEAST8: &[u8; 2usize] = b"o\0";
pub const PRIoLEAST16: &[u8; 2usize] = b"o\0";
pub const PRIoLEAST32: &[u8; 2usize] = b"o\0";
pub const PRIoLEAST64: &[u8; 3usize] = b"lo\0";
pub const PRIoFAST8: &[u8; 2usize] = b"o\0";
pub const PRIoFAST16: &[u8; 3usize] = b"lo\0";
pub const PRIoFAST32: &[u8; 3usize] = b"lo\0";
pub const PRIoFAST64: &[u8; 3usize] = b"lo\0";
pub const PRIu8: &[u8; 2usize] = b"u\0";
pub const PRIu16: &[u8; 2usize] = b"u\0";
pub const PRIu32: &[u8; 2usize] = b"u\0";
pub const PRIu64: &[u8; 3usize] = b"lu\0";
pub const PRIuLEAST8: &[u8; 2usize] = b"u\0";
pub const PRIuLEAST16: &[u8; 2usize] = b"u\0";
pub const PRIuLEAST32: &[u8; 2usize] = b"u\0";
pub const PRIuLEAST64: &[u8; 3usize] = b"lu\0";
pub const PRIuFAST8: &[u8; 2usize] = b"u\0";
pub const PRIuFAST16: &[u8; 3usize] = b"lu\0";
pub const PRIuFAST32: &[u8; 3usize] = b"lu\0";
pub const PRIuFAST64: &[u8; 3usize] = b"lu\0";
pub const PRIx8: &[u8; 2usize] = b"x\0";
pub const PRIx16: &[u8; 2usize] = b"x\0";
pub const PRIx32: &[u8; 2usize] = b"x\0";
pub const PRIx64: &[u8; 3usize] = b"lx\0";
pub const PRIxLEAST8: &[u8; 2usize] = b"x\0";
pub const PRIxLEAST16: &[u8; 2usize] = b"x\0";
pub const PRIxLEAST32: &[u8; 2usize] = b"x\0";
pub const PRIxLEAST64: &[u8; 3usize] = b"lx\0";
pub const PRIxFAST8: &[u8; 2usize] = b"x\0";
pub const PRIxFAST16: &[u8; 3usize] = b"lx\0";
pub const PRIxFAST32: &[u8; 3usize] = b"lx\0";
pub const PRIxFAST64: &[u8; 3usize] = b"lx\0";
pub const PRIX8: &[u8; 2usize] = b"X\0";
pub const PRIX16: &[u8; 2usize] = b"X\0";
pub const PRIX32: &[u8; 2usize] = b"X\0";
pub const PRIX64: &[u8; 3usize] = b"lX\0";
pub const PRIXLEAST8: &[u8; 2usize] = b"X\0";
pub const PRIXLEAST16: &[u8; 2usize] = b"X\0";
pub const PRIXLEAST32: &[u8; 2usize] = b"X\0";
pub const PRIXLEAST64: &[u8; 3usize] = b"lX\0";
pub const PRIXFAST8: &[u8; 2usize] = b"X\0";
pub const PRIXFAST16: &[u8; 3usize] = b"lX\0";
pub const PRIXFAST32: &[u8; 3usize] = b"lX\0";
pub const PRIXFAST64: &[u8; 3usize] = b"lX\0";
pub const PRIdMAX: &[u8; 3usize] = b"ld\0";
pub const PRIiMAX: &[u8; 3usize] = b"li\0";
pub const PRIoMAX: &[u8; 3usize] = b"lo\0";
pub const PRIuMAX: &[u8; 3usize] = b"lu\0";
pub const PRIxMAX: &[u8; 3usize] = b"lx\0";
pub const PRIXMAX: &[u8; 3usize] = b"lX\0";
pub const PRIdPTR: &[u8; 3usize] = b"ld\0";
pub const PRIiPTR: &[u8; 3usize] = b"li\0";
pub const PRIoPTR: &[u8; 3usize] = b"lo\0";
pub const PRIuPTR: &[u8; 3usize] = b"lu\0";
pub const PRIxPTR: &[u8; 3usize] = b"lx\0";
pub const PRIXPTR: &[u8; 3usize] = b"lX\0";
pub const SCNd8: &[u8; 4usize] = b"hhd\0";
pub const SCNd16: &[u8; 3usize] = b"hd\0";
pub const SCNd32: &[u8; 2usize] = b"d\0";
pub const SCNd64: &[u8; 3usize] = b"ld\0";
pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0";
pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0";
pub const SCNdLEAST32: &[u8; 2usize] = b"d\0";
pub const SCNdLEAST64: &[u8; 3usize] = b"ld\0";
pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0";
pub const SCNdFAST16: &[u8; 3usize] = b"ld\0";
pub const SCNdFAST32: &[u8; 3usize] = b"ld\0";
pub const SCNdFAST64: &[u8; 3usize] = b"ld\0";
pub const SCNi8: &[u8; 4usize] = b"hhi\0";
pub const SCNi16: &[u8; 3usize] = b"hi\0";
pub const SCNi32: &[u8; 2usize] = b"i\0";
pub const SCNi64: &[u8; 3usize] = b"li\0";
pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0";
pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0";
pub const SCNiLEAST32: &[u8; 2usize] = b"i\0";
pub const SCNiLEAST64: &[u8; 3usize] = b"li\0";
pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0";
pub const SCNiFAST16: &[u8; 3usize] = b"li\0";
pub const SCNiFAST32: &[u8; 3usize] = b"li\0";
pub const SCNiFAST64: &[u8; 3usize] = b"li\0";
pub const SCNu8: &[u8; 4usize] = b"hhu\0";
pub const SCNu16: &[u8; 3usize] = b"hu\0";
pub const SCNu32: &[u8; 2usize] = b"u\0";
pub const SCNu64: &[u8; 3usize] = b"lu\0";
pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0";
pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0";
pub const SCNuLEAST32: &[u8; 2usize] = b"u\0";
pub const SCNuLEAST64: &[u8; 3usize] = b"lu\0";
pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0";
pub const SCNuFAST16: &[u8; 3usize] = b"lu\0";
pub const SCNuFAST32: &[u8; 3usize] = b"lu\0";
pub const SCNuFAST64: &[u8; 3usize] = b"lu\0";
pub const SCNo8: &[u8; 4usize] = b"hho\0";
pub const SCNo16: &[u8; 3usize] = b"ho\0";
pub const SCNo32: &[u8; 2usize] = b"o\0";
pub const SCNo64: &[u8; 3usize] = b"lo\0";
pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0";
pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0";
pub const SCNoLEAST32: &[u8; 2usize] = b"o\0";
pub const SCNoLEAST64: &[u8; 3usize] = b"lo\0";
pub const SCNoFAST8: &[u8; 4usize] = b"hho\0";
pub const SCNoFAST16: &[u8; 3usize] = b"lo\0";
pub const SCNoFAST32: &[u8; 3usize] = b"lo\0";
pub const SCNoFAST64: &[u8; 3usize] = b"lo\0";
pub const SCNx8: &[u8; 4usize] = b"hhx\0";
pub const SCNx16: &[u8; 3usize] = b"hx\0";
pub const SCNx32: &[u8; 2usize] = b"x\0";
pub const SCNx64: &[u8; 3usize] = b"lx\0";
pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0";
pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0";
pub const SCNxLEAST32: &[u8; 2usize] = b"x\0";
pub const SCNxLEAST64: &[u8; 3usize] = b"lx\0";
pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0";
pub const SCNxFAST16: &[u8; 3usize] = b"lx\0";
pub const SCNxFAST32: &[u8; 3usize] = b"lx\0";
pub const SCNxFAST64: &[u8; 3usize] = b"lx\0";
pub const SCNdMAX: &[u8; 3usize] = b"ld\0";
pub const SCNiMAX: &[u8; 3usize] = b"li\0";
pub const SCNoMAX: &[u8; 3usize] = b"lo\0";
pub const SCNuMAX: &[u8; 3usize] = b"lu\0";
pub const SCNxMAX: &[u8; 3usize] = b"lx\0";
pub const SCNdPTR: &[u8; 3usize] = b"ld\0";
pub const SCNiPTR: &[u8; 3usize] = b"li\0";
pub const SCNoPTR: &[u8; 3usize] = b"lo\0";
pub const SCNuPTR: &[u8; 3usize] = b"lu\0";
pub const SCNxPTR: &[u8; 3usize] = b"lx\0";
pub const RTAPI_INT8_MAX: u32 = 127;
pub const RTAPI_INT8_MIN: i32 = -128;
pub const RTAPI_UINT8_MAX: u32 = 255;
pub const RTAPI_INT16_MAX: u32 = 32767;
pub const RTAPI_INT16_MIN: i32 = -32768;
pub const RTAPI_UINT16_MAX: u32 = 65535;
pub const RTAPI_INT32_MAX: u32 = 2147483647;
pub const RTAPI_INT32_MIN: i32 = -2147483648;
pub const RTAPI_UINT32_MAX: u32 = 4294967295;
pub const HAL_STREAM_MAX_PINS: u32 = 21;
pub type wchar_t = ::std::os::raw::c_uint;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: u128,
}
#[test]
fn bindgen_test_layout_max_align_t() {
    const UNINIT: ::std::mem::MaybeUninit<max_align_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<max_align_t>(),
        32usize,
        concat!("Size of: ", stringify!(max_align_t))
    );
    assert_eq!(
        ::std::mem::align_of::<max_align_t>(),
        16usize,
        concat!("Alignment of ", stringify!(max_align_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce1)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce2)
        )
    );
}
extern "C" {
    #[doc = " 'rtapi_init() sets up the RTAPI.  It must be called by any"]
    #[doc = "module that intends to use the API, before any other RTAPI"]
    #[doc = "calls."]
    #[doc = "'modname' can optionally point to a string that identifies"]
    #[doc = "the module.  The string will be truncated at RTAPI_NAME_LEN"]
    #[doc = "characters.  If 'modname' is NULL, the system will assign a"]
    #[doc = "name."]
    #[doc = "On success, returns a positive integer module ID, which is"]
    #[doc = "used for subsequent calls to rtapi_xxx_new, rtapi_xxx_delete,"]
    #[doc = "and rtapi_exit.  On failure, returns an error code as defined"]
    #[doc = "above.  Call only from within user or init/cleanup code, not"]
    #[doc = "from realtime tasks."]
    pub fn rtapi_init(modname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_exit()' shuts down and cleans up the RTAPI.  It must be"]
    #[doc = "called prior to exit by any module that called rtapi_init."]
    #[doc = "'module_id' is the ID code returned when that module called"]
    #[doc = "rtapi_init()."]
    #[doc = "Returns a status code.  rtapi_exit() may attempt to clean up"]
    #[doc = "any tasks, shared memory, and other resources allocated by the"]
    #[doc = "module, but should not be relied on to replace proper cleanup"]
    #[doc = "code within the module.  Call only from within user or"]
    #[doc = "init/cleanup code, not from realtime tasks."]
    pub fn rtapi_exit(module_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_snprintf()' works like 'snprintf()' from the normal"]
    #[doc = "C library, except that it may not handle long longs."]
    #[doc = "It is provided here because some RTOS kernels don't provide"]
    #[doc = "a realtime safe version of the function, and those that do don't provide"]
    #[doc = "support for printing doubles.  On systems with a"]
    #[doc = "good kernel snprintf(), or in user space, this function"]
    #[doc = "simply calls the normal snprintf().  May be called from user,"]
    #[doc = "init/cleanup, and realtime code."]
    pub fn rtapi_snprintf(
        buf: *mut ::std::os::raw::c_char,
        size: ::std::os::raw::c_ulong,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
pub type va_list = [u64; 4usize];
pub type __gnuc_va_list = [u64; 4usize];
extern "C" {
    pub fn rtapi_vsnprintf(
        buf: *mut ::std::os::raw::c_char,
        size: ::std::os::raw::c_ulong,
        fmt: *const ::std::os::raw::c_char,
        ap: va_list,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_print()' prints a printf style message.  Depending on the"]
    #[doc = "RTOS and whether the program is being compiled for user space"]
    #[doc = "or realtime, the message may be printed to stdout, stderr, or"]
    #[doc = "to a kernel message log, etc.  The calling syntax and format"]
    #[doc = "string is similar to printf except that floating point and"]
    #[doc = "longlongs are NOT supported in realtime and may not be supported"]
    #[doc = "in user space.  For some RTOS's, a 80 byte buffer is used, so the"]
    #[doc = "format line and arguments should not produce a line more than"]
    #[doc = "80 bytes long.  (The buffer is protected against overflow.)"]
    #[doc = "Does not block, but  can take a fairly long time, depending on"]
    #[doc = "the format string and OS.  May be called from user, init/cleanup,"]
    #[doc = "and realtime code."]
    pub fn rtapi_print(fmt: *const ::std::os::raw::c_char, ...);
}
pub const msg_level_t_RTAPI_MSG_NONE: msg_level_t = 0;
pub const msg_level_t_RTAPI_MSG_ERR: msg_level_t = 1;
pub const msg_level_t_RTAPI_MSG_WARN: msg_level_t = 2;
pub const msg_level_t_RTAPI_MSG_INFO: msg_level_t = 3;
pub const msg_level_t_RTAPI_MSG_DBG: msg_level_t = 4;
pub const msg_level_t_RTAPI_MSG_ALL: msg_level_t = 5;
#[doc = " 'rtapi_print_msg()' prints a printf-style message when the level"]
#[doc = "is less than or equal to the current message level set by"]
#[doc = "rtapi_set_msg_level().  May be called from user, init/cleanup,"]
#[doc = "and realtime code."]
pub type msg_level_t = ::std::os::raw::c_uint;
extern "C" {
    pub fn rtapi_print_msg(level: msg_level_t, fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    #[doc = " Set the maximum level of message to print.  In userspace code,"]
    #[doc = "each component has its own independent message level.  In realtime"]
    #[doc = "code, all components share a single message level.  Returns 0 for"]
    #[doc = "success or -EINVAL if the level is out of range."]
    pub fn rtapi_set_msg_level(level: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Retrieve the message level set by the last call to rtapi_set_msg_level"]
    pub fn rtapi_get_msg_level() -> ::std::os::raw::c_int;
}
#[doc = " 'rtapi_get_msg_handler' and 'rtapi_set_msg_handler' access the function"]
#[doc = "pointer used by rtapi_print and rtapi_print_msg.  By default, messages"]
#[doc = "appear in the kernel log, but by replacing the handler a user of the rtapi"]
#[doc = "library can send the messages to another destination.  Calling"]
#[doc = "rtapi_set_msg_handler with NULL restores the default handler. Call from"]
#[doc = "real-time init/cleanup code only.  When called from rtapi_print(),"]
#[doc = "'level' is RTAPI_MSG_ALL, a level which should not normally be used"]
#[doc = "with rtapi_print_msg()."]
pub type rtapi_msg_handler_t = ::std::option::Option<
    unsafe extern "C" fn(level: msg_level_t, fmt: *const ::std::os::raw::c_char, ap: va_list),
>;
extern "C" {
    pub fn rtapi_set_msg_handler(handler: rtapi_msg_handler_t);
}
extern "C" {
    pub fn rtapi_get_msg_handler() -> rtapi_msg_handler_t;
}
extern "C" {
    #[doc = " 'rtapi_clock_set_period() sets the basic time interval for realtime"]
    #[doc = "tasks.  All periodic tasks will run at an integer multiple of this"]
    #[doc = "period.  The first call to 'rtapi_clock_set_period() with 'nsecs'"]
    #[doc = "greater than zero will start the clock, using 'nsecs' as the clock"]
    #[doc = "period in nano-seconds.  Due to hardware and RTOS limitations, the"]
    #[doc = "actual period may not be exactly what was requested.  On success,"]
    #[doc = "the function will return the actual clock period if it is available,"]
    #[doc = "otherwise it returns the requested period.  If the requested period"]
    #[doc = "is outside the limits imposed by the hardware or RTOS, it returns"]
    #[doc = "-EINVAL and does not start the clock.  Once the clock is started,"]
    #[doc = "subsequent calls with non-zero 'nsecs' return -EINVAL and have"]
    #[doc = "no effect.  Calling 'rtapi_clock_set_period() with 'nsecs' set to"]
    #[doc = "zero queries the clock, returning the current clock period, or zero"]
    #[doc = "if the clock has not yet been started.  Call only from within"]
    #[doc = "init/cleanup code, not from realtime tasks.  This function is not"]
    #[doc = "available from user (non-realtime) code."]
    pub fn rtapi_clock_set_period(nsecs: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
    #[doc = " rtapi_delay() is a simple delay.  It is intended only for short"]
    #[doc = "delays, since it simply loops, wasting CPU cycles.  'nsec' is the"]
    #[doc = "desired delay, in nano-seconds.  'rtapi_delay_max() returns the"]
    #[doc = "max delay permitted (usually approximately 1/4 of the clock period)."]
    #[doc = "Any call to 'rtapi_delay()' requesting a delay longer than the max"]
    #[doc = "will delay for the max time only.  'rtapi_delay_max()' should be"]
    #[doc = "called before using 'rtapi_delay()' to make sure the required delays"]
    #[doc = "can be achieved.  The actual resolution of the delay may be as good"]
    #[doc = "as one nano-second, or as bad as a several microseconds.  May be"]
    #[doc = "called from init/cleanup code, and from within realtime tasks."]
    pub fn rtapi_delay(nsec: ::std::os::raw::c_long);
}
extern "C" {
    pub fn rtapi_delay_max() -> ::std::os::raw::c_long;
}
extern "C" {
    #[doc = " rtapi_get_time returns the current time in nanoseconds.  Depending"]
    #[doc = "on the RTOS, this may be time since boot, or time since the clock"]
    #[doc = "period was set, or some other time.  Its absolute value means"]
    #[doc = "nothing, but it is monotonically increasing and can be used to"]
    #[doc = "schedule future events, or to time the duration of some activity."]
    #[doc = "Returns a 64 bit value.  The resolution of the returned value may"]
    #[doc = "be as good as one nano-second, or as poor as several microseconds."]
    #[doc = "May be called from init/cleanup code, and from within realtime tasks."]
    #[doc = ""]
    #[doc = "Experience has shown that the implementation of this function in"]
    #[doc = "some RTOS/Kernel combinations is horrible.  It can take up to"]
    #[doc = "several microseconds, which is at least 100 times longer than it"]
    #[doc = "should, and perhaps a thousand times longer.  Use it only if you"]
    #[doc = "MUST have results in seconds instead of clocks, and use it sparingly."]
    #[doc = "See rtapi_get_clocks() instead."]
    #[doc = ""]
    #[doc = "Note that longlong math may be poorly supported on some platforms,"]
    #[doc = "especially in kernel space. Also note that rtapi_print() will NOT"]
    #[doc = "print longlongs.  Most time measurements are relative, and should"]
    #[doc = "be done like this:  deltat = (long int)(end_time - start_time);"]
    #[doc = "where end_time and start_time are longlong values returned from"]
    #[doc = "rtapi_get_time, and deltat is an ordinary long int (32 bits)."]
    #[doc = "This will work for times up to about 2 seconds."]
    pub fn rtapi_get_time() -> ::std::os::raw::c_longlong;
}
extern "C" {
    #[doc = " rtapi_get_clocks returns the current time in CPU clocks.  It is"]
    #[doc = "fast, since it just reads the TSC in the CPU instead of calling a"]
    #[doc = "kernel or RTOS function.  Of course, times measured in CPU clocks"]
    #[doc = "are not as convenient, but for relative measurements this works"]
    #[doc = "fine.  Its absolute value means nothing, but it is monotonically"]
    #[doc = "increasing* and can be used to schedule future events, or to time"]
    #[doc = "the duration of some activity.  (* on SMP machines, the two TSC's"]
    #[doc = "may get out of sync, so if a task reads the TSC, gets swapped to"]
    #[doc = "the other CPU, and reads again, the value may decrease.  RTAPI"]
    #[doc = "tries to force all RT tasks to run on one CPU.)"]
    #[doc = "Returns a 64 bit value.  The resolution of the returned value is"]
    #[doc = "one CPU clock, which is usually a few nanoseconds to a fraction of"]
    #[doc = "a nanosecond."]
    #[doc = "May be called from init/cleanup code, and from within realtime tasks."]
    #[doc = ""]
    #[doc = "Note that longlong math may be poorly supported on some platforms,"]
    #[doc = "especially in kernel space. Also note that rtapi_print() will NOT"]
    #[doc = "print longlongs.  Most time measurements are relative, and should"]
    #[doc = "be done like this:  deltat = (long int)(end_time - start_time);"]
    #[doc = "where end_time and start_time are longlong values returned from"]
    #[doc = "rtapi_get_time, and deltat is an ordinary long int (32 bits)."]
    #[doc = "This will work for times up to a second or so, depending on the"]
    #[doc = "CPU clock frequency.  It is best used for millisecond and"]
    #[doc = "microsecond scale measurements though."]
    pub fn rtapi_get_clocks() -> ::std::os::raw::c_longlong;
}
extern "C" {
    #[doc = " The 'rtapi_prio_xxxx()' functions provide a portable way to set"]
    #[doc = "task priority.  The mapping of actual priority to priority number"]
    #[doc = "depends on the RTOS.  Priorities range from 'rtapi_prio_lowest()'"]
    #[doc = "to 'rtapi_prio_highest()', inclusive. To use this API, use one of"]
    #[doc = "two methods:"]
    #[doc = ""]
    #[doc = "1) Set your lowest priority task to 'rtapi_prio_lowest()', and for"]
    #[doc = "each task of the next lowest priority, set their priorities to"]
    #[doc = "'rtapi_prio_next_higher(previous)'."]
    #[doc = ""]
    #[doc = "2) Set your highest priority task to 'rtapi_prio_highest()', and"]
    #[doc = "for each task of the next highest priority, set their priorities"]
    #[doc = "to 'rtapi_prio_next_lower(previous)'."]
    #[doc = ""]
    #[doc = "A high priority task will preempt a lower priority task.  The linux kernel"]
    #[doc = "and userspace are always a lower priority than all rtapi tasks."]
    #[doc = ""]
    #[doc = "Call these functions only from within init/cleanup code, not from"]
    #[doc = "realtime tasks."]
    pub fn rtapi_prio_highest() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_prio_lowest() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_prio_next_higher(prio: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_prio_next_lower(prio: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_task_new(
        taskcode: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
        arg: *mut ::std::os::raw::c_void,
        prio: ::std::os::raw::c_int,
        owner: ::std::os::raw::c_int,
        stacksize: ::std::os::raw::c_ulong,
        uses_fp: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_task_delete()' deletes a task.  'task_id' is a task ID"]
    #[doc = "from a previous call to rtapi_task_new().  It frees memory"]
    #[doc = "associated with 'task', and does any other cleanup needed.  If"]
    #[doc = "the task has been started, you should pause it before deleting"]
    #[doc = "it.  Returns a status code.  Call only from within init/cleanup"]
    #[doc = "code, not from realtime tasks."]
    pub fn rtapi_task_delete(task_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_task_start()' starts a task in periodic mode.  'task_id' is"]
    #[doc = "a task ID from a call to rtapi_task_new().  The task must be in"]
    #[doc = "the \"paused\" state, or it will return -EINVAL."]
    #[doc = "'period_nsec' is the task period in nanoseconds, which will be"]
    #[doc = "rounded to the nearest multiple of the global clock period.  A"]
    #[doc = "task period less than the clock period (including zero) will be"]
    #[doc = "set equal to the clock period."]
    #[doc = "Call only from within init/cleanup code, not from realtime tasks."]
    pub fn rtapi_task_start(
        task_id: ::std::os::raw::c_int,
        period_nsec: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_wait()' suspends execution of the current task until the"]
    #[doc = "next period.  The task must be periodic, if not, the result is"]
    #[doc = "undefined.  The function will return at the beginning of the"]
    #[doc = "next period.  Call only from within a realtime task."]
    pub fn rtapi_wait();
}
extern "C" {
    #[doc = " 'rtapi_task_resume() starts a task in free-running mode. 'task_id'"]
    #[doc = "is a task ID from a call to rtapi_task_new().  The task must be in"]
    #[doc = "the \"paused\" state, or it will return -EINVAL."]
    #[doc = "A free running task runs continuously until either:"]
    #[doc = "1) It is prempted by a higher priority task.  It will resume as"]
    #[doc = "soon as the higher priority task releases the CPU."]
    #[doc = "2) It calls a blocking function, like rtapi_sem_take().  It will"]
    #[doc = "resume when the function unblocks."]
    #[doc = "3) it is returned to the \"paused\" state by rtapi_task_pause()."]
    #[doc = "May be called from init/cleanup code, and from within realtime tasks."]
    pub fn rtapi_task_resume(task_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_task_pause() causes 'task_id' to stop execution and change"]
    #[doc = "to the \"paused\" state.  'task_id' can be free-running or periodic."]
    #[doc = "Note that rtapi_task_pause() may called from any task, or from init"]
    #[doc = "or cleanup code, not just from the task that is to be paused."]
    #[doc = "The task will resume execution when either rtapi_task_resume() or"]
    #[doc = "rtapi_task_start() is called.  May be called from init/cleanup code,"]
    #[doc = "and from within realtime tasks."]
    pub fn rtapi_task_pause(task_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_task_self()' returns the task ID of the current task or -EINVAL."]
    #[doc = "May be called from init/cleanup code, and from within realtime tasks."]
    pub fn rtapi_task_self() -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_shmem_new()' allocates a block of shared memory.  'key'"]
    #[doc = "identifies the memory block, and must be non-zero.  All modules"]
    #[doc = "wishing to access the same memory must use the same key."]
    #[doc = "'module_id' is the ID of the module that is making the call (see"]
    #[doc = "rtapi_init).  The block will be at least 'size' bytes, and may"]
    #[doc = "be rounded up.  Allocating many small blocks may be very wasteful."]
    #[doc = "When a particular block is allocated for the first time, all"]
    #[doc = "bytes are zeroed.  Subsequent allocations of the same block"]
    #[doc = "by other modules or processes will not touch the contents of the"]
    #[doc = "block."]
    #[doc = "On success, it returns a positive integer ID, which is used for"]
    #[doc = "all subsequent calls dealing with the block.  On failure it"]
    #[doc = "returns a negative error code.  Call only from within user or"]
    #[doc = "init/cleanup code, not from realtime tasks."]
    pub fn rtapi_shmem_new(
        key: ::std::os::raw::c_int,
        module_id: ::std::os::raw::c_int,
        size: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_shmem_delete()' frees the shared memory block associated"]
    #[doc = "with 'shmem_id'.  'module_id' is the ID of the calling module."]
    #[doc = "Returns a status code.  Call only from within user or init/cleanup"]
    #[doc = "code, not from realtime tasks."]
    pub fn rtapi_shmem_delete(
        shmem_id: ::std::os::raw::c_int,
        module_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_shmem_getptr()' sets '*ptr' to point to shared memory block"]
    #[doc = "associated with 'shmem_id'.  Returns a status code.  May be called"]
    #[doc = "from user code, init/cleanup code, or realtime tasks."]
    pub fn rtapi_shmem_getptr(
        shmem_id: ::std::os::raw::c_int,
        ptr: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_sem_new()' creates a realtime semaphore.  'key' identifies"]
    #[doc = "identifies the semaphore, and must be non-zero.  All modules wishing"]
    #[doc = "to use the same semaphore must specify the same key.  'module_id'"]
    #[doc = "is the ID of the module making the call (see rtapi_init).  On"]
    #[doc = "success, it returns a positive integer semaphore ID, which is used"]
    #[doc = "for all subsequent calls dealing with the semaphore.  On failure"]
    #[doc = "it returns a negative error code.  Call only from within init/cleanup"]
    #[doc = "code, not from realtime tasks."]
    pub fn rtapi_sem_new(
        key: ::std::os::raw::c_int,
        module_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_sem_delete()' is the counterpart to 'rtapi_sem_new()'.  It"]
    #[doc = "discards the semaphore associated with 'sem_id'.  Any tasks blocked"]
    #[doc = "on 'sem' will resume execution.  'module_id' is the ID of the calling"]
    #[doc = "module.  Returns a status code.  Call only from within init/cleanup"]
    #[doc = "code, not from realtime tasks."]
    pub fn rtapi_sem_delete(
        sem_id: ::std::os::raw::c_int,
        module_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_sem_give()' unlocks a semaphore.  If a higher priority task"]
    #[doc = "is blocked on the semaphore, the calling task will block and the"]
    #[doc = "higher priority task will begin to run.  Returns a status code."]
    #[doc = "May be called from init/cleanup code, and from within realtime tasks."]
    pub fn rtapi_sem_give(sem_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_sem_take()' locks a semaphore.  Returns 0 or"]
    #[doc = "-EINVAL.  If the semaphore is unlocked it returns 0"]
    #[doc = "immediately.  If the semaphore is locked, the calling task blocks"]
    #[doc = "until the semaphore is unlocked, then it returns 0."]
    #[doc = "Call only from within a realtime task."]
    pub fn rtapi_sem_take(sem_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_sem_try()' does a non-blocking attempt to lock a semaphore."]
    #[doc = "Returns 0, -EINVAL, or -EBUSY.  If the semaphore"]
    #[doc = "is unlocked, it returns 0.  If the semaphore is locked"]
    #[doc = "it does not block, instead it returns -EBUSY, and the caller"]
    #[doc = "can decide how to deal with the situation.  Call only from within"]
    #[doc = "a realtime task."]
    pub fn rtapi_sem_try(sem_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_fifo_new()' creates a realtime fifo. 'key' identifies the"]
    #[doc = "fifo, all modules wishing to access the same fifo must use the same"]
    #[doc = "key.  'module_id' is the ID of the module making the call (see"]
    #[doc = "rtapi_init).  'size' is the depth of the fifo.  'mode' is either"]
    #[doc = "'R' or 'W', to request either read or write access to the fifo."]
    #[doc = "On success, it returns a positive integer ID, which is used for"]
    #[doc = "subsequent calls dealing with the fifo.  On failure, returns a"]
    #[doc = "negative error code.  Call only from within user or init/cleanup"]
    #[doc = "code, not from realtime tasks."]
    pub fn rtapi_fifo_new(
        key: ::std::os::raw::c_int,
        module_id: ::std::os::raw::c_int,
        size: ::std::os::raw::c_ulong,
        mode: ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_fifo_delete()' is the counterpart to 'rtapi_fifo_new()'."]
    #[doc = "It closes the fifo associated with 'fifo_ID'.  'module_id' is the"]
    #[doc = "ID of the calling module.  Returns status code.  Call only from"]
    #[doc = "within user or init/cleanup code, not from realtime tasks."]
    pub fn rtapi_fifo_delete(
        fifo_id: ::std::os::raw::c_int,
        module_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_fifo_read(
        fifo_id: ::std::os::raw::c_int,
        buf: *mut ::std::os::raw::c_char,
        size: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_fifo_write(
        fifo_id: ::std::os::raw::c_int,
        buf: *mut ::std::os::raw::c_char,
        size: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_assign_interrupt_handler()' is used to set up a handler for"]
    #[doc = "a hardware interrupt.  'irq' is the interrupt number, and 'handler'"]
    #[doc = "is a pointer to a function taking no arguments and returning void."]
    #[doc = "'handler will be called when the interrupt occurs.  'owner' is the"]
    #[doc = "ID of the calling module (see rtapi_init).  Returns a status"]
    #[doc = "code.  Note:  The simulated RTOS does not support interrupts."]
    #[doc = "Call only from within init/cleanup code, not from realtime tasks."]
    pub fn rtapi_irq_new(
        irq_num: ::std::os::raw::c_uint,
        owner: ::std::os::raw::c_int,
        handler: ::std::option::Option<unsafe extern "C" fn()>,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_free_interrupt_handler()' removes an interrupt handler that"]
    #[doc = "was previously installed by rtapi_assign_interrupt_handler(). 'irq'"]
    #[doc = "is the interrupt number.  Removing a realtime module without freeing"]
    #[doc = "any handlers it has installed will almost certainly crash the box."]
    #[doc = "Returns 0 or -EINVAL.  Call only from within"]
    #[doc = "init/cleanup code, not from realtime tasks."]
    pub fn rtapi_irq_delete(irq_num: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_enable_interrupt()' and 'rtapi_disable_interrupt()' are"]
    #[doc = "are used to enable and disable interrupts, presumably ones that"]
    #[doc = "have handlers assigned to them.  Returns a status code.  May be"]
    #[doc = "called from init/cleanup code, and from within realtime tasks."]
    pub fn rtapi_enable_interrupt(irq: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_disable_interrupt(irq: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'rtapi_outb() writes 'byte' to 'port'.  May be called from"]
    #[doc = "init/cleanup code, and from within realtime tasks."]
    #[doc = "Note: This function does nothing on the simulated RTOS."]
    #[doc = "Note: Many platforms provide an inline outb() that is faster."]
    pub fn rtapi_outb(byte: ::std::os::raw::c_uchar, port: ::std::os::raw::c_uint);
}
extern "C" {
    #[doc = " 'rtapi_inb() gets a byte from 'port'.  Returns the byte.  May"]
    #[doc = "be called from init/cleanup code, and from within realtime tasks."]
    #[doc = "Note: This function always returns zero on the simulated RTOS."]
    #[doc = "Note: Many platforms provide an inline inb() that is faster."]
    pub fn rtapi_inb(port: ::std::os::raw::c_uint) -> ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn simple_strtol(
        nptr: *const ::std::os::raw::c_char,
        endptr: *mut *mut ::std::os::raw::c_char,
        base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_long;
}
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_uint;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
    const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__fsid_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__fsid_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__fsid_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_int;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type time_t = __time_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
    pub tv_sec: __time_t,
    pub tv_nsec: __syscall_slong_t,
}
#[test]
fn bindgen_test_layout_timespec() {
    const UNINIT: ::std::mem::MaybeUninit<timespec> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<timespec>(),
        16usize,
        concat!("Size of: ", stringify!(timespec))
    );
    assert_eq!(
        ::std::mem::align_of::<timespec>(),
        8usize,
        concat!("Alignment of ", stringify!(timespec))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timespec),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(timespec),
            "::",
            stringify!(tv_nsec)
        )
    );
}
pub type pid_t = __pid_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sched_param {
    pub sched_priority: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sched_param() {
    const UNINIT: ::std::mem::MaybeUninit<sched_param> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<sched_param>(),
        4usize,
        concat!("Size of: ", stringify!(sched_param))
    );
    assert_eq!(
        ::std::mem::align_of::<sched_param>(),
        4usize,
        concat!("Alignment of ", stringify!(sched_param))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).sched_priority) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(sched_param),
            "::",
            stringify!(sched_priority)
        )
    );
}
pub type __cpu_mask = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cpu_set_t {
    pub __bits: [__cpu_mask; 16usize],
}
#[test]
fn bindgen_test_layout_cpu_set_t() {
    const UNINIT: ::std::mem::MaybeUninit<cpu_set_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<cpu_set_t>(),
        128usize,
        concat!("Size of: ", stringify!(cpu_set_t))
    );
    assert_eq!(
        ::std::mem::align_of::<cpu_set_t>(),
        8usize,
        concat!("Alignment of ", stringify!(cpu_set_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__bits) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(cpu_set_t),
            "::",
            stringify!(__bits)
        )
    );
}
extern "C" {
    pub fn __sched_cpucount(__setsize: usize, __setp: *const cpu_set_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __sched_cpualloc(__count: usize) -> *mut cpu_set_t;
}
extern "C" {
    pub fn __sched_cpufree(__set: *mut cpu_set_t);
}
extern "C" {
    pub fn sched_setparam(__pid: __pid_t, __param: *const sched_param) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_getparam(__pid: __pid_t, __param: *mut sched_param) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_setscheduler(
        __pid: __pid_t,
        __policy: ::std::os::raw::c_int,
        __param: *const sched_param,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_getscheduler(__pid: __pid_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_yield() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_get_priority_max(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_get_priority_min(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sched_rr_get_interval(__pid: __pid_t, __t: *mut timespec) -> ::std::os::raw::c_int;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type off_t = __off_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type clockid_t = __clockid_t;
pub type timer_t = __timer_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = __uint8_t;
pub type u_int16_t = __uint16_t;
pub type u_int32_t = __uint32_t;
pub type u_int64_t = __uint64_t;
pub type register_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
    const UNINIT: ::std::mem::MaybeUninit<__sigset_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__sigset_t>(),
        128usize,
        concat!("Size of: ", stringify!(__sigset_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__sigset_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__sigset_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__sigset_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __time_t,
    pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
    const UNINIT: ::std::mem::MaybeUninit<timeval> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<timeval>(),
        16usize,
        concat!("Size of: ", stringify!(timeval))
    );
    assert_eq!(
        ::std::mem::align_of::<timeval>(),
        8usize,
        concat!("Alignment of ", stringify!(timeval))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timeval),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(timeval),
            "::",
            stringify!(tv_usec)
        )
    );
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub __fds_bits: [__fd_mask; 16usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
    const UNINIT: ::std::mem::MaybeUninit<fd_set> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<fd_set>(),
        128usize,
        concat!("Size of: ", stringify!(fd_set))
    );
    assert_eq!(
        ::std::mem::align_of::<fd_set>(),
        8usize,
        concat!("Alignment of ", stringify!(fd_set))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__fds_bits) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(fd_set),
            "::",
            stringify!(__fds_bits)
        )
    );
}
pub type fd_mask = __fd_mask;
extern "C" {
    pub fn select(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn pselect(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *const timespec,
        __sigmask: *const __sigset_t,
    ) -> ::std::os::raw::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut __pthread_internal_list,
    pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_list> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_internal_list>(),
        16usize,
        concat!("Size of: ", stringify!(__pthread_internal_list))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_internal_list>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_internal_list))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_list),
            "::",
            stringify!(__prev)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_list),
            "::",
            stringify!(__next)
        )
    );
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_slist {
    pub __next: *mut __pthread_internal_slist,
}
#[test]
fn bindgen_test_layout___pthread_internal_slist() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_slist> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_internal_slist>(),
        8usize,
        concat!("Size of: ", stringify!(__pthread_internal_slist))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_internal_slist>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_internal_slist))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_slist),
            "::",
            stringify!(__next)
        )
    );
}
pub type __pthread_slist_t = __pthread_internal_slist;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
    pub __lock: ::std::os::raw::c_int,
    pub __count: ::std::os::raw::c_uint,
    pub __owner: ::std::os::raw::c_int,
    pub __nusers: ::std::os::raw::c_uint,
    pub __kind: ::std::os::raw::c_int,
    pub __spins: ::std::os::raw::c_int,
    pub __list: __pthread_list_t,
}
#[test]
fn bindgen_test_layout___pthread_mutex_s() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_mutex_s>(),
        40usize,
        concat!("Size of: ", stringify!(__pthread_mutex_s))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_mutex_s>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_mutex_s))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__lock) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__lock)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__count)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__owner) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__owner)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__nusers) as usize - ptr as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__nusers)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__kind) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__kind)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__spins) as usize - ptr as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__spins)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__list) as usize - ptr as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__list)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
    pub __readers: ::std::os::raw::c_uint,
    pub __writers: ::std::os::raw::c_uint,
    pub __wrphase_futex: ::std::os::raw::c_uint,
    pub __writers_futex: ::std::os::raw::c_uint,
    pub __pad3: ::std::os::raw::c_uint,
    pub __pad4: ::std::os::raw::c_uint,
    pub __cur_writer: ::std::os::raw::c_int,
    pub __shared: ::std::os::raw::c_int,
    pub __pad1: ::std::os::raw::c_ulong,
    pub __pad2: ::std::os::raw::c_ulong,
    pub __flags: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_rwlock_arch_t() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_rwlock_arch_t> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_rwlock_arch_t>(),
        56usize,
        concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_rwlock_arch_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__readers) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__readers)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__writers) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__writers)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__wrphase_futex) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__wrphase_futex)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__writers_futex) as usize - ptr as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__writers_futex)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pad3) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad3)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pad4) as usize - ptr as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad4)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__cur_writer) as usize - ptr as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__cur_writer)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__shared) as usize - ptr as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__shared)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pad1) as usize - ptr as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad1)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pad2) as usize - ptr as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad2)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__flags)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
    pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
    pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
    pub __g_refs: [::std::os::raw::c_uint; 2usize],
    pub __g_size: [::std::os::raw::c_uint; 2usize],
    pub __g1_orig_size: ::std::os::raw::c_uint,
    pub __wrefs: ::std::os::raw::c_uint,
    pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_1 {
    pub __wseq: ::std::os::raw::c_ulonglong,
    pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__low) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(__low)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__high) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(__high)
        )
    );
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s__bindgen_ty_1> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_1))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__wseq) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1),
            "::",
            stringify!(__wseq)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__wseq32) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1),
            "::",
            stringify!(__wseq32)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_2 {
    pub __g1_start: ::std::os::raw::c_ulonglong,
    pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__low) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
            "::",
            stringify!(__low)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__high) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
            "::",
            stringify!(__high)
        )
    );
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s__bindgen_ty_2> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2>(),
        8usize,
        concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_2))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_2))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__g1_start) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2),
            "::",
            stringify!(__g1_start)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__g1_start32) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2),
            "::",
            stringify!(__g1_start32)
        )
    );
}
#[test]
fn bindgen_test_layout___pthread_cond_s() {
    const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s>(),
        48usize,
        concat!("Size of: ", stringify!(__pthread_cond_s))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_cond_s))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__g_refs) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g_refs)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__g_size) as usize - ptr as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g_size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__g1_orig_size) as usize - ptr as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g1_orig_size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__wrefs) as usize - ptr as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__wrefs)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__g_signals) as usize - ptr as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g_signals)
        )
    );
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_mutexattr_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_mutexattr_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_mutexattr_t>(),
        8usize,
        concat!("Size of: ", stringify!(pthread_mutexattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutexattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_mutexattr_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutexattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutexattr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_condattr_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_condattr_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_condattr_t>(),
        8usize,
        concat!("Size of: ", stringify!(pthread_condattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_condattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_condattr_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_condattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_condattr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [::std::os::raw::c_char; 64usize],
    pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_attr_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_attr_t>(),
        64usize,
        concat!("Size of: ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_attr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: __pthread_mutex_s,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_mutex_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_mutex_t>(),
        48usize,
        concat!("Size of: ", stringify!(pthread_mutex_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutex_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_mutex_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: __pthread_cond_s,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_cond_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_cond_t>(),
        48usize,
        concat!("Size of: ", stringify!(pthread_cond_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_cond_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_cond_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
    pub __data: __pthread_rwlock_arch_t,
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_rwlock_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlock_t>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_rwlock_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlock_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlock_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_rwlockattr_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlockattr_t>(),
        8usize,
        concat!("Size of: ", stringify!(pthread_rwlockattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlockattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlockattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlockattr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
    pub __size: [::std::os::raw::c_char; 32usize],
    pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_barrier_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_barrier_t>(),
        32usize,
        concat!("Size of: ", stringify!(pthread_barrier_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_barrier_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_barrier_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrier_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrier_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
    const UNINIT: ::std::mem::MaybeUninit<pthread_barrierattr_t> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<pthread_barrierattr_t>(),
        8usize,
        concat!("Size of: ", stringify!(pthread_barrierattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_barrierattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_barrierattr_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrierattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrierattr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct posix_spawnattr_t {
    pub __flags: ::std::os::raw::c_short,
    pub __pgrp: pid_t,
    pub __sd: sigset_t,
    pub __ss: sigset_t,
    pub __sp: sched_param,
    pub __policy: ::std::os::raw::c_int,
    pub __pad: [::std::os::raw::c_int; 16usize],
}
#[test]
fn bindgen_test_layout_posix_spawnattr_t() {
    const UNINIT: ::std::mem::MaybeUninit<posix_spawnattr_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<posix_spawnattr_t>(),
        336usize,
        concat!("Size of: ", stringify!(posix_spawnattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<posix_spawnattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(posix_spawnattr_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__flags)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pgrp) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__pgrp)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__sd) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__sd)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__ss) as usize - ptr as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__ss)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__sp) as usize - ptr as usize },
        264usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__sp)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__policy) as usize - ptr as usize },
        268usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__policy)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pad) as usize - ptr as usize },
        272usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawnattr_t),
            "::",
            stringify!(__pad)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct posix_spawn_file_actions_t {
    pub __allocated: ::std::os::raw::c_int,
    pub __used: ::std::os::raw::c_int,
    pub __actions: *mut __spawn_action,
    pub __pad: [::std::os::raw::c_int; 16usize],
}
#[test]
fn bindgen_test_layout_posix_spawn_file_actions_t() {
    const UNINIT: ::std::mem::MaybeUninit<posix_spawn_file_actions_t> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<posix_spawn_file_actions_t>(),
        80usize,
        concat!("Size of: ", stringify!(posix_spawn_file_actions_t))
    );
    assert_eq!(
        ::std::mem::align_of::<posix_spawn_file_actions_t>(),
        8usize,
        concat!("Alignment of ", stringify!(posix_spawn_file_actions_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__allocated) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawn_file_actions_t),
            "::",
            stringify!(__allocated)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__used) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawn_file_actions_t),
            "::",
            stringify!(__used)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__actions) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawn_file_actions_t),
            "::",
            stringify!(__actions)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__pad) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(posix_spawn_file_actions_t),
            "::",
            stringify!(__pad)
        )
    );
}
extern "C" {
    pub fn posix_spawn(
        __pid: *mut pid_t,
        __path: *const ::std::os::raw::c_char,
        __file_actions: *const posix_spawn_file_actions_t,
        __attrp: *const posix_spawnattr_t,
        __argv: *const *mut ::std::os::raw::c_char,
        __envp: *const *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnp(
        __pid: *mut pid_t,
        __file: *const ::std::os::raw::c_char,
        __file_actions: *const posix_spawn_file_actions_t,
        __attrp: *const posix_spawnattr_t,
        __argv: *const *mut ::std::os::raw::c_char,
        __envp: *const *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_init(__attr: *mut posix_spawnattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_destroy(__attr: *mut posix_spawnattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_getsigdefault(
        __attr: *const posix_spawnattr_t,
        __sigdefault: *mut sigset_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_setsigdefault(
        __attr: *mut posix_spawnattr_t,
        __sigdefault: *const sigset_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_getsigmask(
        __attr: *const posix_spawnattr_t,
        __sigmask: *mut sigset_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_setsigmask(
        __attr: *mut posix_spawnattr_t,
        __sigmask: *const sigset_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_getflags(
        __attr: *const posix_spawnattr_t,
        __flags: *mut ::std::os::raw::c_short,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_setflags(
        _attr: *mut posix_spawnattr_t,
        __flags: ::std::os::raw::c_short,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_getpgroup(
        __attr: *const posix_spawnattr_t,
        __pgroup: *mut pid_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_setpgroup(
        __attr: *mut posix_spawnattr_t,
        __pgroup: pid_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_getschedpolicy(
        __attr: *const posix_spawnattr_t,
        __schedpolicy: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_setschedpolicy(
        __attr: *mut posix_spawnattr_t,
        __schedpolicy: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_getschedparam(
        __attr: *const posix_spawnattr_t,
        __schedparam: *mut sched_param,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawnattr_setschedparam(
        __attr: *mut posix_spawnattr_t,
        __schedparam: *const sched_param,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawn_file_actions_init(
        __file_actions: *mut posix_spawn_file_actions_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawn_file_actions_destroy(
        __file_actions: *mut posix_spawn_file_actions_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawn_file_actions_addopen(
        __file_actions: *mut posix_spawn_file_actions_t,
        __fd: ::std::os::raw::c_int,
        __path: *const ::std::os::raw::c_char,
        __oflag: ::std::os::raw::c_int,
        __mode: mode_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawn_file_actions_addclose(
        __file_actions: *mut posix_spawn_file_actions_t,
        __fd: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_spawn_file_actions_adddup2(
        __file_actions: *mut posix_spawn_file_actions_t,
        __fd: ::std::os::raw::c_int,
        __newfd: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_spawn_as_root(
        pid: *mut pid_t,
        path: *const ::std::os::raw::c_char,
        file_actions: *const posix_spawn_file_actions_t,
        attrp: *const posix_spawnattr_t,
        argv: *const *mut ::std::os::raw::c_char,
        envp: *const *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_spawnp_as_root(
        pid: *mut pid_t,
        path: *const ::std::os::raw::c_char,
        file_actions: *const posix_spawn_file_actions_t,
        attrp: *const posix_spawnattr_t,
        argv: *const *mut ::std::os::raw::c_char,
        envp: *const *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_is_kernelspace() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_is_realtime() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rtapi_open_as_root(
        filename: *const ::std::os::raw::c_char,
        mode: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __errno_location() -> *mut ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_init()' is called by a HAL component before any other hal"]
    #[doc = "function is called, to open the HAL shared memory block and"]
    #[doc = "do other initialization."]
    #[doc = "'name' is the name of the component.  It must be unique in the"]
    #[doc = "system.  It must be no longer than HAL_NAME_LEN."]
    #[doc = "On success, hal_init() returns a positive integer component ID,"]
    #[doc = "which is used for subsequent calls to hal_xxx_new() and"]
    #[doc = "hal_exit().  On failure, returns an error code (see above)."]
    #[doc = "'hal_init()' calls rtapi_init(), so after calling hal_init(), a"]
    #[doc = "component can use any rtapi functions.  The component ID returned"]
    #[doc = "by 'hal_init()' is also the RTAPI module ID for the associated"]
    #[doc = "module, and can be used when calling rtapi functions."]
    #[doc = "Call only from within user space or init/cleanup code, not from"]
    #[doc = "realtime code."]
    pub fn hal_init(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_exit()' must be called before a HAL component exits, to"]
    #[doc = "free resources associated with the component."]
    #[doc = "'comp_id' is the ID of the component as returned from its initial"]
    #[doc = "call to 'hal_init()'.  'hal_exit()' will remove the component's"]
    #[doc = "realtime functions (if any) from realtime threads.  It also"]
    #[doc = "removes all pins and parameters exported by the component.  If"]
    #[doc = "the component created _any_ threads, when it exits _all_ threads"]
    #[doc = "will be stopped, and the ones it created will be deleted."]
    #[doc = "It is assumed that the system will no longer function correctly"]
    #[doc = "after a component is removed, but this cleanup will prevent"]
    #[doc = "crashes when the component's code and data is unmapped."]
    #[doc = "'hal_exit()' calls 'rtapi_exit()', so any rtapi reaources"]
    #[doc = "allocated should be discarded before calling hal_exit(), and"]
    #[doc = "rtapi functions should not be called afterwards."]
    #[doc = "On success, hal_exit() returns 0, on failure it"]
    #[doc = "returns a negative error code."]
    pub fn hal_exit(comp_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_malloc() allocates a block of memory from the main HAL"]
    #[doc = "shared memory area.  It should be used by all components to"]
    #[doc = "allocate memory for HAL pins and parameters."]
    #[doc = "It allocates 'size' bytes, and returns a pointer to the"]
    #[doc = "allocated space, or NULL (0) on error.  The returned pointer"]
    #[doc = "will be properly aligned for any variable HAL supports (see"]
    #[doc = "HAL_TYPE below.)"]
    #[doc = "The allocator is very simple, and there is no 'free'.  It is"]
    #[doc = "assumed that a component will allocate all the memory it needs"]
    #[doc = "during initialization.  The entire HAL shared memory area is"]
    #[doc = "freed when the last component calls hal_exit().  This means"]
    #[doc = "that if you continuously install and remove one component"]
    #[doc = "while other components are present, you eventually will fill"]
    #[doc = "up the shared memory and an install will fail.  Removing"]
    #[doc = "all components completely clears memory and you start"]
    #[doc = "fresh."]
    pub fn hal_malloc(size: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " hal_ready() indicates that this component is ready.  This allows"]
    #[doc = "halcmd 'loadusr -W hal_example' to wait until the userspace"]
    #[doc = "component 'hal_example' is ready before continuing."]
    pub fn hal_ready(comp_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_unready() indicates that this component is ready.  This allows"]
    #[doc = "halcmd 'loadusr -W hal_example' to wait until the userspace"]
    #[doc = "component 'hal_example' is ready before continuing."]
    pub fn hal_unready(comp_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_comp_name() returns the name of the given component, or NULL"]
    #[doc = "if comp_id is not a loaded component"]
    pub fn hal_comp_name(comp_id: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
pub const hal_type_t_HAL_TYPE_UNSPECIFIED: hal_type_t = -1;
pub const hal_type_t_HAL_TYPE_UNINITIALIZED: hal_type_t = 0;
pub const hal_type_t_HAL_BIT: hal_type_t = 1;
pub const hal_type_t_HAL_FLOAT: hal_type_t = 2;
pub const hal_type_t_HAL_S32: hal_type_t = 3;
pub const hal_type_t_HAL_U32: hal_type_t = 4;
pub const hal_type_t_HAL_PORT: hal_type_t = 5;
#[doc = " HAL pins and signals are typed, and the HAL only allows pins"]
#[doc = "to be attached to signals of the same type."]
#[doc = "All HAL types can be read or written atomically.  (Read-modify-"]
#[doc = "write operations are not atomic.)"]
#[doc = "Note that when a component reads or writes one of its pins, it"]
#[doc = "is actually reading or writing the signal linked to that pin, by"]
#[doc = "way of the pointer."]
#[doc = "'hal_type_t' is an enum used to identify the type of a pin, signal,"]
#[doc = "or parameter."]
pub type hal_type_t = ::std::os::raw::c_int;
pub const hal_pin_dir_t_HAL_DIR_UNSPECIFIED: hal_pin_dir_t = -1;
pub const hal_pin_dir_t_HAL_IN: hal_pin_dir_t = 16;
pub const hal_pin_dir_t_HAL_OUT: hal_pin_dir_t = 32;
pub const hal_pin_dir_t_HAL_IO: hal_pin_dir_t = 48;
#[doc = " HAL pins have a direction attribute.  A pin may be an input to"]
#[doc = "the HAL component, an output, or it may be bidirectional."]
#[doc = "Any number of HAL_IN or HAL_IO pins may be connected to the same"]
#[doc = "signal, but only one HAL_OUT pin is permitted.  This is equivalent"]
#[doc = "to connecting two output pins together in an electronic circuit."]
#[doc = "(HAL_IO pins can be thought of as tri-state outputs.)"]
pub type hal_pin_dir_t = ::std::os::raw::c_int;
pub const hal_param_dir_t_HAL_RO: hal_param_dir_t = 64;
pub const hal_param_dir_t_HAL_RW: hal_param_dir_t = 192;
#[doc = " HAL parameters also have a direction attribute.  For parameters,"]
#[doc = "the attribute determines whether the user can write the value"]
#[doc = "of the parameter, or simply read it.  HAL_RO parameters are"]
#[doc = "read-only, and HAL_RW ones are writable with 'halcmd setp'."]
pub type hal_param_dir_t = ::std::os::raw::c_uint;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
pub type __gwchar_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct imaxdiv_t {
    pub quot: ::std::os::raw::c_long,
    pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_imaxdiv_t() {
    const UNINIT: ::std::mem::MaybeUninit<imaxdiv_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<imaxdiv_t>(),
        16usize,
        concat!("Size of: ", stringify!(imaxdiv_t))
    );
    assert_eq!(
        ::std::mem::align_of::<imaxdiv_t>(),
        8usize,
        concat!("Alignment of ", stringify!(imaxdiv_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(imaxdiv_t),
            "::",
            stringify!(quot)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(imaxdiv_t),
            "::",
            stringify!(rem)
        )
    );
}
extern "C" {
    pub fn imaxabs(__n: intmax_t) -> intmax_t;
}
extern "C" {
    pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
extern "C" {
    pub fn strtoimax(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> intmax_t;
}
extern "C" {
    pub fn strtoumax(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> uintmax_t;
}
extern "C" {
    pub fn wcstoimax(
        __nptr: *const __gwchar_t,
        __endptr: *mut *mut __gwchar_t,
        __base: ::std::os::raw::c_int,
    ) -> intmax_t;
}
extern "C" {
    pub fn wcstoumax(
        __nptr: *const __gwchar_t,
        __endptr: *mut *mut __gwchar_t,
        __base: ::std::os::raw::c_int,
    ) -> uintmax_t;
}
pub type rtapi_s8 = i8;
pub type rtapi_s16 = i16;
pub type rtapi_s32 = i32;
pub type rtapi_s64 = i64;
pub type rtapi_intptr_t = isize;
pub type rtapi_u8 = u8;
pub type rtapi_u16 = u16;
pub type rtapi_u32 = u32;
pub type rtapi_u64 = u64;
pub type rtapi_uintptr_t = usize;
pub type hal_bit_t = bool;
pub type hal_u32_t = rtapi_u32;
pub type hal_s32_t = rtapi_s32;
pub type hal_port_t = ::std::os::raw::c_int;
pub type real_t = f64;
pub type ireal_t = rtapi_u64;
#[doc = " HAL \"data union\" structure"]
#[doc = " This structure may hold any type of hal data"]
#[repr(C)]
#[derive(Copy, Clone)]
pub union hal_data_u {
    pub b: hal_bit_t,
    pub s: hal_s32_t,
    pub u: hal_u32_t,
    pub f: real_t,
    pub p: hal_port_t,
}
#[test]
fn bindgen_test_layout_hal_data_u() {
    const UNINIT: ::std::mem::MaybeUninit<hal_data_u> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<hal_data_u>(),
        8usize,
        concat!("Size of: ", stringify!(hal_data_u))
    );
    assert_eq!(
        ::std::mem::align_of::<hal_data_u>(),
        8usize,
        concat!("Alignment of ", stringify!(hal_data_u))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_data_u),
            "::",
            stringify!(b)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_data_u),
            "::",
            stringify!(s)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_data_u),
            "::",
            stringify!(u)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_data_u),
            "::",
            stringify!(f)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_data_u),
            "::",
            stringify!(p)
        )
    );
}
#[repr(C)]
#[derive(Debug)]
pub struct hal_port_shm_t {
    pub read: ::std::os::raw::c_uint,
    pub write: ::std::os::raw::c_uint,
    pub size: ::std::os::raw::c_uint,
    pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
}
#[test]
fn bindgen_test_layout_hal_port_shm_t() {
    const UNINIT: ::std::mem::MaybeUninit<hal_port_shm_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<hal_port_shm_t>(),
        12usize,
        concat!("Size of: ", stringify!(hal_port_shm_t))
    );
    assert_eq!(
        ::std::mem::align_of::<hal_port_shm_t>(),
        4usize,
        concat!("Alignment of ", stringify!(hal_port_shm_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).read) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_port_shm_t),
            "::",
            stringify!(read)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).write) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_port_shm_t),
            "::",
            stringify!(write)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_port_shm_t),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).buff) as usize - ptr as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_port_shm_t),
            "::",
            stringify!(buff)
        )
    );
}
extern "C" {
    #[doc = "                      \"LOCKING\" FUNCTIONS                             *"]
    #[doc = "locking types defined in hal.h"]
    #[doc = "HAL_LOCK_NONE -locks none"]
    #[doc = "HAL_LOCK_* - intermediate locking levels"]
    #[doc = "HAL_LOCK_ALL - locks everything"]
    pub fn hal_set_lock(lock_type: ::std::os::raw::c_uchar) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " The 'hal_get_lock()' function returns the current locking level"]
    #[doc = "locking types defined in hal.h"]
    #[doc = "HAL_LOCK_NONE -locks none"]
    #[doc = "HAL_LOCK_* - intermediate locking levels"]
    #[doc = "HAL_LOCK_ALL - locks everything"]
    pub fn hal_get_lock() -> ::std::os::raw::c_uchar;
}
extern "C" {
    #[doc = " The 'hal_pin_xxx_new()' functions create a new 'pin' object."]
    #[doc = "Once a pin has been created, it can be linked to a signal object"]
    #[doc = "using hal_link().  A pin contains a pointer, and the component"]
    #[doc = "that owns the pin can dereference the pointer to access whatever"]
    #[doc = "signal is linked to the pin.  (If no signal is linked, it points"]
    #[doc = "to a dummy signal.)"]
    #[doc = "There are eight functions, one for each of the data types that"]
    #[doc = "the HAL supports.  Pins may only be linked to signals of the same"]
    #[doc = "type."]
    #[doc = "'name' is the name of the new pin.  It must be no longer than HAL_NAME_LEN."]
    #[doc = "If there is already a pin with the same name the call will fail."]
    #[doc = "'dir' is the pin direction.  It indicates whether the pin is"]
    #[doc = "an input or output from the component."]
    #[doc = "'data_ptr_addr' is the address of the pointer that the component"]
    #[doc = "will use for the pin.  When the pin is linked to a signal, the"]
    #[doc = "pointer at 'data_ptr_addr' will be changed to point to the signal"]
    #[doc = "data location.  'data_ptr_addr' must point to memory allocated by"]
    #[doc = "hal_malloc().  Typically the component allocates space for a data"]
    #[doc = "structure with hal_malloc(), and 'data_ptr_addr' is the address"]
    #[doc = "of a member of that structure."]
    #[doc = "'comp_id' is the ID of the component that will 'own' the"]
    #[doc = "variable.  Normally it should be the ID of the caller, but in"]
    #[doc = "some cases, a user mode component may be doing setup for a"]
    #[doc = "realtime component, so the ID should be that of the realtime"]
    #[doc = "component that will actually be using the pin."]
    #[doc = "If successful, the hal_pin_xxx_new() functions return 0."]
    #[doc = "On failure they return a negative error code."]
    pub fn hal_pin_bit_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_bit_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_float_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut real_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_u32_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_u32_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_s32_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_s32_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_port_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_port_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " The hal_pin_XXX_newf family of functions are similar to"]
    #[doc = "hal_pin_XXX_new except that they also do printf-style formatting to compute"]
    #[doc = "the pin name"]
    #[doc = "If successful, the hal_pin_xxx_newf() functions return 0."]
    #[doc = "On failure they return a negative error code."]
    pub fn hal_pin_bit_newf(
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_bit_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_float_newf(
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut real_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_u32_newf(
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_u32_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_s32_newf(
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_s32_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_pin_port_newf(
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut hal_port_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_pin_new()' creates a new 'pin' object.  It is a generic"]
    #[doc = "version of the eight functions above.  It is provided ONLY for"]
    #[doc = "those special cases where a generic function is needed.  It is"]
    #[doc = "STRONGLY recommended that the functions above be used instead,"]
    #[doc = "because they check the type of 'data_ptr_addr' against the pin"]
    #[doc = "type at compile time.  Using this function requires a cast of"]
    #[doc = "the 'data_ptr_addr' argument that defeats type checking and can"]
    #[doc = "cause subtle bugs."]
    #[doc = "'name', 'dir', 'data_ptr_addr' and 'comp_id' are the same as in"]
    #[doc = "the functions above."]
    #[doc = "'type' is the hal type of the new pin - the type of data that"]
    #[doc = "will be passed in/out of the component through the new pin."]
    #[doc = "If successful, hal_pin_new() returns 0.  On failure"]
    #[doc = "it returns a negative error code."]
    pub fn hal_pin_new(
        name: *const ::std::os::raw::c_char,
        type_: hal_type_t,
        dir: hal_pin_dir_t,
        data_ptr_addr: *mut *mut ::std::os::raw::c_void,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_pin_alias()' assigns an alternate name, aka an alias, to"]
    #[doc = "a pin.  Once assigned, the pin can be referred to by either its"]
    #[doc = "original name or the alias.  Calling this function with 'alias'"]
    #[doc = "set to NULL will remove any existing alias."]
    pub fn hal_pin_alias(
        pin_name: *const ::std::os::raw::c_char,
        alias: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_signal_new()' creates a new signal object.  Once a signal has"]
    #[doc = "been created, pins can be linked to it with hal_link().  The signal"]
    #[doc = "object contains the actual storage for the signal data.  Pin objects"]
    #[doc = "linked to the signal have pointers that point to the data."]
    #[doc = "'name' is the name of the new signal.  It must be no longer than"]
    #[doc = "HAL_NAME_LEN.  If there is already a signal with the same"]
    #[doc = "name the call will fail."]
    #[doc = "'type' is the data type handled by the signal.  Pins can only be"]
    #[doc = "linked to a signal of the same type."]
    #[doc = "Note that the actual address of the data storage for the signal is"]
    #[doc = "not accessible.  The data can be accessed only by linking a pin to"]
    #[doc = "the signal.  Also note that signals, unlike pins, do not have"]
    #[doc = "'owners'.  Once created, a signal remains in place until either it"]
    #[doc = "is deleted, or the last HAL component exits."]
    #[doc = "If successful, 'hal_signal_new() returns 0.  On failure"]
    #[doc = "it returns a negative error code."]
    pub fn hal_signal_new(
        name: *const ::std::os::raw::c_char,
        type_: hal_type_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_signal_delete()' deletes a signal object.  Any pins linked to"]
    #[doc = "the object are unlinked."]
    #[doc = "'name' is the name of the signal to be deleted."]
    #[doc = "If successful, 'hal_signal_delete()' returns 0.  On"]
    #[doc = "failure, it returns a negative error code."]
    pub fn hal_signal_delete(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_link()' links a pin to a signal.  'pin_name' and 'sig_name' are"]
    #[doc = "strings containing the pin and signal names.  If the pin is already"]
    #[doc = "linked to the desired signal, the command succeeds.  If the pin is"]
    #[doc = "already linked to some other signal, it is an error.  In either"]
    #[doc = "case, the existing connection is not modified.  (Use 'hal_unlink'"]
    #[doc = "to break an existing connection.)  If the signal already has other"]
    #[doc = "pins linked to it, they are unaffected - one signal can be linked"]
    #[doc = "to many pins, but a pin can be linked to only one signal."]
    #[doc = "On success, hal_link() returns 0, on failure it returns a"]
    #[doc = "negative error code."]
    pub fn hal_link(
        pin_name: *const ::std::os::raw::c_char,
        sig_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_unlink()' unlinks any signal from the specified pin.  'pin_name'"]
    #[doc = "is a string containing the pin name."]
    #[doc = "On success, hal_unlink() returns 0, on failure it"]
    #[doc = "returns a negative error code."]
    pub fn hal_unlink(pin_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " The 'hal_param_xxx_new()' functions create a new 'parameter' object."]
    #[doc = "A parameter is a value that is only used inside a component, but may"]
    #[doc = "need to be initialized or adjusted from outside the component to set"]
    #[doc = "up the system properly."]
    #[doc = "Once a parameter has been created, it's value can be changed using"]
    #[doc = "the 'hal_param_xxx_set()' functions."]
    #[doc = "There are eight functions, one for each of the data types that"]
    #[doc = "the HAL supports.  Pins may only be linked to signals of the same"]
    #[doc = "type."]
    #[doc = "'name' is the name of the new parameter.  It must be no longer than"]
    #[doc = ".HAL_NAME_LEN.  If there is already a parameter with the same"]
    #[doc = "name the call will fail."]
    #[doc = "'dir' is the parameter direction.  HAL_RO parameters are read only from"]
    #[doc = "outside, and are written to by the component itself, typically to provide a"]
    #[doc = "view \"into\" the component for testing or troubleshooting.  HAL_RW"]
    #[doc = "parameters are writable from outside and also sometimes modified by the"]
    #[doc = "component itself as well."]
    #[doc = "'data_addr' is the address where the value of the parameter is to be"]
    #[doc = "stored.  'data_addr' must point to memory allocated by hal_malloc()."]
    #[doc = "Typically the component allocates space for a data structure with"]
    #[doc = "hal_malloc(), and 'data_addr' is the address of a member of that"]
    #[doc = "structure.  Creating the parameter does not initialize or modify the"]
    #[doc = "value at *data_addr - the component should load a reasonable default"]
    #[doc = "value."]
    #[doc = "'comp_id' is the ID of the component that will 'own' the parameter."]
    #[doc = "Normally it should be the ID of the caller, but in some cases, a"]
    #[doc = "user mode component may be doing setup for a realtime component, so"]
    #[doc = "the ID should be that of the realtime component that will actually"]
    #[doc = "be using the parameter."]
    #[doc = "If successful, the hal_param_xxx_new() functions return 0."]
    #[doc = "On failure they return a negative error code."]
    pub fn hal_param_bit_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_param_dir_t,
        data_addr: *mut hal_bit_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_float_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_param_dir_t,
        data_addr: *mut real_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_u32_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_param_dir_t,
        data_addr: *mut hal_u32_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_s32_new(
        name: *const ::std::os::raw::c_char,
        dir: hal_param_dir_t,
        data_addr: *mut hal_s32_t,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " printf_style-style versions of hal_param_XXX_new"]
    pub fn hal_param_bit_newf(
        dir: hal_param_dir_t,
        data_addr: *mut hal_bit_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_float_newf(
        dir: hal_param_dir_t,
        data_addr: *mut real_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_u32_newf(
        dir: hal_param_dir_t,
        data_addr: *mut hal_u32_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_s32_newf(
        dir: hal_param_dir_t,
        data_addr: *mut hal_s32_t,
        comp_id: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_param_new()' creates a new 'parameter' object.  It is a generic"]
    #[doc = "version of the eight functions above.  It is provided ONLY for those"]
    #[doc = "special cases where a generic function is needed.  It is STRONGLY"]
    #[doc = "recommended that the functions above be used instead, because they"]
    #[doc = "check the type of 'data_addr' against the parameter type at compile"]
    #[doc = "time.  Using this function requires a cast of the 'data_addr' argument"]
    #[doc = "that defeats type checking and can cause subtle bugs."]
    #[doc = "'name', 'data_addr' and 'comp_id' are the same as in the"]
    #[doc = "functions above."]
    #[doc = "'type' is the hal type of the new parameter - the type of data"]
    #[doc = "that will be stored in the parameter."]
    #[doc = "'dir' is the parameter direction.  HAL_RO parameters are read only from"]
    #[doc = "outside, and are written to by the component itself, typically to provide a"]
    #[doc = "view \"into\" the component for testing or troubleshooting.  HAL_RW"]
    #[doc = "parameters are writable from outside and also sometimes modified by the"]
    #[doc = "component itself as well."]
    #[doc = "If successful, hal_param_new() returns 0.  On failure"]
    #[doc = "it returns a negative error code."]
    pub fn hal_param_new(
        name: *const ::std::os::raw::c_char,
        type_: hal_type_t,
        dir: hal_param_dir_t,
        data_addr: *mut ::std::os::raw::c_void,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " The 'hal_param_xxx_set()' functions modify the value of a parameter."]
    #[doc = "'name' is the name of the parameter that is to be set.  The"]
    #[doc = "parameter type must match the function type, and the parameter"]
    #[doc = "must not be read-only."]
    #[doc = "'value' is the value to be loaded into the parameter."]
    #[doc = "On success, the hal_param_xxx_set() functions return 0,"]
    #[doc = "and on failure they return a negative error code."]
    pub fn hal_param_bit_set(
        name: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_float_set(
        name: *const ::std::os::raw::c_char,
        value: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_u32_set(
        name: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_param_s32_set(
        name: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_param_alias()' assigns an alternate name, aka an alias, to"]
    #[doc = "a parameter.  Once assigned, the parameter can be referred to by"]
    #[doc = "either its original name or the alias.  Calling this function"]
    #[doc = "with 'alias' set to NULL will remove any existing alias."]
    pub fn hal_param_alias(
        pin_name: *const ::std::os::raw::c_char,
        alias: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_param_set()' is a generic function that sets the value of a"]
    #[doc = "parameter.  It is provided ONLY for those special cases where a"]
    #[doc = "generic function is needed.  It is STRONGLY recommended that the"]
    #[doc = "functions above be used instead, because they are simpler and less"]
    #[doc = "prone to errors."]
    #[doc = "'name', is the same as in the functions above."]
    #[doc = "'type' is the hal type of the the data at *value_addr, and must"]
    #[doc = "match the type of the parameter.  The parameter must not be"]
    #[doc = "read only."]
    #[doc = "'value_addr' is a pointer to the new value of the parameter."]
    #[doc = "The data at that location will be interpreted according to the"]
    #[doc = "type of the parameter."]
    #[doc = "If successful, hal_param_set() returns 0.  On failure"]
    #[doc = "it returns a negative error code."]
    pub fn hal_param_set(
        name: *const ::std::os::raw::c_char,
        type_: hal_type_t,
        value_addr: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_get_pin_value_by_name()' gets the value of any arbitrary HAL pin by"]
    #[doc = " pin name."]
    #[doc = ""]
    #[doc = " The 'type' and 'data' args are pointers to the returned values.  The function"]
    #[doc = " returns 0 if successful, or -1 on error.  If 'connected' is non-NULL, its"]
    #[doc = " value will be true if a signal is connected."]
    pub fn hal_get_pin_value_by_name(
        name: *const ::std::os::raw::c_char,
        type_: *mut hal_type_t,
        data: *mut *mut hal_data_u,
        connected: *mut bool,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_get_signal_value_by_name()' returns the value of any arbitrary HAL"]
    #[doc = " signal by signal name."]
    #[doc = ""]
    #[doc = " The 'type' and 'data' args are pointers to the returned values.  The function"]
    #[doc = " returns 0 if successful, or -1 on error.  If 'has_writers' is non-NULL, its"]
    #[doc = " value will be true if the signal has writers."]
    pub fn hal_get_signal_value_by_name(
        name: *const ::std::os::raw::c_char,
        type_: *mut hal_type_t,
        data: *mut *mut hal_data_u,
        has_writers: *mut bool,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " 'hal_get_param_value_by_name()' returns the value of any arbitrary HAL"]
    #[doc = " parameter by parameter name."]
    #[doc = ""]
    #[doc = " The 'type' and 'data' args are pointers to the returned values.  The function"]
    #[doc = " returns 0 if successful, or -1 on error."]
    pub fn hal_get_param_value_by_name(
        name: *const ::std::os::raw::c_char,
        type_: *mut hal_type_t,
        data: *mut *mut hal_data_u,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_export_funct() makes a realtime function provided by a"]
    #[doc = "component available to the system.  A subsequent call to"]
    #[doc = "hal_add_funct_to_thread() can be used to schedule the"]
    #[doc = "execution of the function as needed by the system."]
    #[doc = "'name' is the name of the new function.  It must be no longer"]
    #[doc = "than HAL_NAME_LEN.  This is the name as it would appear in an ini"]
    #[doc = "file, which does not need to be the same as the C function name."]
    #[doc = "'funct' is a pointer to the function code.  'funct' must be"]
    #[doc = "the address of a function that accepts a void pointer and"]
    #[doc = "a long int.  The pointer will be set to the value 'arg' below,"]
    #[doc = "and the long will be set to the thread period in nanoseconds."]
    #[doc = "'arg' is a void pointer that will be passed to the function"]
    #[doc = "each time it is called.  This is useful when one actual"]
    #[doc = "C function will be exported several times with different HAL"]
    #[doc = "names, perhaps to deal with multiple instances of a hardware"]
    #[doc = "device."]
    #[doc = "'uses_fp' should be non-zero if the function uses floating"]
    #[doc = "point.  When in doubt, make it non-zero.  If you are sure"]
    #[doc = "that the function doesn't use the FPU, then set 'uses_fp'"]
    #[doc = "to zero."]
    #[doc = "'reentrant' should be zero unless the function (and any"]
    #[doc = "hardware it accesses) is completely reentrant.  If reentrant"]
    #[doc = "is non-zero, the function may be prempted and called again"]
    #[doc = "before the first call completes."]
    #[doc = "'comp_id' is the ID of the calling component, as returned by"]
    #[doc = "a call to hal_init()."]
    #[doc = "On success, hal_export_funct() returns 0, on failure"]
    #[doc = "it returns a negative error code."]
    #[doc = "Call only from realtime init code, not from user space or"]
    #[doc = "realtime code."]
    pub fn hal_export_funct(
        name: *const ::std::os::raw::c_char,
        funct: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_long),
        >,
        arg: *mut ::std::os::raw::c_void,
        uses_fp: ::std::os::raw::c_int,
        reentrant: ::std::os::raw::c_int,
        comp_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_create_thread() establishes a realtime thread that will"]
    #[doc = "execute one or more HAL functions periodically."]
    #[doc = "'name' is the name of the thread, which must be unique in"]
    #[doc = "the system.  It must be no longer than HAL_NAME_LEN."]
    #[doc = "'period_nsec' is the desired period of the thread, in nano-"]
    #[doc = "seconds.  All threads must run at an integer multiple of the"]
    #[doc = "fastest thread, and the fastest thread must be created first."]
    #[doc = "In general, threads should be created in order, from the"]
    #[doc = "fastest to the slowest.  HAL assigns decreasing priorities to"]
    #[doc = "threads that are created later, so creating them from fastest"]
    #[doc = "to slowest results in rate monotonic priority scheduling,"]
    #[doc = "usually a good thing."]
    #[doc = "'uses_fp' should be non-zero if the thread will call any"]
    #[doc = "functions that use floating point.  In general, it should"]
    #[doc = "be non-zero for most threads, with the possible exception"]
    #[doc = "of the very fastest, most critical thread in a system."]
    #[doc = "On success, hal_create_thread() returns a positive integer"]
    #[doc = "thread ID.  On failure, returns an error code as defined"]
    #[doc = "above.  Call only from realtime init code, not from user"]
    #[doc = "space or realtime code."]
    pub fn hal_create_thread(
        name: *const ::std::os::raw::c_char,
        period_nsec: ::std::os::raw::c_ulong,
        uses_fp: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_thread_delete() deletes a realtime thread."]
    #[doc = "'name' is the name of the thread, which must have been created"]
    #[doc = "by 'hal_create_thread()'."]
    #[doc = "On success, hal_thread_delete() returns 0, on"]
    #[doc = "failure it returns a negative error code."]
    #[doc = "Call only from realtime init code, not from user"]
    #[doc = "space or realtime code."]
    pub fn hal_thread_delete(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_add_funct_to_thread() adds a function exported by a"]
    #[doc = "realtime HAL component to a realtime thread.  This determines"]
    #[doc = "how often and in what order functions are executed."]
    #[doc = "'funct_name' is the name of the function, as specified in"]
    #[doc = "a call to hal_export_funct()."]
    #[doc = "'thread_name' is the name of the thread to which the function"]
    #[doc = "should be added.  When the thread runs, the functions will"]
    #[doc = "be executed in the order in which they were added to the"]
    #[doc = "thread."]
    #[doc = "'position' is the desired location within the thread. This"]
    #[doc = "determines when the function will run, in relation to other"]
    #[doc = "functions in the thread.  A positive number indicates the"]
    #[doc = "desired location as measured from the beginning of the thread,"]
    #[doc = "and a negative is measured from the end.  So +1 means this"]
    #[doc = "function will become the first one to run, +5 means it will"]
    #[doc = "be the fifth one to run, -2 means it will be next to last,"]
    #[doc = "and -1 means it will be last.  Zero is illegal."]
    #[doc = "Returns 0, or a negative error code.    Call"]
    #[doc = "only from within user space or init code, not from"]
    #[doc = "realtime code."]
    pub fn hal_add_funct_to_thread(
        funct_name: *const ::std::os::raw::c_char,
        thread_name: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_del_funct_from_thread() removes a function from a thread."]
    #[doc = "'funct_name' is the name of the function, as specified in"]
    #[doc = "a call to hal_export_funct()."]
    #[doc = "'thread_name' is the name of a thread which currently calls"]
    #[doc = "the function."]
    #[doc = "Returns 0, or a negative error code.    Call"]
    #[doc = "only from within user space or init code, not from"]
    #[doc = "realtime code."]
    pub fn hal_del_funct_from_thread(
        funct_name: *const ::std::os::raw::c_char,
        thread_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_start_threads() starts all threads that have been created."]
    #[doc = "This is the point at which realtime functions start being called."]
    #[doc = "On success it returns 0, on failure a negative"]
    #[doc = "error code."]
    pub fn hal_start_threads() -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_stop_threads() stops all threads that were previously"]
    #[doc = "started by hal_start_threads().  It should be called before"]
    #[doc = "any component that is part of a system exits."]
    #[doc = "On success it returns 0, on failure a negative"]
    #[doc = "error code."]
    pub fn hal_stop_threads() -> ::std::os::raw::c_int;
}
#[doc = " HAL 'constructor' typedef"]
#[doc = "If it is not NULL, this points to a function which can construct a new"]
#[doc = "instance of its component.  Return value is >=0 for success,"]
#[doc = "<0 for error."]
pub type constructor = ::std::option::Option<
    unsafe extern "C" fn(
        prefix: *mut ::std::os::raw::c_char,
        arg: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " hal_set_constructor() sets the constructor function for this component"]
    pub fn hal_set_constructor(
        comp_id: ::std::os::raw::c_int,
        make: constructor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " hal_port_read reads count bytes from the port into dest."]
    #[doc = "This function should only be called by the component that owns"]
    #[doc = "the IN PORT pin."]
    #[doc = "returns"]
    #[doc = "true: count bytes were read into dest"]
    #[doc = "false: no bytes were read into dest"]
    pub fn hal_port_read(
        port: hal_port_t,
        dest: *mut ::std::os::raw::c_char,
        count: ::std::os::raw::c_uint,
    ) -> bool;
}
extern "C" {
    #[doc = " hal_port_peek operates the same as hal_port_read but no bytes are consumed"]
    #[doc = "from the input port. Repeated calls to hal_port_peek will return the same data."]
    #[doc = "This function should only be called by the component that owns the IN PORT pin."]
    #[doc = "returns"]
    #[doc = "true: count bytes were read into dest"]
    #[doc = "false: no bytes were read into dest"]
    pub fn hal_port_peek(
        port: hal_port_t,
        dest: *mut ::std::os::raw::c_char,
        count: ::std::os::raw::c_uint,
    ) -> bool;
}
extern "C" {
    #[doc = " hal_port_peek_commit advances the read position in the port buffer"]
    #[doc = "by count bytes. A hal_port_peek followed by a hal_port_peek_commit"]
    #[doc = "with the same count value would function equivalently to"]
    #[doc = "hal_port_read given the same count value. This function should only"]
    #[doc = "be called by the component that owns the IN PORT pin."]
    #[doc = "returns:"]
    #[doc = "true: count readable bytes were skipped and are no longer accessible"]
    #[doc = "false: no bytes wer skipped"]
    pub fn hal_port_peek_commit(port: hal_port_t, count: ::std::os::raw::c_uint) -> bool;
}
extern "C" {
    #[doc = " hal_port_write writes count bytes from src into the port."]
    #[doc = "This function should only be called by the component that owns"]
    #[doc = "the OUT PORT pin."]
    #[doc = "returns:"]
    #[doc = "true: count bytes were written"]
    #[doc = "false: no bytes were written into dest"]
    pub fn hal_port_write(
        port: hal_port_t,
        src: *const ::std::os::raw::c_char,
        count: ::std::os::raw::c_uint,
    ) -> bool;
}
extern "C" {
    #[doc = " hal_port_readable returns the number of bytes available"]
    #[doc = "for reading from the port."]
    pub fn hal_port_readable(port: hal_port_t) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " hal_port_writable returns the number of bytes that"]
    #[doc = "can be written into the port"]
    pub fn hal_port_writable(port: hal_port_t) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " hal_port_buffer_size returns the total number of bytes"]
    #[doc = "that a port can buffer"]
    pub fn hal_port_buffer_size(port: hal_port_t) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " hal_port_clear emptys a given port of all data"]
    #[doc = "without consuming any of it."]
    #[doc = "hal_port_clear should only be called by a reader"]
    pub fn hal_port_clear(port: hal_port_t);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union hal_stream_data {
    pub f: real_t,
    pub b: bool,
    pub s: i32,
    pub u: u32,
}
#[test]
fn bindgen_test_layout_hal_stream_data() {
    const UNINIT: ::std::mem::MaybeUninit<hal_stream_data> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<hal_stream_data>(),
        8usize,
        concat!("Size of: ", stringify!(hal_stream_data))
    );
    assert_eq!(
        ::std::mem::align_of::<hal_stream_data>(),
        8usize,
        concat!("Alignment of ", stringify!(hal_stream_data))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_data),
            "::",
            stringify!(f)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_data),
            "::",
            stringify!(b)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_data),
            "::",
            stringify!(s)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_data),
            "::",
            stringify!(u)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hal_stream_t {
    pub comp_id: ::std::os::raw::c_int,
    pub shmem_id: ::std::os::raw::c_int,
    pub fifo: *mut hal_stream_shm,
}
#[test]
fn bindgen_test_layout_hal_stream_t() {
    const UNINIT: ::std::mem::MaybeUninit<hal_stream_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<hal_stream_t>(),
        16usize,
        concat!("Size of: ", stringify!(hal_stream_t))
    );
    assert_eq!(
        ::std::mem::align_of::<hal_stream_t>(),
        8usize,
        concat!("Alignment of ", stringify!(hal_stream_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).comp_id) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_t),
            "::",
            stringify!(comp_id)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).shmem_id) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_t),
            "::",
            stringify!(shmem_id)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).fifo) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(hal_stream_t),
            "::",
            stringify!(fifo)
        )
    );
}
extern "C" {
    #[doc = " create and attach a stream"]
    pub fn hal_stream_create(
        stream: *mut hal_stream_t,
        comp: ::std::os::raw::c_int,
        key: ::std::os::raw::c_int,
        depth: ::std::os::raw::c_int,
        typestring: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " detach and destroy an open stream"]
    pub fn hal_stream_destroy(stream: *mut hal_stream_t);
}
extern "C" {
    #[doc = " attach to an existing stream"]
    pub fn hal_stream_attach(
        stream: *mut hal_stream_t,
        comp: ::std::os::raw::c_int,
        key: ::std::os::raw::c_int,
        typestring: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " detach from an open stream"]
    pub fn hal_stream_detach(stream: *mut hal_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " stream introspection"]
    pub fn hal_stream_element_count(stream: *mut hal_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_element_type(
        stream: *mut hal_stream_t,
        idx: ::std::os::raw::c_int,
    ) -> hal_type_t;
}
extern "C" {
    pub fn hal_stream_read(
        stream: *mut hal_stream_t,
        buf: *mut hal_stream_data,
        sampleno: *mut ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_readable(stream: *mut hal_stream_t) -> bool;
}
extern "C" {
    pub fn hal_stream_depth(stream: *mut hal_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_maxdepth(stream: *mut hal_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_num_underruns(stream: *mut hal_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_num_overruns(stream: *mut hal_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_write(
        stream: *mut hal_stream_t,
        buf: *mut hal_stream_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn hal_stream_writable(stream: *mut hal_stream_t) -> bool;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __spawn_action {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hal_stream_shm {
    pub _address: u8,
}