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
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
|
* Copyright (c) 2015 IETF Trust and the persons identified
* as authors of the code. All rights reserved.
*
* Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that the
* following conditions are met:
*
* - Redistributions of source code must retain the above
* copyright notice, this list of conditions and the
* following disclaimer.
*
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the
* following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* - Neither the name of Internet Society, IETF or IETF
* Trust, nor the names of specific contributors, may be
* used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
* AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NFS VERSION 4 XDR DESCRIPTION
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1993, by Sun Microsystems, Inc.
*/
#ifndef _RPCSVC_BOOTPARAM_H
#define _RPCSVC_BOOTPARAM_H
#include <rpcsvc/bootparam_prot.h>
#endif /* _RPCSVC_BOOTPARAM_H */
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _BOOTPARAM_PROT_H_RPCGEN
#define _BOOTPARAM_PROT_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* from bootparam_prot.x */
#define MAX_MACHINE_NAME 255
#define MAX_PATH_LEN 1024
#define MAX_FILEID 32
#define IP_ADDR_TYPE 1
typedef char *bp_machine_name_t;
typedef char *bp_path_t;
typedef char *bp_fileid_t;
struct ip_addr_t {
char net;
char host;
char lh;
char impno;
};
typedef struct ip_addr_t ip_addr_t;
struct bp_address {
int address_type;
union {
ip_addr_t ip_addr;
} bp_address_u;
};
typedef struct bp_address bp_address;
struct bp_whoami_arg {
bp_address client_address;
};
typedef struct bp_whoami_arg bp_whoami_arg;
struct bp_whoami_res {
bp_machine_name_t client_name;
bp_machine_name_t domain_name;
bp_address router_address;
};
typedef struct bp_whoami_res bp_whoami_res;
struct bp_getfile_arg {
bp_machine_name_t client_name;
bp_fileid_t file_id;
};
typedef struct bp_getfile_arg bp_getfile_arg;
struct bp_getfile_res {
bp_machine_name_t server_name;
bp_address server_address;
bp_path_t server_path;
};
typedef struct bp_getfile_res bp_getfile_res;
#define BOOTPARAMPROG 100026
#define BOOTPARAMVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define BOOTPARAMPROC_WHOAMI 1
extern bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *);
extern bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *);
#define BOOTPARAMPROC_GETFILE 2
extern bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *);
extern bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *);
extern int bootparamprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define BOOTPARAMPROC_WHOAMI 1
extern bp_whoami_res * bootparamproc_whoami_1();
extern bp_whoami_res * bootparamproc_whoami_1_svc();
#define BOOTPARAMPROC_GETFILE 2
extern bp_getfile_res * bootparamproc_getfile_1();
extern bp_getfile_res * bootparamproc_getfile_1_svc();
extern int bootparamprog_1_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_bp_machine_name_t(XDR *, bp_machine_name_t*);
extern bool_t xdr_bp_path_t(XDR *, bp_path_t*);
extern bool_t xdr_bp_fileid_t(XDR *, bp_fileid_t*);
extern bool_t xdr_ip_addr_t(XDR *, ip_addr_t*);
extern bool_t xdr_bp_address(XDR *, bp_address*);
extern bool_t xdr_bp_whoami_arg(XDR *, bp_whoami_arg*);
extern bool_t xdr_bp_whoami_res(XDR *, bp_whoami_res*);
extern bool_t xdr_bp_getfile_arg(XDR *, bp_getfile_arg*);
extern bool_t xdr_bp_getfile_res(XDR *, bp_getfile_res*);
#else /* K&R C */
extern bool_t xdr_bp_machine_name_t();
extern bool_t xdr_bp_path_t();
extern bool_t xdr_bp_fileid_t();
extern bool_t xdr_ip_addr_t();
extern bool_t xdr_bp_address();
extern bool_t xdr_bp_whoami_arg();
extern bool_t xdr_bp_whoami_res();
extern bool_t xdr_bp_getfile_arg();
extern bool_t xdr_bp_getfile_res();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_BOOTPARAM_PROT_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
%/*
% * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
% * Use is subject to license terms.
% */
%/* from bootparam_prot.x */
/*
* RPC for bootparms service.
* There are two procedures:
* WHOAMI takes a net address and returns a client name and also a
* likely net address for routing
* GETFILE takes a client name and file identifier and returns the
* server name, server net address and pathname for the file.
* file identifiers typically include root, swap, pub and dump
*/
const MAX_MACHINE_NAME = 255;
const MAX_PATH_LEN = 1024;
const MAX_FILEID = 32;
const IP_ADDR_TYPE = 1;
typedef string bp_machine_name_t<MAX_MACHINE_NAME>;
typedef string bp_path_t<MAX_PATH_LEN>;
typedef string bp_fileid_t<MAX_FILEID>;
struct ip_addr_t {
char net;
char host;
char lh;
char impno;
};
union bp_address switch (int address_type) {
case IP_ADDR_TYPE:
ip_addr_t ip_addr;
};
struct bp_whoami_arg {
bp_address client_address;
};
struct bp_whoami_res {
bp_machine_name_t client_name;
bp_machine_name_t domain_name;
bp_address router_address;
};
struct bp_getfile_arg {
bp_machine_name_t client_name;
bp_fileid_t file_id;
};
struct bp_getfile_res {
bp_machine_name_t server_name;
bp_address server_address;
bp_path_t server_path;
};
program BOOTPARAMPROG {
version BOOTPARAMVERS {
bp_whoami_res BOOTPARAMPROC_WHOAMI(bp_whoami_arg) = 1;
bp_getfile_res BOOTPARAMPROC_GETFILE(bp_getfile_arg) = 2;
} = 1;
} = 100026;
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DAEMON_UTILS_H
#define _DAEMON_UTILS_H
#include <sys/stat.h>
#ifdef __cplusplus
extern "C" {
#endif
#define AUTOMOUNTD "svc:/system/filesystem/autofs:default"
#define LOCKD "svc:/network/nfs/nlockmgr:default"
#define STATD "svc:/network/nfs/status:default"
#define NFSD "svc:/network/nfs/server:default"
#define MOUNTD "svc:/network/nfs/mountd:default"
#define NFS4CBD "svc:/network/nfs/cbd:default"
#define NFSMAPID "svc:/network/nfs/mapid:default"
#define RQUOTAD "svc:/network/nfs/rquota:default"
#define REPARSED "svc:/system/filesystem/reparse:default"
#define DAEMON_UID 1
#define DAEMON_GID 12
#define DAEMON_DIR "/var/run/daemon"
#define DAEMON_DIR_MODE (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
extern void _check_services(char **);
extern int _check_daemon_lock(const char *);
extern int _create_daemon_lock(const char *, uid_t, gid_t);
extern pid_t _enter_daemon_lock(const char *);
#ifdef __cplusplus
}
#endif
#endif /* _DAEMON_UTILS_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014, 2016 PALO, Richard.
*
* Copyright 1989 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
* under license from the Regents of the University of California.
*/
#ifndef _RPCSVC_DBM_H
#define _RPCSVC_DBM_H
#include <sys/isa_defs.h>
#include <sys/null.h>
#ifdef __cplusplus
extern "C" {
#endif
#define PBLKSIZ 1024
#define DBLKSIZ 4096
#define BYTESIZ 8
long bitno;
long maxbno;
long blkno;
long hmask;
char pagbuf[PBLKSIZ];
char dirbuf[DBLKSIZ];
int dirf;
int pagf;
int dbrdonly;
typedef struct
{
char *dptr;
int dsize;
} datum;
datum fetch(datum);
datum makdatum(char *, int);
datum firstkey(void);
datum nextkey(datum);
datum firsthash(long);
long calchash(datum);
long hashinc(long);
#ifdef __cplusplus
}
#endif
#endif /* _RPCSVC_DBM_H */
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _MOUNT_H_RPCGEN
#define _MOUNT_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#define MNTPATHLEN 1024
#define MNTNAMLEN 255
#define FHSIZE 32
#define FHSIZE3 64
typedef char fhandle[FHSIZE];
typedef struct {
u_int fhandle3_len;
char *fhandle3_val;
} fhandle3;
struct fhstatus {
u_int fhs_status;
union {
fhandle fhs_fhandle;
} fhstatus_u;
};
typedef struct fhstatus fhstatus;
#define fhs_fh fhstatus_u.fhs_fhandle
enum mountstat3 {
MNT_OK = 0,
MNT3ERR_PERM = 1,
MNT3ERR_NOENT = 2,
MNT3ERR_IO = 5,
MNT3ERR_ACCES = 13,
MNT3ERR_NOTDIR = 20,
MNT3ERR_INVAL = 22,
MNT3ERR_NAMETOOLONG = 63,
MNT3ERR_NOTSUPP = 10004,
MNT3ERR_SERVERFAULT = 10006
};
typedef enum mountstat3 mountstat3;
struct mountres3_ok {
fhandle3 fhandle;
struct {
u_int auth_flavors_len;
int *auth_flavors_val;
} auth_flavors;
};
typedef struct mountres3_ok mountres3_ok;
struct mountres3 {
mountstat3 fhs_status;
union {
mountres3_ok mountinfo;
} mountres3_u;
};
typedef struct mountres3 mountres3;
typedef char *dirpath;
typedef char *name;
typedef struct mountbody *mountlist;
struct mountbody {
name ml_hostname;
dirpath ml_directory;
mountlist ml_next;
};
typedef struct mountbody mountbody;
typedef struct groupnode *groups;
struct groupnode {
name gr_name;
groups gr_next;
};
typedef struct groupnode groupnode;
typedef struct exportnode *exports;
struct exportnode {
dirpath ex_dir;
groups ex_groups;
exports ex_next;
};
typedef struct exportnode exportnode;
struct ppathcnf {
int pc_link_max;
short pc_max_canon;
short pc_max_input;
short pc_name_max;
short pc_path_max;
short pc_pipe_buf;
u_char pc_vdisable;
char pc_xxx;
short pc_mask[2];
};
typedef struct ppathcnf ppathcnf;
#define MOUNTPROG 100005
#define MOUNTVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define MOUNTPROC_NULL 0
extern void * mountproc_null_1(void *, CLIENT *);
extern void * mountproc_null_1_svc(void *, struct svc_req *);
#define MOUNTPROC_MNT 1
extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
#define MOUNTPROC_DUMP 2
extern mountlist * mountproc_dump_1(void *, CLIENT *);
extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
#define MOUNTPROC_UMNT 3
extern void * mountproc_umnt_1(dirpath *, CLIENT *);
extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
#define MOUNTPROC_UMNTALL 4
extern void * mountproc_umntall_1(void *, CLIENT *);
extern void * mountproc_umntall_1_svc(void *, struct svc_req *);
#define MOUNTPROC_EXPORT 5
extern exports * mountproc_export_1(void *, CLIENT *);
extern exports * mountproc_export_1_svc(void *, struct svc_req *);
#define MOUNTPROC_EXPORTALL 6
extern exports * mountproc_exportall_1(void *, CLIENT *);
extern exports * mountproc_exportall_1_svc(void *, struct svc_req *);
extern int mountprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define MOUNTPROC_NULL 0
extern void * mountproc_null_1();
extern void * mountproc_null_1_svc();
#define MOUNTPROC_MNT 1
extern fhstatus * mountproc_mnt_1();
extern fhstatus * mountproc_mnt_1_svc();
#define MOUNTPROC_DUMP 2
extern mountlist * mountproc_dump_1();
extern mountlist * mountproc_dump_1_svc();
#define MOUNTPROC_UMNT 3
extern void * mountproc_umnt_1();
extern void * mountproc_umnt_1_svc();
#define MOUNTPROC_UMNTALL 4
extern void * mountproc_umntall_1();
extern void * mountproc_umntall_1_svc();
#define MOUNTPROC_EXPORT 5
extern exports * mountproc_export_1();
extern exports * mountproc_export_1_svc();
#define MOUNTPROC_EXPORTALL 6
extern exports * mountproc_exportall_1();
extern exports * mountproc_exportall_1_svc();
extern int mountprog_1_freeresult();
#endif /* K&R C */
#define MOUNTVERS_POSIX 2
#if defined(__STDC__) || defined(__cplusplus)
extern void * mountproc_null_2(void *, CLIENT *);
extern void * mountproc_null_2_svc(void *, struct svc_req *);
extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
extern mountlist * mountproc_dump_2(void *, CLIENT *);
extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
extern void * mountproc_umnt_2(dirpath *, CLIENT *);
extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
extern void * mountproc_umntall_2(void *, CLIENT *);
extern void * mountproc_umntall_2_svc(void *, struct svc_req *);
extern exports * mountproc_export_2(void *, CLIENT *);
extern exports * mountproc_export_2_svc(void *, struct svc_req *);
extern exports * mountproc_exportall_2(void *, CLIENT *);
extern exports * mountproc_exportall_2_svc(void *, struct svc_req *);
#define MOUNTPROC_PATHCONF 7
extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
extern int mountprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
extern void * mountproc_null_2();
extern void * mountproc_null_2_svc();
extern fhstatus * mountproc_mnt_2();
extern fhstatus * mountproc_mnt_2_svc();
extern mountlist * mountproc_dump_2();
extern mountlist * mountproc_dump_2_svc();
extern void * mountproc_umnt_2();
extern void * mountproc_umnt_2_svc();
extern void * mountproc_umntall_2();
extern void * mountproc_umntall_2_svc();
extern exports * mountproc_export_2();
extern exports * mountproc_export_2_svc();
extern exports * mountproc_exportall_2();
extern exports * mountproc_exportall_2_svc();
#define MOUNTPROC_PATHCONF 7
extern ppathcnf * mountproc_pathconf_2();
extern ppathcnf * mountproc_pathconf_2_svc();
extern int mountprog_2_freeresult();
#endif /* K&R C */
#define MOUNTVERS3 3
#if defined(__STDC__) || defined(__cplusplus)
extern void * mountproc_null_3(void *, CLIENT *);
extern void * mountproc_null_3_svc(void *, struct svc_req *);
extern mountres3 * mountproc_mnt_3(dirpath *, CLIENT *);
extern mountres3 * mountproc_mnt_3_svc(dirpath *, struct svc_req *);
extern mountlist * mountproc_dump_3(void *, CLIENT *);
extern mountlist * mountproc_dump_3_svc(void *, struct svc_req *);
extern void * mountproc_umnt_3(dirpath *, CLIENT *);
extern void * mountproc_umnt_3_svc(dirpath *, struct svc_req *);
extern void * mountproc_umntall_3(void *, CLIENT *);
extern void * mountproc_umntall_3_svc(void *, struct svc_req *);
extern exports * mountproc_export_3(void *, CLIENT *);
extern exports * mountproc_export_3_svc(void *, struct svc_req *);
extern int mountprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
extern void * mountproc_null_3();
extern void * mountproc_null_3_svc();
extern mountres3 * mountproc_mnt_3();
extern mountres3 * mountproc_mnt_3_svc();
extern mountlist * mountproc_dump_3();
extern mountlist * mountproc_dump_3_svc();
extern void * mountproc_umnt_3();
extern void * mountproc_umnt_3_svc();
extern void * mountproc_umntall_3();
extern void * mountproc_umntall_3_svc();
extern exports * mountproc_export_3();
extern exports * mountproc_export_3_svc();
extern int mountprog_3_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_fhandle(XDR *, fhandle);
extern bool_t xdr_fhandle3(XDR *, fhandle3*);
extern bool_t xdr_fhstatus(XDR *, fhstatus*);
extern bool_t xdr_mountstat3(XDR *, mountstat3*);
extern bool_t xdr_mountres3_ok(XDR *, mountres3_ok*);
extern bool_t xdr_mountres3(XDR *, mountres3*);
extern bool_t xdr_dirpath(XDR *, dirpath*);
extern bool_t xdr_name(XDR *, name*);
extern bool_t xdr_mountlist(XDR *, mountlist*);
extern bool_t xdr_mountbody(XDR *, mountbody*);
extern bool_t xdr_groups(XDR *, groups*);
extern bool_t xdr_groupnode(XDR *, groupnode*);
extern bool_t xdr_exports(XDR *, exports*);
extern bool_t xdr_exportnode(XDR *, exportnode*);
extern bool_t xdr_ppathcnf(XDR *, ppathcnf*);
#else /* K&R C */
extern bool_t xdr_fhandle();
extern bool_t xdr_fhandle3();
extern bool_t xdr_fhstatus();
extern bool_t xdr_mountstat3();
extern bool_t xdr_mountres3_ok();
extern bool_t xdr_mountres3();
extern bool_t xdr_dirpath();
extern bool_t xdr_name();
extern bool_t xdr_mountlist();
extern bool_t xdr_mountbody();
extern bool_t xdr_groups();
extern bool_t xdr_groupnode();
extern bool_t xdr_exports();
extern bool_t xdr_exportnode();
extern bool_t xdr_ppathcnf();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_MOUNT_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1988,1990-1992,1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
/*
* Protocol description for the mount program
*/
const MNTPATHLEN = 1024; /* maximum bytes in a pathname argument */
const MNTNAMLEN = 255; /* maximum bytes in a name argument */
const FHSIZE = 32; /* size in bytes of a v2 file handle */
const FHSIZE3 = 64; /* " " " " " v3 " " */
/*
* The fhandle is the file handle that the server passes to the client.
* All file operations are done using the file handles to refer to a file
* or a directory. The file handle can contain whatever information the
* server needs to distinguish an individual file.
*
* Versions 1 and 2 of the protocol share a filehandle of 32 bytes.
*
* Version 3 supports a 64 byte filehandle that can be used only
* with version 3 of the NFS protocol.
*/
typedef opaque fhandle[FHSIZE];
typedef opaque fhandle3<FHSIZE3>;
/*
* If a V2 status of zero is returned, the call completed successfully, and
* a file handle for the directory follows. A non-zero status indicates
* some sort of error. The status corresponds with UNIX error numbers.
*/
union fhstatus switch (unsigned fhs_status) {
case 0:
fhandle fhs_fhandle;
default:
void;
};
/*
* This #define is added for backwards compatability with applications
* which reference the old style fhstatus. The second element of that
* structure was called fhs_fh, instead of the current fhs_fhandle.
*/
%
%#define fhs_fh fhstatus_u.fhs_fhandle
/*
* The following status codes are defined for the V3 mount service:
* Note that the precise enum encoding must be followed; the values
* are derived from existing implementation practice, and there is
* no good reason to disturb them.
*/
enum mountstat3 {
MNT_OK= 0, /* no error */
MNT3ERR_PERM=1, /* Not owner */
MNT3ERR_NOENT=2, /* No such file or directory */
MNT3ERR_IO=5, /* I/O error */
MNT3ERR_ACCES=13, /* Permission denied */
MNT3ERR_NOTDIR=20, /* Not a directory*/
MNT3ERR_INVAL=22, /* Invalid argument.*/
MNT3ERR_NAMETOOLONG=63, /* File name too long */
MNT3ERR_NOTSUPP=10004, /* operation not supported */
MNT3ERR_SERVERFAULT=10006 /* An i/o or similar failure caused */
/* the server to abandon the request */
/* No attributes can be returned. The */
/* client should translate this into EIO */
};
/*
* A V3 server returns a file handle and a list of the authentication
* flavors that the server will accept for this mount. If the list
* is empty, AUTH_UNIX is required. Otherwise, any of the flavors
* listed in auth_flavors<> may be used (but no others).
* The values of the authentication flavors are defined in the
* underlying RPC protocol.
*/
struct mountres3_ok {
fhandle3 fhandle;
int auth_flavors<>;
};
/*
* If a V3 status of MNT_OK is returned, the call completed successfully, and
* a file handle for the directory follows. Any other status indicates
* some sort of error.
*/
union mountres3 switch (mountstat3 fhs_status) {
case MNT_OK:
mountres3_ok mountinfo;
default:
void;
};
/*
* The type dirpath is the pathname of a directory
*/
typedef string dirpath<MNTPATHLEN>;
/*
* The type name is used for arbitrary names (hostnames, groupnames)
*/
typedef string name<MNTNAMLEN>;
/*
* A list of who has what mounted. This information is
* strictly advisory, since there is no mechanism to
* enforce the removal of stale information. The strongest
* assertion that can be made is that if a hostname:directory
* pair appears in the list, the server has exported the
* directory to that client at some point since the server
* export data base was (re)initialized. Note also that there
* is no limit on the length of the information returned
* in this structure, and this may cause problems if the
* mount service is accessed via a connectionless transport.
*
* The ifdef will ensure that these are only carried over to
* mount.h - no xdr routines will be generated. We want to
* do these by hand, to avoid the recursive stack-blowing ones
* that rpcgen will generate.
*/
#ifdef RPC_HDR
typedef struct mountbody *mountlist;
struct mountbody {
name ml_hostname;
dirpath ml_directory;
mountlist ml_next;
};
#endif /* RPC_HDR */
/*
* A list of netgroups
*/
typedef struct groupnode *groups;
struct groupnode {
name gr_name;
groups gr_next;
};
/*
* A list of what is exported and to whom
*/
typedef struct exportnode *exports;
struct exportnode {
dirpath ex_dir;
groups ex_groups;
exports ex_next;
};
/*
* POSIX pathconf information
*/
struct ppathcnf {
int pc_link_max; /* max links allowed */
short pc_max_canon; /* max line len for a tty */
short pc_max_input; /* input a tty can eat all at once */
short pc_name_max; /* max file name length (dir entry) */
short pc_path_max; /* max path name length (/x/y/x/.. ) */
short pc_pipe_buf; /* size of a pipe (bytes) */
u_char pc_vdisable; /* safe char to turn off c_cc[i] */
char pc_xxx; /* alignment padding; cc_t == char */
short pc_mask[2]; /* validity and boolean bits */
};
program MOUNTPROG {
/*
* Version one of the mount protocol communicates with version two
* of the NFS protocol. The only connecting point is the fhandle
* structure, which is the same for both protocols.
*/
version MOUNTVERS {
/*
* Does no work. It is made available in all RPC services
* to allow server reponse testing and timing
*/
void
MOUNTPROC_NULL(void) = 0;
/*
* If fhs_status is 0, then fhs_fhandle contains the
* file handle for the directory. This file handle may
* be used in the NFS protocol. This procedure also adds
* a new entry to the mount list for this client mounting
* the directory.
* Unix authentication required.
*/
fhstatus
MOUNTPROC_MNT(dirpath) = 1;
/*
* Returns the list of remotely mounted filesystems. The
* mountlist contains one entry for each hostname and
* directory pair.
*/
mountlist
MOUNTPROC_DUMP(void) = 2;
/*
* Removes the mount list entry for the directory
* Unix authentication required.
*/
void
MOUNTPROC_UMNT(dirpath) = 3;
/*
* Removes all of the mount list entries for this client
* Unix authentication required.
*/
void
MOUNTPROC_UMNTALL(void) = 4;
/*
* Returns a list of all the exported filesystems, and which
* machines are allowed to import it.
*/
exports
MOUNTPROC_EXPORT(void) = 5;
/*
* Identical to MOUNTPROC_EXPORT above
*/
exports
MOUNTPROC_EXPORTALL(void) = 6;
} = 1;
/*
* Version two of the mount protocol communicates with version two
* of the NFS protocol. It is identical to version one except for a
* new procedure call for posix.
*/
version MOUNTVERS_POSIX {
/*
* Does no work. It is made available in all RPC services
* to allow server reponse testing and timing
*/
void
MOUNTPROC_NULL(void) = 0;
/*
* If fhs_status is 0, then fhs_fhandle contains the
* file handle for the directory. This file handle may
* be used in the NFS protocol. This procedure also adds
* a new entry to the mount list for this client mounting
* the directory.
* Unix authentication required.
*/
fhstatus
MOUNTPROC_MNT(dirpath) = 1;
/*
* Returns the list of remotely mounted filesystems. The
* mountlist contains one entry for each hostname and
* directory pair.
*/
mountlist
MOUNTPROC_DUMP(void) = 2;
/*
* Removes the mount list entry for the directory
* Unix authentication required.
*/
void
MOUNTPROC_UMNT(dirpath) = 3;
/*
* Removes all of the mount list entries for this client
* Unix authentication required.
*/
void
MOUNTPROC_UMNTALL(void) = 4;
/*
* Returns a list of all the exported filesystems, and which
* machines are allowed to import it.
*/
exports
MOUNTPROC_EXPORT(void) = 5;
/*
* Identical to MOUNTPROC_EXPORT above
*/
exports
MOUNTPROC_EXPORTALL(void) = 6;
/*
* Posix info over the wire isn't supported in NFS version 2
* so we get it here at mount time.
*/
ppathcnf
MOUNTPROC_PATHCONF(dirpath) = 7;
} = 2;
/*
* Version 3 of the mount protocol communicates with version 3
* of the NFS protocol. The only connecting point is the nfs_fh3
* structure, which is the same for both protocols.
*
* The only significant change over version 2 is that MOUNTPROC_MNT
* returns a longer filehandle (64 bytes instead of 32) as well
* as authentication information. MOUNTPROC_PATHCONF is subsumed
* into V3 of the NFS protocol and MOUNTPROC_EXPORTALL is eliminated.
*/
version MOUNTVERS3 {
/*
* Does no work. It is made available in all RPC services
* to allow server reponse testing and timing
*/
void
MOUNTPROC_NULL(void) = 0;
/*
* Mount a file system.
*
* If mountres.fhs_status is NFS_OK, then mountres.mountinfo
* contains the file handle for the directory and
* a list of acceptable authentication flavors. This file
* handle may only be used in version 3 of the NFS protocol.
* This procedure also results in the server adding a new
* entry to its mount list recording that this client has
* mounted the directory. Unix authentication or better
* is required.
*/
mountres3
MOUNTPROC_MNT(dirpath) = 1;
/*
* Returns the list of remotely mounted filesystems. The
* mountlist contains one entry for each hostname and
* directory pair.
*/
mountlist
MOUNTPROC_DUMP(void) = 2;
/*
* Removes the mount list entry for the directory
* Unix authentication or better is required.
*/
void
MOUNTPROC_UMNT(dirpath) = 3;
/*
* Removes all of the mount list entries for this client
* Unix authentication or better is required.
*/
void
MOUNTPROC_UMNTALL(void) = 4;
/*
* Returns a list of all the exported filesystems, and which
* machines are allowed to import each one.
*/
exports
MOUNTPROC_EXPORT(void) = 5;
} = 3;
} = 100005;
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _NFS4_PROT_H_RPCGEN
#define _NFS4_PROT_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _AUTH_SYS_DEFINE_FOR_NFSv42
#define _AUTH_SYS_DEFINE_FOR_NFSv42
#include <rpc/auth_sys.h>
typedef struct authsys_parms authsys_parms;
#endif /* _AUTH_SYS_DEFINE_FOR_NFSv42 */
#define NFS4_FHSIZE 128
#define NFS4_VERIFIER_SIZE 8
#define NFS4_OTHER_SIZE 12
#define NFS4_OPAQUE_LIMIT 1024
#define NFS4_SESSIONID_SIZE 16
#define NFS4_INT64_MAX 0x7fffffffffffffff
#define NFS4_UINT64_MAX 0xffffffffffffffff
#define NFS4_INT32_MAX 0x7fffffff
#define NFS4_UINT32_MAX 0xffffffff
#define NFS4_MAXFILELEN 0xffffffffffffffff
#define NFS4_MAXFILEOFF 0xfffffffffffffffe
enum nfs_ftype4 {
NF4REG = 1,
NF4DIR = 2,
NF4BLK = 3,
NF4CHR = 4,
NF4LNK = 5,
NF4SOCK = 6,
NF4FIFO = 7,
NF4ATTRDIR = 8,
NF4NAMEDATTR = 9
};
typedef enum nfs_ftype4 nfs_ftype4;
enum nfsstat4 {
NFS4_OK = 0,
NFS4ERR_PERM = 1,
NFS4ERR_NOENT = 2,
NFS4ERR_IO = 5,
NFS4ERR_NXIO = 6,
NFS4ERR_ACCESS = 13,
NFS4ERR_EXIST = 17,
NFS4ERR_XDEV = 18,
NFS4ERR_NOTDIR = 20,
NFS4ERR_ISDIR = 21,
NFS4ERR_INVAL = 22,
NFS4ERR_FBIG = 27,
NFS4ERR_NOSPC = 28,
NFS4ERR_ROFS = 30,
NFS4ERR_MLINK = 31,
NFS4ERR_NAMETOOLONG = 63,
NFS4ERR_NOTEMPTY = 66,
NFS4ERR_DQUOT = 69,
NFS4ERR_STALE = 70,
NFS4ERR_BADHANDLE = 10001,
NFS4ERR_BAD_COOKIE = 10003,
NFS4ERR_NOTSUPP = 10004,
NFS4ERR_TOOSMALL = 10005,
NFS4ERR_SERVERFAULT = 10006,
NFS4ERR_BADTYPE = 10007,
NFS4ERR_DELAY = 10008,
NFS4ERR_SAME = 10009,
NFS4ERR_DENIED = 10010,
NFS4ERR_EXPIRED = 10011,
NFS4ERR_LOCKED = 10012,
NFS4ERR_GRACE = 10013,
NFS4ERR_FHEXPIRED = 10014,
NFS4ERR_SHARE_DENIED = 10015,
NFS4ERR_WRONGSEC = 10016,
NFS4ERR_CLID_INUSE = 10017,
NFS4ERR_RESOURCE = 10018,
NFS4ERR_MOVED = 10019,
NFS4ERR_NOFILEHANDLE = 10020,
NFS4ERR_MINOR_VERS_MISMATCH = 10021,
NFS4ERR_STALE_CLIENTID = 10022,
NFS4ERR_STALE_STATEID = 10023,
NFS4ERR_OLD_STATEID = 10024,
NFS4ERR_BAD_STATEID = 10025,
NFS4ERR_BAD_SEQID = 10026,
NFS4ERR_NOT_SAME = 10027,
NFS4ERR_LOCK_RANGE = 10028,
NFS4ERR_SYMLINK = 10029,
NFS4ERR_RESTOREFH = 10030,
NFS4ERR_LEASE_MOVED = 10031,
NFS4ERR_ATTRNOTSUPP = 10032,
NFS4ERR_NO_GRACE = 10033,
NFS4ERR_RECLAIM_BAD = 10034,
NFS4ERR_RECLAIM_CONFLICT = 10035,
NFS4ERR_BADXDR = 10036,
NFS4ERR_LOCKS_HELD = 10037,
NFS4ERR_OPENMODE = 10038,
NFS4ERR_BADOWNER = 10039,
NFS4ERR_BADCHAR = 10040,
NFS4ERR_BADNAME = 10041,
NFS4ERR_BAD_RANGE = 10042,
NFS4ERR_LOCK_NOTSUPP = 10043,
NFS4ERR_OP_ILLEGAL = 10044,
NFS4ERR_DEADLOCK = 10045,
NFS4ERR_FILE_OPEN = 10046,
NFS4ERR_ADMIN_REVOKED = 10047,
NFS4ERR_CB_PATH_DOWN = 10048,
NFS4ERR_BADIOMODE = 10049,
NFS4ERR_BADLAYOUT = 10050,
NFS4ERR_BAD_SESSION_DIGEST = 10051,
NFS4ERR_BADSESSION = 10052,
NFS4ERR_BADSLOT = 10053,
NFS4ERR_COMPLETE_ALREADY = 10054,
NFS4ERR_CONN_NOT_BOUND_TO_SESSION = 10055,
NFS4ERR_DELEG_ALREADY_WANTED = 10056,
NFS4ERR_BACK_CHAN_BUSY = 10057,
NFS4ERR_LAYOUTTRYLATER = 10058,
NFS4ERR_LAYOUTUNAVAILABLE = 10059,
NFS4ERR_NOMATCHING_LAYOUT = 10060,
NFS4ERR_RECALLCONFLICT = 10061,
NFS4ERR_UNKNOWN_LAYOUTTYPE = 10062,
NFS4ERR_SEQ_MISORDERED = 10063,
NFS4ERR_SEQUENCE_POS = 10064,
NFS4ERR_REQ_TOO_BIG = 10065,
NFS4ERR_REP_TOO_BIG = 10066,
NFS4ERR_REP_TOO_BIG_TO_CACHE = 10067,
NFS4ERR_RETRY_UNCACHED_REP = 10068,
NFS4ERR_UNSAFE_COMPOUND = 10069,
NFS4ERR_TOO_MANY_OPS = 10070,
NFS4ERR_OP_NOT_IN_SESSION = 10071,
NFS4ERR_HASH_ALG_UNSUPP = 10072,
NFS4ERR_CLIENTID_BUSY = 10074,
NFS4ERR_PNFS_IO_HOLE = 10075,
NFS4ERR_SEQ_FALSE_RETRY = 10076,
NFS4ERR_BAD_HIGH_SLOT = 10077,
NFS4ERR_DEADSESSION = 10078,
NFS4ERR_ENCR_ALG_UNSUPP = 10079,
NFS4ERR_PNFS_NO_LAYOUT = 10080,
NFS4ERR_NOT_ONLY_OP = 10081,
NFS4ERR_WRONG_CRED = 10082,
NFS4ERR_WRONG_TYPE = 10083,
NFS4ERR_DIRDELEG_UNAVAIL = 10084,
NFS4ERR_REJECT_DELEG = 10085,
NFS4ERR_RETURNCONFLICT = 10086,
NFS4ERR_DELEG_REVOKED = 10087,
NFS4ERR_PARTNER_NOTSUPP = 10088,
NFS4ERR_PARTNER_NO_AUTH = 10089,
NFS4ERR_UNION_NOTSUPP = 10090,
NFS4ERR_OFFLOAD_DENIED = 10091,
NFS4ERR_WRONG_LFS = 10092,
NFS4ERR_BADLABEL = 10093,
NFS4ERR_OFFLOAD_NO_REQS = 10094
};
typedef enum nfsstat4 nfsstat4;
typedef struct {
u_int attrlist4_len;
char *attrlist4_val;
} attrlist4;
typedef struct {
u_int bitmap4_len;
uint32_t *bitmap4_val;
} bitmap4;
typedef uint64_t changeid4;
typedef uint64_t clientid4;
typedef uint32_t count4;
typedef uint64_t length4;
typedef uint32_t mode4;
typedef uint64_t nfs_cookie4;
typedef struct {
u_int nfs_fh4_len;
char *nfs_fh4_val;
} nfs_fh4;
typedef uint64_t offset4;
typedef uint32_t qop4;
typedef struct {
u_int sec_oid4_len;
char *sec_oid4_val;
} sec_oid4;
typedef uint32_t sequenceid4;
typedef uint32_t seqid4;
typedef char sessionid4[NFS4_SESSIONID_SIZE];
typedef uint32_t slotid4;
typedef struct {
u_int utf8string_len;
char *utf8string_val;
} utf8string;
typedef utf8string utf8str_cis;
typedef utf8string utf8str_cs;
typedef utf8string utf8str_mixed;
typedef utf8str_cs component4;
typedef struct {
u_int linktext4_len;
char *linktext4_val;
} linktext4;
typedef utf8string ascii_REQUIRED4;
typedef struct {
u_int pathname4_len;
component4 *pathname4_val;
} pathname4;
typedef char verifier4[NFS4_VERIFIER_SIZE];
typedef char *secret4;
typedef uint32_t policy4;
struct nfstime4 {
int64_t seconds;
uint32_t nseconds;
};
typedef struct nfstime4 nfstime4;
enum time_how4 {
SET_TO_SERVER_TIME4 = 0,
SET_TO_CLIENT_TIME4 = 1
};
typedef enum time_how4 time_how4;
struct settime4 {
time_how4 set_it;
union {
nfstime4 time;
} settime4_u;
};
typedef struct settime4 settime4;
typedef uint32_t nfs_lease4;
struct fsid4 {
uint64_t major;
uint64_t minor;
};
typedef struct fsid4 fsid4;
struct change_policy4 {
uint64_t cp_major;
uint64_t cp_minor;
};
typedef struct change_policy4 change_policy4;
struct fs_location4 {
struct {
u_int server_len;
utf8str_cis *server_val;
} server;
pathname4 rootpath;
};
typedef struct fs_location4 fs_location4;
struct fs_locations4 {
pathname4 fs_root;
struct {
u_int locations_len;
fs_location4 *locations_val;
} locations;
};
typedef struct fs_locations4 fs_locations4;
#define ACL4_SUPPORT_ALLOW_ACL 0x00000001
#define ACL4_SUPPORT_DENY_ACL 0x00000002
#define ACL4_SUPPORT_AUDIT_ACL 0x00000004
#define ACL4_SUPPORT_ALARM_ACL 0x00000008
typedef uint32_t acetype4;
#define ACE4_ACCESS_ALLOWED_ACE_TYPE 0x00000000
#define ACE4_ACCESS_DENIED_ACE_TYPE 0x00000001
#define ACE4_SYSTEM_AUDIT_ACE_TYPE 0x00000002
#define ACE4_SYSTEM_ALARM_ACE_TYPE 0x00000003
typedef uint32_t aceflag4;
#define ACE4_FILE_INHERIT_ACE 0x00000001
#define ACE4_DIRECTORY_INHERIT_ACE 0x00000002
#define ACE4_NO_PROPAGATE_INHERIT_ACE 0x00000004
#define ACE4_INHERIT_ONLY_ACE 0x00000008
#define ACE4_SUCCESSFUL_ACCESS_ACE_FLAG 0x00000010
#define ACE4_FAILED_ACCESS_ACE_FLAG 0x00000020
#define ACE4_IDENTIFIER_GROUP 0x00000040
#define ACE4_INHERITED_ACE 0x00000080
typedef uint32_t acemask4;
#define ACE4_READ_DATA 0x00000001
#define ACE4_LIST_DIRECTORY 0x00000001
#define ACE4_WRITE_DATA 0x00000002
#define ACE4_ADD_FILE 0x00000002
#define ACE4_APPEND_DATA 0x00000004
#define ACE4_ADD_SUBDIRECTORY 0x00000004
#define ACE4_READ_NAMED_ATTRS 0x00000008
#define ACE4_WRITE_NAMED_ATTRS 0x00000010
#define ACE4_EXECUTE 0x00000020
#define ACE4_DELETE_CHILD 0x00000040
#define ACE4_READ_ATTRIBUTES 0x00000080
#define ACE4_WRITE_ATTRIBUTES 0x00000100
#define ACE4_WRITE_RETENTION 0x00000200
#define ACE4_WRITE_RETENTION_HOLD 0x00000400
#define ACE4_DELETE 0x00010000
#define ACE4_READ_ACL 0x00020000
#define ACE4_WRITE_ACL 0x00040000
#define ACE4_WRITE_OWNER 0x00080000
#define ACE4_SYNCHRONIZE 0x00100000
#define ACE4_GENERIC_READ 0x00120081
#define ACE4_GENERIC_WRITE 0x00160106
#define ACE4_GENERIC_EXECUTE 0x001200A0
struct nfsace4 {
acetype4 type;
aceflag4 flag;
acemask4 access_mask;
utf8str_mixed who;
};
typedef struct nfsace4 nfsace4;
typedef uint32_t aclflag4;
#define ACL4_AUTO_INHERIT 0x00000001
#define ACL4_PROTECTED 0x00000002
#define ACL4_DEFAULTED 0x00000004
struct nfsacl41 {
aclflag4 na41_flag;
struct {
u_int na41_aces_len;
nfsace4 *na41_aces_val;
} na41_aces;
};
typedef struct nfsacl41 nfsacl41;
#define MODE4_SUID 0x800
#define MODE4_SGID 0x400
#define MODE4_SVTX 0x200
#define MODE4_RUSR 0x100
#define MODE4_WUSR 0x080
#define MODE4_XUSR 0x040
#define MODE4_RGRP 0x020
#define MODE4_WGRP 0x010
#define MODE4_XGRP 0x008
#define MODE4_ROTH 0x004
#define MODE4_WOTH 0x002
#define MODE4_XOTH 0x001
struct mode_masked4 {
mode4 mm_value_to_set;
mode4 mm_mask_bits;
};
typedef struct mode_masked4 mode_masked4;
struct specdata4 {
uint32_t specdata1;
uint32_t specdata2;
};
typedef struct specdata4 specdata4;
#define FH4_PERSISTENT 0x00000000
#define FH4_NOEXPIRE_WITH_OPEN 0x00000001
#define FH4_VOLATILE_ANY 0x00000002
#define FH4_VOL_MIGRATION 0x00000004
#define FH4_VOL_RENAME 0x00000008
struct netaddr4 {
char *na_r_netid;
char *na_r_addr;
};
typedef struct netaddr4 netaddr4;
struct nfs_impl_id4 {
utf8str_cis nii_domain;
utf8str_cs nii_name;
nfstime4 nii_date;
};
typedef struct nfs_impl_id4 nfs_impl_id4;
struct stateid4 {
uint32_t seqid;
char other[NFS4_OTHER_SIZE];
};
typedef struct stateid4 stateid4;
enum layouttype4 {
LAYOUT4_NFSV4_1_FILES = 0x1,
LAYOUT4_OSD2_OBJECTS = 0x2,
LAYOUT4_BLOCK_VOLUME = 0x3
};
typedef enum layouttype4 layouttype4;
struct layout_content4 {
layouttype4 loc_type;
struct {
u_int loc_body_len;
char *loc_body_val;
} loc_body;
};
typedef struct layout_content4 layout_content4;
/*
* LAYOUT4_OSD2_OBJECTS loc_body description
* is in a separate .x file.
*/
/*
* LAYOUT4_BLOCK_VOLUME loc_body description
* is in a separate .x file.
*/
struct layouthint4 {
layouttype4 loh_type;
struct {
u_int loh_body_len;
char *loh_body_val;
} loh_body;
};
typedef struct layouthint4 layouthint4;
enum layoutiomode4 {
LAYOUTIOMODE4_READ = 1,
LAYOUTIOMODE4_RW = 2,
LAYOUTIOMODE4_ANY = 3
};
typedef enum layoutiomode4 layoutiomode4;
struct layout4 {
offset4 lo_offset;
length4 lo_length;
layoutiomode4 lo_iomode;
layout_content4 lo_content;
};
typedef struct layout4 layout4;
#define NFS4_DEVICEID4_SIZE 16
typedef char deviceid4[NFS4_DEVICEID4_SIZE];
struct device_addr4 {
layouttype4 da_layout_type;
struct {
u_int da_addr_body_len;
char *da_addr_body_val;
} da_addr_body;
};
typedef struct device_addr4 device_addr4;
struct layoutupdate4 {
layouttype4 lou_type;
struct {
u_int lou_body_len;
char *lou_body_val;
} lou_body;
};
typedef struct layoutupdate4 layoutupdate4;
#define LAYOUT4_RET_REC_FILE 1
#define LAYOUT4_RET_REC_FSID 2
#define LAYOUT4_RET_REC_ALL 3
enum layoutreturn_type4 {
LAYOUTRETURN4_FILE = LAYOUT4_RET_REC_FILE,
LAYOUTRETURN4_FSID = LAYOUT4_RET_REC_FSID,
LAYOUTRETURN4_ALL = LAYOUT4_RET_REC_ALL
};
typedef enum layoutreturn_type4 layoutreturn_type4;
/* layouttype4 specific data */
struct layoutreturn_file4 {
offset4 lrf_offset;
length4 lrf_length;
stateid4 lrf_stateid;
struct {
u_int lrf_body_len;
char *lrf_body_val;
} lrf_body;
};
typedef struct layoutreturn_file4 layoutreturn_file4;
struct layoutreturn4 {
layoutreturn_type4 lr_returntype;
union {
layoutreturn_file4 lr_layout;
} layoutreturn4_u;
};
typedef struct layoutreturn4 layoutreturn4;
enum fs4_status_type {
STATUS4_FIXED = 1,
STATUS4_UPDATED = 2,
STATUS4_VERSIONED = 3,
STATUS4_WRITABLE = 4,
STATUS4_REFERRAL = 5
};
typedef enum fs4_status_type fs4_status_type;
struct fs4_status {
bool_t fss_absent;
fs4_status_type fss_type;
utf8str_cs fss_source;
utf8str_cs fss_current;
int32_t fss_age;
nfstime4 fss_version;
};
typedef struct fs4_status fs4_status;
#define TH4_READ_SIZE 0
#define TH4_WRITE_SIZE 1
#define TH4_READ_IOSIZE 2
#define TH4_WRITE_IOSIZE 3
typedef length4 threshold4_read_size;
typedef length4 threshold4_write_size;
typedef length4 threshold4_read_iosize;
typedef length4 threshold4_write_iosize;
struct threshold_item4 {
layouttype4 thi_layout_type;
bitmap4 thi_hintset;
struct {
u_int thi_hintlist_len;
char *thi_hintlist_val;
} thi_hintlist;
};
typedef struct threshold_item4 threshold_item4;
struct mdsthreshold4 {
struct {
u_int mth_hints_len;
threshold_item4 *mth_hints_val;
} mth_hints;
};
typedef struct mdsthreshold4 mdsthreshold4;
#define RET4_DURATION_INFINITE 0xffffffffffffffff
struct retention_get4 {
uint64_t rg_duration;
struct {
u_int rg_begin_time_len;
nfstime4 *rg_begin_time_val;
} rg_begin_time;
};
typedef struct retention_get4 retention_get4;
struct retention_set4 {
bool_t rs_enable;
struct {
u_int rs_duration_len;
uint64_t *rs_duration_val;
} rs_duration;
};
typedef struct retention_set4 retention_set4;
#define FSCHARSET_CAP4_CONTAINS_NON_UTF8 0x1
#define FSCHARSET_CAP4_ALLOWS_ONLY_UTF8 0x2
typedef uint32_t fs_charset_cap4;
enum netloc_type4 {
NL4_NAME = 1,
NL4_URL = 2,
NL4_NETADDR = 3
};
typedef enum netloc_type4 netloc_type4;
struct netloc4 {
netloc_type4 nl_type;
union {
utf8str_cis nl_name;
utf8str_cis nl_url;
netaddr4 nl_addr;
} netloc4_u;
};
typedef struct netloc4 netloc4;
enum change_attr_type4 {
NFS4_CHANGE_TYPE_IS_MONOTONIC_INCR = 0,
NFS4_CHANGE_TYPE_IS_VERSION_COUNTER = 1,
NFS4_CHANGE_TYPE_IS_VERSION_COUNTER_NOPNFS = 2,
NFS4_CHANGE_TYPE_IS_TIME_METADATA = 3,
NFS4_CHANGE_TYPE_IS_UNDEFINED = 4
};
typedef enum change_attr_type4 change_attr_type4;
struct labelformat_spec4 {
policy4 lfs_lfs;
policy4 lfs_pi;
};
typedef struct labelformat_spec4 labelformat_spec4;
struct sec_label4 {
labelformat_spec4 slai_lfs;
struct {
u_int slai_data_len;
char *slai_data_val;
} slai_data;
};
typedef struct sec_label4 sec_label4;
struct copy_from_auth_priv {
secret4 cfap_shared_secret;
netloc4 cfap_destination;
utf8str_mixed cfap_username;
};
typedef struct copy_from_auth_priv copy_from_auth_priv;
struct copy_to_auth_priv {
secret4 ctap_shared_secret;
struct {
u_int ctap_source_len;
netloc4 *ctap_source_val;
} ctap_source;
utf8str_mixed ctap_username;
};
typedef struct copy_to_auth_priv copy_to_auth_priv;
struct copy_confirm_auth_priv {
struct {
u_int ccap_shared_secret_mic_len;
char *ccap_shared_secret_mic_val;
} ccap_shared_secret_mic;
utf8str_mixed ccap_username;
};
typedef struct copy_confirm_auth_priv copy_confirm_auth_priv;
struct app_data_block4 {
offset4 adb_offset;
length4 adb_block_size;
length4 adb_block_count;
length4 adb_reloff_blocknum;
count4 adb_block_num;
length4 adb_reloff_pattern;
struct {
u_int adb_pattern_len;
char *adb_pattern_val;
} adb_pattern;
};
typedef struct app_data_block4 app_data_block4;
struct data4 {
offset4 d_offset;
struct {
u_int d_data_len;
char *d_data_val;
} d_data;
};
typedef struct data4 data4;
struct data_info4 {
offset4 di_offset;
length4 di_length;
};
typedef struct data_info4 data_info4;
enum data_content4 {
NFS4_CONTENT_DATA = 0,
NFS4_CONTENT_HOLE = 1
};
typedef enum data_content4 data_content4;
enum stable_how4 {
UNSTABLE4 = 0,
DATA_SYNC4 = 1,
FILE_SYNC4 = 2
};
typedef enum stable_how4 stable_how4;
struct write_response4 {
struct {
u_int wr_callback_id_len;
stateid4 *wr_callback_id_val;
} wr_callback_id;
length4 wr_count;
stable_how4 wr_committed;
verifier4 wr_writeverf;
};
typedef struct write_response4 write_response4;
typedef bitmap4 fattr4_supported_attrs;
typedef nfs_ftype4 fattr4_type;
typedef uint32_t fattr4_fh_expire_type;
typedef changeid4 fattr4_change;
typedef uint64_t fattr4_size;
typedef bool_t fattr4_link_support;
typedef bool_t fattr4_symlink_support;
typedef bool_t fattr4_named_attr;
typedef fsid4 fattr4_fsid;
typedef bool_t fattr4_unique_handles;
typedef nfs_lease4 fattr4_lease_time;
typedef nfsstat4 fattr4_rdattr_error;
typedef struct {
u_int fattr4_acl_len;
nfsace4 *fattr4_acl_val;
} fattr4_acl;
typedef uint32_t fattr4_aclsupport;
typedef bool_t fattr4_archive;
typedef bool_t fattr4_cansettime;
typedef bool_t fattr4_case_insensitive;
typedef bool_t fattr4_case_preserving;
typedef bool_t fattr4_chown_restricted;
typedef uint64_t fattr4_fileid;
typedef uint64_t fattr4_files_avail;
typedef nfs_fh4 fattr4_filehandle;
typedef uint64_t fattr4_files_free;
typedef uint64_t fattr4_files_total;
typedef fs_locations4 fattr4_fs_locations;
typedef bool_t fattr4_hidden;
typedef bool_t fattr4_homogeneous;
typedef uint64_t fattr4_maxfilesize;
typedef uint32_t fattr4_maxlink;
typedef uint32_t fattr4_maxname;
typedef uint64_t fattr4_maxread;
typedef uint64_t fattr4_maxwrite;
typedef ascii_REQUIRED4 fattr4_mimetype;
typedef mode4 fattr4_mode;
typedef mode_masked4 fattr4_mode_set_masked;
typedef uint64_t fattr4_mounted_on_fileid;
typedef bool_t fattr4_no_trunc;
typedef uint32_t fattr4_numlinks;
typedef utf8str_mixed fattr4_owner;
typedef utf8str_mixed fattr4_owner_group;
typedef uint64_t fattr4_quota_avail_hard;
typedef uint64_t fattr4_quota_avail_soft;
typedef uint64_t fattr4_quota_used;
typedef specdata4 fattr4_rawdev;
typedef uint64_t fattr4_space_avail;
typedef length4 fattr4_space_free;
typedef uint64_t fattr4_space_total;
typedef uint64_t fattr4_space_used;
typedef bool_t fattr4_system;
typedef nfstime4 fattr4_time_access;
typedef settime4 fattr4_time_access_set;
typedef nfstime4 fattr4_time_backup;
typedef nfstime4 fattr4_time_create;
typedef nfstime4 fattr4_time_delta;
typedef nfstime4 fattr4_time_metadata;
typedef nfstime4 fattr4_time_modify;
typedef settime4 fattr4_time_modify_set;
typedef bitmap4 fattr4_suppattr_exclcreat;
typedef nfstime4 fattr4_dir_notif_delay;
typedef nfstime4 fattr4_dirent_notif_delay;
typedef struct {
u_int fattr4_fs_layout_types_len;
layouttype4 *fattr4_fs_layout_types_val;
} fattr4_fs_layout_types;
typedef fs4_status fattr4_fs_status;
typedef fs_charset_cap4 fattr4_fs_charset_cap;
typedef uint32_t fattr4_layout_alignment;
typedef uint32_t fattr4_layout_blksize;
typedef layouthint4 fattr4_layout_hint;
typedef struct {
u_int fattr4_layout_types_len;
layouttype4 *fattr4_layout_types_val;
} fattr4_layout_types;
typedef mdsthreshold4 fattr4_mdsthreshold;
typedef retention_get4 fattr4_retention_get;
typedef retention_set4 fattr4_retention_set;
typedef retention_get4 fattr4_retentevt_get;
typedef retention_set4 fattr4_retentevt_set;
typedef uint64_t fattr4_retention_hold;
typedef nfsacl41 fattr4_dacl;
typedef nfsacl41 fattr4_sacl;
typedef change_policy4 fattr4_change_policy;
typedef uint64_t fattr4_space_freed;
typedef change_attr_type4 fattr4_change_attr_type;
typedef sec_label4 fattr4_sec_label;
typedef uint32_t fattr4_clone_blksize;
/*
* REQUIRED attributes
*/
#define FATTR4_SUPPORTED_ATTRS 0
#define FATTR4_TYPE 1
#define FATTR4_FH_EXPIRE_TYPE 2
#define FATTR4_CHANGE 3
#define FATTR4_SIZE 4
#define FATTR4_LINK_SUPPORT 5
#define FATTR4_SYMLINK_SUPPORT 6
#define FATTR4_NAMED_ATTR 7
#define FATTR4_FSID 8
#define FATTR4_UNIQUE_HANDLES 9
#define FATTR4_LEASE_TIME 10
#define FATTR4_RDATTR_ERROR 11
#define FATTR4_FILEHANDLE 19
/*
* New to NFSv4.1
*/
#define FATTR4_SUPPATTR_EXCLCREAT 75
/*
* RECOMMENDED attributes
*/
#define FATTR4_ACL 12
#define FATTR4_ACLSUPPORT 13
#define FATTR4_ARCHIVE 14
#define FATTR4_CANSETTIME 15
#define FATTR4_CASE_INSENSITIVE 16
#define FATTR4_CASE_PRESERVING 17
#define FATTR4_CHOWN_RESTRICTED 18
#define FATTR4_FILEID 20
#define FATTR4_FILES_AVAIL 21
#define FATTR4_FILES_FREE 22
#define FATTR4_FILES_TOTAL 23
#define FATTR4_FS_LOCATIONS 24
#define FATTR4_HIDDEN 25
#define FATTR4_HOMOGENEOUS 26
#define FATTR4_MAXFILESIZE 27
#define FATTR4_MAXLINK 28
#define FATTR4_MAXNAME 29
#define FATTR4_MAXREAD 30
#define FATTR4_MAXWRITE 31
#define FATTR4_MIMETYPE 32
#define FATTR4_MODE 33
#define FATTR4_NO_TRUNC 34
#define FATTR4_NUMLINKS 35
#define FATTR4_OWNER 36
#define FATTR4_OWNER_GROUP 37
#define FATTR4_QUOTA_AVAIL_HARD 38
#define FATTR4_QUOTA_AVAIL_SOFT 39
#define FATTR4_QUOTA_USED 40
#define FATTR4_RAWDEV 41
#define FATTR4_SPACE_AVAIL 42
#define FATTR4_SPACE_FREE 43
#define FATTR4_SPACE_TOTAL 44
#define FATTR4_SPACE_USED 45
#define FATTR4_SYSTEM 46
#define FATTR4_TIME_ACCESS 47
#define FATTR4_TIME_ACCESS_SET 48
#define FATTR4_TIME_BACKUP 49
#define FATTR4_TIME_CREATE 50
#define FATTR4_TIME_DELTA 51
#define FATTR4_TIME_METADATA 52
#define FATTR4_TIME_MODIFY 53
#define FATTR4_TIME_MODIFY_SET 54
#define FATTR4_MOUNTED_ON_FILEID 55
/*
* New to NFSv4.1
*/
#define FATTR4_DIR_NOTIF_DELAY 56
#define FATTR4_DIRENT_NOTIF_DELAY 57
#define FATTR4_DACL 58
#define FATTR4_SACL 59
#define FATTR4_CHANGE_POLICY 60
#define FATTR4_FS_STATUS 61
#define FATTR4_FS_LAYOUT_TYPES 62
#define FATTR4_LAYOUT_HINT 63
#define FATTR4_LAYOUT_TYPES 64
#define FATTR4_LAYOUT_BLKSIZE 65
#define FATTR4_LAYOUT_ALIGNMENT 66
#define FATTR4_FS_LOCATIONS_INFO 67
#define FATTR4_MDSTHRESHOLD 68
#define FATTR4_RETENTION_GET 69
#define FATTR4_RETENTION_SET 70
#define FATTR4_RETENTEVT_GET 71
#define FATTR4_RETENTEVT_SET 72
#define FATTR4_RETENTION_HOLD 73
#define FATTR4_MODE_SET_MASKED 74
#define FATTR4_FS_CHARSET_CAP 76
/*
* New to NFSv4.2
*/
#define FATTR4_CLONE_BLKSIZE 77
#define FATTR4_SPACE_FREED 78
#define FATTR4_CHANGE_ATTR_TYPE 79
#define FATTR4_SEC_LABEL 80
struct fattr4 {
bitmap4 attrmask;
attrlist4 attr_vals;
};
typedef struct fattr4 fattr4;
struct change_info4 {
bool_t atomic;
changeid4 before;
changeid4 after;
};
typedef struct change_info4 change_info4;
typedef netaddr4 clientaddr4;
struct cb_client4 {
uint32_t cb_program;
netaddr4 cb_location;
};
typedef struct cb_client4 cb_client4;
struct nfs_client_id4 {
verifier4 verifier;
struct {
u_int id_len;
char *id_val;
} id;
};
typedef struct nfs_client_id4 nfs_client_id4;
struct client_owner4 {
verifier4 co_verifier;
struct {
u_int co_ownerid_len;
char *co_ownerid_val;
} co_ownerid;
};
typedef struct client_owner4 client_owner4;
struct server_owner4 {
uint64_t so_minor_id;
struct {
u_int so_major_id_len;
char *so_major_id_val;
} so_major_id;
};
typedef struct server_owner4 server_owner4;
struct state_owner4 {
clientid4 clientid;
struct {
u_int owner_len;
char *owner_val;
} owner;
};
typedef struct state_owner4 state_owner4;
typedef state_owner4 open_owner4;
typedef state_owner4 lock_owner4;
enum nfs_lock_type4 {
READ_LT = 1,
WRITE_LT = 2,
READW_LT = 3,
WRITEW_LT = 4
};
typedef enum nfs_lock_type4 nfs_lock_type4;
/* Input for computing subkeys */
enum ssv_subkey4 {
SSV4_SUBKEY_MIC_I2T = 1,
SSV4_SUBKEY_MIC_T2I = 2,
SSV4_SUBKEY_SEAL_I2T = 3,
SSV4_SUBKEY_SEAL_T2I = 4
};
typedef enum ssv_subkey4 ssv_subkey4;
/* Input for computing smt_hmac */
struct ssv_mic_plain_tkn4 {
uint32_t smpt_ssv_seq;
struct {
u_int smpt_orig_plain_len;
char *smpt_orig_plain_val;
} smpt_orig_plain;
};
typedef struct ssv_mic_plain_tkn4 ssv_mic_plain_tkn4;
/*
* Secret State Verifier Generic Security Service (SSV GSS)
* PerMsgToken token
*/
struct ssv_mic_tkn4 {
uint32_t smt_ssv_seq;
struct {
u_int smt_hmac_len;
char *smt_hmac_val;
} smt_hmac;
};
typedef struct ssv_mic_tkn4 ssv_mic_tkn4;
/* Input for computing ssct_encr_data and ssct_hmac */
struct ssv_seal_plain_tkn4 {
struct {
u_int sspt_confounder_len;
char *sspt_confounder_val;
} sspt_confounder;
uint32_t sspt_ssv_seq;
struct {
u_int sspt_orig_plain_len;
char *sspt_orig_plain_val;
} sspt_orig_plain;
struct {
u_int sspt_pad_len;
char *sspt_pad_val;
} sspt_pad;
};
typedef struct ssv_seal_plain_tkn4 ssv_seal_plain_tkn4;
/* SSV GSS SealedMessage token */
struct ssv_seal_cipher_tkn4 {
uint32_t ssct_ssv_seq;
struct {
u_int ssct_iv_len;
char *ssct_iv_val;
} ssct_iv;
struct {
u_int ssct_encr_data_len;
char *ssct_encr_data_val;
} ssct_encr_data;
struct {
u_int ssct_hmac_len;
char *ssct_hmac_val;
} ssct_hmac;
};
typedef struct ssv_seal_cipher_tkn4 ssv_seal_cipher_tkn4;
struct fs_locations_server4 {
int32_t fls_currency;
struct {
u_int fls_info_len;
char *fls_info_val;
} fls_info;
utf8str_cis fls_server;
};
typedef struct fs_locations_server4 fs_locations_server4;
#define FSLI4BX_GFLAGS 0
#define FSLI4BX_TFLAGS 1
#define FSLI4BX_CLSIMUL 2
#define FSLI4BX_CLHANDLE 3
#define FSLI4BX_CLFILEID 4
#define FSLI4BX_CLWRITEVER 5
#define FSLI4BX_CLCHANGE 6
#define FSLI4BX_CLREADDIR 7
#define FSLI4BX_READRANK 8
#define FSLI4BX_WRITERANK 9
#define FSLI4BX_READORDER 10
#define FSLI4BX_WRITEORDER 11
#define FSLI4GF_WRITABLE 0x01
#define FSLI4GF_CUR_REQ 0x02
#define FSLI4GF_ABSENT 0x04
#define FSLI4GF_GOING 0x08
#define FSLI4GF_SPLIT 0x10
#define FSLI4TF_RDMA 0x01
struct fs_locations_item4 {
struct {
u_int fli_entries_len;
fs_locations_server4 *fli_entries_val;
} fli_entries;
pathname4 fli_rootpath;
};
typedef struct fs_locations_item4 fs_locations_item4;
struct fs_locations_info4 {
uint32_t fli_flags;
int32_t fli_valid_for;
pathname4 fli_fs_root;
struct {
u_int fli_items_len;
fs_locations_item4 *fli_items_val;
} fli_items;
};
typedef struct fs_locations_info4 fs_locations_info4;
#define FSLI4IF_VAR_SUB 0x00000001
typedef fs_locations_info4 fattr4_fs_locations_info;
#define NFL4_UFLG_MASK 0x0000003F
#define NFL4_UFLG_DENSE 0x00000001
#define NFL4_UFLG_COMMIT_THRU_MDS 0x00000002
#define NFL42_UFLG_IO_ADVISE_THRU_MDS 0x00000004
#define NFL4_UFLG_STRIPE_UNIT_SIZE_MASK 0xFFFFFFC0
typedef uint32_t nfl_util4;
enum filelayout_hint_care4 {
NFLH4_CARE_DENSE = NFL4_UFLG_DENSE,
NFLH4_CARE_COMMIT_THRU_MDS = NFL4_UFLG_COMMIT_THRU_MDS,
NFL42_CARE_IO_ADVISE_THRU_MDS = NFL42_UFLG_IO_ADVISE_THRU_MDS,
NFLH4_CARE_STRIPE_UNIT_SIZE = 0x00000040,
NFLH4_CARE_STRIPE_COUNT = 0x00000080
};
typedef enum filelayout_hint_care4 filelayout_hint_care4;
/*
* Encoded in the loh_body field of data type layouthint4:
*/
struct nfsv4_1_file_layouthint4 {
uint32_t nflh_care;
nfl_util4 nflh_util;
count4 nflh_stripe_count;
};
typedef struct nfsv4_1_file_layouthint4 nfsv4_1_file_layouthint4;
typedef struct {
u_int multipath_list4_len;
netaddr4 *multipath_list4_val;
} multipath_list4;
/*
* Encoded in the da_addr_body field of data type device_addr4:
*/
struct nfsv4_1_file_layout_ds_addr4 {
struct {
u_int nflda_stripe_indices_len;
uint32_t *nflda_stripe_indices_val;
} nflda_stripe_indices;
struct {
u_int nflda_multipath_ds_list_len;
multipath_list4 *nflda_multipath_ds_list_val;
} nflda_multipath_ds_list;
};
typedef struct nfsv4_1_file_layout_ds_addr4 nfsv4_1_file_layout_ds_addr4;
/*
* Encoded in the loc_body field of data type layout_content4:
*/
struct nfsv4_1_file_layout4 {
deviceid4 nfl_deviceid;
nfl_util4 nfl_util;
uint32_t nfl_first_stripe_index;
offset4 nfl_pattern_offset;
struct {
u_int nfl_fh_list_len;
nfs_fh4 *nfl_fh_list_val;
} nfl_fh_list;
};
typedef struct nfsv4_1_file_layout4 nfsv4_1_file_layout4;
/* New operations for NFSv4.1 */
/* New operations for NFSv4.2 */
enum nfs_opnum4 {
OP_ACCESS = 3,
OP_CLOSE = 4,
OP_COMMIT = 5,
OP_CREATE = 6,
OP_DELEGPURGE = 7,
OP_DELEGRETURN = 8,
OP_GETATTR = 9,
OP_GETFH = 10,
OP_LINK = 11,
OP_LOCK = 12,
OP_LOCKT = 13,
OP_LOCKU = 14,
OP_LOOKUP = 15,
OP_LOOKUPP = 16,
OP_NVERIFY = 17,
OP_OPEN = 18,
OP_OPENATTR = 19,
OP_OPEN_CONFIRM = 20,
OP_OPEN_DOWNGRADE = 21,
OP_PUTFH = 22,
OP_PUTPUBFH = 23,
OP_PUTROOTFH = 24,
OP_READ = 25,
OP_READDIR = 26,
OP_READLINK = 27,
OP_REMOVE = 28,
OP_RENAME = 29,
OP_RENEW = 30,
OP_RESTOREFH = 31,
OP_SAVEFH = 32,
OP_SECINFO = 33,
OP_SETATTR = 34,
OP_SETCLIENTID = 35,
OP_SETCLIENTID_CONFIRM = 36,
OP_VERIFY = 37,
OP_WRITE = 38,
OP_RELEASE_LOCKOWNER = 39,
OP_BACKCHANNEL_CTL = 40,
OP_BIND_CONN_TO_SESSION = 41,
OP_EXCHANGE_ID = 42,
OP_CREATE_SESSION = 43,
OP_DESTROY_SESSION = 44,
OP_FREE_STATEID = 45,
OP_GET_DIR_DELEGATION = 46,
OP_GETDEVICEINFO = 47,
OP_GETDEVICELIST = 48,
OP_LAYOUTCOMMIT = 49,
OP_LAYOUTGET = 50,
OP_LAYOUTRETURN = 51,
OP_SECINFO_NO_NAME = 52,
OP_SEQUENCE = 53,
OP_SET_SSV = 54,
OP_TEST_STATEID = 55,
OP_WANT_DELEGATION = 56,
OP_DESTROY_CLIENTID = 57,
OP_RECLAIM_COMPLETE = 58,
OP_ALLOCATE = 59,
OP_COPY = 60,
OP_COPY_NOTIFY = 61,
OP_DEALLOCATE = 62,
OP_IO_ADVISE = 63,
OP_LAYOUTERROR = 64,
OP_LAYOUTSTATS = 65,
OP_OFFLOAD_CANCEL = 66,
OP_OFFLOAD_STATUS = 67,
OP_READ_PLUS = 68,
OP_SEEK = 69,
OP_WRITE_SAME = 70,
OP_CLONE = 71,
OP_ILLEGAL = 10044
};
typedef enum nfs_opnum4 nfs_opnum4;
#define ACCESS4_READ 0x00000001
#define ACCESS4_LOOKUP 0x00000002
#define ACCESS4_MODIFY 0x00000004
#define ACCESS4_EXTEND 0x00000008
#define ACCESS4_DELETE 0x00000010
#define ACCESS4_EXECUTE 0x00000020
struct ACCESS4args {
uint32_t access;
};
typedef struct ACCESS4args ACCESS4args;
struct ACCESS4resok {
uint32_t supported;
uint32_t access;
};
typedef struct ACCESS4resok ACCESS4resok;
struct ACCESS4res {
nfsstat4 status;
union {
ACCESS4resok resok4;
} ACCESS4res_u;
};
typedef struct ACCESS4res ACCESS4res;
struct CLONE4args {
stateid4 cl_src_stateid;
stateid4 cl_dst_stateid;
offset4 cl_src_offset;
offset4 cl_dst_offset;
length4 cl_count;
};
typedef struct CLONE4args CLONE4args;
struct CLONE4res {
nfsstat4 cl_status;
};
typedef struct CLONE4res CLONE4res;
struct CLOSE4args {
seqid4 seqid;
stateid4 open_stateid;
};
typedef struct CLOSE4args CLOSE4args;
struct CLOSE4res {
nfsstat4 status;
union {
stateid4 open_stateid;
} CLOSE4res_u;
};
typedef struct CLOSE4res CLOSE4res;
struct COMMIT4args {
offset4 offset;
count4 count;
};
typedef struct COMMIT4args COMMIT4args;
struct COMMIT4resok {
verifier4 writeverf;
};
typedef struct COMMIT4resok COMMIT4resok;
struct COMMIT4res {
nfsstat4 status;
union {
COMMIT4resok resok4;
} COMMIT4res_u;
};
typedef struct COMMIT4res COMMIT4res;
struct createtype4 {
nfs_ftype4 type;
union {
linktext4 linkdata;
specdata4 devdata;
} createtype4_u;
};
typedef struct createtype4 createtype4;
struct CREATE4args {
createtype4 objtype;
component4 objname;
fattr4 createattrs;
};
typedef struct CREATE4args CREATE4args;
struct CREATE4resok {
change_info4 cinfo;
bitmap4 attrset;
};
typedef struct CREATE4resok CREATE4resok;
struct CREATE4res {
nfsstat4 status;
union {
CREATE4resok resok4;
} CREATE4res_u;
};
typedef struct CREATE4res CREATE4res;
struct DELEGPURGE4args {
clientid4 clientid;
};
typedef struct DELEGPURGE4args DELEGPURGE4args;
struct DELEGPURGE4res {
nfsstat4 status;
};
typedef struct DELEGPURGE4res DELEGPURGE4res;
struct DELEGRETURN4args {
stateid4 deleg_stateid;
};
typedef struct DELEGRETURN4args DELEGRETURN4args;
struct DELEGRETURN4res {
nfsstat4 status;
};
typedef struct DELEGRETURN4res DELEGRETURN4res;
struct GETATTR4args {
bitmap4 attr_request;
};
typedef struct GETATTR4args GETATTR4args;
struct GETATTR4resok {
fattr4 obj_attributes;
};
typedef struct GETATTR4resok GETATTR4resok;
struct GETATTR4res {
nfsstat4 status;
union {
GETATTR4resok resok4;
} GETATTR4res_u;
};
typedef struct GETATTR4res GETATTR4res;
struct GETFH4resok {
nfs_fh4 object;
};
typedef struct GETFH4resok GETFH4resok;
struct GETFH4res {
nfsstat4 status;
union {
GETFH4resok resok4;
} GETFH4res_u;
};
typedef struct GETFH4res GETFH4res;
struct LINK4args {
component4 newname;
};
typedef struct LINK4args LINK4args;
struct LINK4resok {
change_info4 cinfo;
};
typedef struct LINK4resok LINK4resok;
struct LINK4res {
nfsstat4 status;
union {
LINK4resok resok4;
} LINK4res_u;
};
typedef struct LINK4res LINK4res;
struct open_to_lock_owner4 {
seqid4 open_seqid;
stateid4 open_stateid;
seqid4 lock_seqid;
lock_owner4 lock_owner;
};
typedef struct open_to_lock_owner4 open_to_lock_owner4;
struct exist_lock_owner4 {
stateid4 lock_stateid;
seqid4 lock_seqid;
};
typedef struct exist_lock_owner4 exist_lock_owner4;
struct locker4 {
bool_t new_lock_owner;
union {
open_to_lock_owner4 open_owner;
exist_lock_owner4 lock_owner;
} locker4_u;
};
typedef struct locker4 locker4;
struct LOCK4args {
nfs_lock_type4 locktype;
bool_t reclaim;
offset4 offset;
length4 length;
locker4 locker;
};
typedef struct LOCK4args LOCK4args;
struct LOCK4denied {
offset4 offset;
length4 length;
nfs_lock_type4 locktype;
lock_owner4 owner;
};
typedef struct LOCK4denied LOCK4denied;
struct LOCK4resok {
stateid4 lock_stateid;
};
typedef struct LOCK4resok LOCK4resok;
struct LOCK4res {
nfsstat4 status;
union {
LOCK4resok resok4;
LOCK4denied denied;
} LOCK4res_u;
};
typedef struct LOCK4res LOCK4res;
struct LOCKT4args {
nfs_lock_type4 locktype;
offset4 offset;
length4 length;
lock_owner4 owner;
};
typedef struct LOCKT4args LOCKT4args;
struct LOCKT4res {
nfsstat4 status;
union {
LOCK4denied denied;
} LOCKT4res_u;
};
typedef struct LOCKT4res LOCKT4res;
struct LOCKU4args {
nfs_lock_type4 locktype;
seqid4 seqid;
stateid4 lock_stateid;
offset4 offset;
length4 length;
};
typedef struct LOCKU4args LOCKU4args;
struct LOCKU4res {
nfsstat4 status;
union {
stateid4 lock_stateid;
} LOCKU4res_u;
};
typedef struct LOCKU4res LOCKU4res;
struct LOOKUP4args {
component4 objname;
};
typedef struct LOOKUP4args LOOKUP4args;
struct LOOKUP4res {
nfsstat4 status;
};
typedef struct LOOKUP4res LOOKUP4res;
struct LOOKUPP4res {
nfsstat4 status;
};
typedef struct LOOKUPP4res LOOKUPP4res;
struct NVERIFY4args {
fattr4 obj_attributes;
};
typedef struct NVERIFY4args NVERIFY4args;
struct NVERIFY4res {
nfsstat4 status;
};
typedef struct NVERIFY4res NVERIFY4res;
enum createmode4 {
UNCHECKED4 = 0,
GUARDED4 = 1,
EXCLUSIVE4 = 2,
EXCLUSIVE4_1 = 3
};
typedef enum createmode4 createmode4;
struct creatverfattr {
verifier4 cva_verf;
fattr4 cva_attrs;
};
typedef struct creatverfattr creatverfattr;
struct createhow4 {
createmode4 mode;
union {
fattr4 createattrs;
verifier4 createverf;
creatverfattr ch_createboth;
} createhow4_u;
};
typedef struct createhow4 createhow4;
enum opentype4 {
OPEN4_NOCREATE = 0,
OPEN4_CREATE = 1
};
typedef enum opentype4 opentype4;
struct openflag4 {
opentype4 opentype;
union {
createhow4 how;
} openflag4_u;
};
typedef struct openflag4 openflag4;
enum limit_by4 {
NFS_LIMIT_SIZE = 1,
NFS_LIMIT_BLOCKS = 2
};
typedef enum limit_by4 limit_by4;
struct nfs_modified_limit4 {
uint32_t num_blocks;
uint32_t bytes_per_block;
};
typedef struct nfs_modified_limit4 nfs_modified_limit4;
struct nfs_space_limit4 {
limit_by4 limitby;
union {
uint64_t filesize;
nfs_modified_limit4 mod_blocks;
} nfs_space_limit4_u;
};
typedef struct nfs_space_limit4 nfs_space_limit4;
#define OPEN4_SHARE_ACCESS_READ 0x00000001
#define OPEN4_SHARE_ACCESS_WRITE 0x00000002
#define OPEN4_SHARE_ACCESS_BOTH 0x00000003
#define OPEN4_SHARE_DENY_NONE 0x00000000
#define OPEN4_SHARE_DENY_READ 0x00000001
#define OPEN4_SHARE_DENY_WRITE 0x00000002
#define OPEN4_SHARE_DENY_BOTH 0x00000003
#define OPEN4_SHARE_ACCESS_WANT_DELEG_MASK 0xFF00
#define OPEN4_SHARE_ACCESS_WANT_NO_PREFERENCE 0x0000
#define OPEN4_SHARE_ACCESS_WANT_READ_DELEG 0x0100
#define OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG 0x0200
#define OPEN4_SHARE_ACCESS_WANT_ANY_DELEG 0x0300
#define OPEN4_SHARE_ACCESS_WANT_NO_DELEG 0x0400
#define OPEN4_SHARE_ACCESS_WANT_CANCEL 0x0500
#define OPEN4_SHARE_ACCESS_WANT_SIGNAL_DELEG_WHEN_RESRC_AVAIL 0x10000
#define OPEN4_SHARE_ACCESS_WANT_PUSH_DELEG_WHEN_UNCONTENDED 0x20000
enum open_delegation_type4 {
OPEN_DELEGATE_NONE = 0,
OPEN_DELEGATE_READ = 1,
OPEN_DELEGATE_WRITE = 2,
OPEN_DELEGATE_NONE_EXT = 3
};
typedef enum open_delegation_type4 open_delegation_type4;
enum open_claim_type4 {
CLAIM_NULL = 0,
CLAIM_PREVIOUS = 1,
CLAIM_DELEGATE_CUR = 2,
CLAIM_DELEGATE_PREV = 3,
CLAIM_FH = 4,
CLAIM_DELEG_CUR_FH = 5,
CLAIM_DELEG_PREV_FH = 6
};
typedef enum open_claim_type4 open_claim_type4;
struct open_claim_delegate_cur4 {
stateid4 delegate_stateid;
component4 file;
};
typedef struct open_claim_delegate_cur4 open_claim_delegate_cur4;
struct open_claim4 {
open_claim_type4 claim;
union {
component4 file;
open_delegation_type4 delegate_type;
open_claim_delegate_cur4 delegate_cur_info;
component4 file_delegate_prev;
stateid4 oc_delegate_stateid;
} open_claim4_u;
};
typedef struct open_claim4 open_claim4;
struct OPEN4args {
seqid4 seqid;
uint32_t share_access;
uint32_t share_deny;
open_owner4 owner;
openflag4 openhow;
open_claim4 claim;
};
typedef struct OPEN4args OPEN4args;
struct open_read_delegation4 {
stateid4 stateid;
bool_t recall;
nfsace4 permissions;
};
typedef struct open_read_delegation4 open_read_delegation4;
struct open_write_delegation4 {
stateid4 stateid;
bool_t recall;
nfs_space_limit4 space_limit;
nfsace4 permissions;
};
typedef struct open_write_delegation4 open_write_delegation4;
enum why_no_delegation4 {
WND4_NOT_WANTED = 0,
WND4_CONTENTION = 1,
WND4_RESOURCE = 2,
WND4_NOT_SUPP_FTYPE = 3,
WND4_WRITE_DELEG_NOT_SUPP_FTYPE = 4,
WND4_NOT_SUPP_UPGRADE = 5,
WND4_NOT_SUPP_DOWNGRADE = 6,
WND4_CANCELLED = 7,
WND4_IS_DIR = 8
};
typedef enum why_no_delegation4 why_no_delegation4;
struct open_none_delegation4 {
why_no_delegation4 ond_why;
union {
bool_t ond_server_will_push_deleg;
bool_t ond_server_will_signal_avail;
} open_none_delegation4_u;
};
typedef struct open_none_delegation4 open_none_delegation4;
struct open_delegation4 {
open_delegation_type4 delegation_type;
union {
open_read_delegation4 read;
open_write_delegation4 write;
open_none_delegation4 od_whynone;
} open_delegation4_u;
};
typedef struct open_delegation4 open_delegation4;
#define OPEN4_RESULT_CONFIRM 0x00000002
#define OPEN4_RESULT_LOCKTYPE_POSIX 0x00000004
#define OPEN4_RESULT_PRESERVE_UNLINKED 0x00000008
#define OPEN4_RESULT_MAY_NOTIFY_LOCK 0x00000020
struct OPEN4resok {
stateid4 stateid;
change_info4 cinfo;
uint32_t rflags;
bitmap4 attrset;
open_delegation4 delegation;
};
typedef struct OPEN4resok OPEN4resok;
struct OPEN4res {
nfsstat4 status;
union {
OPEN4resok resok4;
} OPEN4res_u;
};
typedef struct OPEN4res OPEN4res;
struct OPENATTR4args {
bool_t createdir;
};
typedef struct OPENATTR4args OPENATTR4args;
struct OPENATTR4res {
nfsstat4 status;
};
typedef struct OPENATTR4res OPENATTR4res;
struct OPEN_CONFIRM4args {
stateid4 open_stateid;
seqid4 seqid;
};
typedef struct OPEN_CONFIRM4args OPEN_CONFIRM4args;
struct OPEN_CONFIRM4resok {
stateid4 open_stateid;
};
typedef struct OPEN_CONFIRM4resok OPEN_CONFIRM4resok;
struct OPEN_CONFIRM4res {
nfsstat4 status;
union {
OPEN_CONFIRM4resok resok4;
} OPEN_CONFIRM4res_u;
};
typedef struct OPEN_CONFIRM4res OPEN_CONFIRM4res;
struct OPEN_DOWNGRADE4args {
stateid4 open_stateid;
seqid4 seqid;
uint32_t share_access;
uint32_t share_deny;
};
typedef struct OPEN_DOWNGRADE4args OPEN_DOWNGRADE4args;
struct OPEN_DOWNGRADE4resok {
stateid4 open_stateid;
};
typedef struct OPEN_DOWNGRADE4resok OPEN_DOWNGRADE4resok;
struct OPEN_DOWNGRADE4res {
nfsstat4 status;
union {
OPEN_DOWNGRADE4resok resok4;
} OPEN_DOWNGRADE4res_u;
};
typedef struct OPEN_DOWNGRADE4res OPEN_DOWNGRADE4res;
struct PUTFH4args {
nfs_fh4 object;
};
typedef struct PUTFH4args PUTFH4args;
struct PUTFH4res {
nfsstat4 status;
};
typedef struct PUTFH4res PUTFH4res;
struct PUTPUBFH4res {
nfsstat4 status;
};
typedef struct PUTPUBFH4res PUTPUBFH4res;
struct PUTROOTFH4res {
nfsstat4 status;
};
typedef struct PUTROOTFH4res PUTROOTFH4res;
struct READ4args {
stateid4 stateid;
offset4 offset;
count4 count;
};
typedef struct READ4args READ4args;
struct READ4resok {
bool_t eof;
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct READ4resok READ4resok;
struct READ4res {
nfsstat4 status;
union {
READ4resok resok4;
} READ4res_u;
};
typedef struct READ4res READ4res;
struct READDIR4args {
nfs_cookie4 cookie;
verifier4 cookieverf;
count4 dircount;
count4 maxcount;
bitmap4 attr_request;
};
typedef struct READDIR4args READDIR4args;
struct entry4 {
nfs_cookie4 cookie;
component4 name;
fattr4 attrs;
struct entry4 *nextentry;
};
typedef struct entry4 entry4;
struct dirlist4 {
entry4 *entries;
bool_t eof;
};
typedef struct dirlist4 dirlist4;
struct READDIR4resok {
verifier4 cookieverf;
dirlist4 reply;
};
typedef struct READDIR4resok READDIR4resok;
struct READDIR4res {
nfsstat4 status;
union {
READDIR4resok resok4;
} READDIR4res_u;
};
typedef struct READDIR4res READDIR4res;
struct READLINK4resok {
linktext4 link;
};
typedef struct READLINK4resok READLINK4resok;
struct READLINK4res {
nfsstat4 status;
union {
READLINK4resok resok4;
} READLINK4res_u;
};
typedef struct READLINK4res READLINK4res;
struct REMOVE4args {
component4 target;
};
typedef struct REMOVE4args REMOVE4args;
struct REMOVE4resok {
change_info4 cinfo;
};
typedef struct REMOVE4resok REMOVE4resok;
struct REMOVE4res {
nfsstat4 status;
union {
REMOVE4resok resok4;
} REMOVE4res_u;
};
typedef struct REMOVE4res REMOVE4res;
struct RENAME4args {
component4 oldname;
component4 newname;
};
typedef struct RENAME4args RENAME4args;
struct RENAME4resok {
change_info4 source_cinfo;
change_info4 target_cinfo;
};
typedef struct RENAME4resok RENAME4resok;
struct RENAME4res {
nfsstat4 status;
union {
RENAME4resok resok4;
} RENAME4res_u;
};
typedef struct RENAME4res RENAME4res;
struct RENEW4args {
clientid4 clientid;
};
typedef struct RENEW4args RENEW4args;
struct RENEW4res {
nfsstat4 status;
};
typedef struct RENEW4res RENEW4res;
struct RESTOREFH4res {
nfsstat4 status;
};
typedef struct RESTOREFH4res RESTOREFH4res;
struct SAVEFH4res {
nfsstat4 status;
};
typedef struct SAVEFH4res SAVEFH4res;
struct SECINFO4args {
component4 name;
};
typedef struct SECINFO4args SECINFO4args;
enum rpc_gss_svc_t {
RPC_GSS_SVC_NONE = 1,
RPC_GSS_SVC_INTEGRITY = 2,
RPC_GSS_SVC_PRIVACY = 3
};
typedef enum rpc_gss_svc_t rpc_gss_svc_t;
struct rpcsec_gss_info {
sec_oid4 oid;
qop4 qop;
rpc_gss_svc_t service;
};
typedef struct rpcsec_gss_info rpcsec_gss_info;
struct secinfo4 {
uint32_t flavor;
union {
rpcsec_gss_info flavor_info;
} secinfo4_u;
};
typedef struct secinfo4 secinfo4;
typedef struct {
u_int SECINFO4resok_len;
secinfo4 *SECINFO4resok_val;
} SECINFO4resok;
struct SECINFO4res {
nfsstat4 status;
union {
SECINFO4resok resok4;
} SECINFO4res_u;
};
typedef struct SECINFO4res SECINFO4res;
struct SETATTR4args {
stateid4 stateid;
fattr4 obj_attributes;
};
typedef struct SETATTR4args SETATTR4args;
struct SETATTR4res {
nfsstat4 status;
bitmap4 attrsset;
};
typedef struct SETATTR4res SETATTR4res;
struct SETCLIENTID4args {
nfs_client_id4 client;
cb_client4 callback;
uint32_t callback_ident;
};
typedef struct SETCLIENTID4args SETCLIENTID4args;
struct SETCLIENTID4resok {
clientid4 clientid;
verifier4 setclientid_confirm;
};
typedef struct SETCLIENTID4resok SETCLIENTID4resok;
struct SETCLIENTID4res {
nfsstat4 status;
union {
SETCLIENTID4resok resok4;
clientaddr4 client_using;
} SETCLIENTID4res_u;
};
typedef struct SETCLIENTID4res SETCLIENTID4res;
struct SETCLIENTID_CONFIRM4args {
clientid4 clientid;
verifier4 setclientid_confirm;
};
typedef struct SETCLIENTID_CONFIRM4args SETCLIENTID_CONFIRM4args;
struct SETCLIENTID_CONFIRM4res {
nfsstat4 status;
};
typedef struct SETCLIENTID_CONFIRM4res SETCLIENTID_CONFIRM4res;
struct VERIFY4args {
fattr4 obj_attributes;
};
typedef struct VERIFY4args VERIFY4args;
struct VERIFY4res {
nfsstat4 status;
};
typedef struct VERIFY4res VERIFY4res;
struct WRITE4args {
stateid4 stateid;
offset4 offset;
stable_how4 stable;
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct WRITE4args WRITE4args;
struct WRITE4resok {
count4 count;
stable_how4 committed;
verifier4 writeverf;
};
typedef struct WRITE4resok WRITE4resok;
struct WRITE4res {
nfsstat4 status;
union {
WRITE4resok resok4;
} WRITE4res_u;
};
typedef struct WRITE4res WRITE4res;
struct RELEASE_LOCKOWNER4args {
lock_owner4 lock_owner;
};
typedef struct RELEASE_LOCKOWNER4args RELEASE_LOCKOWNER4args;
struct RELEASE_LOCKOWNER4res {
nfsstat4 status;
};
typedef struct RELEASE_LOCKOWNER4res RELEASE_LOCKOWNER4res;
struct ILLEGAL4res {
nfsstat4 status;
};
typedef struct ILLEGAL4res ILLEGAL4res;
typedef struct {
u_int gsshandle4_t_len;
char *gsshandle4_t_val;
} gsshandle4_t;
struct gss_cb_handles4 {
rpc_gss_svc_t gcbp_service;
gsshandle4_t gcbp_handle_from_server;
gsshandle4_t gcbp_handle_from_client;
};
typedef struct gss_cb_handles4 gss_cb_handles4;
struct callback_sec_parms4 {
uint32_t cb_secflavor;
union {
authsys_parms cbsp_sys_cred;
gss_cb_handles4 cbsp_gss_handles;
} callback_sec_parms4_u;
};
typedef struct callback_sec_parms4 callback_sec_parms4;
struct BACKCHANNEL_CTL4args {
uint32_t bca_cb_program;
struct {
u_int bca_sec_parms_len;
callback_sec_parms4 *bca_sec_parms_val;
} bca_sec_parms;
};
typedef struct BACKCHANNEL_CTL4args BACKCHANNEL_CTL4args;
struct BACKCHANNEL_CTL4res {
nfsstat4 bcr_status;
};
typedef struct BACKCHANNEL_CTL4res BACKCHANNEL_CTL4res;
enum channel_dir_from_client4 {
CDFC4_FORE = 0x1,
CDFC4_BACK = 0x2,
CDFC4_FORE_OR_BOTH = 0x3,
CDFC4_BACK_OR_BOTH = 0x7
};
typedef enum channel_dir_from_client4 channel_dir_from_client4;
struct BIND_CONN_TO_SESSION4args {
sessionid4 bctsa_sessid;
channel_dir_from_client4 bctsa_dir;
bool_t bctsa_use_conn_in_rdma_mode;
};
typedef struct BIND_CONN_TO_SESSION4args BIND_CONN_TO_SESSION4args;
enum channel_dir_from_server4 {
CDFS4_FORE = 0x1,
CDFS4_BACK = 0x2,
CDFS4_BOTH = 0x3
};
typedef enum channel_dir_from_server4 channel_dir_from_server4;
struct BIND_CONN_TO_SESSION4resok {
sessionid4 bctsr_sessid;
channel_dir_from_server4 bctsr_dir;
bool_t bctsr_use_conn_in_rdma_mode;
};
typedef struct BIND_CONN_TO_SESSION4resok BIND_CONN_TO_SESSION4resok;
struct BIND_CONN_TO_SESSION4res {
nfsstat4 bctsr_status;
union {
BIND_CONN_TO_SESSION4resok bctsr_resok4;
} BIND_CONN_TO_SESSION4res_u;
};
typedef struct BIND_CONN_TO_SESSION4res BIND_CONN_TO_SESSION4res;
#define EXCHGID4_FLAG_SUPP_MOVED_REFER 0x00000001
#define EXCHGID4_FLAG_SUPP_MOVED_MIGR 0x00000002
#define EXCHGID4_FLAG_SUPP_FENCE_OPS 0x00000004
#define EXCHGID4_FLAG_BIND_PRINC_STATEID 0x00000100
#define EXCHGID4_FLAG_USE_NON_PNFS 0x00010000
#define EXCHGID4_FLAG_USE_PNFS_MDS 0x00020000
#define EXCHGID4_FLAG_USE_PNFS_DS 0x00040000
#define EXCHGID4_FLAG_MASK_PNFS 0x00070000
#define EXCHGID4_FLAG_UPD_CONFIRMED_REC_A 0x40000000
#define EXCHGID4_FLAG_CONFIRMED_R 0x80000000
struct state_protect_ops4 {
bitmap4 spo_must_enforce;
bitmap4 spo_must_allow;
};
typedef struct state_protect_ops4 state_protect_ops4;
struct ssv_sp_parms4 {
state_protect_ops4 ssp_ops;
struct {
u_int ssp_hash_algs_len;
sec_oid4 *ssp_hash_algs_val;
} ssp_hash_algs;
struct {
u_int ssp_encr_algs_len;
sec_oid4 *ssp_encr_algs_val;
} ssp_encr_algs;
uint32_t ssp_window;
uint32_t ssp_num_gss_handles;
};
typedef struct ssv_sp_parms4 ssv_sp_parms4;
enum state_protect_how4 {
SP4_NONE = 0,
SP4_MACH_CRED = 1,
SP4_SSV = 2
};
typedef enum state_protect_how4 state_protect_how4;
struct state_protect4_a {
state_protect_how4 spa_how;
union {
state_protect_ops4 spa_mach_ops;
ssv_sp_parms4 spa_ssv_parms;
} state_protect4_a_u;
};
typedef struct state_protect4_a state_protect4_a;
struct EXCHANGE_ID4args {
client_owner4 eia_clientowner;
uint32_t eia_flags;
state_protect4_a eia_state_protect;
struct {
u_int eia_client_impl_id_len;
nfs_impl_id4 *eia_client_impl_id_val;
} eia_client_impl_id;
};
typedef struct EXCHANGE_ID4args EXCHANGE_ID4args;
struct ssv_prot_info4 {
state_protect_ops4 spi_ops;
uint32_t spi_hash_alg;
uint32_t spi_encr_alg;
uint32_t spi_ssv_len;
uint32_t spi_window;
struct {
u_int spi_handles_len;
gsshandle4_t *spi_handles_val;
} spi_handles;
};
typedef struct ssv_prot_info4 ssv_prot_info4;
struct state_protect4_r {
state_protect_how4 spr_how;
union {
state_protect_ops4 spr_mach_ops;
ssv_prot_info4 spr_ssv_info;
} state_protect4_r_u;
};
typedef struct state_protect4_r state_protect4_r;
struct EXCHANGE_ID4resok {
clientid4 eir_clientid;
sequenceid4 eir_sequenceid;
uint32_t eir_flags;
state_protect4_r eir_state_protect;
server_owner4 eir_server_owner;
struct {
u_int eir_server_scope_len;
char *eir_server_scope_val;
} eir_server_scope;
struct {
u_int eir_server_impl_id_len;
nfs_impl_id4 *eir_server_impl_id_val;
} eir_server_impl_id;
};
typedef struct EXCHANGE_ID4resok EXCHANGE_ID4resok;
struct EXCHANGE_ID4res {
nfsstat4 eir_status;
union {
EXCHANGE_ID4resok eir_resok4;
} EXCHANGE_ID4res_u;
};
typedef struct EXCHANGE_ID4res EXCHANGE_ID4res;
struct channel_attrs4 {
count4 ca_headerpadsize;
count4 ca_maxrequestsize;
count4 ca_maxresponsesize;
count4 ca_maxresponsesize_cached;
count4 ca_maxoperations;
count4 ca_maxrequests;
struct {
u_int ca_rdma_ird_len;
uint32_t *ca_rdma_ird_val;
} ca_rdma_ird;
};
typedef struct channel_attrs4 channel_attrs4;
#define CREATE_SESSION4_FLAG_PERSIST 0x00000001
#define CREATE_SESSION4_FLAG_CONN_BACK_CHAN 0x00000002
#define CREATE_SESSION4_FLAG_CONN_RDMA 0x00000004
struct CREATE_SESSION4args {
clientid4 csa_clientid;
sequenceid4 csa_sequence;
uint32_t csa_flags;
channel_attrs4 csa_fore_chan_attrs;
channel_attrs4 csa_back_chan_attrs;
uint32_t csa_cb_program;
struct {
u_int csa_sec_parms_len;
callback_sec_parms4 *csa_sec_parms_val;
} csa_sec_parms;
};
typedef struct CREATE_SESSION4args CREATE_SESSION4args;
struct CREATE_SESSION4resok {
sessionid4 csr_sessionid;
sequenceid4 csr_sequence;
uint32_t csr_flags;
channel_attrs4 csr_fore_chan_attrs;
channel_attrs4 csr_back_chan_attrs;
};
typedef struct CREATE_SESSION4resok CREATE_SESSION4resok;
struct CREATE_SESSION4res {
nfsstat4 csr_status;
union {
CREATE_SESSION4resok csr_resok4;
} CREATE_SESSION4res_u;
};
typedef struct CREATE_SESSION4res CREATE_SESSION4res;
struct DESTROY_SESSION4args {
sessionid4 dsa_sessionid;
};
typedef struct DESTROY_SESSION4args DESTROY_SESSION4args;
struct DESTROY_SESSION4res {
nfsstat4 dsr_status;
};
typedef struct DESTROY_SESSION4res DESTROY_SESSION4res;
struct FREE_STATEID4args {
stateid4 fsa_stateid;
};
typedef struct FREE_STATEID4args FREE_STATEID4args;
struct FREE_STATEID4res {
nfsstat4 fsr_status;
};
typedef struct FREE_STATEID4res FREE_STATEID4res;
typedef nfstime4 attr_notice4;
struct GET_DIR_DELEGATION4args {
bool_t gdda_signal_deleg_avail;
bitmap4 gdda_notification_types;
attr_notice4 gdda_child_attr_delay;
attr_notice4 gdda_dir_attr_delay;
bitmap4 gdda_child_attributes;
bitmap4 gdda_dir_attributes;
};
typedef struct GET_DIR_DELEGATION4args GET_DIR_DELEGATION4args;
struct GET_DIR_DELEGATION4resok {
verifier4 gddr_cookieverf;
stateid4 gddr_stateid;
bitmap4 gddr_notification;
bitmap4 gddr_child_attributes;
bitmap4 gddr_dir_attributes;
};
typedef struct GET_DIR_DELEGATION4resok GET_DIR_DELEGATION4resok;
enum gddrnf4_status {
GDD4_OK = 0,
GDD4_UNAVAIL = 1
};
typedef enum gddrnf4_status gddrnf4_status;
struct GET_DIR_DELEGATION4res_non_fatal {
gddrnf4_status gddrnf_status;
union {
GET_DIR_DELEGATION4resok gddrnf_resok4;
bool_t gddrnf_will_signal_deleg_avail;
} GET_DIR_DELEGATION4res_non_fatal_u;
};
typedef struct GET_DIR_DELEGATION4res_non_fatal GET_DIR_DELEGATION4res_non_fatal;
struct GET_DIR_DELEGATION4res {
nfsstat4 gddr_status;
union {
GET_DIR_DELEGATION4res_non_fatal gddr_res_non_fatal4;
} GET_DIR_DELEGATION4res_u;
};
typedef struct GET_DIR_DELEGATION4res GET_DIR_DELEGATION4res;
struct GETDEVICEINFO4args {
deviceid4 gdia_device_id;
layouttype4 gdia_layout_type;
count4 gdia_maxcount;
bitmap4 gdia_notify_types;
};
typedef struct GETDEVICEINFO4args GETDEVICEINFO4args;
struct GETDEVICEINFO4resok {
device_addr4 gdir_device_addr;
bitmap4 gdir_notification;
};
typedef struct GETDEVICEINFO4resok GETDEVICEINFO4resok;
struct GETDEVICEINFO4res {
nfsstat4 gdir_status;
union {
GETDEVICEINFO4resok gdir_resok4;
count4 gdir_mincount;
} GETDEVICEINFO4res_u;
};
typedef struct GETDEVICEINFO4res GETDEVICEINFO4res;
struct GETDEVICELIST4args {
layouttype4 gdla_layout_type;
count4 gdla_maxdevices;
nfs_cookie4 gdla_cookie;
verifier4 gdla_cookieverf;
};
typedef struct GETDEVICELIST4args GETDEVICELIST4args;
struct GETDEVICELIST4resok {
nfs_cookie4 gdlr_cookie;
verifier4 gdlr_cookieverf;
struct {
u_int gdlr_deviceid_list_len;
deviceid4 *gdlr_deviceid_list_val;
} gdlr_deviceid_list;
bool_t gdlr_eof;
};
typedef struct GETDEVICELIST4resok GETDEVICELIST4resok;
struct GETDEVICELIST4res {
nfsstat4 gdlr_status;
union {
GETDEVICELIST4resok gdlr_resok4;
} GETDEVICELIST4res_u;
};
typedef struct GETDEVICELIST4res GETDEVICELIST4res;
struct newtime4 {
bool_t nt_timechanged;
union {
nfstime4 nt_time;
} newtime4_u;
};
typedef struct newtime4 newtime4;
struct newoffset4 {
bool_t no_newoffset;
union {
offset4 no_offset;
} newoffset4_u;
};
typedef struct newoffset4 newoffset4;
struct LAYOUTCOMMIT4args {
offset4 loca_offset;
length4 loca_length;
bool_t loca_reclaim;
stateid4 loca_stateid;
newoffset4 loca_last_write_offset;
newtime4 loca_time_modify;
layoutupdate4 loca_layoutupdate;
};
typedef struct LAYOUTCOMMIT4args LAYOUTCOMMIT4args;
struct newsize4 {
bool_t ns_sizechanged;
union {
length4 ns_size;
} newsize4_u;
};
typedef struct newsize4 newsize4;
struct LAYOUTCOMMIT4resok {
newsize4 locr_newsize;
};
typedef struct LAYOUTCOMMIT4resok LAYOUTCOMMIT4resok;
struct LAYOUTCOMMIT4res {
nfsstat4 locr_status;
union {
LAYOUTCOMMIT4resok locr_resok4;
} LAYOUTCOMMIT4res_u;
};
typedef struct LAYOUTCOMMIT4res LAYOUTCOMMIT4res;
struct LAYOUTGET4args {
bool_t loga_signal_layout_avail;
layouttype4 loga_layout_type;
layoutiomode4 loga_iomode;
offset4 loga_offset;
length4 loga_length;
length4 loga_minlength;
stateid4 loga_stateid;
count4 loga_maxcount;
};
typedef struct LAYOUTGET4args LAYOUTGET4args;
struct LAYOUTGET4resok {
bool_t logr_return_on_close;
stateid4 logr_stateid;
struct {
u_int logr_layout_len;
layout4 *logr_layout_val;
} logr_layout;
};
typedef struct LAYOUTGET4resok LAYOUTGET4resok;
struct LAYOUTGET4res {
nfsstat4 logr_status;
union {
LAYOUTGET4resok logr_resok4;
bool_t logr_will_signal_layout_avail;
} LAYOUTGET4res_u;
};
typedef struct LAYOUTGET4res LAYOUTGET4res;
struct LAYOUTRETURN4args {
bool_t lora_reclaim;
layouttype4 lora_layout_type;
layoutiomode4 lora_iomode;
layoutreturn4 lora_layoutreturn;
};
typedef struct LAYOUTRETURN4args LAYOUTRETURN4args;
struct layoutreturn_stateid {
bool_t lrs_present;
union {
stateid4 lrs_stateid;
} layoutreturn_stateid_u;
};
typedef struct layoutreturn_stateid layoutreturn_stateid;
struct LAYOUTRETURN4res {
nfsstat4 lorr_status;
union {
layoutreturn_stateid lorr_stateid;
} LAYOUTRETURN4res_u;
};
typedef struct LAYOUTRETURN4res LAYOUTRETURN4res;
enum secinfo_style4 {
SECINFO_STYLE4_CURRENT_FH = 0,
SECINFO_STYLE4_PARENT = 1
};
typedef enum secinfo_style4 secinfo_style4;
typedef secinfo_style4 SECINFO_NO_NAME4args;
typedef SECINFO4res SECINFO_NO_NAME4res;
struct SEQUENCE4args {
sessionid4 sa_sessionid;
sequenceid4 sa_sequenceid;
slotid4 sa_slotid;
slotid4 sa_highest_slotid;
bool_t sa_cachethis;
};
typedef struct SEQUENCE4args SEQUENCE4args;
#define SEQ4_STATUS_CB_PATH_DOWN 0x00000001
#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING 0x00000002
#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED 0x00000004
#define SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED 0x00000008
#define SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED 0x00000010
#define SEQ4_STATUS_ADMIN_STATE_REVOKED 0x00000020
#define SEQ4_STATUS_RECALLABLE_STATE_REVOKED 0x00000040
#define SEQ4_STATUS_LEASE_MOVED 0x00000080
#define SEQ4_STATUS_RESTART_RECLAIM_NEEDED 0x00000100
#define SEQ4_STATUS_CB_PATH_DOWN_SESSION 0x00000200
#define SEQ4_STATUS_BACKCHANNEL_FAULT 0x00000400
#define SEQ4_STATUS_DEVID_CHANGED 0x00000800
#define SEQ4_STATUS_DEVID_DELETED 0x00001000
struct SEQUENCE4resok {
sessionid4 sr_sessionid;
sequenceid4 sr_sequenceid;
slotid4 sr_slotid;
slotid4 sr_highest_slotid;
slotid4 sr_target_highest_slotid;
uint32_t sr_status_flags;
};
typedef struct SEQUENCE4resok SEQUENCE4resok;
struct SEQUENCE4res {
nfsstat4 sr_status;
union {
SEQUENCE4resok sr_resok4;
} SEQUENCE4res_u;
};
typedef struct SEQUENCE4res SEQUENCE4res;
struct ssa_digest_input4 {
SEQUENCE4args sdi_seqargs;
};
typedef struct ssa_digest_input4 ssa_digest_input4;
struct SET_SSV4args {
struct {
u_int ssa_ssv_len;
char *ssa_ssv_val;
} ssa_ssv;
struct {
u_int ssa_digest_len;
char *ssa_digest_val;
} ssa_digest;
};
typedef struct SET_SSV4args SET_SSV4args;
struct ssr_digest_input4 {
SEQUENCE4res sdi_seqres;
};
typedef struct ssr_digest_input4 ssr_digest_input4;
struct SET_SSV4resok {
struct {
u_int ssr_digest_len;
char *ssr_digest_val;
} ssr_digest;
};
typedef struct SET_SSV4resok SET_SSV4resok;
struct SET_SSV4res {
nfsstat4 ssr_status;
union {
SET_SSV4resok ssr_resok4;
} SET_SSV4res_u;
};
typedef struct SET_SSV4res SET_SSV4res;
struct TEST_STATEID4args {
struct {
u_int ts_stateids_len;
stateid4 *ts_stateids_val;
} ts_stateids;
};
typedef struct TEST_STATEID4args TEST_STATEID4args;
struct TEST_STATEID4resok {
struct {
u_int tsr_status_codes_len;
nfsstat4 *tsr_status_codes_val;
} tsr_status_codes;
};
typedef struct TEST_STATEID4resok TEST_STATEID4resok;
struct TEST_STATEID4res {
nfsstat4 tsr_status;
union {
TEST_STATEID4resok tsr_resok4;
} TEST_STATEID4res_u;
};
typedef struct TEST_STATEID4res TEST_STATEID4res;
struct deleg_claim4 {
open_claim_type4 dc_claim;
union {
open_delegation_type4 dc_delegate_type;
} deleg_claim4_u;
};
typedef struct deleg_claim4 deleg_claim4;
struct WANT_DELEGATION4args {
uint32_t wda_want;
deleg_claim4 wda_claim;
};
typedef struct WANT_DELEGATION4args WANT_DELEGATION4args;
struct WANT_DELEGATION4res {
nfsstat4 wdr_status;
union {
open_delegation4 wdr_resok4;
} WANT_DELEGATION4res_u;
};
typedef struct WANT_DELEGATION4res WANT_DELEGATION4res;
struct DESTROY_CLIENTID4args {
clientid4 dca_clientid;
};
typedef struct DESTROY_CLIENTID4args DESTROY_CLIENTID4args;
struct DESTROY_CLIENTID4res {
nfsstat4 dcr_status;
};
typedef struct DESTROY_CLIENTID4res DESTROY_CLIENTID4res;
struct RECLAIM_COMPLETE4args {
bool_t rca_one_fs;
};
typedef struct RECLAIM_COMPLETE4args RECLAIM_COMPLETE4args;
struct RECLAIM_COMPLETE4res {
nfsstat4 rcr_status;
};
typedef struct RECLAIM_COMPLETE4res RECLAIM_COMPLETE4res;
struct COPY4args {
stateid4 ca_src_stateid;
stateid4 ca_dst_stateid;
offset4 ca_src_offset;
offset4 ca_dst_offset;
length4 ca_count;
bool_t ca_consecutive;
bool_t ca_synchronous;
struct {
u_int ca_source_server_len;
netloc4 *ca_source_server_val;
} ca_source_server;
};
typedef struct COPY4args COPY4args;
struct copy_requirements4 {
bool_t cr_consecutive;
bool_t cr_synchronous;
};
typedef struct copy_requirements4 copy_requirements4;
struct COPY4resok {
write_response4 cr_response;
copy_requirements4 cr_requirements;
};
typedef struct COPY4resok COPY4resok;
struct COPY4res {
nfsstat4 cr_status;
union {
COPY4resok cr_resok4;
copy_requirements4 cr_requirements;
} COPY4res_u;
};
typedef struct COPY4res COPY4res;
struct COPY_NOTIFY4args {
stateid4 cna_src_stateid;
netloc4 cna_destination_server;
};
typedef struct COPY_NOTIFY4args COPY_NOTIFY4args;
struct COPY_NOTIFY4resok {
nfstime4 cnr_lease_time;
stateid4 cnr_stateid;
struct {
u_int cnr_source_server_len;
netloc4 *cnr_source_server_val;
} cnr_source_server;
};
typedef struct COPY_NOTIFY4resok COPY_NOTIFY4resok;
struct COPY_NOTIFY4res {
nfsstat4 cnr_status;
union {
COPY_NOTIFY4resok resok4;
} COPY_NOTIFY4res_u;
};
typedef struct COPY_NOTIFY4res COPY_NOTIFY4res;
struct OFFLOAD_CANCEL4args {
stateid4 oca_stateid;
};
typedef struct OFFLOAD_CANCEL4args OFFLOAD_CANCEL4args;
struct OFFLOAD_CANCEL4res {
nfsstat4 ocr_status;
};
typedef struct OFFLOAD_CANCEL4res OFFLOAD_CANCEL4res;
struct OFFLOAD_STATUS4args {
stateid4 osa_stateid;
};
typedef struct OFFLOAD_STATUS4args OFFLOAD_STATUS4args;
struct OFFLOAD_STATUS4resok {
length4 osr_count;
struct {
u_int osr_complete_len;
nfsstat4 *osr_complete_val;
} osr_complete;
};
typedef struct OFFLOAD_STATUS4resok OFFLOAD_STATUS4resok;
struct OFFLOAD_STATUS4res {
nfsstat4 osr_status;
union {
OFFLOAD_STATUS4resok osr_resok4;
} OFFLOAD_STATUS4res_u;
};
typedef struct OFFLOAD_STATUS4res OFFLOAD_STATUS4res;
struct ALLOCATE4args {
stateid4 aa_stateid;
offset4 aa_offset;
length4 aa_length;
};
typedef struct ALLOCATE4args ALLOCATE4args;
struct ALLOCATE4res {
nfsstat4 ar_status;
};
typedef struct ALLOCATE4res ALLOCATE4res;
struct DEALLOCATE4args {
stateid4 da_stateid;
offset4 da_offset;
length4 da_length;
};
typedef struct DEALLOCATE4args DEALLOCATE4args;
struct DEALLOCATE4res {
nfsstat4 dr_status;
};
typedef struct DEALLOCATE4res DEALLOCATE4res;
enum IO_ADVISE_type4 {
IO_ADVISE4_NORMAL = 0,
IO_ADVISE4_SEQUENTIAL = 1,
IO_ADVISE4_SEQUENTIAL_BACKWARDS = 2,
IO_ADVISE4_RANDOM = 3,
IO_ADVISE4_WILLNEED = 4,
IO_ADVISE4_WILLNEED_OPPORTUNISTIC = 5,
IO_ADVISE4_DONTNEED = 6,
IO_ADVISE4_NOREUSE = 7,
IO_ADVISE4_READ = 8,
IO_ADVISE4_WRITE = 9,
IO_ADVISE4_INIT_PROXIMITY = 10
};
typedef enum IO_ADVISE_type4 IO_ADVISE_type4;
struct IO_ADVISE4args {
stateid4 iaa_stateid;
offset4 iaa_offset;
length4 iaa_count;
bitmap4 iaa_hints;
};
typedef struct IO_ADVISE4args IO_ADVISE4args;
struct IO_ADVISE4resok {
bitmap4 ior_hints;
};
typedef struct IO_ADVISE4resok IO_ADVISE4resok;
struct IO_ADVISE4res {
nfsstat4 ior_status;
union {
IO_ADVISE4resok resok4;
} IO_ADVISE4res_u;
};
typedef struct IO_ADVISE4res IO_ADVISE4res;
struct device_error4 {
deviceid4 de_deviceid;
nfsstat4 de_status;
nfs_opnum4 de_opnum;
};
typedef struct device_error4 device_error4;
struct LAYOUTERROR4args {
offset4 lea_offset;
length4 lea_length;
stateid4 lea_stateid;
struct {
u_int lea_errors_len;
device_error4 *lea_errors_val;
} lea_errors;
};
typedef struct LAYOUTERROR4args LAYOUTERROR4args;
struct LAYOUTERROR4res {
nfsstat4 ler_status;
};
typedef struct LAYOUTERROR4res LAYOUTERROR4res;
struct io_info4 {
uint64_t ii_count;
uint64_t ii_bytes;
};
typedef struct io_info4 io_info4;
struct LAYOUTSTATS4args {
offset4 lsa_offset;
length4 lsa_length;
stateid4 lsa_stateid;
io_info4 lsa_read;
io_info4 lsa_write;
deviceid4 lsa_deviceid;
layoutupdate4 lsa_layoutupdate;
};
typedef struct LAYOUTSTATS4args LAYOUTSTATS4args;
struct LAYOUTSTATS4res {
nfsstat4 lsr_status;
};
typedef struct LAYOUTSTATS4res LAYOUTSTATS4res;
struct READ_PLUS4args {
stateid4 rpa_stateid;
offset4 rpa_offset;
count4 rpa_count;
};
typedef struct READ_PLUS4args READ_PLUS4args;
struct read_plus_content {
data_content4 rpc_content;
union {
data4 rpc_data;
data_info4 rpc_hole;
} read_plus_content_u;
};
typedef struct read_plus_content read_plus_content;
struct read_plus_res4 {
bool_t rpr_eof;
struct {
u_int rpr_contents_len;
read_plus_content *rpr_contents_val;
} rpr_contents;
};
typedef struct read_plus_res4 read_plus_res4;
struct READ_PLUS4res {
nfsstat4 rp_status;
union {
read_plus_res4 rp_resok4;
} READ_PLUS4res_u;
};
typedef struct READ_PLUS4res READ_PLUS4res;
struct SEEK4args {
stateid4 sa_stateid;
offset4 sa_offset;
data_content4 sa_what;
};
typedef struct SEEK4args SEEK4args;
struct seek_res4 {
bool_t sr_eof;
offset4 sr_offset;
};
typedef struct seek_res4 seek_res4;
struct SEEK4res {
nfsstat4 sa_status;
union {
seek_res4 resok4;
} SEEK4res_u;
};
typedef struct SEEK4res SEEK4res;
struct WRITE_SAME4args {
stateid4 wsa_stateid;
stable_how4 wsa_stable;
app_data_block4 wsa_adb;
};
typedef struct WRITE_SAME4args WRITE_SAME4args;
struct WRITE_SAME4res {
nfsstat4 wsr_status;
union {
write_response4 resok4;
} WRITE_SAME4res_u;
};
typedef struct WRITE_SAME4res WRITE_SAME4res;
struct nfs_argop4 {
nfs_opnum4 argop;
union {
ACCESS4args opaccess;
CLOSE4args opclose;
COMMIT4args opcommit;
CREATE4args opcreate;
DELEGPURGE4args opdelegpurge;
DELEGRETURN4args opdelegreturn;
GETATTR4args opgetattr;
LINK4args oplink;
LOCK4args oplock;
LOCKT4args oplockt;
LOCKU4args oplocku;
LOOKUP4args oplookup;
NVERIFY4args opnverify;
OPEN4args opopen;
OPENATTR4args opopenattr;
OPEN_CONFIRM4args opopen_confirm;
OPEN_DOWNGRADE4args opopen_downgrade;
PUTFH4args opputfh;
READ4args opread;
READDIR4args opreaddir;
REMOVE4args opremove;
RENAME4args oprename;
RENEW4args oprenew;
SECINFO4args opsecinfo;
SETATTR4args opsetattr;
SETCLIENTID4args opsetclientid;
SETCLIENTID_CONFIRM4args opsetclientid_confirm;
VERIFY4args opverify;
WRITE4args opwrite;
RELEASE_LOCKOWNER4args oprelease_lockowner;
BACKCHANNEL_CTL4args opbackchannel_ctl;
BIND_CONN_TO_SESSION4args opbind_conn_to_session;
EXCHANGE_ID4args opexchange_id;
CREATE_SESSION4args opcreate_session;
DESTROY_SESSION4args opdestroy_session;
FREE_STATEID4args opfree_stateid;
GET_DIR_DELEGATION4args opget_dir_delegation;
GETDEVICEINFO4args opgetdeviceinfo;
GETDEVICELIST4args opgetdevicelist;
LAYOUTCOMMIT4args oplayoutcommit;
LAYOUTGET4args oplayoutget;
LAYOUTRETURN4args oplayoutreturn;
SECINFO_NO_NAME4args opsecinfo_no_name;
SEQUENCE4args opsequence;
SET_SSV4args opset_ssv;
TEST_STATEID4args optest_stateid;
WANT_DELEGATION4args opwant_delegation;
DESTROY_CLIENTID4args opdestroy_clientid;
RECLAIM_COMPLETE4args opreclaim_complete;
ALLOCATE4args opallocate;
COPY4args opcopy;
COPY_NOTIFY4args opoffload_notify;
DEALLOCATE4args opdeallocate;
IO_ADVISE4args opio_advise;
LAYOUTERROR4args oplayouterror;
LAYOUTSTATS4args oplayoutstats;
OFFLOAD_CANCEL4args opoffload_cancel;
OFFLOAD_STATUS4args opoffload_status;
READ_PLUS4args opread_plus;
SEEK4args opseek;
WRITE_SAME4args opwrite_same;
CLONE4args opclone;
} nfs_argop4_u;
};
typedef struct nfs_argop4 nfs_argop4;
struct nfs_resop4 {
nfs_opnum4 resop;
union {
ACCESS4res opaccess;
CLOSE4res opclose;
COMMIT4res opcommit;
CREATE4res opcreate;
DELEGPURGE4res opdelegpurge;
DELEGRETURN4res opdelegreturn;
GETATTR4res opgetattr;
GETFH4res opgetfh;
LINK4res oplink;
LOCK4res oplock;
LOCKT4res oplockt;
LOCKU4res oplocku;
LOOKUP4res oplookup;
LOOKUPP4res oplookupp;
NVERIFY4res opnverify;
OPEN4res opopen;
OPENATTR4res opopenattr;
OPEN_CONFIRM4res opopen_confirm;
OPEN_DOWNGRADE4res opopen_downgrade;
PUTFH4res opputfh;
PUTPUBFH4res opputpubfh;
PUTROOTFH4res opputrootfh;
READ4res opread;
READDIR4res opreaddir;
READLINK4res opreadlink;
REMOVE4res opremove;
RENAME4res oprename;
RENEW4res oprenew;
RESTOREFH4res oprestorefh;
SAVEFH4res opsavefh;
SECINFO4res opsecinfo;
SETATTR4res opsetattr;
SETCLIENTID4res opsetclientid;
SETCLIENTID_CONFIRM4res opsetclientid_confirm;
VERIFY4res opverify;
WRITE4res opwrite;
RELEASE_LOCKOWNER4res oprelease_lockowner;
BACKCHANNEL_CTL4res opbackchannel_ctl;
BIND_CONN_TO_SESSION4res opbind_conn_to_session;
EXCHANGE_ID4res opexchange_id;
CREATE_SESSION4res opcreate_session;
DESTROY_SESSION4res opdestroy_session;
FREE_STATEID4res opfree_stateid;
GET_DIR_DELEGATION4res opget_dir_delegation;
GETDEVICEINFO4res opgetdeviceinfo;
GETDEVICELIST4res opgetdevicelist;
LAYOUTCOMMIT4res oplayoutcommit;
LAYOUTGET4res oplayoutget;
LAYOUTRETURN4res oplayoutreturn;
SECINFO_NO_NAME4res opsecinfo_no_name;
SEQUENCE4res opsequence;
SET_SSV4res opset_ssv;
TEST_STATEID4res optest_stateid;
WANT_DELEGATION4res opwant_delegation;
DESTROY_CLIENTID4res opdestroy_clientid;
RECLAIM_COMPLETE4res opreclaim_complete;
ALLOCATE4res opallocate;
COPY4res opcopy;
COPY_NOTIFY4res opcopy_notify;
DEALLOCATE4res opdeallocate;
IO_ADVISE4res opio_advise;
LAYOUTERROR4res oplayouterror;
LAYOUTSTATS4res oplayoutstats;
OFFLOAD_CANCEL4res opoffload_cancel;
OFFLOAD_STATUS4res opoffload_status;
READ_PLUS4res opread_plus;
SEEK4res opseek;
WRITE_SAME4res opwrite_same;
CLONE4res opclone;
ILLEGAL4res opillegal;
} nfs_resop4_u;
};
typedef struct nfs_resop4 nfs_resop4;
struct COMPOUND4args {
utf8str_cs tag;
uint32_t minorversion;
struct {
u_int argarray_len;
nfs_argop4 *argarray_val;
} argarray;
};
typedef struct COMPOUND4args COMPOUND4args;
struct COMPOUND4res {
nfsstat4 status;
utf8str_cs tag;
struct {
u_int resarray_len;
nfs_resop4 *resarray_val;
} resarray;
};
typedef struct COMPOUND4res COMPOUND4res;
struct CB_GETATTR4args {
nfs_fh4 fh;
bitmap4 attr_request;
};
typedef struct CB_GETATTR4args CB_GETATTR4args;
struct CB_GETATTR4resok {
fattr4 obj_attributes;
};
typedef struct CB_GETATTR4resok CB_GETATTR4resok;
struct CB_GETATTR4res {
nfsstat4 status;
union {
CB_GETATTR4resok resok4;
} CB_GETATTR4res_u;
};
typedef struct CB_GETATTR4res CB_GETATTR4res;
struct CB_RECALL4args {
stateid4 stateid;
bool_t truncate;
nfs_fh4 fh;
};
typedef struct CB_RECALL4args CB_RECALL4args;
struct CB_RECALL4res {
nfsstat4 status;
};
typedef struct CB_RECALL4res CB_RECALL4res;
struct CB_ILLEGAL4res {
nfsstat4 status;
};
typedef struct CB_ILLEGAL4res CB_ILLEGAL4res;
enum layoutrecall_type4 {
LAYOUTRECALL4_FILE = LAYOUT4_RET_REC_FILE,
LAYOUTRECALL4_FSID = LAYOUT4_RET_REC_FSID,
LAYOUTRECALL4_ALL = LAYOUT4_RET_REC_ALL
};
typedef enum layoutrecall_type4 layoutrecall_type4;
struct layoutrecall_file4 {
nfs_fh4 lor_fh;
offset4 lor_offset;
length4 lor_length;
stateid4 lor_stateid;
};
typedef struct layoutrecall_file4 layoutrecall_file4;
struct layoutrecall4 {
layoutrecall_type4 lor_recalltype;
union {
layoutrecall_file4 lor_layout;
fsid4 lor_fsid;
} layoutrecall4_u;
};
typedef struct layoutrecall4 layoutrecall4;
struct CB_LAYOUTRECALL4args {
layouttype4 clora_type;
layoutiomode4 clora_iomode;
bool_t clora_changed;
layoutrecall4 clora_recall;
};
typedef struct CB_LAYOUTRECALL4args CB_LAYOUTRECALL4args;
struct CB_LAYOUTRECALL4res {
nfsstat4 clorr_status;
};
typedef struct CB_LAYOUTRECALL4res CB_LAYOUTRECALL4res;
enum notify_type4 {
NOTIFY4_CHANGE_CHILD_ATTRS = 0,
NOTIFY4_CHANGE_DIR_ATTRS = 1,
NOTIFY4_REMOVE_ENTRY = 2,
NOTIFY4_ADD_ENTRY = 3,
NOTIFY4_RENAME_ENTRY = 4,
NOTIFY4_CHANGE_COOKIE_VERIFIER = 5
};
typedef enum notify_type4 notify_type4;
struct notify_entry4 {
component4 ne_file;
fattr4 ne_attrs;
};
typedef struct notify_entry4 notify_entry4;
struct prev_entry4 {
notify_entry4 pe_prev_entry;
nfs_cookie4 pe_prev_entry_cookie;
};
typedef struct prev_entry4 prev_entry4;
struct notify_remove4 {
notify_entry4 nrm_old_entry;
nfs_cookie4 nrm_old_entry_cookie;
};
typedef struct notify_remove4 notify_remove4;
struct notify_add4 {
struct {
u_int nad_old_entry_len;
notify_remove4 *nad_old_entry_val;
} nad_old_entry;
notify_entry4 nad_new_entry;
struct {
u_int nad_new_entry_cookie_len;
nfs_cookie4 *nad_new_entry_cookie_val;
} nad_new_entry_cookie;
struct {
u_int nad_prev_entry_len;
prev_entry4 *nad_prev_entry_val;
} nad_prev_entry;
bool_t nad_last_entry;
};
typedef struct notify_add4 notify_add4;
struct notify_attr4 {
notify_entry4 na_changed_entry;
};
typedef struct notify_attr4 notify_attr4;
struct notify_rename4 {
notify_remove4 nrn_old_entry;
notify_add4 nrn_new_entry;
};
typedef struct notify_rename4 notify_rename4;
struct notify_verifier4 {
verifier4 nv_old_cookieverf;
verifier4 nv_new_cookieverf;
};
typedef struct notify_verifier4 notify_verifier4;
typedef struct {
u_int notifylist4_len;
char *notifylist4_val;
} notifylist4;
struct notify4 {
bitmap4 notify_mask;
notifylist4 notify_vals;
};
typedef struct notify4 notify4;
struct CB_NOTIFY4args {
stateid4 cna_stateid;
nfs_fh4 cna_fh;
struct {
u_int cna_changes_len;
notify4 *cna_changes_val;
} cna_changes;
};
typedef struct CB_NOTIFY4args CB_NOTIFY4args;
struct CB_NOTIFY4res {
nfsstat4 cnr_status;
};
typedef struct CB_NOTIFY4res CB_NOTIFY4res;
struct CB_PUSH_DELEG4args {
nfs_fh4 cpda_fh;
open_delegation4 cpda_delegation;
};
typedef struct CB_PUSH_DELEG4args CB_PUSH_DELEG4args;
struct CB_PUSH_DELEG4res {
nfsstat4 cpdr_status;
};
typedef struct CB_PUSH_DELEG4res CB_PUSH_DELEG4res;
#define RCA4_TYPE_MASK_RDATA_DLG 0
#define RCA4_TYPE_MASK_WDATA_DLG 1
#define RCA4_TYPE_MASK_DIR_DLG 2
#define RCA4_TYPE_MASK_FILE_LAYOUT 3
#define RCA4_TYPE_MASK_BLK_LAYOUT 4
#define RCA4_TYPE_MASK_OBJ_LAYOUT_MIN 8
#define RCA4_TYPE_MASK_OBJ_LAYOUT_MAX 9
#define RCA4_TYPE_MASK_OTHER_LAYOUT_MIN 12
#define RCA4_TYPE_MASK_OTHER_LAYOUT_MAX 15
struct CB_RECALL_ANY4args {
uint32_t craa_objects_to_keep;
bitmap4 craa_type_mask;
};
typedef struct CB_RECALL_ANY4args CB_RECALL_ANY4args;
struct CB_RECALL_ANY4res {
nfsstat4 crar_status;
};
typedef struct CB_RECALL_ANY4res CB_RECALL_ANY4res;
typedef CB_RECALL_ANY4args CB_RECALLABLE_OBJ_AVAIL4args;
struct CB_RECALLABLE_OBJ_AVAIL4res {
nfsstat4 croa_status;
};
typedef struct CB_RECALLABLE_OBJ_AVAIL4res CB_RECALLABLE_OBJ_AVAIL4res;
struct CB_RECALL_SLOT4args {
slotid4 rsa_target_highest_slotid;
};
typedef struct CB_RECALL_SLOT4args CB_RECALL_SLOT4args;
struct CB_RECALL_SLOT4res {
nfsstat4 rsr_status;
};
typedef struct CB_RECALL_SLOT4res CB_RECALL_SLOT4res;
struct referring_call4 {
sequenceid4 rc_sequenceid;
slotid4 rc_slotid;
};
typedef struct referring_call4 referring_call4;
struct referring_call_list4 {
sessionid4 rcl_sessionid;
struct {
u_int rcl_referring_calls_len;
referring_call4 *rcl_referring_calls_val;
} rcl_referring_calls;
};
typedef struct referring_call_list4 referring_call_list4;
struct CB_SEQUENCE4args {
sessionid4 csa_sessionid;
sequenceid4 csa_sequenceid;
slotid4 csa_slotid;
slotid4 csa_highest_slotid;
bool_t csa_cachethis;
struct {
u_int csa_referring_call_lists_len;
referring_call_list4 *csa_referring_call_lists_val;
} csa_referring_call_lists;
};
typedef struct CB_SEQUENCE4args CB_SEQUENCE4args;
struct CB_SEQUENCE4resok {
sessionid4 csr_sessionid;
sequenceid4 csr_sequenceid;
slotid4 csr_slotid;
slotid4 csr_highest_slotid;
slotid4 csr_target_highest_slotid;
};
typedef struct CB_SEQUENCE4resok CB_SEQUENCE4resok;
struct CB_SEQUENCE4res {
nfsstat4 csr_status;
union {
CB_SEQUENCE4resok csr_resok4;
} CB_SEQUENCE4res_u;
};
typedef struct CB_SEQUENCE4res CB_SEQUENCE4res;
struct CB_WANTS_CANCELLED4args {
bool_t cwca_contended_wants_cancelled;
bool_t cwca_resourced_wants_cancelled;
};
typedef struct CB_WANTS_CANCELLED4args CB_WANTS_CANCELLED4args;
struct CB_WANTS_CANCELLED4res {
nfsstat4 cwcr_status;
};
typedef struct CB_WANTS_CANCELLED4res CB_WANTS_CANCELLED4res;
struct CB_NOTIFY_LOCK4args {
nfs_fh4 cnla_fh;
lock_owner4 cnla_lock_owner;
};
typedef struct CB_NOTIFY_LOCK4args CB_NOTIFY_LOCK4args;
struct CB_NOTIFY_LOCK4res {
nfsstat4 cnlr_status;
};
typedef struct CB_NOTIFY_LOCK4res CB_NOTIFY_LOCK4res;
enum notify_deviceid_type4 {
NOTIFY_DEVICEID4_CHANGE = 1,
NOTIFY_DEVICEID4_DELETE = 2
};
typedef enum notify_deviceid_type4 notify_deviceid_type4;
struct notify_deviceid_delete4 {
layouttype4 ndd_layouttype;
deviceid4 ndd_deviceid;
};
typedef struct notify_deviceid_delete4 notify_deviceid_delete4;
struct notify_deviceid_change4 {
layouttype4 ndc_layouttype;
deviceid4 ndc_deviceid;
bool_t ndc_immediate;
};
typedef struct notify_deviceid_change4 notify_deviceid_change4;
struct CB_NOTIFY_DEVICEID4args {
struct {
u_int cnda_changes_len;
notify4 *cnda_changes_val;
} cnda_changes;
};
typedef struct CB_NOTIFY_DEVICEID4args CB_NOTIFY_DEVICEID4args;
struct CB_NOTIFY_DEVICEID4res {
nfsstat4 cndr_status;
};
typedef struct CB_NOTIFY_DEVICEID4res CB_NOTIFY_DEVICEID4res;
struct offload_info4 {
nfsstat4 coa_status;
union {
write_response4 coa_resok4;
length4 coa_bytes_copied;
} offload_info4_u;
};
typedef struct offload_info4 offload_info4;
struct CB_OFFLOAD4args {
nfs_fh4 coa_fh;
stateid4 coa_stateid;
offload_info4 coa_offload_info;
};
typedef struct CB_OFFLOAD4args CB_OFFLOAD4args;
struct CB_OFFLOAD4res {
nfsstat4 cor_status;
};
typedef struct CB_OFFLOAD4res CB_OFFLOAD4res;
/* Callback operations new to NFSv4.1 */
/* Callback operations new to NFSv4.2 */
enum nfs_cb_opnum4 {
OP_CB_GETATTR = 3,
OP_CB_RECALL = 4,
OP_CB_LAYOUTRECALL = 5,
OP_CB_NOTIFY = 6,
OP_CB_PUSH_DELEG = 7,
OP_CB_RECALL_ANY = 8,
OP_CB_RECALLABLE_OBJ_AVAIL = 9,
OP_CB_RECALL_SLOT = 10,
OP_CB_SEQUENCE = 11,
OP_CB_WANTS_CANCELLED = 12,
OP_CB_NOTIFY_LOCK = 13,
OP_CB_NOTIFY_DEVICEID = 14,
OP_CB_OFFLOAD = 15,
OP_CB_ILLEGAL = 10044
};
typedef enum nfs_cb_opnum4 nfs_cb_opnum4;
struct nfs_cb_argop4 {
nfs_cb_opnum4 argop;
union {
CB_GETATTR4args opcbgetattr;
CB_RECALL4args opcbrecall;
CB_LAYOUTRECALL4args opcblayoutrecall;
CB_NOTIFY4args opcbnotify;
CB_PUSH_DELEG4args opcbpush_deleg;
CB_RECALL_ANY4args opcbrecall_any;
CB_RECALLABLE_OBJ_AVAIL4args opcbrecallable_obj_avail;
CB_RECALL_SLOT4args opcbrecall_slot;
CB_SEQUENCE4args opcbsequence;
CB_WANTS_CANCELLED4args opcbwants_cancelled;
CB_NOTIFY_LOCK4args opcbnotify_lock;
CB_NOTIFY_DEVICEID4args opcbnotify_deviceid;
CB_OFFLOAD4args opcboffload;
} nfs_cb_argop4_u;
};
typedef struct nfs_cb_argop4 nfs_cb_argop4;
struct nfs_cb_resop4 {
nfs_cb_opnum4 resop;
union {
CB_GETATTR4res opcbgetattr;
CB_RECALL4res opcbrecall;
CB_LAYOUTRECALL4res opcblayoutrecall;
CB_NOTIFY4res opcbnotify;
CB_PUSH_DELEG4res opcbpush_deleg;
CB_RECALL_ANY4res opcbrecall_any;
CB_RECALLABLE_OBJ_AVAIL4res opcbrecallable_obj_avail;
CB_RECALL_SLOT4res opcbrecall_slot;
CB_SEQUENCE4res opcbsequence;
CB_WANTS_CANCELLED4res opcbwants_cancelled;
CB_NOTIFY_LOCK4res opcbnotify_lock;
CB_NOTIFY_DEVICEID4res opcbnotify_deviceid;
CB_OFFLOAD4res opcboffload;
CB_ILLEGAL4res opcbillegal;
} nfs_cb_resop4_u;
};
typedef struct nfs_cb_resop4 nfs_cb_resop4;
struct CB_COMPOUND4args {
utf8str_cs tag;
uint32_t minorversion;
uint32_t callback_ident;
struct {
u_int argarray_len;
nfs_cb_argop4 *argarray_val;
} argarray;
};
typedef struct CB_COMPOUND4args CB_COMPOUND4args;
struct CB_COMPOUND4res {
nfsstat4 status;
utf8str_cs tag;
struct {
u_int resarray_len;
nfs_cb_resop4 *resarray_val;
} resarray;
};
typedef struct CB_COMPOUND4res CB_COMPOUND4res;
#define NFS4_PROGRAM 100003
#define NFS_V4 4
#if defined(__STDC__) || defined(__cplusplus)
#define NFSPROC4_NULL 0
extern void * nfsproc4_null_4(void *, CLIENT *);
extern void * nfsproc4_null_4_svc(void *, struct svc_req *);
#define NFSPROC4_COMPOUND 1
extern COMPOUND4res * nfsproc4_compound_4(COMPOUND4args *, CLIENT *);
extern COMPOUND4res * nfsproc4_compound_4_svc(COMPOUND4args *, struct svc_req *);
extern int nfs4_program_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define NFSPROC4_NULL 0
extern void * nfsproc4_null_4();
extern void * nfsproc4_null_4_svc();
#define NFSPROC4_COMPOUND 1
extern COMPOUND4res * nfsproc4_compound_4();
extern COMPOUND4res * nfsproc4_compound_4_svc();
extern int nfs4_program_4_freeresult();
#endif /* K&R C */
#define NFS4_CALLBACK 0x40000000
#define NFS_CB 1
#if defined(__STDC__) || defined(__cplusplus)
#define CB_NULL 0
extern void * cb_null_1(void *, CLIENT *);
extern void * cb_null_1_svc(void *, struct svc_req *);
#define CB_COMPOUND 1
extern CB_COMPOUND4res * cb_compound_1(CB_COMPOUND4args *, CLIENT *);
extern CB_COMPOUND4res * cb_compound_1_svc(CB_COMPOUND4args *, struct svc_req *);
extern int nfs4_callback_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define CB_NULL 0
extern void * cb_null_1();
extern void * cb_null_1_svc();
#define CB_COMPOUND 1
extern CB_COMPOUND4res * cb_compound_1();
extern CB_COMPOUND4res * cb_compound_1_svc();
extern int nfs4_callback_1_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_nfs_ftype4(XDR *, nfs_ftype4*);
extern bool_t xdr_nfsstat4(XDR *, nfsstat4*);
extern bool_t xdr_attrlist4(XDR *, attrlist4*);
extern bool_t xdr_bitmap4(XDR *, bitmap4*);
extern bool_t xdr_changeid4(XDR *, changeid4*);
extern bool_t xdr_clientid4(XDR *, clientid4*);
extern bool_t xdr_count4(XDR *, count4*);
extern bool_t xdr_length4(XDR *, length4*);
extern bool_t xdr_mode4(XDR *, mode4*);
extern bool_t xdr_nfs_cookie4(XDR *, nfs_cookie4*);
extern bool_t xdr_nfs_fh4(XDR *, nfs_fh4*);
extern bool_t xdr_offset4(XDR *, offset4*);
extern bool_t xdr_qop4(XDR *, qop4*);
extern bool_t xdr_sec_oid4(XDR *, sec_oid4*);
extern bool_t xdr_sequenceid4(XDR *, sequenceid4*);
extern bool_t xdr_seqid4(XDR *, seqid4*);
extern bool_t xdr_sessionid4(XDR *, sessionid4);
extern bool_t xdr_slotid4(XDR *, slotid4*);
extern bool_t xdr_utf8string(XDR *, utf8string*);
extern bool_t xdr_utf8str_cis(XDR *, utf8str_cis*);
extern bool_t xdr_utf8str_cs(XDR *, utf8str_cs*);
extern bool_t xdr_utf8str_mixed(XDR *, utf8str_mixed*);
extern bool_t xdr_component4(XDR *, component4*);
extern bool_t xdr_linktext4(XDR *, linktext4*);
extern bool_t xdr_ascii_REQUIRED4(XDR *, ascii_REQUIRED4*);
extern bool_t xdr_pathname4(XDR *, pathname4*);
extern bool_t xdr_verifier4(XDR *, verifier4);
extern bool_t xdr_secret4(XDR *, secret4*);
extern bool_t xdr_policy4(XDR *, policy4*);
extern bool_t xdr_nfstime4(XDR *, nfstime4*);
extern bool_t xdr_time_how4(XDR *, time_how4*);
extern bool_t xdr_settime4(XDR *, settime4*);
extern bool_t xdr_nfs_lease4(XDR *, nfs_lease4*);
extern bool_t xdr_fsid4(XDR *, fsid4*);
extern bool_t xdr_change_policy4(XDR *, change_policy4*);
extern bool_t xdr_fs_location4(XDR *, fs_location4*);
extern bool_t xdr_fs_locations4(XDR *, fs_locations4*);
extern bool_t xdr_acetype4(XDR *, acetype4*);
extern bool_t xdr_aceflag4(XDR *, aceflag4*);
extern bool_t xdr_acemask4(XDR *, acemask4*);
extern bool_t xdr_nfsace4(XDR *, nfsace4*);
extern bool_t xdr_aclflag4(XDR *, aclflag4*);
extern bool_t xdr_nfsacl41(XDR *, nfsacl41*);
extern bool_t xdr_mode_masked4(XDR *, mode_masked4*);
extern bool_t xdr_specdata4(XDR *, specdata4*);
extern bool_t xdr_netaddr4(XDR *, netaddr4*);
extern bool_t xdr_nfs_impl_id4(XDR *, nfs_impl_id4*);
extern bool_t xdr_stateid4(XDR *, stateid4*);
extern bool_t xdr_layouttype4(XDR *, layouttype4*);
extern bool_t xdr_layout_content4(XDR *, layout_content4*);
extern bool_t xdr_layouthint4(XDR *, layouthint4*);
extern bool_t xdr_layoutiomode4(XDR *, layoutiomode4*);
extern bool_t xdr_layout4(XDR *, layout4*);
extern bool_t xdr_deviceid4(XDR *, deviceid4);
extern bool_t xdr_device_addr4(XDR *, device_addr4*);
extern bool_t xdr_layoutupdate4(XDR *, layoutupdate4*);
extern bool_t xdr_layoutreturn_type4(XDR *, layoutreturn_type4*);
extern bool_t xdr_layoutreturn_file4(XDR *, layoutreturn_file4*);
extern bool_t xdr_layoutreturn4(XDR *, layoutreturn4*);
extern bool_t xdr_fs4_status_type(XDR *, fs4_status_type*);
extern bool_t xdr_fs4_status(XDR *, fs4_status*);
extern bool_t xdr_threshold4_read_size(XDR *, threshold4_read_size*);
extern bool_t xdr_threshold4_write_size(XDR *, threshold4_write_size*);
extern bool_t xdr_threshold4_read_iosize(XDR *, threshold4_read_iosize*);
extern bool_t xdr_threshold4_write_iosize(XDR *, threshold4_write_iosize*);
extern bool_t xdr_threshold_item4(XDR *, threshold_item4*);
extern bool_t xdr_mdsthreshold4(XDR *, mdsthreshold4*);
extern bool_t xdr_retention_get4(XDR *, retention_get4*);
extern bool_t xdr_retention_set4(XDR *, retention_set4*);
extern bool_t xdr_fs_charset_cap4(XDR *, fs_charset_cap4*);
extern bool_t xdr_netloc_type4(XDR *, netloc_type4*);
extern bool_t xdr_netloc4(XDR *, netloc4*);
extern bool_t xdr_change_attr_type4(XDR *, change_attr_type4*);
extern bool_t xdr_labelformat_spec4(XDR *, labelformat_spec4*);
extern bool_t xdr_sec_label4(XDR *, sec_label4*);
extern bool_t xdr_copy_from_auth_priv(XDR *, copy_from_auth_priv*);
extern bool_t xdr_copy_to_auth_priv(XDR *, copy_to_auth_priv*);
extern bool_t xdr_copy_confirm_auth_priv(XDR *, copy_confirm_auth_priv*);
extern bool_t xdr_app_data_block4(XDR *, app_data_block4*);
extern bool_t xdr_data4(XDR *, data4*);
extern bool_t xdr_data_info4(XDR *, data_info4*);
extern bool_t xdr_data_content4(XDR *, data_content4*);
extern bool_t xdr_stable_how4(XDR *, stable_how4*);
extern bool_t xdr_write_response4(XDR *, write_response4*);
extern bool_t xdr_fattr4_supported_attrs(XDR *, fattr4_supported_attrs*);
extern bool_t xdr_fattr4_type(XDR *, fattr4_type*);
extern bool_t xdr_fattr4_fh_expire_type(XDR *, fattr4_fh_expire_type*);
extern bool_t xdr_fattr4_change(XDR *, fattr4_change*);
extern bool_t xdr_fattr4_size(XDR *, fattr4_size*);
extern bool_t xdr_fattr4_link_support(XDR *, fattr4_link_support*);
extern bool_t xdr_fattr4_symlink_support(XDR *, fattr4_symlink_support*);
extern bool_t xdr_fattr4_named_attr(XDR *, fattr4_named_attr*);
extern bool_t xdr_fattr4_fsid(XDR *, fattr4_fsid*);
extern bool_t xdr_fattr4_unique_handles(XDR *, fattr4_unique_handles*);
extern bool_t xdr_fattr4_lease_time(XDR *, fattr4_lease_time*);
extern bool_t xdr_fattr4_rdattr_error(XDR *, fattr4_rdattr_error*);
extern bool_t xdr_fattr4_acl(XDR *, fattr4_acl*);
extern bool_t xdr_fattr4_aclsupport(XDR *, fattr4_aclsupport*);
extern bool_t xdr_fattr4_archive(XDR *, fattr4_archive*);
extern bool_t xdr_fattr4_cansettime(XDR *, fattr4_cansettime*);
extern bool_t xdr_fattr4_case_insensitive(XDR *, fattr4_case_insensitive*);
extern bool_t xdr_fattr4_case_preserving(XDR *, fattr4_case_preserving*);
extern bool_t xdr_fattr4_chown_restricted(XDR *, fattr4_chown_restricted*);
extern bool_t xdr_fattr4_fileid(XDR *, fattr4_fileid*);
extern bool_t xdr_fattr4_files_avail(XDR *, fattr4_files_avail*);
extern bool_t xdr_fattr4_filehandle(XDR *, fattr4_filehandle*);
extern bool_t xdr_fattr4_files_free(XDR *, fattr4_files_free*);
extern bool_t xdr_fattr4_files_total(XDR *, fattr4_files_total*);
extern bool_t xdr_fattr4_fs_locations(XDR *, fattr4_fs_locations*);
extern bool_t xdr_fattr4_hidden(XDR *, fattr4_hidden*);
extern bool_t xdr_fattr4_homogeneous(XDR *, fattr4_homogeneous*);
extern bool_t xdr_fattr4_maxfilesize(XDR *, fattr4_maxfilesize*);
extern bool_t xdr_fattr4_maxlink(XDR *, fattr4_maxlink*);
extern bool_t xdr_fattr4_maxname(XDR *, fattr4_maxname*);
extern bool_t xdr_fattr4_maxread(XDR *, fattr4_maxread*);
extern bool_t xdr_fattr4_maxwrite(XDR *, fattr4_maxwrite*);
extern bool_t xdr_fattr4_mimetype(XDR *, fattr4_mimetype*);
extern bool_t xdr_fattr4_mode(XDR *, fattr4_mode*);
extern bool_t xdr_fattr4_mode_set_masked(XDR *, fattr4_mode_set_masked*);
extern bool_t xdr_fattr4_mounted_on_fileid(XDR *, fattr4_mounted_on_fileid*);
extern bool_t xdr_fattr4_no_trunc(XDR *, fattr4_no_trunc*);
extern bool_t xdr_fattr4_numlinks(XDR *, fattr4_numlinks*);
extern bool_t xdr_fattr4_owner(XDR *, fattr4_owner*);
extern bool_t xdr_fattr4_owner_group(XDR *, fattr4_owner_group*);
extern bool_t xdr_fattr4_quota_avail_hard(XDR *, fattr4_quota_avail_hard*);
extern bool_t xdr_fattr4_quota_avail_soft(XDR *, fattr4_quota_avail_soft*);
extern bool_t xdr_fattr4_quota_used(XDR *, fattr4_quota_used*);
extern bool_t xdr_fattr4_rawdev(XDR *, fattr4_rawdev*);
extern bool_t xdr_fattr4_space_avail(XDR *, fattr4_space_avail*);
extern bool_t xdr_fattr4_space_free(XDR *, fattr4_space_free*);
extern bool_t xdr_fattr4_space_total(XDR *, fattr4_space_total*);
extern bool_t xdr_fattr4_space_used(XDR *, fattr4_space_used*);
extern bool_t xdr_fattr4_system(XDR *, fattr4_system*);
extern bool_t xdr_fattr4_time_access(XDR *, fattr4_time_access*);
extern bool_t xdr_fattr4_time_access_set(XDR *, fattr4_time_access_set*);
extern bool_t xdr_fattr4_time_backup(XDR *, fattr4_time_backup*);
extern bool_t xdr_fattr4_time_create(XDR *, fattr4_time_create*);
extern bool_t xdr_fattr4_time_delta(XDR *, fattr4_time_delta*);
extern bool_t xdr_fattr4_time_metadata(XDR *, fattr4_time_metadata*);
extern bool_t xdr_fattr4_time_modify(XDR *, fattr4_time_modify*);
extern bool_t xdr_fattr4_time_modify_set(XDR *, fattr4_time_modify_set*);
extern bool_t xdr_fattr4_suppattr_exclcreat(XDR *, fattr4_suppattr_exclcreat*);
extern bool_t xdr_fattr4_dir_notif_delay(XDR *, fattr4_dir_notif_delay*);
extern bool_t xdr_fattr4_dirent_notif_delay(XDR *, fattr4_dirent_notif_delay*);
extern bool_t xdr_fattr4_fs_layout_types(XDR *, fattr4_fs_layout_types*);
extern bool_t xdr_fattr4_fs_status(XDR *, fattr4_fs_status*);
extern bool_t xdr_fattr4_fs_charset_cap(XDR *, fattr4_fs_charset_cap*);
extern bool_t xdr_fattr4_layout_alignment(XDR *, fattr4_layout_alignment*);
extern bool_t xdr_fattr4_layout_blksize(XDR *, fattr4_layout_blksize*);
extern bool_t xdr_fattr4_layout_hint(XDR *, fattr4_layout_hint*);
extern bool_t xdr_fattr4_layout_types(XDR *, fattr4_layout_types*);
extern bool_t xdr_fattr4_mdsthreshold(XDR *, fattr4_mdsthreshold*);
extern bool_t xdr_fattr4_retention_get(XDR *, fattr4_retention_get*);
extern bool_t xdr_fattr4_retention_set(XDR *, fattr4_retention_set*);
extern bool_t xdr_fattr4_retentevt_get(XDR *, fattr4_retentevt_get*);
extern bool_t xdr_fattr4_retentevt_set(XDR *, fattr4_retentevt_set*);
extern bool_t xdr_fattr4_retention_hold(XDR *, fattr4_retention_hold*);
extern bool_t xdr_fattr4_dacl(XDR *, fattr4_dacl*);
extern bool_t xdr_fattr4_sacl(XDR *, fattr4_sacl*);
extern bool_t xdr_fattr4_change_policy(XDR *, fattr4_change_policy*);
extern bool_t xdr_fattr4_space_freed(XDR *, fattr4_space_freed*);
extern bool_t xdr_fattr4_change_attr_type(XDR *, fattr4_change_attr_type*);
extern bool_t xdr_fattr4_sec_label(XDR *, fattr4_sec_label*);
extern bool_t xdr_fattr4_clone_blksize(XDR *, fattr4_clone_blksize*);
extern bool_t xdr_fattr4(XDR *, fattr4*);
extern bool_t xdr_change_info4(XDR *, change_info4*);
extern bool_t xdr_clientaddr4(XDR *, clientaddr4*);
extern bool_t xdr_cb_client4(XDR *, cb_client4*);
extern bool_t xdr_nfs_client_id4(XDR *, nfs_client_id4*);
extern bool_t xdr_client_owner4(XDR *, client_owner4*);
extern bool_t xdr_server_owner4(XDR *, server_owner4*);
extern bool_t xdr_state_owner4(XDR *, state_owner4*);
extern bool_t xdr_open_owner4(XDR *, open_owner4*);
extern bool_t xdr_lock_owner4(XDR *, lock_owner4*);
extern bool_t xdr_nfs_lock_type4(XDR *, nfs_lock_type4*);
extern bool_t xdr_ssv_subkey4(XDR *, ssv_subkey4*);
extern bool_t xdr_ssv_mic_plain_tkn4(XDR *, ssv_mic_plain_tkn4*);
extern bool_t xdr_ssv_mic_tkn4(XDR *, ssv_mic_tkn4*);
extern bool_t xdr_ssv_seal_plain_tkn4(XDR *, ssv_seal_plain_tkn4*);
extern bool_t xdr_ssv_seal_cipher_tkn4(XDR *, ssv_seal_cipher_tkn4*);
extern bool_t xdr_fs_locations_server4(XDR *, fs_locations_server4*);
extern bool_t xdr_fs_locations_item4(XDR *, fs_locations_item4*);
extern bool_t xdr_fs_locations_info4(XDR *, fs_locations_info4*);
extern bool_t xdr_fattr4_fs_locations_info(XDR *, fattr4_fs_locations_info*);
extern bool_t xdr_nfl_util4(XDR *, nfl_util4*);
extern bool_t xdr_filelayout_hint_care4(XDR *, filelayout_hint_care4*);
extern bool_t xdr_nfsv4_1_file_layouthint4(XDR *, nfsv4_1_file_layouthint4*);
extern bool_t xdr_multipath_list4(XDR *, multipath_list4*);
extern bool_t xdr_nfsv4_1_file_layout_ds_addr4(XDR *, nfsv4_1_file_layout_ds_addr4*);
extern bool_t xdr_nfsv4_1_file_layout4(XDR *, nfsv4_1_file_layout4*);
extern bool_t xdr_nfs_opnum4(XDR *, nfs_opnum4*);
extern bool_t xdr_ACCESS4args(XDR *, ACCESS4args*);
extern bool_t xdr_ACCESS4resok(XDR *, ACCESS4resok*);
extern bool_t xdr_ACCESS4res(XDR *, ACCESS4res*);
extern bool_t xdr_CLONE4args(XDR *, CLONE4args*);
extern bool_t xdr_CLONE4res(XDR *, CLONE4res*);
extern bool_t xdr_CLOSE4args(XDR *, CLOSE4args*);
extern bool_t xdr_CLOSE4res(XDR *, CLOSE4res*);
extern bool_t xdr_COMMIT4args(XDR *, COMMIT4args*);
extern bool_t xdr_COMMIT4resok(XDR *, COMMIT4resok*);
extern bool_t xdr_COMMIT4res(XDR *, COMMIT4res*);
extern bool_t xdr_createtype4(XDR *, createtype4*);
extern bool_t xdr_CREATE4args(XDR *, CREATE4args*);
extern bool_t xdr_CREATE4resok(XDR *, CREATE4resok*);
extern bool_t xdr_CREATE4res(XDR *, CREATE4res*);
extern bool_t xdr_DELEGPURGE4args(XDR *, DELEGPURGE4args*);
extern bool_t xdr_DELEGPURGE4res(XDR *, DELEGPURGE4res*);
extern bool_t xdr_DELEGRETURN4args(XDR *, DELEGRETURN4args*);
extern bool_t xdr_DELEGRETURN4res(XDR *, DELEGRETURN4res*);
extern bool_t xdr_GETATTR4args(XDR *, GETATTR4args*);
extern bool_t xdr_GETATTR4resok(XDR *, GETATTR4resok*);
extern bool_t xdr_GETATTR4res(XDR *, GETATTR4res*);
extern bool_t xdr_GETFH4resok(XDR *, GETFH4resok*);
extern bool_t xdr_GETFH4res(XDR *, GETFH4res*);
extern bool_t xdr_LINK4args(XDR *, LINK4args*);
extern bool_t xdr_LINK4resok(XDR *, LINK4resok*);
extern bool_t xdr_LINK4res(XDR *, LINK4res*);
extern bool_t xdr_open_to_lock_owner4(XDR *, open_to_lock_owner4*);
extern bool_t xdr_exist_lock_owner4(XDR *, exist_lock_owner4*);
extern bool_t xdr_locker4(XDR *, locker4*);
extern bool_t xdr_LOCK4args(XDR *, LOCK4args*);
extern bool_t xdr_LOCK4denied(XDR *, LOCK4denied*);
extern bool_t xdr_LOCK4resok(XDR *, LOCK4resok*);
extern bool_t xdr_LOCK4res(XDR *, LOCK4res*);
extern bool_t xdr_LOCKT4args(XDR *, LOCKT4args*);
extern bool_t xdr_LOCKT4res(XDR *, LOCKT4res*);
extern bool_t xdr_LOCKU4args(XDR *, LOCKU4args*);
extern bool_t xdr_LOCKU4res(XDR *, LOCKU4res*);
extern bool_t xdr_LOOKUP4args(XDR *, LOOKUP4args*);
extern bool_t xdr_LOOKUP4res(XDR *, LOOKUP4res*);
extern bool_t xdr_LOOKUPP4res(XDR *, LOOKUPP4res*);
extern bool_t xdr_NVERIFY4args(XDR *, NVERIFY4args*);
extern bool_t xdr_NVERIFY4res(XDR *, NVERIFY4res*);
extern bool_t xdr_createmode4(XDR *, createmode4*);
extern bool_t xdr_creatverfattr(XDR *, creatverfattr*);
extern bool_t xdr_createhow4(XDR *, createhow4*);
extern bool_t xdr_opentype4(XDR *, opentype4*);
extern bool_t xdr_openflag4(XDR *, openflag4*);
extern bool_t xdr_limit_by4(XDR *, limit_by4*);
extern bool_t xdr_nfs_modified_limit4(XDR *, nfs_modified_limit4*);
extern bool_t xdr_nfs_space_limit4(XDR *, nfs_space_limit4*);
extern bool_t xdr_open_delegation_type4(XDR *, open_delegation_type4*);
extern bool_t xdr_open_claim_type4(XDR *, open_claim_type4*);
extern bool_t xdr_open_claim_delegate_cur4(XDR *, open_claim_delegate_cur4*);
extern bool_t xdr_open_claim4(XDR *, open_claim4*);
extern bool_t xdr_OPEN4args(XDR *, OPEN4args*);
extern bool_t xdr_open_read_delegation4(XDR *, open_read_delegation4*);
extern bool_t xdr_open_write_delegation4(XDR *, open_write_delegation4*);
extern bool_t xdr_why_no_delegation4(XDR *, why_no_delegation4*);
extern bool_t xdr_open_none_delegation4(XDR *, open_none_delegation4*);
extern bool_t xdr_open_delegation4(XDR *, open_delegation4*);
extern bool_t xdr_OPEN4resok(XDR *, OPEN4resok*);
extern bool_t xdr_OPEN4res(XDR *, OPEN4res*);
extern bool_t xdr_OPENATTR4args(XDR *, OPENATTR4args*);
extern bool_t xdr_OPENATTR4res(XDR *, OPENATTR4res*);
extern bool_t xdr_OPEN_CONFIRM4args(XDR *, OPEN_CONFIRM4args*);
extern bool_t xdr_OPEN_CONFIRM4resok(XDR *, OPEN_CONFIRM4resok*);
extern bool_t xdr_OPEN_CONFIRM4res(XDR *, OPEN_CONFIRM4res*);
extern bool_t xdr_OPEN_DOWNGRADE4args(XDR *, OPEN_DOWNGRADE4args*);
extern bool_t xdr_OPEN_DOWNGRADE4resok(XDR *, OPEN_DOWNGRADE4resok*);
extern bool_t xdr_OPEN_DOWNGRADE4res(XDR *, OPEN_DOWNGRADE4res*);
extern bool_t xdr_PUTFH4args(XDR *, PUTFH4args*);
extern bool_t xdr_PUTFH4res(XDR *, PUTFH4res*);
extern bool_t xdr_PUTPUBFH4res(XDR *, PUTPUBFH4res*);
extern bool_t xdr_PUTROOTFH4res(XDR *, PUTROOTFH4res*);
extern bool_t xdr_READ4args(XDR *, READ4args*);
extern bool_t xdr_READ4resok(XDR *, READ4resok*);
extern bool_t xdr_READ4res(XDR *, READ4res*);
extern bool_t xdr_READDIR4args(XDR *, READDIR4args*);
extern bool_t xdr_entry4(XDR *, entry4*);
extern bool_t xdr_dirlist4(XDR *, dirlist4*);
extern bool_t xdr_READDIR4resok(XDR *, READDIR4resok*);
extern bool_t xdr_READDIR4res(XDR *, READDIR4res*);
extern bool_t xdr_READLINK4resok(XDR *, READLINK4resok*);
extern bool_t xdr_READLINK4res(XDR *, READLINK4res*);
extern bool_t xdr_REMOVE4args(XDR *, REMOVE4args*);
extern bool_t xdr_REMOVE4resok(XDR *, REMOVE4resok*);
extern bool_t xdr_REMOVE4res(XDR *, REMOVE4res*);
extern bool_t xdr_RENAME4args(XDR *, RENAME4args*);
extern bool_t xdr_RENAME4resok(XDR *, RENAME4resok*);
extern bool_t xdr_RENAME4res(XDR *, RENAME4res*);
extern bool_t xdr_RENEW4args(XDR *, RENEW4args*);
extern bool_t xdr_RENEW4res(XDR *, RENEW4res*);
extern bool_t xdr_RESTOREFH4res(XDR *, RESTOREFH4res*);
extern bool_t xdr_SAVEFH4res(XDR *, SAVEFH4res*);
extern bool_t xdr_SECINFO4args(XDR *, SECINFO4args*);
extern bool_t xdr_rpc_gss_svc_t(XDR *, rpc_gss_svc_t*);
extern bool_t xdr_rpcsec_gss_info(XDR *, rpcsec_gss_info*);
extern bool_t xdr_secinfo4(XDR *, secinfo4*);
extern bool_t xdr_SECINFO4resok(XDR *, SECINFO4resok*);
extern bool_t xdr_SECINFO4res(XDR *, SECINFO4res*);
extern bool_t xdr_SETATTR4args(XDR *, SETATTR4args*);
extern bool_t xdr_SETATTR4res(XDR *, SETATTR4res*);
extern bool_t xdr_SETCLIENTID4args(XDR *, SETCLIENTID4args*);
extern bool_t xdr_SETCLIENTID4resok(XDR *, SETCLIENTID4resok*);
extern bool_t xdr_SETCLIENTID4res(XDR *, SETCLIENTID4res*);
extern bool_t xdr_SETCLIENTID_CONFIRM4args(XDR *, SETCLIENTID_CONFIRM4args*);
extern bool_t xdr_SETCLIENTID_CONFIRM4res(XDR *, SETCLIENTID_CONFIRM4res*);
extern bool_t xdr_VERIFY4args(XDR *, VERIFY4args*);
extern bool_t xdr_VERIFY4res(XDR *, VERIFY4res*);
extern bool_t xdr_WRITE4args(XDR *, WRITE4args*);
extern bool_t xdr_WRITE4resok(XDR *, WRITE4resok*);
extern bool_t xdr_WRITE4res(XDR *, WRITE4res*);
extern bool_t xdr_RELEASE_LOCKOWNER4args(XDR *, RELEASE_LOCKOWNER4args*);
extern bool_t xdr_RELEASE_LOCKOWNER4res(XDR *, RELEASE_LOCKOWNER4res*);
extern bool_t xdr_ILLEGAL4res(XDR *, ILLEGAL4res*);
extern bool_t xdr_gsshandle4_t(XDR *, gsshandle4_t*);
extern bool_t xdr_gss_cb_handles4(XDR *, gss_cb_handles4*);
extern bool_t xdr_callback_sec_parms4(XDR *, callback_sec_parms4*);
extern bool_t xdr_BACKCHANNEL_CTL4args(XDR *, BACKCHANNEL_CTL4args*);
extern bool_t xdr_BACKCHANNEL_CTL4res(XDR *, BACKCHANNEL_CTL4res*);
extern bool_t xdr_channel_dir_from_client4(XDR *, channel_dir_from_client4*);
extern bool_t xdr_BIND_CONN_TO_SESSION4args(XDR *, BIND_CONN_TO_SESSION4args*);
extern bool_t xdr_channel_dir_from_server4(XDR *, channel_dir_from_server4*);
extern bool_t xdr_BIND_CONN_TO_SESSION4resok(XDR *, BIND_CONN_TO_SESSION4resok*);
extern bool_t xdr_BIND_CONN_TO_SESSION4res(XDR *, BIND_CONN_TO_SESSION4res*);
extern bool_t xdr_state_protect_ops4(XDR *, state_protect_ops4*);
extern bool_t xdr_ssv_sp_parms4(XDR *, ssv_sp_parms4*);
extern bool_t xdr_state_protect_how4(XDR *, state_protect_how4*);
extern bool_t xdr_state_protect4_a(XDR *, state_protect4_a*);
extern bool_t xdr_EXCHANGE_ID4args(XDR *, EXCHANGE_ID4args*);
extern bool_t xdr_ssv_prot_info4(XDR *, ssv_prot_info4*);
extern bool_t xdr_state_protect4_r(XDR *, state_protect4_r*);
extern bool_t xdr_EXCHANGE_ID4resok(XDR *, EXCHANGE_ID4resok*);
extern bool_t xdr_EXCHANGE_ID4res(XDR *, EXCHANGE_ID4res*);
extern bool_t xdr_channel_attrs4(XDR *, channel_attrs4*);
extern bool_t xdr_CREATE_SESSION4args(XDR *, CREATE_SESSION4args*);
extern bool_t xdr_CREATE_SESSION4resok(XDR *, CREATE_SESSION4resok*);
extern bool_t xdr_CREATE_SESSION4res(XDR *, CREATE_SESSION4res*);
extern bool_t xdr_DESTROY_SESSION4args(XDR *, DESTROY_SESSION4args*);
extern bool_t xdr_DESTROY_SESSION4res(XDR *, DESTROY_SESSION4res*);
extern bool_t xdr_FREE_STATEID4args(XDR *, FREE_STATEID4args*);
extern bool_t xdr_FREE_STATEID4res(XDR *, FREE_STATEID4res*);
extern bool_t xdr_attr_notice4(XDR *, attr_notice4*);
extern bool_t xdr_GET_DIR_DELEGATION4args(XDR *, GET_DIR_DELEGATION4args*);
extern bool_t xdr_GET_DIR_DELEGATION4resok(XDR *, GET_DIR_DELEGATION4resok*);
extern bool_t xdr_gddrnf4_status(XDR *, gddrnf4_status*);
extern bool_t xdr_GET_DIR_DELEGATION4res_non_fatal(XDR *, GET_DIR_DELEGATION4res_non_fatal*);
extern bool_t xdr_GET_DIR_DELEGATION4res(XDR *, GET_DIR_DELEGATION4res*);
extern bool_t xdr_GETDEVICEINFO4args(XDR *, GETDEVICEINFO4args*);
extern bool_t xdr_GETDEVICEINFO4resok(XDR *, GETDEVICEINFO4resok*);
extern bool_t xdr_GETDEVICEINFO4res(XDR *, GETDEVICEINFO4res*);
extern bool_t xdr_GETDEVICELIST4args(XDR *, GETDEVICELIST4args*);
extern bool_t xdr_GETDEVICELIST4resok(XDR *, GETDEVICELIST4resok*);
extern bool_t xdr_GETDEVICELIST4res(XDR *, GETDEVICELIST4res*);
extern bool_t xdr_newtime4(XDR *, newtime4*);
extern bool_t xdr_newoffset4(XDR *, newoffset4*);
extern bool_t xdr_LAYOUTCOMMIT4args(XDR *, LAYOUTCOMMIT4args*);
extern bool_t xdr_newsize4(XDR *, newsize4*);
extern bool_t xdr_LAYOUTCOMMIT4resok(XDR *, LAYOUTCOMMIT4resok*);
extern bool_t xdr_LAYOUTCOMMIT4res(XDR *, LAYOUTCOMMIT4res*);
extern bool_t xdr_LAYOUTGET4args(XDR *, LAYOUTGET4args*);
extern bool_t xdr_LAYOUTGET4resok(XDR *, LAYOUTGET4resok*);
extern bool_t xdr_LAYOUTGET4res(XDR *, LAYOUTGET4res*);
extern bool_t xdr_LAYOUTRETURN4args(XDR *, LAYOUTRETURN4args*);
extern bool_t xdr_layoutreturn_stateid(XDR *, layoutreturn_stateid*);
extern bool_t xdr_LAYOUTRETURN4res(XDR *, LAYOUTRETURN4res*);
extern bool_t xdr_secinfo_style4(XDR *, secinfo_style4*);
extern bool_t xdr_SECINFO_NO_NAME4args(XDR *, SECINFO_NO_NAME4args*);
extern bool_t xdr_SECINFO_NO_NAME4res(XDR *, SECINFO_NO_NAME4res*);
extern bool_t xdr_SEQUENCE4args(XDR *, SEQUENCE4args*);
extern bool_t xdr_SEQUENCE4resok(XDR *, SEQUENCE4resok*);
extern bool_t xdr_SEQUENCE4res(XDR *, SEQUENCE4res*);
extern bool_t xdr_ssa_digest_input4(XDR *, ssa_digest_input4*);
extern bool_t xdr_SET_SSV4args(XDR *, SET_SSV4args*);
extern bool_t xdr_ssr_digest_input4(XDR *, ssr_digest_input4*);
extern bool_t xdr_SET_SSV4resok(XDR *, SET_SSV4resok*);
extern bool_t xdr_SET_SSV4res(XDR *, SET_SSV4res*);
extern bool_t xdr_TEST_STATEID4args(XDR *, TEST_STATEID4args*);
extern bool_t xdr_TEST_STATEID4resok(XDR *, TEST_STATEID4resok*);
extern bool_t xdr_TEST_STATEID4res(XDR *, TEST_STATEID4res*);
extern bool_t xdr_deleg_claim4(XDR *, deleg_claim4*);
extern bool_t xdr_WANT_DELEGATION4args(XDR *, WANT_DELEGATION4args*);
extern bool_t xdr_WANT_DELEGATION4res(XDR *, WANT_DELEGATION4res*);
extern bool_t xdr_DESTROY_CLIENTID4args(XDR *, DESTROY_CLIENTID4args*);
extern bool_t xdr_DESTROY_CLIENTID4res(XDR *, DESTROY_CLIENTID4res*);
extern bool_t xdr_RECLAIM_COMPLETE4args(XDR *, RECLAIM_COMPLETE4args*);
extern bool_t xdr_RECLAIM_COMPLETE4res(XDR *, RECLAIM_COMPLETE4res*);
extern bool_t xdr_COPY4args(XDR *, COPY4args*);
extern bool_t xdr_copy_requirements4(XDR *, copy_requirements4*);
extern bool_t xdr_COPY4resok(XDR *, COPY4resok*);
extern bool_t xdr_COPY4res(XDR *, COPY4res*);
extern bool_t xdr_COPY_NOTIFY4args(XDR *, COPY_NOTIFY4args*);
extern bool_t xdr_COPY_NOTIFY4resok(XDR *, COPY_NOTIFY4resok*);
extern bool_t xdr_COPY_NOTIFY4res(XDR *, COPY_NOTIFY4res*);
extern bool_t xdr_OFFLOAD_CANCEL4args(XDR *, OFFLOAD_CANCEL4args*);
extern bool_t xdr_OFFLOAD_CANCEL4res(XDR *, OFFLOAD_CANCEL4res*);
extern bool_t xdr_OFFLOAD_STATUS4args(XDR *, OFFLOAD_STATUS4args*);
extern bool_t xdr_OFFLOAD_STATUS4resok(XDR *, OFFLOAD_STATUS4resok*);
extern bool_t xdr_OFFLOAD_STATUS4res(XDR *, OFFLOAD_STATUS4res*);
extern bool_t xdr_ALLOCATE4args(XDR *, ALLOCATE4args*);
extern bool_t xdr_ALLOCATE4res(XDR *, ALLOCATE4res*);
extern bool_t xdr_DEALLOCATE4args(XDR *, DEALLOCATE4args*);
extern bool_t xdr_DEALLOCATE4res(XDR *, DEALLOCATE4res*);
extern bool_t xdr_IO_ADVISE_type4(XDR *, IO_ADVISE_type4*);
extern bool_t xdr_IO_ADVISE4args(XDR *, IO_ADVISE4args*);
extern bool_t xdr_IO_ADVISE4resok(XDR *, IO_ADVISE4resok*);
extern bool_t xdr_IO_ADVISE4res(XDR *, IO_ADVISE4res*);
extern bool_t xdr_device_error4(XDR *, device_error4*);
extern bool_t xdr_LAYOUTERROR4args(XDR *, LAYOUTERROR4args*);
extern bool_t xdr_LAYOUTERROR4res(XDR *, LAYOUTERROR4res*);
extern bool_t xdr_io_info4(XDR *, io_info4*);
extern bool_t xdr_LAYOUTSTATS4args(XDR *, LAYOUTSTATS4args*);
extern bool_t xdr_LAYOUTSTATS4res(XDR *, LAYOUTSTATS4res*);
extern bool_t xdr_READ_PLUS4args(XDR *, READ_PLUS4args*);
extern bool_t xdr_read_plus_content(XDR *, read_plus_content*);
extern bool_t xdr_read_plus_res4(XDR *, read_plus_res4*);
extern bool_t xdr_READ_PLUS4res(XDR *, READ_PLUS4res*);
extern bool_t xdr_SEEK4args(XDR *, SEEK4args*);
extern bool_t xdr_seek_res4(XDR *, seek_res4*);
extern bool_t xdr_SEEK4res(XDR *, SEEK4res*);
extern bool_t xdr_WRITE_SAME4args(XDR *, WRITE_SAME4args*);
extern bool_t xdr_WRITE_SAME4res(XDR *, WRITE_SAME4res*);
extern bool_t xdr_nfs_argop4(XDR *, nfs_argop4*);
extern bool_t xdr_nfs_resop4(XDR *, nfs_resop4*);
extern bool_t xdr_COMPOUND4args(XDR *, COMPOUND4args*);
extern bool_t xdr_COMPOUND4res(XDR *, COMPOUND4res*);
extern bool_t xdr_CB_GETATTR4args(XDR *, CB_GETATTR4args*);
extern bool_t xdr_CB_GETATTR4resok(XDR *, CB_GETATTR4resok*);
extern bool_t xdr_CB_GETATTR4res(XDR *, CB_GETATTR4res*);
extern bool_t xdr_CB_RECALL4args(XDR *, CB_RECALL4args*);
extern bool_t xdr_CB_RECALL4res(XDR *, CB_RECALL4res*);
extern bool_t xdr_CB_ILLEGAL4res(XDR *, CB_ILLEGAL4res*);
extern bool_t xdr_layoutrecall_type4(XDR *, layoutrecall_type4*);
extern bool_t xdr_layoutrecall_file4(XDR *, layoutrecall_file4*);
extern bool_t xdr_layoutrecall4(XDR *, layoutrecall4*);
extern bool_t xdr_CB_LAYOUTRECALL4args(XDR *, CB_LAYOUTRECALL4args*);
extern bool_t xdr_CB_LAYOUTRECALL4res(XDR *, CB_LAYOUTRECALL4res*);
extern bool_t xdr_notify_type4(XDR *, notify_type4*);
extern bool_t xdr_notify_entry4(XDR *, notify_entry4*);
extern bool_t xdr_prev_entry4(XDR *, prev_entry4*);
extern bool_t xdr_notify_remove4(XDR *, notify_remove4*);
extern bool_t xdr_notify_add4(XDR *, notify_add4*);
extern bool_t xdr_notify_attr4(XDR *, notify_attr4*);
extern bool_t xdr_notify_rename4(XDR *, notify_rename4*);
extern bool_t xdr_notify_verifier4(XDR *, notify_verifier4*);
extern bool_t xdr_notifylist4(XDR *, notifylist4*);
extern bool_t xdr_notify4(XDR *, notify4*);
extern bool_t xdr_CB_NOTIFY4args(XDR *, CB_NOTIFY4args*);
extern bool_t xdr_CB_NOTIFY4res(XDR *, CB_NOTIFY4res*);
extern bool_t xdr_CB_PUSH_DELEG4args(XDR *, CB_PUSH_DELEG4args*);
extern bool_t xdr_CB_PUSH_DELEG4res(XDR *, CB_PUSH_DELEG4res*);
extern bool_t xdr_CB_RECALL_ANY4args(XDR *, CB_RECALL_ANY4args*);
extern bool_t xdr_CB_RECALL_ANY4res(XDR *, CB_RECALL_ANY4res*);
extern bool_t xdr_CB_RECALLABLE_OBJ_AVAIL4args(XDR *, CB_RECALLABLE_OBJ_AVAIL4args*);
extern bool_t xdr_CB_RECALLABLE_OBJ_AVAIL4res(XDR *, CB_RECALLABLE_OBJ_AVAIL4res*);
extern bool_t xdr_CB_RECALL_SLOT4args(XDR *, CB_RECALL_SLOT4args*);
extern bool_t xdr_CB_RECALL_SLOT4res(XDR *, CB_RECALL_SLOT4res*);
extern bool_t xdr_referring_call4(XDR *, referring_call4*);
extern bool_t xdr_referring_call_list4(XDR *, referring_call_list4*);
extern bool_t xdr_CB_SEQUENCE4args(XDR *, CB_SEQUENCE4args*);
extern bool_t xdr_CB_SEQUENCE4resok(XDR *, CB_SEQUENCE4resok*);
extern bool_t xdr_CB_SEQUENCE4res(XDR *, CB_SEQUENCE4res*);
extern bool_t xdr_CB_WANTS_CANCELLED4args(XDR *, CB_WANTS_CANCELLED4args*);
extern bool_t xdr_CB_WANTS_CANCELLED4res(XDR *, CB_WANTS_CANCELLED4res*);
extern bool_t xdr_CB_NOTIFY_LOCK4args(XDR *, CB_NOTIFY_LOCK4args*);
extern bool_t xdr_CB_NOTIFY_LOCK4res(XDR *, CB_NOTIFY_LOCK4res*);
extern bool_t xdr_notify_deviceid_type4(XDR *, notify_deviceid_type4*);
extern bool_t xdr_notify_deviceid_delete4(XDR *, notify_deviceid_delete4*);
extern bool_t xdr_notify_deviceid_change4(XDR *, notify_deviceid_change4*);
extern bool_t xdr_CB_NOTIFY_DEVICEID4args(XDR *, CB_NOTIFY_DEVICEID4args*);
extern bool_t xdr_CB_NOTIFY_DEVICEID4res(XDR *, CB_NOTIFY_DEVICEID4res*);
extern bool_t xdr_offload_info4(XDR *, offload_info4*);
extern bool_t xdr_CB_OFFLOAD4args(XDR *, CB_OFFLOAD4args*);
extern bool_t xdr_CB_OFFLOAD4res(XDR *, CB_OFFLOAD4res*);
extern bool_t xdr_nfs_cb_opnum4(XDR *, nfs_cb_opnum4*);
extern bool_t xdr_nfs_cb_argop4(XDR *, nfs_cb_argop4*);
extern bool_t xdr_nfs_cb_resop4(XDR *, nfs_cb_resop4*);
extern bool_t xdr_CB_COMPOUND4args(XDR *, CB_COMPOUND4args*);
extern bool_t xdr_CB_COMPOUND4res(XDR *, CB_COMPOUND4res*);
#else /* K&R C */
extern bool_t xdr_nfs_ftype4();
extern bool_t xdr_nfsstat4();
extern bool_t xdr_attrlist4();
extern bool_t xdr_bitmap4();
extern bool_t xdr_changeid4();
extern bool_t xdr_clientid4();
extern bool_t xdr_count4();
extern bool_t xdr_length4();
extern bool_t xdr_mode4();
extern bool_t xdr_nfs_cookie4();
extern bool_t xdr_nfs_fh4();
extern bool_t xdr_offset4();
extern bool_t xdr_qop4();
extern bool_t xdr_sec_oid4();
extern bool_t xdr_sequenceid4();
extern bool_t xdr_seqid4();
extern bool_t xdr_sessionid4();
extern bool_t xdr_slotid4();
extern bool_t xdr_utf8string();
extern bool_t xdr_utf8str_cis();
extern bool_t xdr_utf8str_cs();
extern bool_t xdr_utf8str_mixed();
extern bool_t xdr_component4();
extern bool_t xdr_linktext4();
extern bool_t xdr_ascii_REQUIRED4();
extern bool_t xdr_pathname4();
extern bool_t xdr_verifier4();
extern bool_t xdr_secret4();
extern bool_t xdr_policy4();
extern bool_t xdr_nfstime4();
extern bool_t xdr_time_how4();
extern bool_t xdr_settime4();
extern bool_t xdr_nfs_lease4();
extern bool_t xdr_fsid4();
extern bool_t xdr_change_policy4();
extern bool_t xdr_fs_location4();
extern bool_t xdr_fs_locations4();
extern bool_t xdr_acetype4();
extern bool_t xdr_aceflag4();
extern bool_t xdr_acemask4();
extern bool_t xdr_nfsace4();
extern bool_t xdr_aclflag4();
extern bool_t xdr_nfsacl41();
extern bool_t xdr_mode_masked4();
extern bool_t xdr_specdata4();
extern bool_t xdr_netaddr4();
extern bool_t xdr_nfs_impl_id4();
extern bool_t xdr_stateid4();
extern bool_t xdr_layouttype4();
extern bool_t xdr_layout_content4();
extern bool_t xdr_layouthint4();
extern bool_t xdr_layoutiomode4();
extern bool_t xdr_layout4();
extern bool_t xdr_deviceid4();
extern bool_t xdr_device_addr4();
extern bool_t xdr_layoutupdate4();
extern bool_t xdr_layoutreturn_type4();
extern bool_t xdr_layoutreturn_file4();
extern bool_t xdr_layoutreturn4();
extern bool_t xdr_fs4_status_type();
extern bool_t xdr_fs4_status();
extern bool_t xdr_threshold4_read_size();
extern bool_t xdr_threshold4_write_size();
extern bool_t xdr_threshold4_read_iosize();
extern bool_t xdr_threshold4_write_iosize();
extern bool_t xdr_threshold_item4();
extern bool_t xdr_mdsthreshold4();
extern bool_t xdr_retention_get4();
extern bool_t xdr_retention_set4();
extern bool_t xdr_fs_charset_cap4();
extern bool_t xdr_netloc_type4();
extern bool_t xdr_netloc4();
extern bool_t xdr_change_attr_type4();
extern bool_t xdr_labelformat_spec4();
extern bool_t xdr_sec_label4();
extern bool_t xdr_copy_from_auth_priv();
extern bool_t xdr_copy_to_auth_priv();
extern bool_t xdr_copy_confirm_auth_priv();
extern bool_t xdr_app_data_block4();
extern bool_t xdr_data4();
extern bool_t xdr_data_info4();
extern bool_t xdr_data_content4();
extern bool_t xdr_stable_how4();
extern bool_t xdr_write_response4();
extern bool_t xdr_fattr4_supported_attrs();
extern bool_t xdr_fattr4_type();
extern bool_t xdr_fattr4_fh_expire_type();
extern bool_t xdr_fattr4_change();
extern bool_t xdr_fattr4_size();
extern bool_t xdr_fattr4_link_support();
extern bool_t xdr_fattr4_symlink_support();
extern bool_t xdr_fattr4_named_attr();
extern bool_t xdr_fattr4_fsid();
extern bool_t xdr_fattr4_unique_handles();
extern bool_t xdr_fattr4_lease_time();
extern bool_t xdr_fattr4_rdattr_error();
extern bool_t xdr_fattr4_acl();
extern bool_t xdr_fattr4_aclsupport();
extern bool_t xdr_fattr4_archive();
extern bool_t xdr_fattr4_cansettime();
extern bool_t xdr_fattr4_case_insensitive();
extern bool_t xdr_fattr4_case_preserving();
extern bool_t xdr_fattr4_chown_restricted();
extern bool_t xdr_fattr4_fileid();
extern bool_t xdr_fattr4_files_avail();
extern bool_t xdr_fattr4_filehandle();
extern bool_t xdr_fattr4_files_free();
extern bool_t xdr_fattr4_files_total();
extern bool_t xdr_fattr4_fs_locations();
extern bool_t xdr_fattr4_hidden();
extern bool_t xdr_fattr4_homogeneous();
extern bool_t xdr_fattr4_maxfilesize();
extern bool_t xdr_fattr4_maxlink();
extern bool_t xdr_fattr4_maxname();
extern bool_t xdr_fattr4_maxread();
extern bool_t xdr_fattr4_maxwrite();
extern bool_t xdr_fattr4_mimetype();
extern bool_t xdr_fattr4_mode();
extern bool_t xdr_fattr4_mode_set_masked();
extern bool_t xdr_fattr4_mounted_on_fileid();
extern bool_t xdr_fattr4_no_trunc();
extern bool_t xdr_fattr4_numlinks();
extern bool_t xdr_fattr4_owner();
extern bool_t xdr_fattr4_owner_group();
extern bool_t xdr_fattr4_quota_avail_hard();
extern bool_t xdr_fattr4_quota_avail_soft();
extern bool_t xdr_fattr4_quota_used();
extern bool_t xdr_fattr4_rawdev();
extern bool_t xdr_fattr4_space_avail();
extern bool_t xdr_fattr4_space_free();
extern bool_t xdr_fattr4_space_total();
extern bool_t xdr_fattr4_space_used();
extern bool_t xdr_fattr4_system();
extern bool_t xdr_fattr4_time_access();
extern bool_t xdr_fattr4_time_access_set();
extern bool_t xdr_fattr4_time_backup();
extern bool_t xdr_fattr4_time_create();
extern bool_t xdr_fattr4_time_delta();
extern bool_t xdr_fattr4_time_metadata();
extern bool_t xdr_fattr4_time_modify();
extern bool_t xdr_fattr4_time_modify_set();
extern bool_t xdr_fattr4_suppattr_exclcreat();
extern bool_t xdr_fattr4_dir_notif_delay();
extern bool_t xdr_fattr4_dirent_notif_delay();
extern bool_t xdr_fattr4_fs_layout_types();
extern bool_t xdr_fattr4_fs_status();
extern bool_t xdr_fattr4_fs_charset_cap();
extern bool_t xdr_fattr4_layout_alignment();
extern bool_t xdr_fattr4_layout_blksize();
extern bool_t xdr_fattr4_layout_hint();
extern bool_t xdr_fattr4_layout_types();
extern bool_t xdr_fattr4_mdsthreshold();
extern bool_t xdr_fattr4_retention_get();
extern bool_t xdr_fattr4_retention_set();
extern bool_t xdr_fattr4_retentevt_get();
extern bool_t xdr_fattr4_retentevt_set();
extern bool_t xdr_fattr4_retention_hold();
extern bool_t xdr_fattr4_dacl();
extern bool_t xdr_fattr4_sacl();
extern bool_t xdr_fattr4_change_policy();
extern bool_t xdr_fattr4_space_freed();
extern bool_t xdr_fattr4_change_attr_type();
extern bool_t xdr_fattr4_sec_label();
extern bool_t xdr_fattr4_clone_blksize();
extern bool_t xdr_fattr4();
extern bool_t xdr_change_info4();
extern bool_t xdr_clientaddr4();
extern bool_t xdr_cb_client4();
extern bool_t xdr_nfs_client_id4();
extern bool_t xdr_client_owner4();
extern bool_t xdr_server_owner4();
extern bool_t xdr_state_owner4();
extern bool_t xdr_open_owner4();
extern bool_t xdr_lock_owner4();
extern bool_t xdr_nfs_lock_type4();
extern bool_t xdr_ssv_subkey4();
extern bool_t xdr_ssv_mic_plain_tkn4();
extern bool_t xdr_ssv_mic_tkn4();
extern bool_t xdr_ssv_seal_plain_tkn4();
extern bool_t xdr_ssv_seal_cipher_tkn4();
extern bool_t xdr_fs_locations_server4();
extern bool_t xdr_fs_locations_item4();
extern bool_t xdr_fs_locations_info4();
extern bool_t xdr_fattr4_fs_locations_info();
extern bool_t xdr_nfl_util4();
extern bool_t xdr_filelayout_hint_care4();
extern bool_t xdr_nfsv4_1_file_layouthint4();
extern bool_t xdr_multipath_list4();
extern bool_t xdr_nfsv4_1_file_layout_ds_addr4();
extern bool_t xdr_nfsv4_1_file_layout4();
extern bool_t xdr_nfs_opnum4();
extern bool_t xdr_ACCESS4args();
extern bool_t xdr_ACCESS4resok();
extern bool_t xdr_ACCESS4res();
extern bool_t xdr_CLONE4args();
extern bool_t xdr_CLONE4res();
extern bool_t xdr_CLOSE4args();
extern bool_t xdr_CLOSE4res();
extern bool_t xdr_COMMIT4args();
extern bool_t xdr_COMMIT4resok();
extern bool_t xdr_COMMIT4res();
extern bool_t xdr_createtype4();
extern bool_t xdr_CREATE4args();
extern bool_t xdr_CREATE4resok();
extern bool_t xdr_CREATE4res();
extern bool_t xdr_DELEGPURGE4args();
extern bool_t xdr_DELEGPURGE4res();
extern bool_t xdr_DELEGRETURN4args();
extern bool_t xdr_DELEGRETURN4res();
extern bool_t xdr_GETATTR4args();
extern bool_t xdr_GETATTR4resok();
extern bool_t xdr_GETATTR4res();
extern bool_t xdr_GETFH4resok();
extern bool_t xdr_GETFH4res();
extern bool_t xdr_LINK4args();
extern bool_t xdr_LINK4resok();
extern bool_t xdr_LINK4res();
extern bool_t xdr_open_to_lock_owner4();
extern bool_t xdr_exist_lock_owner4();
extern bool_t xdr_locker4();
extern bool_t xdr_LOCK4args();
extern bool_t xdr_LOCK4denied();
extern bool_t xdr_LOCK4resok();
extern bool_t xdr_LOCK4res();
extern bool_t xdr_LOCKT4args();
extern bool_t xdr_LOCKT4res();
extern bool_t xdr_LOCKU4args();
extern bool_t xdr_LOCKU4res();
extern bool_t xdr_LOOKUP4args();
extern bool_t xdr_LOOKUP4res();
extern bool_t xdr_LOOKUPP4res();
extern bool_t xdr_NVERIFY4args();
extern bool_t xdr_NVERIFY4res();
extern bool_t xdr_createmode4();
extern bool_t xdr_creatverfattr();
extern bool_t xdr_createhow4();
extern bool_t xdr_opentype4();
extern bool_t xdr_openflag4();
extern bool_t xdr_limit_by4();
extern bool_t xdr_nfs_modified_limit4();
extern bool_t xdr_nfs_space_limit4();
extern bool_t xdr_open_delegation_type4();
extern bool_t xdr_open_claim_type4();
extern bool_t xdr_open_claim_delegate_cur4();
extern bool_t xdr_open_claim4();
extern bool_t xdr_OPEN4args();
extern bool_t xdr_open_read_delegation4();
extern bool_t xdr_open_write_delegation4();
extern bool_t xdr_why_no_delegation4();
extern bool_t xdr_open_none_delegation4();
extern bool_t xdr_open_delegation4();
extern bool_t xdr_OPEN4resok();
extern bool_t xdr_OPEN4res();
extern bool_t xdr_OPENATTR4args();
extern bool_t xdr_OPENATTR4res();
extern bool_t xdr_OPEN_CONFIRM4args();
extern bool_t xdr_OPEN_CONFIRM4resok();
extern bool_t xdr_OPEN_CONFIRM4res();
extern bool_t xdr_OPEN_DOWNGRADE4args();
extern bool_t xdr_OPEN_DOWNGRADE4resok();
extern bool_t xdr_OPEN_DOWNGRADE4res();
extern bool_t xdr_PUTFH4args();
extern bool_t xdr_PUTFH4res();
extern bool_t xdr_PUTPUBFH4res();
extern bool_t xdr_PUTROOTFH4res();
extern bool_t xdr_READ4args();
extern bool_t xdr_READ4resok();
extern bool_t xdr_READ4res();
extern bool_t xdr_READDIR4args();
extern bool_t xdr_entry4();
extern bool_t xdr_dirlist4();
extern bool_t xdr_READDIR4resok();
extern bool_t xdr_READDIR4res();
extern bool_t xdr_READLINK4resok();
extern bool_t xdr_READLINK4res();
extern bool_t xdr_REMOVE4args();
extern bool_t xdr_REMOVE4resok();
extern bool_t xdr_REMOVE4res();
extern bool_t xdr_RENAME4args();
extern bool_t xdr_RENAME4resok();
extern bool_t xdr_RENAME4res();
extern bool_t xdr_RENEW4args();
extern bool_t xdr_RENEW4res();
extern bool_t xdr_RESTOREFH4res();
extern bool_t xdr_SAVEFH4res();
extern bool_t xdr_SECINFO4args();
extern bool_t xdr_rpc_gss_svc_t();
extern bool_t xdr_rpcsec_gss_info();
extern bool_t xdr_secinfo4();
extern bool_t xdr_SECINFO4resok();
extern bool_t xdr_SECINFO4res();
extern bool_t xdr_SETATTR4args();
extern bool_t xdr_SETATTR4res();
extern bool_t xdr_SETCLIENTID4args();
extern bool_t xdr_SETCLIENTID4resok();
extern bool_t xdr_SETCLIENTID4res();
extern bool_t xdr_SETCLIENTID_CONFIRM4args();
extern bool_t xdr_SETCLIENTID_CONFIRM4res();
extern bool_t xdr_VERIFY4args();
extern bool_t xdr_VERIFY4res();
extern bool_t xdr_WRITE4args();
extern bool_t xdr_WRITE4resok();
extern bool_t xdr_WRITE4res();
extern bool_t xdr_RELEASE_LOCKOWNER4args();
extern bool_t xdr_RELEASE_LOCKOWNER4res();
extern bool_t xdr_ILLEGAL4res();
extern bool_t xdr_gsshandle4_t();
extern bool_t xdr_gss_cb_handles4();
extern bool_t xdr_callback_sec_parms4();
extern bool_t xdr_BACKCHANNEL_CTL4args();
extern bool_t xdr_BACKCHANNEL_CTL4res();
extern bool_t xdr_channel_dir_from_client4();
extern bool_t xdr_BIND_CONN_TO_SESSION4args();
extern bool_t xdr_channel_dir_from_server4();
extern bool_t xdr_BIND_CONN_TO_SESSION4resok();
extern bool_t xdr_BIND_CONN_TO_SESSION4res();
extern bool_t xdr_state_protect_ops4();
extern bool_t xdr_ssv_sp_parms4();
extern bool_t xdr_state_protect_how4();
extern bool_t xdr_state_protect4_a();
extern bool_t xdr_EXCHANGE_ID4args();
extern bool_t xdr_ssv_prot_info4();
extern bool_t xdr_state_protect4_r();
extern bool_t xdr_EXCHANGE_ID4resok();
extern bool_t xdr_EXCHANGE_ID4res();
extern bool_t xdr_channel_attrs4();
extern bool_t xdr_CREATE_SESSION4args();
extern bool_t xdr_CREATE_SESSION4resok();
extern bool_t xdr_CREATE_SESSION4res();
extern bool_t xdr_DESTROY_SESSION4args();
extern bool_t xdr_DESTROY_SESSION4res();
extern bool_t xdr_FREE_STATEID4args();
extern bool_t xdr_FREE_STATEID4res();
extern bool_t xdr_attr_notice4();
extern bool_t xdr_GET_DIR_DELEGATION4args();
extern bool_t xdr_GET_DIR_DELEGATION4resok();
extern bool_t xdr_gddrnf4_status();
extern bool_t xdr_GET_DIR_DELEGATION4res_non_fatal();
extern bool_t xdr_GET_DIR_DELEGATION4res();
extern bool_t xdr_GETDEVICEINFO4args();
extern bool_t xdr_GETDEVICEINFO4resok();
extern bool_t xdr_GETDEVICEINFO4res();
extern bool_t xdr_GETDEVICELIST4args();
extern bool_t xdr_GETDEVICELIST4resok();
extern bool_t xdr_GETDEVICELIST4res();
extern bool_t xdr_newtime4();
extern bool_t xdr_newoffset4();
extern bool_t xdr_LAYOUTCOMMIT4args();
extern bool_t xdr_newsize4();
extern bool_t xdr_LAYOUTCOMMIT4resok();
extern bool_t xdr_LAYOUTCOMMIT4res();
extern bool_t xdr_LAYOUTGET4args();
extern bool_t xdr_LAYOUTGET4resok();
extern bool_t xdr_LAYOUTGET4res();
extern bool_t xdr_LAYOUTRETURN4args();
extern bool_t xdr_layoutreturn_stateid();
extern bool_t xdr_LAYOUTRETURN4res();
extern bool_t xdr_secinfo_style4();
extern bool_t xdr_SECINFO_NO_NAME4args();
extern bool_t xdr_SECINFO_NO_NAME4res();
extern bool_t xdr_SEQUENCE4args();
extern bool_t xdr_SEQUENCE4resok();
extern bool_t xdr_SEQUENCE4res();
extern bool_t xdr_ssa_digest_input4();
extern bool_t xdr_SET_SSV4args();
extern bool_t xdr_ssr_digest_input4();
extern bool_t xdr_SET_SSV4resok();
extern bool_t xdr_SET_SSV4res();
extern bool_t xdr_TEST_STATEID4args();
extern bool_t xdr_TEST_STATEID4resok();
extern bool_t xdr_TEST_STATEID4res();
extern bool_t xdr_deleg_claim4();
extern bool_t xdr_WANT_DELEGATION4args();
extern bool_t xdr_WANT_DELEGATION4res();
extern bool_t xdr_DESTROY_CLIENTID4args();
extern bool_t xdr_DESTROY_CLIENTID4res();
extern bool_t xdr_RECLAIM_COMPLETE4args();
extern bool_t xdr_RECLAIM_COMPLETE4res();
extern bool_t xdr_COPY4args();
extern bool_t xdr_copy_requirements4();
extern bool_t xdr_COPY4resok();
extern bool_t xdr_COPY4res();
extern bool_t xdr_COPY_NOTIFY4args();
extern bool_t xdr_COPY_NOTIFY4resok();
extern bool_t xdr_COPY_NOTIFY4res();
extern bool_t xdr_OFFLOAD_CANCEL4args();
extern bool_t xdr_OFFLOAD_CANCEL4res();
extern bool_t xdr_OFFLOAD_STATUS4args();
extern bool_t xdr_OFFLOAD_STATUS4resok();
extern bool_t xdr_OFFLOAD_STATUS4res();
extern bool_t xdr_ALLOCATE4args();
extern bool_t xdr_ALLOCATE4res();
extern bool_t xdr_DEALLOCATE4args();
extern bool_t xdr_DEALLOCATE4res();
extern bool_t xdr_IO_ADVISE_type4();
extern bool_t xdr_IO_ADVISE4args();
extern bool_t xdr_IO_ADVISE4resok();
extern bool_t xdr_IO_ADVISE4res();
extern bool_t xdr_device_error4();
extern bool_t xdr_LAYOUTERROR4args();
extern bool_t xdr_LAYOUTERROR4res();
extern bool_t xdr_io_info4();
extern bool_t xdr_LAYOUTSTATS4args();
extern bool_t xdr_LAYOUTSTATS4res();
extern bool_t xdr_READ_PLUS4args();
extern bool_t xdr_read_plus_content();
extern bool_t xdr_read_plus_res4();
extern bool_t xdr_READ_PLUS4res();
extern bool_t xdr_SEEK4args();
extern bool_t xdr_seek_res4();
extern bool_t xdr_SEEK4res();
extern bool_t xdr_WRITE_SAME4args();
extern bool_t xdr_WRITE_SAME4res();
extern bool_t xdr_nfs_argop4();
extern bool_t xdr_nfs_resop4();
extern bool_t xdr_COMPOUND4args();
extern bool_t xdr_COMPOUND4res();
extern bool_t xdr_CB_GETATTR4args();
extern bool_t xdr_CB_GETATTR4resok();
extern bool_t xdr_CB_GETATTR4res();
extern bool_t xdr_CB_RECALL4args();
extern bool_t xdr_CB_RECALL4res();
extern bool_t xdr_CB_ILLEGAL4res();
extern bool_t xdr_layoutrecall_type4();
extern bool_t xdr_layoutrecall_file4();
extern bool_t xdr_layoutrecall4();
extern bool_t xdr_CB_LAYOUTRECALL4args();
extern bool_t xdr_CB_LAYOUTRECALL4res();
extern bool_t xdr_notify_type4();
extern bool_t xdr_notify_entry4();
extern bool_t xdr_prev_entry4();
extern bool_t xdr_notify_remove4();
extern bool_t xdr_notify_add4();
extern bool_t xdr_notify_attr4();
extern bool_t xdr_notify_rename4();
extern bool_t xdr_notify_verifier4();
extern bool_t xdr_notifylist4();
extern bool_t xdr_notify4();
extern bool_t xdr_CB_NOTIFY4args();
extern bool_t xdr_CB_NOTIFY4res();
extern bool_t xdr_CB_PUSH_DELEG4args();
extern bool_t xdr_CB_PUSH_DELEG4res();
extern bool_t xdr_CB_RECALL_ANY4args();
extern bool_t xdr_CB_RECALL_ANY4res();
extern bool_t xdr_CB_RECALLABLE_OBJ_AVAIL4args();
extern bool_t xdr_CB_RECALLABLE_OBJ_AVAIL4res();
extern bool_t xdr_CB_RECALL_SLOT4args();
extern bool_t xdr_CB_RECALL_SLOT4res();
extern bool_t xdr_referring_call4();
extern bool_t xdr_referring_call_list4();
extern bool_t xdr_CB_SEQUENCE4args();
extern bool_t xdr_CB_SEQUENCE4resok();
extern bool_t xdr_CB_SEQUENCE4res();
extern bool_t xdr_CB_WANTS_CANCELLED4args();
extern bool_t xdr_CB_WANTS_CANCELLED4res();
extern bool_t xdr_CB_NOTIFY_LOCK4args();
extern bool_t xdr_CB_NOTIFY_LOCK4res();
extern bool_t xdr_notify_deviceid_type4();
extern bool_t xdr_notify_deviceid_delete4();
extern bool_t xdr_notify_deviceid_change4();
extern bool_t xdr_CB_NOTIFY_DEVICEID4args();
extern bool_t xdr_CB_NOTIFY_DEVICEID4res();
extern bool_t xdr_offload_info4();
extern bool_t xdr_CB_OFFLOAD4args();
extern bool_t xdr_CB_OFFLOAD4res();
extern bool_t xdr_nfs_cb_opnum4();
extern bool_t xdr_nfs_cb_argop4();
extern bool_t xdr_nfs_cb_resop4();
extern bool_t xdr_CB_COMPOUND4args();
extern bool_t xdr_CB_COMPOUND4res();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_NFS4_PROT_H_RPCGEN */
/*
* This file was machine generated for [RFC7862].
*
* Last updated Sun Mar 13 10:58:40 PDT 2016
*/
/*
* Copyright (c) 2016 IETF Trust and the persons identified
* as the authors. All rights reserved.
*
* Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that the
* following conditions are met:
*
* - Redistributions of source code must retain the above
* copyright notice, this list of conditions and the
* following disclaimer.
*
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the
* following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* - Neither the name of Internet Society, IETF or IETF
* Trust, nor the names of specific contributors, may be
* used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
* AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* This code was derived from RFC 7863.
*/
/*
* nfsv42.x
*/
%#ifndef _AUTH_SYS_DEFINE_FOR_NFSv42
%#define _AUTH_SYS_DEFINE_FOR_NFSv42
%#include <rpc/auth_sys.h>
%typedef struct authsys_parms authsys_parms;
%#endif /* _AUTH_SYS_DEFINE_FOR_NFSv42 */
/*
* Basic typedefs for RFC 1832 data type definitions
*/
/*
* typedef int int32_t;
* typedef unsigned int uint32_t;
* typedef hyper int64_t;
* typedef unsigned hyper uint64_t;
*/
/*
* Sizes
*/
const NFS4_FHSIZE = 128;
const NFS4_VERIFIER_SIZE = 8;
const NFS4_OTHER_SIZE = 12;
const NFS4_OPAQUE_LIMIT = 1024;
const NFS4_SESSIONID_SIZE = 16;
const NFS4_INT64_MAX = 0x7fffffffffffffff;
const NFS4_UINT64_MAX = 0xffffffffffffffff;
const NFS4_INT32_MAX = 0x7fffffff;
const NFS4_UINT32_MAX = 0xffffffff;
const NFS4_MAXFILELEN = 0xffffffffffffffff;
const NFS4_MAXFILEOFF = 0xfffffffffffffffe;
/*
* File types
*/
enum nfs_ftype4 {
NF4REG = 1, /* Regular File */
NF4DIR = 2, /* Directory */
NF4BLK = 3, /* Special File -- block device */
NF4CHR = 4, /* Special File -- character device */
NF4LNK = 5, /* Symbolic Link */
NF4SOCK = 6, /* Special File -- socket */
NF4FIFO = 7, /* Special File -- fifo */
NF4ATTRDIR = 8, /* Attribute Directory */
NF4NAMEDATTR = 9 /* Named Attribute */
};
/*
* Error status
*/
enum nfsstat4 {
NFS4_OK = 0, /* everything is okay */
NFS4ERR_PERM = 1, /* caller not privileged */
NFS4ERR_NOENT = 2, /* no such file/directory */
NFS4ERR_IO = 5, /* hard I/O error */
NFS4ERR_NXIO = 6, /* no such device */
NFS4ERR_ACCESS = 13, /* access denied */
NFS4ERR_EXIST = 17, /* file already exists */
NFS4ERR_XDEV = 18, /* different file systems */
/*
* Please do not allocate value 19; it was used in NFSv3,
* and we do not want a value in NFSv3 to have a different
* meaning in NFSv4.x.
*/
NFS4ERR_NOTDIR = 20, /* should be a directory */
NFS4ERR_ISDIR = 21, /* should not be a directory */
NFS4ERR_INVAL = 22, /* invalid argument */
NFS4ERR_FBIG = 27, /* file exceeds server max */
NFS4ERR_NOSPC = 28, /* no space on file system */
NFS4ERR_ROFS = 30, /* read-only file system */
NFS4ERR_MLINK = 31, /* too many hard links */
NFS4ERR_NAMETOOLONG = 63, /* name exceeds server max */
NFS4ERR_NOTEMPTY = 66, /* directory not empty */
NFS4ERR_DQUOT = 69, /* hard quota limit reached */
NFS4ERR_STALE = 70, /* file no longer exists */
NFS4ERR_BADHANDLE = 10001, /* illegal filehandle */
NFS4ERR_BAD_COOKIE = 10003, /* READDIR cookie is stale */
NFS4ERR_NOTSUPP = 10004, /* operation not supported */
NFS4ERR_TOOSMALL = 10005, /* response limit exceeded */
NFS4ERR_SERVERFAULT = 10006, /* undefined server error */
NFS4ERR_BADTYPE = 10007, /* type invalid for CREATE */
NFS4ERR_DELAY = 10008, /* file "busy" -- retry */
NFS4ERR_SAME = 10009, /* nverify says attrs same */
NFS4ERR_DENIED = 10010, /* lock unavailable */
NFS4ERR_EXPIRED = 10011, /* lock lease expired */
NFS4ERR_LOCKED = 10012, /* I/O failed due to lock */
NFS4ERR_GRACE = 10013, /* in grace period */
NFS4ERR_FHEXPIRED = 10014, /* filehandle expired */
NFS4ERR_SHARE_DENIED = 10015, /* share reserve denied */
NFS4ERR_WRONGSEC = 10016, /* wrong security flavor */
NFS4ERR_CLID_INUSE = 10017, /* client ID in use */
/* NFS4ERR_RESOURCE is not a valid error in NFSv4.1. */
NFS4ERR_RESOURCE = 10018, /* resource exhaustion */
NFS4ERR_MOVED = 10019, /* file system relocated */
NFS4ERR_NOFILEHANDLE = 10020, /* current FH is not set */
NFS4ERR_MINOR_VERS_MISMATCH= 10021, /* minor vers not supp */
NFS4ERR_STALE_CLIENTID = 10022, /* server has rebooted */
NFS4ERR_STALE_STATEID = 10023, /* server has rebooted */
NFS4ERR_OLD_STATEID = 10024, /* state is out of sync */
NFS4ERR_BAD_STATEID = 10025, /* incorrect stateid */
NFS4ERR_BAD_SEQID = 10026, /* request is out of seq. */
NFS4ERR_NOT_SAME = 10027, /* verify -- attrs not same */
NFS4ERR_LOCK_RANGE = 10028, /* overlapping lock range */
NFS4ERR_SYMLINK = 10029, /* should be file/directory */
NFS4ERR_RESTOREFH = 10030, /* no saved filehandle */
NFS4ERR_LEASE_MOVED = 10031, /* some file system moved */
NFS4ERR_ATTRNOTSUPP = 10032, /* recommended attr not supp */
NFS4ERR_NO_GRACE = 10033, /* reclaim outside of grace */
NFS4ERR_RECLAIM_BAD = 10034, /* reclaim error at server */
NFS4ERR_RECLAIM_CONFLICT= 10035, /* conflict on reclaim */
NFS4ERR_BADXDR = 10036, /* XDR decode failed */
NFS4ERR_LOCKS_HELD = 10037, /* file locks held at CLOSE */
NFS4ERR_OPENMODE = 10038, /* conflict in OPEN and I/O */
NFS4ERR_BADOWNER = 10039, /* owner translation bad */
NFS4ERR_BADCHAR = 10040, /* UTF-8 char not supported */
NFS4ERR_BADNAME = 10041, /* name not supported */
NFS4ERR_BAD_RANGE = 10042, /* lock range not supported */
NFS4ERR_LOCK_NOTSUPP = 10043, /* no atomic up/downgrade */
NFS4ERR_OP_ILLEGAL = 10044, /* undefined operation */
NFS4ERR_DEADLOCK = 10045, /* file-locking deadlock */
NFS4ERR_FILE_OPEN = 10046, /* open file blocks op */
NFS4ERR_ADMIN_REVOKED = 10047, /* lock-owner state revoked */
NFS4ERR_CB_PATH_DOWN = 10048, /* callback path down */
/* NFSv4.1 errors start here. */
NFS4ERR_BADIOMODE = 10049,
NFS4ERR_BADLAYOUT = 10050,
NFS4ERR_BAD_SESSION_DIGEST = 10051,
NFS4ERR_BADSESSION = 10052,
NFS4ERR_BADSLOT = 10053,
NFS4ERR_COMPLETE_ALREADY = 10054,
NFS4ERR_CONN_NOT_BOUND_TO_SESSION = 10055,
NFS4ERR_DELEG_ALREADY_WANTED = 10056,
NFS4ERR_BACK_CHAN_BUSY = 10057, /* backchan reqs outstanding */
NFS4ERR_LAYOUTTRYLATER = 10058,
NFS4ERR_LAYOUTUNAVAILABLE = 10059,
NFS4ERR_NOMATCHING_LAYOUT = 10060,
NFS4ERR_RECALLCONFLICT = 10061,
NFS4ERR_UNKNOWN_LAYOUTTYPE = 10062,
NFS4ERR_SEQ_MISORDERED = 10063, /* unexpected seq. ID in req */
NFS4ERR_SEQUENCE_POS = 10064, /* [CB_]SEQ. op not 1st op */
NFS4ERR_REQ_TOO_BIG = 10065, /* request too big */
NFS4ERR_REP_TOO_BIG = 10066, /* reply too big */
NFS4ERR_REP_TOO_BIG_TO_CACHE =10067, /* rep. not all cached */
NFS4ERR_RETRY_UNCACHED_REP =10068, /* retry + rep. uncached */
NFS4ERR_UNSAFE_COMPOUND =10069, /* retry/recovery too hard */
NFS4ERR_TOO_MANY_OPS = 10070, /* too many ops in [CB_]COMP */
NFS4ERR_OP_NOT_IN_SESSION =10071, /* op needs [CB_]SEQ. op */
NFS4ERR_HASH_ALG_UNSUPP = 10072, /* hash alg. not supp */
/* Error 10073 is unused. */
NFS4ERR_CLIENTID_BUSY = 10074, /* client ID has state */
NFS4ERR_PNFS_IO_HOLE = 10075, /* IO to _SPARSE file hole */
NFS4ERR_SEQ_FALSE_RETRY= 10076, /* retry != original req */
NFS4ERR_BAD_HIGH_SLOT = 10077, /* req has bad highest_slot */
NFS4ERR_DEADSESSION = 10078, /* new req sent to dead sess */
NFS4ERR_ENCR_ALG_UNSUPP= 10079, /* encr alg. not supp */
NFS4ERR_PNFS_NO_LAYOUT = 10080, /* I/O without a layout */
NFS4ERR_NOT_ONLY_OP = 10081, /* addl ops not allowed */
NFS4ERR_WRONG_CRED = 10082, /* op done by wrong cred */
NFS4ERR_WRONG_TYPE = 10083, /* op on wrong type object */
NFS4ERR_DIRDELEG_UNAVAIL=10084, /* delegation not avail. */
NFS4ERR_REJECT_DELEG = 10085, /* cb rejected delegation */
NFS4ERR_RETURNCONFLICT = 10086, /* layout get before return */
NFS4ERR_DELEG_REVOKED = 10087, /* deleg./layout revoked */
/* NFSv4.2 errors start here. */
NFS4ERR_PARTNER_NOTSUPP= 10088, /* s2s not supported */
NFS4ERR_PARTNER_NO_AUTH= 10089, /* s2s not authorized */
NFS4ERR_UNION_NOTSUPP = 10090, /* arm of union not supp */
NFS4ERR_OFFLOAD_DENIED = 10091, /* dest not allowing copy */
NFS4ERR_WRONG_LFS = 10092, /* LFS not supported */
NFS4ERR_BADLABEL = 10093, /* incorrect label */
NFS4ERR_OFFLOAD_NO_REQS= 10094 /* dest not meeting reqs */
};
/*
* Basic data types
*/
typedef opaque attrlist4<>;
typedef uint32_t bitmap4<>;
typedef uint64_t changeid4;
typedef uint64_t clientid4;
typedef uint32_t count4;
typedef uint64_t length4;
typedef uint32_t mode4;
typedef uint64_t nfs_cookie4;
typedef opaque nfs_fh4<NFS4_FHSIZE>;
typedef uint64_t offset4;
typedef uint32_t qop4;
typedef opaque sec_oid4<>;
typedef uint32_t sequenceid4;
typedef uint32_t seqid4;
typedef opaque sessionid4[NFS4_SESSIONID_SIZE];
typedef uint32_t slotid4;
typedef opaque utf8string<>;
typedef utf8string utf8str_cis;
typedef utf8string utf8str_cs;
typedef utf8string utf8str_mixed;
typedef utf8str_cs component4;
typedef opaque linktext4<>;
typedef utf8string ascii_REQUIRED4;
typedef component4 pathname4<>;
typedef opaque verifier4[NFS4_VERIFIER_SIZE];
typedef string secret4<>;
typedef uint32_t policy4;
/*
* Timeval
*/
struct nfstime4 {
int64_t seconds;
uint32_t nseconds;
};
enum time_how4 {
SET_TO_SERVER_TIME4 = 0,
SET_TO_CLIENT_TIME4 = 1
};
union settime4 switch (time_how4 set_it) {
case SET_TO_CLIENT_TIME4:
nfstime4 time;
default:
void;
};
typedef uint32_t nfs_lease4;
/*
* File attribute definitions
*/
/*
* File System ID (FSID) structure for major/minor
*/
struct fsid4 {
uint64_t major;
uint64_t minor;
};
/*
* File system locations attribute
* for relocation/migration and
* related attributes
*/
struct change_policy4 {
uint64_t cp_major;
uint64_t cp_minor;
};
struct fs_location4 {
utf8str_cis server<>;
pathname4 rootpath;
};
struct fs_locations4 {
pathname4 fs_root;
fs_location4 locations<>;
};
/*
* Various Access Control Entry (ACE) definitions
*/
/*
* Mask that indicates which ACEs are supported.
* Values for the fattr4_aclsupport attribute.
*/
const ACL4_SUPPORT_ALLOW_ACL = 0x00000001;
const ACL4_SUPPORT_DENY_ACL = 0x00000002;
const ACL4_SUPPORT_AUDIT_ACL = 0x00000004;
const ACL4_SUPPORT_ALARM_ACL = 0x00000008;
typedef uint32_t acetype4;
/*
* acetype4 values. Others can be added as needed.
*/
const ACE4_ACCESS_ALLOWED_ACE_TYPE = 0x00000000;
const ACE4_ACCESS_DENIED_ACE_TYPE = 0x00000001;
const ACE4_SYSTEM_AUDIT_ACE_TYPE = 0x00000002;
const ACE4_SYSTEM_ALARM_ACE_TYPE = 0x00000003;
/*
* ACE flag
*/
typedef uint32_t aceflag4;
/*
* ACE flag values
*/
const ACE4_FILE_INHERIT_ACE = 0x00000001;
const ACE4_DIRECTORY_INHERIT_ACE = 0x00000002;
const ACE4_NO_PROPAGATE_INHERIT_ACE = 0x00000004;
const ACE4_INHERIT_ONLY_ACE = 0x00000008;
const ACE4_SUCCESSFUL_ACCESS_ACE_FLAG = 0x00000010;
const ACE4_FAILED_ACCESS_ACE_FLAG = 0x00000020;
const ACE4_IDENTIFIER_GROUP = 0x00000040;
const ACE4_INHERITED_ACE = 0x00000080;
/*
* ACE mask
*/
typedef uint32_t acemask4;
/*
* ACE mask values
*/
const ACE4_READ_DATA = 0x00000001;
const ACE4_LIST_DIRECTORY = 0x00000001;
const ACE4_WRITE_DATA = 0x00000002;
const ACE4_ADD_FILE = 0x00000002;
const ACE4_APPEND_DATA = 0x00000004;
const ACE4_ADD_SUBDIRECTORY = 0x00000004;
const ACE4_READ_NAMED_ATTRS = 0x00000008;
const ACE4_WRITE_NAMED_ATTRS = 0x00000010;
const ACE4_EXECUTE = 0x00000020;
const ACE4_DELETE_CHILD = 0x00000040;
const ACE4_READ_ATTRIBUTES = 0x00000080;
const ACE4_WRITE_ATTRIBUTES = 0x00000100;
const ACE4_WRITE_RETENTION = 0x00000200;
const ACE4_WRITE_RETENTION_HOLD = 0x00000400;
const ACE4_DELETE = 0x00010000;
const ACE4_READ_ACL = 0x00020000;
const ACE4_WRITE_ACL = 0x00040000;
const ACE4_WRITE_OWNER = 0x00080000;
const ACE4_SYNCHRONIZE = 0x00100000;
/*
* ACE4_GENERIC_READ -- defined as a combination of
* ACE4_READ_ACL |
* ACE4_READ_DATA |
* ACE4_READ_ATTRIBUTES |
* ACE4_SYNCHRONIZE
*/
const ACE4_GENERIC_READ = 0x00120081;
/*
* ACE4_GENERIC_WRITE -- defined as a combination of
* ACE4_READ_ACL |
* ACE4_WRITE_DATA |
* ACE4_WRITE_ATTRIBUTES |
* ACE4_WRITE_ACL |
* ACE4_APPEND_DATA |
* ACE4_SYNCHRONIZE
*/
const ACE4_GENERIC_WRITE = 0x00160106;
/*
* ACE4_GENERIC_EXECUTE -- defined as a combination of
* ACE4_READ_ACL |
* ACE4_READ_ATTRIBUTES |
* ACE4_EXECUTE |
* ACE4_SYNCHRONIZE
*/
const ACE4_GENERIC_EXECUTE = 0x001200A0;
/*
* ACE definition
*/
struct nfsace4 {
acetype4 type;
aceflag4 flag;
acemask4 access_mask;
utf8str_mixed who;
};
/*
* Access Control List (ACL) flag
*/
typedef uint32_t aclflag4;
/*
* ACL flag values
*/
const ACL4_AUTO_INHERIT = 0x00000001;
const ACL4_PROTECTED = 0x00000002;
const ACL4_DEFAULTED = 0x00000004;
/*
* Version 4.1 ACL definition
*/
struct nfsacl41 {
aclflag4 na41_flag;
nfsace4 na41_aces<>;
};
/*
* Field definitions for the fattr4_mode
* and fattr4_mode_set_masked attributes
*/
const MODE4_SUID = 0x800; /* set user id on execution */
const MODE4_SGID = 0x400; /* set group id on execution */
const MODE4_SVTX = 0x200; /* save text even after use */
const MODE4_RUSR = 0x100; /* read permission: owner */
const MODE4_WUSR = 0x080; /* write permission: owner */
const MODE4_XUSR = 0x040; /* execute permission: owner */
const MODE4_RGRP = 0x020; /* read permission: group */
const MODE4_WGRP = 0x010; /* write permission: group */
const MODE4_XGRP = 0x008; /* execute permission: group */
const MODE4_ROTH = 0x004; /* read permission: other */
const MODE4_WOTH = 0x002; /* write permission: other */
const MODE4_XOTH = 0x001; /* execute permission: other */
/*
* Masked mode for the mode_set_masked attribute
*/
struct mode_masked4 {
mode4 mm_value_to_set; /* Values of bits
to set or reset
in mode */
mode4 mm_mask_bits; /* Mask of bits to
set or reset
in mode */
};
/*
* Special data/attribute associated with
* file types NF4BLK and NF4CHR
*/
struct specdata4 {
uint32_t specdata1; /* Major device number */
uint32_t specdata2; /* Minor device number */
};
/*
* Values for fattr4_fh_expire_type
*/
const FH4_PERSISTENT = 0x00000000;
const FH4_NOEXPIRE_WITH_OPEN = 0x00000001;
const FH4_VOLATILE_ANY = 0x00000002;
const FH4_VOL_MIGRATION = 0x00000004;
const FH4_VOL_RENAME = 0x00000008;
struct netaddr4 {
/* See struct rpcb in RFC 1833. */
string na_r_netid<>; /* Network id */
string na_r_addr<>; /* Universal address */
};
/*
* Data structures new to NFSv4.1
*/
struct nfs_impl_id4 {
utf8str_cis nii_domain;
utf8str_cs nii_name;
nfstime4 nii_date;
};
/*
* Stateid
*/
struct stateid4 {
uint32_t seqid;
opaque other[NFS4_OTHER_SIZE];
};
enum layouttype4 {
LAYOUT4_NFSV4_1_FILES = 0x1,
LAYOUT4_OSD2_OBJECTS = 0x2,
LAYOUT4_BLOCK_VOLUME = 0x3
};
struct layout_content4 {
layouttype4 loc_type;
opaque loc_body<>;
};
%/*
% * LAYOUT4_OSD2_OBJECTS loc_body description
% * is in a separate .x file.
% */
%
%/*
% * LAYOUT4_BLOCK_VOLUME loc_body description
% * is in a separate .x file.
% */
struct layouthint4 {
layouttype4 loh_type;
opaque loh_body<>;
};
enum layoutiomode4 {
LAYOUTIOMODE4_READ = 1,
LAYOUTIOMODE4_RW = 2,
LAYOUTIOMODE4_ANY = 3
};
struct layout4 {
offset4 lo_offset;
length4 lo_length;
layoutiomode4 lo_iomode;
layout_content4 lo_content;
};
const NFS4_DEVICEID4_SIZE = 16;
typedef opaque deviceid4[NFS4_DEVICEID4_SIZE];
struct device_addr4 {
layouttype4 da_layout_type;
opaque da_addr_body<>;
};
struct layoutupdate4 {
layouttype4 lou_type;
opaque lou_body<>;
};
%
/* Constants used for LAYOUTRETURN and CB_LAYOUTRECALL */
const LAYOUT4_RET_REC_FILE = 1;
const LAYOUT4_RET_REC_FSID = 2;
const LAYOUT4_RET_REC_ALL = 3;
%
enum layoutreturn_type4 {
LAYOUTRETURN4_FILE = LAYOUT4_RET_REC_FILE,
LAYOUTRETURN4_FSID = LAYOUT4_RET_REC_FSID,
LAYOUTRETURN4_ALL = LAYOUT4_RET_REC_ALL
};
struct layoutreturn_file4 {
offset4 lrf_offset;
length4 lrf_length;
stateid4 lrf_stateid;
% /* layouttype4 specific data */
opaque lrf_body<>;
};
union layoutreturn4 switch (layoutreturn_type4 lr_returntype) {
case LAYOUTRETURN4_FILE:
layoutreturn_file4 lr_layout;
default:
void;
};
%
enum fs4_status_type {
STATUS4_FIXED = 1,
STATUS4_UPDATED = 2,
STATUS4_VERSIONED = 3,
STATUS4_WRITABLE = 4,
STATUS4_REFERRAL = 5
};
struct fs4_status {
bool fss_absent;
fs4_status_type fss_type;
utf8str_cs fss_source;
utf8str_cs fss_current;
int32_t fss_age;
nfstime4 fss_version;
};
const TH4_READ_SIZE = 0;
const TH4_WRITE_SIZE = 1;
const TH4_READ_IOSIZE = 2;
const TH4_WRITE_IOSIZE = 3;
typedef length4 threshold4_read_size;
typedef length4 threshold4_write_size;
typedef length4 threshold4_read_iosize;
typedef length4 threshold4_write_iosize;
struct threshold_item4 {
layouttype4 thi_layout_type;
bitmap4 thi_hintset;
opaque thi_hintlist<>;
};
struct mdsthreshold4 {
threshold_item4 mth_hints<>;
};
const RET4_DURATION_INFINITE = 0xffffffffffffffff;
struct retention_get4 {
uint64_t rg_duration;
nfstime4 rg_begin_time<1>;
};
struct retention_set4 {
bool rs_enable;
uint64_t rs_duration<1>;
};
const FSCHARSET_CAP4_CONTAINS_NON_UTF8 = 0x1;
const FSCHARSET_CAP4_ALLOWS_ONLY_UTF8 = 0x2;
typedef uint32_t fs_charset_cap4;
/*
* Data structures new to NFSv4.2
*/
enum netloc_type4 {
NL4_NAME = 1,
NL4_URL = 2,
NL4_NETADDR = 3
};
union netloc4 switch (netloc_type4 nl_type) {
case NL4_NAME: utf8str_cis nl_name;
case NL4_URL: utf8str_cis nl_url;
case NL4_NETADDR: netaddr4 nl_addr;
};
enum change_attr_type4 {
NFS4_CHANGE_TYPE_IS_MONOTONIC_INCR = 0,
NFS4_CHANGE_TYPE_IS_VERSION_COUNTER = 1,
NFS4_CHANGE_TYPE_IS_VERSION_COUNTER_NOPNFS = 2,
NFS4_CHANGE_TYPE_IS_TIME_METADATA = 3,
NFS4_CHANGE_TYPE_IS_UNDEFINED = 4
};
struct labelformat_spec4 {
policy4 lfs_lfs;
policy4 lfs_pi;
};
struct sec_label4 {
labelformat_spec4 slai_lfs;
opaque slai_data<>;
};
struct copy_from_auth_priv {
secret4 cfap_shared_secret;
netloc4 cfap_destination;
/* The NFSv4 user name that the user principal maps to */
utf8str_mixed cfap_username;
};
struct copy_to_auth_priv {
/* Equal to cfap_shared_secret */
secret4 ctap_shared_secret;
netloc4 ctap_source<>;
/* The NFSv4 user name that the user principal maps to */
utf8str_mixed ctap_username;
};
struct copy_confirm_auth_priv {
/* Equal to GSS_GetMIC() of cfap_shared_secret */
opaque ccap_shared_secret_mic<>;
/* The NFSv4 user name that the user principal maps to */
utf8str_mixed ccap_username;
};
struct app_data_block4 {
offset4 adb_offset;
length4 adb_block_size;
length4 adb_block_count;
length4 adb_reloff_blocknum;
count4 adb_block_num;
length4 adb_reloff_pattern;
opaque adb_pattern<>;
};
struct data4 {
offset4 d_offset;
opaque d_data<>;
};
struct data_info4 {
offset4 di_offset;
length4 di_length;
};
enum data_content4 {
NFS4_CONTENT_DATA = 0,
NFS4_CONTENT_HOLE = 1
};
enum stable_how4 {
UNSTABLE4 = 0,
DATA_SYNC4 = 1,
FILE_SYNC4 = 2
};
struct write_response4 {
stateid4 wr_callback_id<1>;
length4 wr_count;
stable_how4 wr_committed;
verifier4 wr_writeverf;
};
/*
* NFSv4.1 attributes
*/
typedef bitmap4 fattr4_supported_attrs;
typedef nfs_ftype4 fattr4_type;
typedef uint32_t fattr4_fh_expire_type;
typedef changeid4 fattr4_change;
typedef uint64_t fattr4_size;
typedef bool fattr4_link_support;
typedef bool fattr4_symlink_support;
typedef bool fattr4_named_attr;
typedef fsid4 fattr4_fsid;
typedef bool fattr4_unique_handles;
typedef nfs_lease4 fattr4_lease_time;
typedef nfsstat4 fattr4_rdattr_error;
typedef nfsace4 fattr4_acl<>;
typedef uint32_t fattr4_aclsupport;
typedef bool fattr4_archive;
typedef bool fattr4_cansettime;
typedef bool fattr4_case_insensitive;
typedef bool fattr4_case_preserving;
typedef bool fattr4_chown_restricted;
typedef uint64_t fattr4_fileid;
typedef uint64_t fattr4_files_avail;
typedef nfs_fh4 fattr4_filehandle;
typedef uint64_t fattr4_files_free;
typedef uint64_t fattr4_files_total;
typedef fs_locations4 fattr4_fs_locations;
typedef bool fattr4_hidden;
typedef bool fattr4_homogeneous;
typedef uint64_t fattr4_maxfilesize;
typedef uint32_t fattr4_maxlink;
typedef uint32_t fattr4_maxname;
typedef uint64_t fattr4_maxread;
typedef uint64_t fattr4_maxwrite;
typedef ascii_REQUIRED4 fattr4_mimetype;
typedef mode4 fattr4_mode;
typedef mode_masked4 fattr4_mode_set_masked;
typedef uint64_t fattr4_mounted_on_fileid;
typedef bool fattr4_no_trunc;
typedef uint32_t fattr4_numlinks;
typedef utf8str_mixed fattr4_owner;
typedef utf8str_mixed fattr4_owner_group;
typedef uint64_t fattr4_quota_avail_hard;
typedef uint64_t fattr4_quota_avail_soft;
typedef uint64_t fattr4_quota_used;
typedef specdata4 fattr4_rawdev;
typedef uint64_t fattr4_space_avail;
typedef length4 fattr4_space_free;
typedef uint64_t fattr4_space_total;
typedef uint64_t fattr4_space_used;
typedef bool fattr4_system;
typedef nfstime4 fattr4_time_access;
typedef settime4 fattr4_time_access_set;
typedef nfstime4 fattr4_time_backup;
typedef nfstime4 fattr4_time_create;
typedef nfstime4 fattr4_time_delta;
typedef nfstime4 fattr4_time_metadata;
typedef nfstime4 fattr4_time_modify;
typedef settime4 fattr4_time_modify_set;
/*
* Attributes new to NFSv4.1
*/
typedef bitmap4 fattr4_suppattr_exclcreat;
typedef nfstime4 fattr4_dir_notif_delay;
typedef nfstime4 fattr4_dirent_notif_delay;
typedef layouttype4 fattr4_fs_layout_types<>;
typedef fs4_status fattr4_fs_status;
typedef fs_charset_cap4 fattr4_fs_charset_cap;
typedef uint32_t fattr4_layout_alignment;
typedef uint32_t fattr4_layout_blksize;
typedef layouthint4 fattr4_layout_hint;
typedef layouttype4 fattr4_layout_types<>;
typedef mdsthreshold4 fattr4_mdsthreshold;
typedef retention_get4 fattr4_retention_get;
typedef retention_set4 fattr4_retention_set;
typedef retention_get4 fattr4_retentevt_get;
typedef retention_set4 fattr4_retentevt_set;
typedef uint64_t fattr4_retention_hold;
typedef nfsacl41 fattr4_dacl;
typedef nfsacl41 fattr4_sacl;
typedef change_policy4 fattr4_change_policy;
/*
* Attributes new to NFSv4.2
*/
typedef uint64_t fattr4_space_freed;
typedef change_attr_type4
fattr4_change_attr_type;
typedef sec_label4 fattr4_sec_label;
typedef uint32_t fattr4_clone_blksize;
%/*
% * REQUIRED attributes
% */
const FATTR4_SUPPORTED_ATTRS = 0;
const FATTR4_TYPE = 1;
const FATTR4_FH_EXPIRE_TYPE = 2;
const FATTR4_CHANGE = 3;
const FATTR4_SIZE = 4;
const FATTR4_LINK_SUPPORT = 5;
const FATTR4_SYMLINK_SUPPORT = 6;
const FATTR4_NAMED_ATTR = 7;
const FATTR4_FSID = 8;
const FATTR4_UNIQUE_HANDLES = 9;
const FATTR4_LEASE_TIME = 10;
const FATTR4_RDATTR_ERROR = 11;
const FATTR4_FILEHANDLE = 19;
%/*
% * New to NFSv4.1
% */
const FATTR4_SUPPATTR_EXCLCREAT = 75;
%/*
% * RECOMMENDED attributes
% */
const FATTR4_ACL = 12;
const FATTR4_ACLSUPPORT = 13;
const FATTR4_ARCHIVE = 14;
const FATTR4_CANSETTIME = 15;
const FATTR4_CASE_INSENSITIVE = 16;
const FATTR4_CASE_PRESERVING = 17;
const FATTR4_CHOWN_RESTRICTED = 18;
const FATTR4_FILEID = 20;
const FATTR4_FILES_AVAIL = 21;
const FATTR4_FILES_FREE = 22;
const FATTR4_FILES_TOTAL = 23;
const FATTR4_FS_LOCATIONS = 24;
const FATTR4_HIDDEN = 25;
const FATTR4_HOMOGENEOUS = 26;
const FATTR4_MAXFILESIZE = 27;
const FATTR4_MAXLINK = 28;
const FATTR4_MAXNAME = 29;
const FATTR4_MAXREAD = 30;
const FATTR4_MAXWRITE = 31;
const FATTR4_MIMETYPE = 32;
const FATTR4_MODE = 33;
const FATTR4_NO_TRUNC = 34;
const FATTR4_NUMLINKS = 35;
const FATTR4_OWNER = 36;
const FATTR4_OWNER_GROUP = 37;
const FATTR4_QUOTA_AVAIL_HARD = 38;
const FATTR4_QUOTA_AVAIL_SOFT = 39;
const FATTR4_QUOTA_USED = 40;
const FATTR4_RAWDEV = 41;
const FATTR4_SPACE_AVAIL = 42;
const FATTR4_SPACE_FREE = 43;
const FATTR4_SPACE_TOTAL = 44;
const FATTR4_SPACE_USED = 45;
const FATTR4_SYSTEM = 46;
const FATTR4_TIME_ACCESS = 47;
const FATTR4_TIME_ACCESS_SET = 48;
const FATTR4_TIME_BACKUP = 49;
const FATTR4_TIME_CREATE = 50;
const FATTR4_TIME_DELTA = 51;
const FATTR4_TIME_METADATA = 52;
const FATTR4_TIME_MODIFY = 53;
const FATTR4_TIME_MODIFY_SET = 54;
const FATTR4_MOUNTED_ON_FILEID = 55;
%/*
% * New to NFSv4.1
% */
const FATTR4_DIR_NOTIF_DELAY = 56;
const FATTR4_DIRENT_NOTIF_DELAY = 57;
const FATTR4_DACL = 58;
const FATTR4_SACL = 59;
const FATTR4_CHANGE_POLICY = 60;
const FATTR4_FS_STATUS = 61;
const FATTR4_FS_LAYOUT_TYPES = 62;
const FATTR4_LAYOUT_HINT = 63;
const FATTR4_LAYOUT_TYPES = 64;
const FATTR4_LAYOUT_BLKSIZE = 65;
const FATTR4_LAYOUT_ALIGNMENT = 66;
const FATTR4_FS_LOCATIONS_INFO = 67;
const FATTR4_MDSTHRESHOLD = 68;
const FATTR4_RETENTION_GET = 69;
const FATTR4_RETENTION_SET = 70;
const FATTR4_RETENTEVT_GET = 71;
const FATTR4_RETENTEVT_SET = 72;
const FATTR4_RETENTION_HOLD = 73;
const FATTR4_MODE_SET_MASKED = 74;
const FATTR4_FS_CHARSET_CAP = 76;
%/*
% * New to NFSv4.2
% */
const FATTR4_CLONE_BLKSIZE = 77;
const FATTR4_SPACE_FREED = 78;
const FATTR4_CHANGE_ATTR_TYPE = 79;
const FATTR4_SEC_LABEL = 80;
/*
* File attribute container
*/
struct fattr4 {
bitmap4 attrmask;
attrlist4 attr_vals;
};
/*
* Change info for the client
*/
struct change_info4 {
bool atomic;
changeid4 before;
changeid4 after;
};
typedef netaddr4 clientaddr4;
/*
* Callback program info as provided by the client
*/
struct cb_client4 {
uint32_t cb_program;
netaddr4 cb_location;
};
/*
* NFSv4.0 long-hand client ID
*/
struct nfs_client_id4 {
verifier4 verifier;
opaque id<NFS4_OPAQUE_LIMIT>;
};
/*
* NFSv4.1 client owner (aka long-hand client ID)
*/
struct client_owner4 {
verifier4 co_verifier;
opaque co_ownerid<NFS4_OPAQUE_LIMIT>;
};
/*
* NFSv4.1 server owner
*/
struct server_owner4 {
uint64_t so_minor_id;
opaque so_major_id<NFS4_OPAQUE_LIMIT>;
};
struct state_owner4 {
clientid4 clientid;
opaque owner<NFS4_OPAQUE_LIMIT>;
};
typedef state_owner4 open_owner4;
typedef state_owner4 lock_owner4;
enum nfs_lock_type4 {
READ_LT = 1,
WRITE_LT = 2,
READW_LT = 3, /* Blocking read */
WRITEW_LT = 4 /* Blocking write */
};
%
%/* Input for computing subkeys */
enum ssv_subkey4 {
SSV4_SUBKEY_MIC_I2T = 1,
SSV4_SUBKEY_MIC_T2I = 2,
SSV4_SUBKEY_SEAL_I2T = 3,
SSV4_SUBKEY_SEAL_T2I = 4
};
%
%
%/* Input for computing smt_hmac */
struct ssv_mic_plain_tkn4 {
uint32_t smpt_ssv_seq;
opaque smpt_orig_plain<>;
};
%
%
%/*
% * Secret State Verifier Generic Security Service (SSV GSS)
% * PerMsgToken token
% */
struct ssv_mic_tkn4 {
uint32_t smt_ssv_seq;
opaque smt_hmac<>;
};
%
%
%/* Input for computing ssct_encr_data and ssct_hmac */
struct ssv_seal_plain_tkn4 {
opaque sspt_confounder<>;
uint32_t sspt_ssv_seq;
opaque sspt_orig_plain<>;
opaque sspt_pad<>;
};
%
%
%/* SSV GSS SealedMessage token */
struct ssv_seal_cipher_tkn4 {
uint32_t ssct_ssv_seq;
opaque ssct_iv<>;
opaque ssct_encr_data<>;
opaque ssct_hmac<>;
};
%
/*
* Defines an individual server replica
*/
struct fs_locations_server4 {
int32_t fls_currency;
opaque fls_info<>;
utf8str_cis fls_server;
};
/*
* Byte indices of items within
* fls_info: flag fields, class numbers,
* bytes indicating ranks and orders
*/
const FSLI4BX_GFLAGS = 0;
const FSLI4BX_TFLAGS = 1;
const FSLI4BX_CLSIMUL = 2;
const FSLI4BX_CLHANDLE = 3;
const FSLI4BX_CLFILEID = 4;
const FSLI4BX_CLWRITEVER = 5;
const FSLI4BX_CLCHANGE = 6;
const FSLI4BX_CLREADDIR = 7;
const FSLI4BX_READRANK = 8;
const FSLI4BX_WRITERANK = 9;
const FSLI4BX_READORDER = 10;
const FSLI4BX_WRITEORDER = 11;
/*
* Bits defined within the general flag byte
*/
const FSLI4GF_WRITABLE = 0x01;
const FSLI4GF_CUR_REQ = 0x02;
const FSLI4GF_ABSENT = 0x04;
const FSLI4GF_GOING = 0x08;
const FSLI4GF_SPLIT = 0x10;
/*
* Bits defined within the transport flag byte
*/
const FSLI4TF_RDMA = 0x01;
/*
* Defines a set of replicas sharing
* a common value of the root path
* within the corresponding
* single-server namespaces
*/
struct fs_locations_item4 {
fs_locations_server4 fli_entries<>;
pathname4 fli_rootpath;
};
/*
* Defines the overall structure of
* the fs_locations_info attribute
*/
struct fs_locations_info4 {
uint32_t fli_flags;
int32_t fli_valid_for;
pathname4 fli_fs_root;
fs_locations_item4 fli_items<>;
};
/*
* Flag bits in fli_flags
*/
const FSLI4IF_VAR_SUB = 0x00000001;
typedef fs_locations_info4 fattr4_fs_locations_info;
const NFL4_UFLG_MASK = 0x0000003F;
const NFL4_UFLG_DENSE = 0x00000001;
const NFL4_UFLG_COMMIT_THRU_MDS = 0x00000002;
const NFL42_UFLG_IO_ADVISE_THRU_MDS = 0x00000004;
const NFL4_UFLG_STRIPE_UNIT_SIZE_MASK = 0xFFFFFFC0;
typedef uint32_t nfl_util4;
%
enum filelayout_hint_care4 {
NFLH4_CARE_DENSE = NFL4_UFLG_DENSE,
NFLH4_CARE_COMMIT_THRU_MDS
= NFL4_UFLG_COMMIT_THRU_MDS,
NFL42_CARE_IO_ADVISE_THRU_MDS
= NFL42_UFLG_IO_ADVISE_THRU_MDS,
NFLH4_CARE_STRIPE_UNIT_SIZE
= 0x00000040,
NFLH4_CARE_STRIPE_COUNT = 0x00000080
};
%
%/*
% * Encoded in the loh_body field of data type layouthint4:
% */
%
struct nfsv4_1_file_layouthint4 {
uint32_t nflh_care;
nfl_util4 nflh_util;
count4 nflh_stripe_count;
};
%
%
typedef netaddr4 multipath_list4<>;
%
%/*
% * Encoded in the da_addr_body field of data type device_addr4:
% */
struct nfsv4_1_file_layout_ds_addr4 {
uint32_t nflda_stripe_indices<>;
multipath_list4 nflda_multipath_ds_list<>;
};
%
%
%/*
% * Encoded in the loc_body field of data type layout_content4:
% */
struct nfsv4_1_file_layout4 {
deviceid4 nfl_deviceid;
nfl_util4 nfl_util;
uint32_t nfl_first_stripe_index;
offset4 nfl_pattern_offset;
nfs_fh4 nfl_fh_list<>;
};
%
/*
* Operation arrays (the opnum first)
*/
enum nfs_opnum4 {
OP_ACCESS = 3,
OP_CLOSE = 4,
OP_COMMIT = 5,
OP_CREATE = 6,
OP_DELEGPURGE = 7,
OP_DELEGRETURN = 8,
OP_GETATTR = 9,
OP_GETFH = 10,
OP_LINK = 11,
OP_LOCK = 12,
OP_LOCKT = 13,
OP_LOCKU = 14,
OP_LOOKUP = 15,
OP_LOOKUPP = 16,
OP_NVERIFY = 17,
OP_OPEN = 18,
OP_OPENATTR = 19,
OP_OPEN_CONFIRM = 20, /* Mandatory not-to-implement */
OP_OPEN_DOWNGRADE = 21,
OP_PUTFH = 22,
OP_PUTPUBFH = 23,
OP_PUTROOTFH = 24,
OP_READ = 25,
OP_READDIR = 26,
OP_READLINK = 27,
OP_REMOVE = 28,
OP_RENAME = 29,
OP_RENEW = 30, /* Mandatory not-to-implement */
OP_RESTOREFH = 31,
OP_SAVEFH = 32,
OP_SECINFO = 33,
OP_SETATTR = 34,
OP_SETCLIENTID = 35, /* Mandatory not-to-implement */
OP_SETCLIENTID_CONFIRM = 36, /* Mandatory not-to-implement */
OP_VERIFY = 37,
OP_WRITE = 38,
OP_RELEASE_LOCKOWNER = 39, /* Mandatory not-to-implement */
%
%/* New operations for NFSv4.1 */
%
OP_BACKCHANNEL_CTL = 40,
OP_BIND_CONN_TO_SESSION = 41,
OP_EXCHANGE_ID = 42,
OP_CREATE_SESSION = 43,
OP_DESTROY_SESSION = 44,
OP_FREE_STATEID = 45,
OP_GET_DIR_DELEGATION = 46,
OP_GETDEVICEINFO = 47,
OP_GETDEVICELIST = 48,
OP_LAYOUTCOMMIT = 49,
OP_LAYOUTGET = 50,
OP_LAYOUTRETURN = 51,
OP_SECINFO_NO_NAME = 52,
OP_SEQUENCE = 53,
OP_SET_SSV = 54,
OP_TEST_STATEID = 55,
OP_WANT_DELEGATION = 56,
OP_DESTROY_CLIENTID = 57,
OP_RECLAIM_COMPLETE = 58,
%
%/* New operations for NFSv4.2 */
%
OP_ALLOCATE = 59,
OP_COPY = 60,
OP_COPY_NOTIFY = 61,
OP_DEALLOCATE = 62,
OP_IO_ADVISE = 63,
OP_LAYOUTERROR = 64,
OP_LAYOUTSTATS = 65,
OP_OFFLOAD_CANCEL = 66,
OP_OFFLOAD_STATUS = 67,
OP_READ_PLUS = 68,
OP_SEEK = 69,
OP_WRITE_SAME = 70,
OP_CLONE = 71,
OP_ILLEGAL = 10044
};
const ACCESS4_READ = 0x00000001;
const ACCESS4_LOOKUP = 0x00000002;
const ACCESS4_MODIFY = 0x00000004;
const ACCESS4_EXTEND = 0x00000008;
const ACCESS4_DELETE = 0x00000010;
const ACCESS4_EXECUTE = 0x00000020;
struct ACCESS4args {
/* CURRENT_FH: object */
uint32_t access;
};
struct ACCESS4resok {
uint32_t supported;
uint32_t access;
};
union ACCESS4res switch (nfsstat4 status) {
case NFS4_OK:
ACCESS4resok resok4;
default:
void;
};
struct CLONE4args {
/* SAVED_FH: source file */
/* CURRENT_FH: destination file */
stateid4 cl_src_stateid;
stateid4 cl_dst_stateid;
offset4 cl_src_offset;
offset4 cl_dst_offset;
length4 cl_count;
};
struct CLONE4res {
nfsstat4 cl_status;
};
struct CLOSE4args {
/* CURRENT_FH: object */
seqid4 seqid;
stateid4 open_stateid;
};
union CLOSE4res switch (nfsstat4 status) {
case NFS4_OK:
stateid4 open_stateid;
default:
void;
};
struct COMMIT4args {
/* CURRENT_FH: file */
offset4 offset;
count4 count;
};
struct COMMIT4resok {
verifier4 writeverf;
};
union COMMIT4res switch (nfsstat4 status) {
case NFS4_OK:
COMMIT4resok resok4;
default:
void;
};
union createtype4 switch (nfs_ftype4 type) {
case NF4LNK:
linktext4 linkdata;
case NF4BLK:
case NF4CHR:
specdata4 devdata;
case NF4SOCK:
case NF4FIFO:
case NF4DIR:
void;
default:
void; /* Server should return NFS4ERR_BADTYPE. */
};
struct CREATE4args {
/* CURRENT_FH: directory for creation */
createtype4 objtype;
component4 objname;
fattr4 createattrs;
};
struct CREATE4resok {
change_info4 cinfo;
bitmap4 attrset; /* Attributes set */
};
union CREATE4res switch (nfsstat4 status) {
case NFS4_OK:
/* New CURRENTFH: created object */
CREATE4resok resok4;
default:
void;
};
struct DELEGPURGE4args {
clientid4 clientid;
};
struct DELEGPURGE4res {
nfsstat4 status;
};
struct DELEGRETURN4args {
/* CURRENT_FH: delegated object */
stateid4 deleg_stateid;
};
struct DELEGRETURN4res {
nfsstat4 status;
};
struct GETATTR4args {
/* CURRENT_FH: object */
bitmap4 attr_request;
};
struct GETATTR4resok {
fattr4 obj_attributes;
};
union GETATTR4res switch (nfsstat4 status) {
case NFS4_OK:
GETATTR4resok resok4;
default:
void;
};
struct GETFH4resok {
nfs_fh4 object;
};
union GETFH4res switch (nfsstat4 status) {
case NFS4_OK:
GETFH4resok resok4;
default:
void;
};
struct LINK4args {
/* SAVED_FH: source object */
/* CURRENT_FH: target directory */
component4 newname;
};
struct LINK4resok {
change_info4 cinfo;
};
union LINK4res switch (nfsstat4 status) {
case NFS4_OK:
LINK4resok resok4;
default:
void;
};
/*
* For LOCK, transition from open_stateid and lock_owner
* to a lock stateid.
*/
struct open_to_lock_owner4 {
seqid4 open_seqid;
stateid4 open_stateid;
seqid4 lock_seqid;
lock_owner4 lock_owner;
};
/*
* For LOCK, existing lock stateid continues to request new
* file lock for the same lock_owner and open_stateid.
*/
struct exist_lock_owner4 {
stateid4 lock_stateid;
seqid4 lock_seqid;
};
union locker4 switch (bool new_lock_owner) {
case TRUE:
open_to_lock_owner4 open_owner;
case FALSE:
exist_lock_owner4 lock_owner;
};
/*
* LOCK/LOCKT/LOCKU: Record lock management
*/
struct LOCK4args {
/* CURRENT_FH: file */
nfs_lock_type4 locktype;
bool reclaim;
offset4 offset;
length4 length;
locker4 locker;
};
struct LOCK4denied {
offset4 offset;
length4 length;
nfs_lock_type4 locktype;
lock_owner4 owner;
};
struct LOCK4resok {
stateid4 lock_stateid;
};
union LOCK4res switch (nfsstat4 status) {
case NFS4_OK:
LOCK4resok resok4;
case NFS4ERR_DENIED:
LOCK4denied denied;
default:
void;
};
struct LOCKT4args {
/* CURRENT_FH: file */
nfs_lock_type4 locktype;
offset4 offset;
length4 length;
lock_owner4 owner;
};
union LOCKT4res switch (nfsstat4 status) {
case NFS4ERR_DENIED:
LOCK4denied denied;
case NFS4_OK:
void;
default:
void;
};
struct LOCKU4args {
/* CURRENT_FH: file */
nfs_lock_type4 locktype;
seqid4 seqid;
stateid4 lock_stateid;
offset4 offset;
length4 length;
};
union LOCKU4res switch (nfsstat4 status) {
case NFS4_OK:
stateid4 lock_stateid;
default:
void;
};
struct LOOKUP4args {
/* CURRENT_FH: directory */
component4 objname;
};
struct LOOKUP4res {
/* New CURRENT_FH: object */
nfsstat4 status;
};
struct LOOKUPP4res {
/* New CURRENT_FH: parent directory */
nfsstat4 status;
};
struct NVERIFY4args {
/* CURRENT_FH: object */
fattr4 obj_attributes;
};
struct NVERIFY4res {
nfsstat4 status;
};
/*
* Various definitions for OPEN
*/
enum createmode4 {
UNCHECKED4 = 0,
GUARDED4 = 1,
/* Deprecated in NFSv4.1 */
EXCLUSIVE4 = 2,
/*
* New to NFSv4.1. If session is persistent,
* GUARDED4 MUST be used. Otherwise, use
* EXCLUSIVE4_1 instead of EXCLUSIVE4.
*/
EXCLUSIVE4_1 = 3
};
struct creatverfattr {
verifier4 cva_verf;
fattr4 cva_attrs;
};
union createhow4 switch (createmode4 mode) {
case UNCHECKED4:
case GUARDED4:
fattr4 createattrs;
case EXCLUSIVE4:
verifier4 createverf;
case EXCLUSIVE4_1:
creatverfattr ch_createboth;
};
enum opentype4 {
OPEN4_NOCREATE = 0,
OPEN4_CREATE = 1
};
union openflag4 switch (opentype4 opentype) {
case OPEN4_CREATE:
createhow4 how;
default:
void;
};
/* Next definitions used for OPEN delegation */
enum limit_by4 {
NFS_LIMIT_SIZE = 1,
NFS_LIMIT_BLOCKS = 2
/* Others as needed */
};
struct nfs_modified_limit4 {
uint32_t num_blocks;
uint32_t bytes_per_block;
};
union nfs_space_limit4 switch (limit_by4 limitby) {
/* Limit specified as file size */
case NFS_LIMIT_SIZE:
uint64_t filesize;
/* Limit specified by number of blocks */
case NFS_LIMIT_BLOCKS:
nfs_modified_limit4 mod_blocks;
};
/*
* Share Access and Deny constants for open argument
*/
const OPEN4_SHARE_ACCESS_READ = 0x00000001;
const OPEN4_SHARE_ACCESS_WRITE = 0x00000002;
const OPEN4_SHARE_ACCESS_BOTH = 0x00000003;
const OPEN4_SHARE_DENY_NONE = 0x00000000;
const OPEN4_SHARE_DENY_READ = 0x00000001;
const OPEN4_SHARE_DENY_WRITE = 0x00000002;
const OPEN4_SHARE_DENY_BOTH = 0x00000003;
/* New flags for share_access field of OPEN4args */
const OPEN4_SHARE_ACCESS_WANT_DELEG_MASK = 0xFF00;
const OPEN4_SHARE_ACCESS_WANT_NO_PREFERENCE = 0x0000;
const OPEN4_SHARE_ACCESS_WANT_READ_DELEG = 0x0100;
const OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG = 0x0200;
const OPEN4_SHARE_ACCESS_WANT_ANY_DELEG = 0x0300;
const OPEN4_SHARE_ACCESS_WANT_NO_DELEG = 0x0400;
const OPEN4_SHARE_ACCESS_WANT_CANCEL = 0x0500;
const
OPEN4_SHARE_ACCESS_WANT_SIGNAL_DELEG_WHEN_RESRC_AVAIL
= 0x10000;
const
OPEN4_SHARE_ACCESS_WANT_PUSH_DELEG_WHEN_UNCONTENDED
= 0x20000;
enum open_delegation_type4 {
OPEN_DELEGATE_NONE = 0,
OPEN_DELEGATE_READ = 1,
OPEN_DELEGATE_WRITE = 2,
OPEN_DELEGATE_NONE_EXT = 3 /* New to NFSv4.1 */
};
enum open_claim_type4 {
/*
* Not a reclaim
*/
CLAIM_NULL = 0,
CLAIM_PREVIOUS = 1,
CLAIM_DELEGATE_CUR = 2,
CLAIM_DELEGATE_PREV = 3,
/*
* Not a reclaim
*
* Like CLAIM_NULL, but object identified
* by the current filehandle
*/
CLAIM_FH = 4, /* New to NFSv4.1 */
/*
* Like CLAIM_DELEGATE_CUR, but object identified
* by current filehandle
*/
CLAIM_DELEG_CUR_FH = 5, /* New to NFSv4.1 */
/*
* Like CLAIM_DELEGATE_PREV, but object identified
* by current filehandle
*/
CLAIM_DELEG_PREV_FH = 6 /* New to NFSv4.1 */
};
struct open_claim_delegate_cur4 {
stateid4 delegate_stateid;
component4 file;
};
union open_claim4 switch (open_claim_type4 claim) {
/*
* No special rights to file.
* Ordinary OPEN of the specified file.
*/
case CLAIM_NULL:
/* CURRENT_FH: directory */
component4 file;
/*
* Right to the file established by an
* open previous to server reboot. File
* identified by filehandle obtained at
* that time rather than by name.
*/
case CLAIM_PREVIOUS:
/* CURRENT_FH: file being reclaimed */
open_delegation_type4 delegate_type;
/*
* Right to file based on a delegation
* granted by the server. File is
* specified by name.
*/
case CLAIM_DELEGATE_CUR:
/* CURRENT_FH: directory */
open_claim_delegate_cur4 delegate_cur_info;
/*
* Right to file based on a delegation
* granted to a previous boot instance
* of the client. File is specified by name.
*/
case CLAIM_DELEGATE_PREV:
/* CURRENT_FH: directory */
component4 file_delegate_prev;
/*
* Like CLAIM_NULL. No special rights
* to file. Ordinary OPEN of the
* specified file by current filehandle.
*/
case CLAIM_FH: /* New to NFSv4.1 */
/* CURRENT_FH: regular file to open */
void;
/*
* Like CLAIM_DELEGATE_PREV. Right to file based on a
* delegation granted to a previous boot
* instance of the client. File is identified
* by filehandle.
*/
case CLAIM_DELEG_PREV_FH: /* New to NFSv4.1 */
/* CURRENT_FH: file being opened */
void;
/*
* Like CLAIM_DELEGATE_CUR. Right to file based on
* a delegation granted by the server.
* File is identified by filehandle.
*/
case CLAIM_DELEG_CUR_FH: /* New to NFSv4.1 */
/* CURRENT_FH: file being opened */
stateid4 oc_delegate_stateid;
};
/*
* OPEN: Open a file, potentially receiving an open delegation.
*/
struct OPEN4args {
seqid4 seqid;
uint32_t share_access;
uint32_t share_deny;
open_owner4 owner;
openflag4 openhow;
open_claim4 claim;
};
struct open_read_delegation4 {
stateid4 stateid; /* Stateid for delegation */
bool recall; /* Pre-recalled flag for
delegations obtained
by reclaim (CLAIM_PREVIOUS) */
nfsace4 permissions; /* Defines users who don't
need an ACCESS call to
open for read */
};
struct open_write_delegation4 {
stateid4 stateid; /* Stateid for delegation */
bool recall; /* Pre-recalled flag for
delegations obtained
by reclaim
(CLAIM_PREVIOUS) */
nfs_space_limit4
space_limit; /* Defines condition that
the client must check to
determine whether the
file needs to be flushed
to the server on close */
nfsace4 permissions; /* Defines users who don't
need an ACCESS call as
part of a delegated
open */
};
enum why_no_delegation4 { /* New to NFSv4.1 */
WND4_NOT_WANTED = 0,
WND4_CONTENTION = 1,
WND4_RESOURCE = 2,
WND4_NOT_SUPP_FTYPE = 3,
WND4_WRITE_DELEG_NOT_SUPP_FTYPE = 4,
WND4_NOT_SUPP_UPGRADE = 5,
WND4_NOT_SUPP_DOWNGRADE = 6,
WND4_CANCELLED = 7,
WND4_IS_DIR = 8
};
union open_none_delegation4 /* New to NFSv4.1 */
switch (why_no_delegation4 ond_why) {
case WND4_CONTENTION:
bool ond_server_will_push_deleg;
case WND4_RESOURCE:
bool ond_server_will_signal_avail;
default:
void;
};
union open_delegation4
switch (open_delegation_type4 delegation_type) {
case OPEN_DELEGATE_NONE:
void;
case OPEN_DELEGATE_READ:
open_read_delegation4 read;
case OPEN_DELEGATE_WRITE:
open_write_delegation4 write;
case OPEN_DELEGATE_NONE_EXT: /* New to NFSv4.1 */
open_none_delegation4 od_whynone;
};
/*
* Result flags
*/
/* Client must confirm open. */
const OPEN4_RESULT_CONFIRM = 0x00000002;
/* Type of file-locking behavior at the server */
const OPEN4_RESULT_LOCKTYPE_POSIX = 0x00000004;
/* Server will preserve file if removed while open. */
const OPEN4_RESULT_PRESERVE_UNLINKED = 0x00000008;
/*
* Server may use CB_NOTIFY_LOCK on locks
* derived from this open.
*/
const OPEN4_RESULT_MAY_NOTIFY_LOCK = 0x00000020;
struct OPEN4resok {
stateid4 stateid; /* Stateid for open */
change_info4 cinfo; /* Directory change info */
uint32_t rflags; /* Result flags */
bitmap4 attrset; /* Attribute set for create */
open_delegation4 delegation; /* Info on any open
delegation */
};
union OPEN4res switch (nfsstat4 status) {
case NFS4_OK:
/* New CURRENT_FH: opened file */
OPEN4resok resok4;
default:
void;
};
struct OPENATTR4args {
/* CURRENT_FH: object */
bool createdir;
};
struct OPENATTR4res {
/*
* If status is NFS4_OK,
* New CURRENT_FH: named attribute
* directory
*/
nfsstat4 status;
};
/* Obsolete in NFSv4.1 */
struct OPEN_CONFIRM4args {
/* CURRENT_FH: opened file */
stateid4 open_stateid;
seqid4 seqid;
};
struct OPEN_CONFIRM4resok {
stateid4 open_stateid;
};
union OPEN_CONFIRM4res switch (nfsstat4 status) {
case NFS4_OK:
OPEN_CONFIRM4resok resok4;
default:
void;
};
struct OPEN_DOWNGRADE4args {
/* CURRENT_FH: opened file */
stateid4 open_stateid;
seqid4 seqid;
uint32_t share_access;
uint32_t share_deny;
};
struct OPEN_DOWNGRADE4resok {
stateid4 open_stateid;
};
union OPEN_DOWNGRADE4res switch (nfsstat4 status) {
case NFS4_OK:
OPEN_DOWNGRADE4resok resok4;
default:
void;
};
struct PUTFH4args {
nfs_fh4 object;
};
struct PUTFH4res {
/*
* If status is NFS4_OK,
* New CURRENT_FH: argument to PUTFH
*/
nfsstat4 status;
};
struct PUTPUBFH4res {
/*
* If status is NFS4_OK,
* New CURRENT_FH: public fh
*/
nfsstat4 status;
};
struct PUTROOTFH4res {
/*
* If status is NFS4_OK,
* New CURRENT_FH: root fh
*/
nfsstat4 status;
};
struct READ4args {
/* CURRENT_FH: file */
stateid4 stateid;
offset4 offset;
count4 count;
};
struct READ4resok {
bool eof;
opaque data<>;
};
union READ4res switch (nfsstat4 status) {
case NFS4_OK:
READ4resok resok4;
default:
void;
};
struct READDIR4args {
/* CURRENT_FH: directory */
nfs_cookie4 cookie;
verifier4 cookieverf;
count4 dircount;
count4 maxcount;
bitmap4 attr_request;
};
struct entry4 {
nfs_cookie4 cookie;
component4 name;
fattr4 attrs;
entry4 *nextentry;
};
struct dirlist4 {
entry4 *entries;
bool eof;
};
struct READDIR4resok {
verifier4 cookieverf;
dirlist4 reply;
};
union READDIR4res switch (nfsstat4 status) {
case NFS4_OK:
READDIR4resok resok4;
default:
void;
};
struct READLINK4resok {
linktext4 link;
};
union READLINK4res switch (nfsstat4 status) {
case NFS4_OK:
READLINK4resok resok4;
default:
void;
};
struct REMOVE4args {
/* CURRENT_FH: directory */
component4 target;
};
struct REMOVE4resok {
change_info4 cinfo;
};
union REMOVE4res switch (nfsstat4 status) {
case NFS4_OK:
REMOVE4resok resok4;
default:
void;
};
struct RENAME4args {
/* SAVED_FH: source directory */
component4 oldname;
/* CURRENT_FH: target directory */
component4 newname;
};
struct RENAME4resok {
change_info4 source_cinfo;
change_info4 target_cinfo;
};
union RENAME4res switch (nfsstat4 status) {
case NFS4_OK:
RENAME4resok resok4;
default:
void;
};
/* Obsolete in NFSv4.1 */
struct RENEW4args {
clientid4 clientid;
};
struct RENEW4res {
nfsstat4 status;
};
struct RESTOREFH4res {
/*
* If status is NFS4_OK,
* New CURRENT_FH: value of saved fh
*/
nfsstat4 status;
};
struct SAVEFH4res {
/*
* If status is NFS4_OK,
* New SAVED_FH: value of current fh
*/
nfsstat4 status;
};
struct SECINFO4args {
/* CURRENT_FH: directory */
component4 name;
};
/*
* From RFC 2203
*/
enum rpc_gss_svc_t {
RPC_GSS_SVC_NONE = 1,
RPC_GSS_SVC_INTEGRITY = 2,
RPC_GSS_SVC_PRIVACY = 3
};
struct rpcsec_gss_info {
sec_oid4 oid;
qop4 qop;
rpc_gss_svc_t service;
};
/* RPCSEC_GSS has a value of "6". See RFC 2203. */
union secinfo4 switch (uint32_t flavor) {
case RPCSEC_GSS:
rpcsec_gss_info flavor_info;
default:
void;
};
typedef secinfo4 SECINFO4resok<>;
union SECINFO4res switch (nfsstat4 status) {
case NFS4_OK:
/* CURRENTFH: consumed */
SECINFO4resok resok4;
default:
void;
};
struct SETATTR4args {
/* CURRENT_FH: target object */
stateid4 stateid;
fattr4 obj_attributes;
};
struct SETATTR4res {
nfsstat4 status;
bitmap4 attrsset;
};
/* Obsolete in NFSv4.1 */
struct SETCLIENTID4args {
nfs_client_id4 client;
cb_client4 callback;
uint32_t callback_ident;
};
struct SETCLIENTID4resok {
clientid4 clientid;
verifier4 setclientid_confirm;
};
union SETCLIENTID4res switch (nfsstat4 status) {
case NFS4_OK:
SETCLIENTID4resok resok4;
case NFS4ERR_CLID_INUSE:
clientaddr4 client_using;
default:
void;
};
/* Obsolete in NFSv4.1 */
struct SETCLIENTID_CONFIRM4args {
clientid4 clientid;
verifier4 setclientid_confirm;
};
struct SETCLIENTID_CONFIRM4res {
nfsstat4 status;
};
struct VERIFY4args {
/* CURRENT_FH: object */
fattr4 obj_attributes;
};
struct VERIFY4res {
nfsstat4 status;
};
struct WRITE4args {
/* CURRENT_FH: file */
stateid4 stateid;
offset4 offset;
stable_how4 stable;
opaque data<>;
};
struct WRITE4resok {
count4 count;
stable_how4 committed;
verifier4 writeverf;
};
union WRITE4res switch (nfsstat4 status) {
case NFS4_OK:
WRITE4resok resok4;
default:
void;
};
/* Obsolete in NFSv4.1 */
struct RELEASE_LOCKOWNER4args {
lock_owner4 lock_owner;
};
struct RELEASE_LOCKOWNER4res {
nfsstat4 status;
};
struct ILLEGAL4res {
nfsstat4 status;
};
typedef opaque gsshandle4_t<>;
struct gss_cb_handles4 {
rpc_gss_svc_t gcbp_service; /* RFC 2203 */
gsshandle4_t gcbp_handle_from_server;
gsshandle4_t gcbp_handle_from_client;
};
union callback_sec_parms4 switch (uint32_t cb_secflavor) {
case AUTH_NONE:
void;
case AUTH_SYS:
authsys_parms cbsp_sys_cred; /* RFC 5531 */
case RPCSEC_GSS:
gss_cb_handles4 cbsp_gss_handles;
};
struct BACKCHANNEL_CTL4args {
uint32_t bca_cb_program;
callback_sec_parms4 bca_sec_parms<>;
};
struct BACKCHANNEL_CTL4res {
nfsstat4 bcr_status;
};
enum channel_dir_from_client4 {
CDFC4_FORE = 0x1,
CDFC4_BACK = 0x2,
CDFC4_FORE_OR_BOTH = 0x3,
CDFC4_BACK_OR_BOTH = 0x7
};
struct BIND_CONN_TO_SESSION4args {
sessionid4 bctsa_sessid;
channel_dir_from_client4
bctsa_dir;
bool bctsa_use_conn_in_rdma_mode;
};
enum channel_dir_from_server4 {
CDFS4_FORE = 0x1,
CDFS4_BACK = 0x2,
CDFS4_BOTH = 0x3
};
struct BIND_CONN_TO_SESSION4resok {
sessionid4 bctsr_sessid;
channel_dir_from_server4
bctsr_dir;
bool bctsr_use_conn_in_rdma_mode;
};
union BIND_CONN_TO_SESSION4res
switch (nfsstat4 bctsr_status) {
case NFS4_OK:
BIND_CONN_TO_SESSION4resok bctsr_resok4;
default:
void;
};
const EXCHGID4_FLAG_SUPP_MOVED_REFER = 0x00000001;
const EXCHGID4_FLAG_SUPP_MOVED_MIGR = 0x00000002;
const EXCHGID4_FLAG_SUPP_FENCE_OPS = 0x00000004;
const EXCHGID4_FLAG_BIND_PRINC_STATEID = 0x00000100;
const EXCHGID4_FLAG_USE_NON_PNFS = 0x00010000;
const EXCHGID4_FLAG_USE_PNFS_MDS = 0x00020000;
const EXCHGID4_FLAG_USE_PNFS_DS = 0x00040000;
const EXCHGID4_FLAG_MASK_PNFS = 0x00070000;
const EXCHGID4_FLAG_UPD_CONFIRMED_REC_A = 0x40000000;
const EXCHGID4_FLAG_CONFIRMED_R = 0x80000000;
struct state_protect_ops4 {
bitmap4 spo_must_enforce;
bitmap4 spo_must_allow;
};
struct ssv_sp_parms4 {
state_protect_ops4 ssp_ops;
sec_oid4 ssp_hash_algs<>;
sec_oid4 ssp_encr_algs<>;
uint32_t ssp_window;
uint32_t ssp_num_gss_handles;
};
enum state_protect_how4 {
SP4_NONE = 0,
SP4_MACH_CRED = 1,
SP4_SSV = 2
};
union state_protect4_a switch (state_protect_how4 spa_how) {
case SP4_NONE:
void;
case SP4_MACH_CRED:
state_protect_ops4 spa_mach_ops;
case SP4_SSV:
ssv_sp_parms4 spa_ssv_parms;
};
struct EXCHANGE_ID4args {
client_owner4 eia_clientowner;
uint32_t eia_flags;
state_protect4_a eia_state_protect;
nfs_impl_id4 eia_client_impl_id<1>;
};
struct ssv_prot_info4 {
state_protect_ops4 spi_ops;
uint32_t spi_hash_alg;
uint32_t spi_encr_alg;
uint32_t spi_ssv_len;
uint32_t spi_window;
gsshandle4_t spi_handles<>;
};
union state_protect4_r switch (state_protect_how4 spr_how) {
case SP4_NONE:
void;
case SP4_MACH_CRED:
state_protect_ops4 spr_mach_ops;
case SP4_SSV:
ssv_prot_info4 spr_ssv_info;
};
struct EXCHANGE_ID4resok {
clientid4 eir_clientid;
sequenceid4 eir_sequenceid;
uint32_t eir_flags;
state_protect4_r eir_state_protect;
server_owner4 eir_server_owner;
opaque eir_server_scope<NFS4_OPAQUE_LIMIT>;
nfs_impl_id4 eir_server_impl_id<1>;
};
union EXCHANGE_ID4res switch (nfsstat4 eir_status) {
case NFS4_OK:
EXCHANGE_ID4resok eir_resok4;
default:
void;
};
struct channel_attrs4 {
count4 ca_headerpadsize;
count4 ca_maxrequestsize;
count4 ca_maxresponsesize;
count4 ca_maxresponsesize_cached;
count4 ca_maxoperations;
count4 ca_maxrequests;
uint32_t ca_rdma_ird<1>;
};
const CREATE_SESSION4_FLAG_PERSIST = 0x00000001;
const CREATE_SESSION4_FLAG_CONN_BACK_CHAN = 0x00000002;
const CREATE_SESSION4_FLAG_CONN_RDMA = 0x00000004;
struct CREATE_SESSION4args {
clientid4 csa_clientid;
sequenceid4 csa_sequence;
uint32_t csa_flags;
channel_attrs4 csa_fore_chan_attrs;
channel_attrs4 csa_back_chan_attrs;
uint32_t csa_cb_program;
callback_sec_parms4 csa_sec_parms<>;
};
struct CREATE_SESSION4resok {
sessionid4 csr_sessionid;
sequenceid4 csr_sequence;
uint32_t csr_flags;
channel_attrs4 csr_fore_chan_attrs;
channel_attrs4 csr_back_chan_attrs;
};
union CREATE_SESSION4res switch (nfsstat4 csr_status) {
case NFS4_OK:
CREATE_SESSION4resok csr_resok4;
default:
void;
};
struct DESTROY_SESSION4args {
sessionid4 dsa_sessionid;
};
struct DESTROY_SESSION4res {
nfsstat4 dsr_status;
};
struct FREE_STATEID4args {
stateid4 fsa_stateid;
};
struct FREE_STATEID4res {
nfsstat4 fsr_status;
};
typedef nfstime4 attr_notice4;
struct GET_DIR_DELEGATION4args {
/* CURRENT_FH: delegated directory */
bool gdda_signal_deleg_avail;
bitmap4 gdda_notification_types;
attr_notice4 gdda_child_attr_delay;
attr_notice4 gdda_dir_attr_delay;
bitmap4 gdda_child_attributes;
bitmap4 gdda_dir_attributes;
};
struct GET_DIR_DELEGATION4resok {
verifier4 gddr_cookieverf;
/* Stateid for get_dir_delegation */
stateid4 gddr_stateid;
/* Which notifications can the server support? */
bitmap4 gddr_notification;
bitmap4 gddr_child_attributes;
bitmap4 gddr_dir_attributes;
};
enum gddrnf4_status {
GDD4_OK = 0,
GDD4_UNAVAIL = 1
};
union GET_DIR_DELEGATION4res_non_fatal
switch (gddrnf4_status gddrnf_status) {
case GDD4_OK:
GET_DIR_DELEGATION4resok gddrnf_resok4;
case GDD4_UNAVAIL:
bool gddrnf_will_signal_deleg_avail;
};
union GET_DIR_DELEGATION4res
switch (nfsstat4 gddr_status) {
case NFS4_OK:
GET_DIR_DELEGATION4res_non_fatal gddr_res_non_fatal4;
default:
void;
};
struct GETDEVICEINFO4args {
deviceid4 gdia_device_id;
layouttype4 gdia_layout_type;
count4 gdia_maxcount;
bitmap4 gdia_notify_types;
};
struct GETDEVICEINFO4resok {
device_addr4 gdir_device_addr;
bitmap4 gdir_notification;
};
union GETDEVICEINFO4res switch (nfsstat4 gdir_status) {
case NFS4_OK:
GETDEVICEINFO4resok gdir_resok4;
case NFS4ERR_TOOSMALL:
count4 gdir_mincount;
default:
void;
};
struct GETDEVICELIST4args {
/* CURRENT_FH: object belonging to the file system */
layouttype4 gdla_layout_type;
/* Number of device IDs to return */
count4 gdla_maxdevices;
nfs_cookie4 gdla_cookie;
verifier4 gdla_cookieverf;
};
struct GETDEVICELIST4resok {
nfs_cookie4 gdlr_cookie;
verifier4 gdlr_cookieverf;
deviceid4 gdlr_deviceid_list<>;
bool gdlr_eof;
};
union GETDEVICELIST4res switch (nfsstat4 gdlr_status) {
case NFS4_OK:
GETDEVICELIST4resok gdlr_resok4;
default:
void;
};
union newtime4 switch (bool nt_timechanged) {
case TRUE:
nfstime4 nt_time;
case FALSE:
void;
};
union newoffset4 switch (bool no_newoffset) {
case TRUE:
offset4 no_offset;
case FALSE:
void;
};
struct LAYOUTCOMMIT4args {
/* CURRENT_FH: file */
offset4 loca_offset;
length4 loca_length;
bool loca_reclaim;
stateid4 loca_stateid;
newoffset4 loca_last_write_offset;
newtime4 loca_time_modify;
layoutupdate4 loca_layoutupdate;
};
union newsize4 switch (bool ns_sizechanged) {
case TRUE:
length4 ns_size;
case FALSE:
void;
};
struct LAYOUTCOMMIT4resok {
newsize4 locr_newsize;
};
union LAYOUTCOMMIT4res switch (nfsstat4 locr_status) {
case NFS4_OK:
LAYOUTCOMMIT4resok locr_resok4;
default:
void;
};
struct LAYOUTGET4args {
/* CURRENT_FH: file */
bool loga_signal_layout_avail;
layouttype4 loga_layout_type;
layoutiomode4 loga_iomode;
offset4 loga_offset;
length4 loga_length;
length4 loga_minlength;
stateid4 loga_stateid;
count4 loga_maxcount;
};
struct LAYOUTGET4resok {
bool logr_return_on_close;
stateid4 logr_stateid;
layout4 logr_layout<>;
};
union LAYOUTGET4res switch (nfsstat4 logr_status) {
case NFS4_OK:
LAYOUTGET4resok logr_resok4;
case NFS4ERR_LAYOUTTRYLATER:
bool logr_will_signal_layout_avail;
default:
void;
};
struct LAYOUTRETURN4args {
/* CURRENT_FH: file */
bool lora_reclaim;
layouttype4 lora_layout_type;
layoutiomode4 lora_iomode;
layoutreturn4 lora_layoutreturn;
};
union layoutreturn_stateid switch (bool lrs_present) {
case TRUE:
stateid4 lrs_stateid;
case FALSE:
void;
};
union LAYOUTRETURN4res switch (nfsstat4 lorr_status) {
case NFS4_OK:
layoutreturn_stateid lorr_stateid;
default:
void;
};
enum secinfo_style4 {
SECINFO_STYLE4_CURRENT_FH = 0,
SECINFO_STYLE4_PARENT = 1
};
/* CURRENT_FH: object or child directory */
typedef secinfo_style4 SECINFO_NO_NAME4args;
/* CURRENTFH: consumed if status is NFS4_OK */
typedef SECINFO4res SECINFO_NO_NAME4res;
struct SEQUENCE4args {
sessionid4 sa_sessionid;
sequenceid4 sa_sequenceid;
slotid4 sa_slotid;
slotid4 sa_highest_slotid;
bool sa_cachethis;
};
const SEQ4_STATUS_CB_PATH_DOWN = 0x00000001;
const SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING = 0x00000002;
const SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED = 0x00000004;
const SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED = 0x00000008;
const SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED = 0x00000010;
const SEQ4_STATUS_ADMIN_STATE_REVOKED = 0x00000020;
const SEQ4_STATUS_RECALLABLE_STATE_REVOKED = 0x00000040;
const SEQ4_STATUS_LEASE_MOVED = 0x00000080;
const SEQ4_STATUS_RESTART_RECLAIM_NEEDED = 0x00000100;
const SEQ4_STATUS_CB_PATH_DOWN_SESSION = 0x00000200;
const SEQ4_STATUS_BACKCHANNEL_FAULT = 0x00000400;
const SEQ4_STATUS_DEVID_CHANGED = 0x00000800;
const SEQ4_STATUS_DEVID_DELETED = 0x00001000;
struct SEQUENCE4resok {
sessionid4 sr_sessionid;
sequenceid4 sr_sequenceid;
slotid4 sr_slotid;
slotid4 sr_highest_slotid;
slotid4 sr_target_highest_slotid;
uint32_t sr_status_flags;
};
union SEQUENCE4res switch (nfsstat4 sr_status) {
case NFS4_OK:
SEQUENCE4resok sr_resok4;
default:
void;
};
struct ssa_digest_input4 {
SEQUENCE4args sdi_seqargs;
};
struct SET_SSV4args {
opaque ssa_ssv<>;
opaque ssa_digest<>;
};
struct ssr_digest_input4 {
SEQUENCE4res sdi_seqres;
};
struct SET_SSV4resok {
opaque ssr_digest<>;
};
union SET_SSV4res switch (nfsstat4 ssr_status) {
case NFS4_OK:
SET_SSV4resok ssr_resok4;
default:
void;
};
struct TEST_STATEID4args {
stateid4 ts_stateids<>;
};
struct TEST_STATEID4resok {
nfsstat4 tsr_status_codes<>;
};
union TEST_STATEID4res switch (nfsstat4 tsr_status) {
case NFS4_OK:
TEST_STATEID4resok tsr_resok4;
default:
void;
};
union deleg_claim4 switch (open_claim_type4 dc_claim) {
/*
* No special rights to object. Ordinary delegation
* request of the specified object. Object identified
* by filehandle.
*/
case CLAIM_FH: /* New to NFSv4.1 */
/* CURRENT_FH: object being delegated */
void;
/*
* Right to file based on a delegation granted
* to a previous boot instance of the client.
* File is specified by filehandle.
*/
case CLAIM_DELEG_PREV_FH: /* New to NFSv4.1 */
/* CURRENT_FH: object being delegated */
void;
/*
* Right to the file established by an open previous
* to server reboot. File identified by filehandle.
* Used during server reclaim grace period.
*/
case CLAIM_PREVIOUS:
/* CURRENT_FH: object being reclaimed */
open_delegation_type4 dc_delegate_type;
};
struct WANT_DELEGATION4args {
uint32_t wda_want;
deleg_claim4 wda_claim;
};
union WANT_DELEGATION4res switch (nfsstat4 wdr_status) {
case NFS4_OK:
open_delegation4 wdr_resok4;
default:
void;
};
struct DESTROY_CLIENTID4args {
clientid4 dca_clientid;
};
struct DESTROY_CLIENTID4res {
nfsstat4 dcr_status;
};
struct RECLAIM_COMPLETE4args {
/*
* If rca_one_fs TRUE,
*
* CURRENT_FH: object in
* file system for which the
* reclaim is complete.
*/
bool rca_one_fs;
};
struct RECLAIM_COMPLETE4res {
nfsstat4 rcr_status;
};
struct COPY4args {
/* SAVED_FH: source file */
/* CURRENT_FH: destination file */
stateid4 ca_src_stateid;
stateid4 ca_dst_stateid;
offset4 ca_src_offset;
offset4 ca_dst_offset;
length4 ca_count;
bool ca_consecutive;
bool ca_synchronous;
netloc4 ca_source_server<>;
};
struct copy_requirements4 {
bool cr_consecutive;
bool cr_synchronous;
};
struct COPY4resok {
write_response4 cr_response;
copy_requirements4 cr_requirements;
};
union COPY4res switch (nfsstat4 cr_status) {
case NFS4_OK:
COPY4resok cr_resok4;
case NFS4ERR_OFFLOAD_NO_REQS:
copy_requirements4 cr_requirements;
default:
void;
};
struct COPY_NOTIFY4args {
/* CURRENT_FH: source file */
stateid4 cna_src_stateid;
netloc4 cna_destination_server;
};
struct COPY_NOTIFY4resok {
nfstime4 cnr_lease_time;
stateid4 cnr_stateid;
netloc4 cnr_source_server<>;
};
union COPY_NOTIFY4res switch (nfsstat4 cnr_status) {
case NFS4_OK:
COPY_NOTIFY4resok resok4;
default:
void;
};
struct OFFLOAD_CANCEL4args {
/* CURRENT_FH: file to cancel */
stateid4 oca_stateid;
};
struct OFFLOAD_CANCEL4res {
nfsstat4 ocr_status;
};
struct OFFLOAD_STATUS4args {
/* CURRENT_FH: destination file */
stateid4 osa_stateid;
};
struct OFFLOAD_STATUS4resok {
length4 osr_count;
nfsstat4 osr_complete<1>;
};
union OFFLOAD_STATUS4res switch (nfsstat4 osr_status) {
case NFS4_OK:
OFFLOAD_STATUS4resok osr_resok4;
default:
void;
};
struct ALLOCATE4args {
/* CURRENT_FH: file */
stateid4 aa_stateid;
offset4 aa_offset;
length4 aa_length;
};
struct ALLOCATE4res {
nfsstat4 ar_status;
};
struct DEALLOCATE4args {
/* CURRENT_FH: file */
stateid4 da_stateid;
offset4 da_offset;
length4 da_length;
};
struct DEALLOCATE4res {
nfsstat4 dr_status;
};
enum IO_ADVISE_type4 {
IO_ADVISE4_NORMAL = 0,
IO_ADVISE4_SEQUENTIAL = 1,
IO_ADVISE4_SEQUENTIAL_BACKWARDS = 2,
IO_ADVISE4_RANDOM = 3,
IO_ADVISE4_WILLNEED = 4,
IO_ADVISE4_WILLNEED_OPPORTUNISTIC = 5,
IO_ADVISE4_DONTNEED = 6,
IO_ADVISE4_NOREUSE = 7,
IO_ADVISE4_READ = 8,
IO_ADVISE4_WRITE = 9,
IO_ADVISE4_INIT_PROXIMITY = 10
};
struct IO_ADVISE4args {
/* CURRENT_FH: file */
stateid4 iaa_stateid;
offset4 iaa_offset;
length4 iaa_count;
bitmap4 iaa_hints;
};
struct IO_ADVISE4resok {
bitmap4 ior_hints;
};
union IO_ADVISE4res switch (nfsstat4 ior_status) {
case NFS4_OK:
IO_ADVISE4resok resok4;
default:
void;
};
struct device_error4 {
deviceid4 de_deviceid;
nfsstat4 de_status;
nfs_opnum4 de_opnum;
};
struct LAYOUTERROR4args {
/* CURRENT_FH: file */
offset4 lea_offset;
length4 lea_length;
stateid4 lea_stateid;
device_error4 lea_errors<>;
};
struct LAYOUTERROR4res {
nfsstat4 ler_status;
};
struct io_info4 {
uint64_t ii_count;
uint64_t ii_bytes;
};
struct LAYOUTSTATS4args {
/* CURRENT_FH: file */
offset4 lsa_offset;
length4 lsa_length;
stateid4 lsa_stateid;
io_info4 lsa_read;
io_info4 lsa_write;
deviceid4 lsa_deviceid;
layoutupdate4 lsa_layoutupdate;
};
struct LAYOUTSTATS4res {
nfsstat4 lsr_status;
};
struct READ_PLUS4args {
/* CURRENT_FH: file */
stateid4 rpa_stateid;
offset4 rpa_offset;
count4 rpa_count;
};
union read_plus_content switch (data_content4 rpc_content) {
case NFS4_CONTENT_DATA:
data4 rpc_data;
case NFS4_CONTENT_HOLE:
data_info4 rpc_hole;
default:
void;
};
/*
* Allow a return of an array of contents.
*/
struct read_plus_res4 {
bool rpr_eof;
read_plus_content rpr_contents<>;
};
union READ_PLUS4res switch (nfsstat4 rp_status) {
case NFS4_OK:
read_plus_res4 rp_resok4;
default:
void;
};
struct SEEK4args {
/* CURRENT_FH: file */
stateid4 sa_stateid;
offset4 sa_offset;
data_content4 sa_what;
};
struct seek_res4 {
bool sr_eof;
offset4 sr_offset;
};
union SEEK4res switch (nfsstat4 sa_status) {
case NFS4_OK:
seek_res4 resok4;
default:
void;
};
struct WRITE_SAME4args {
/* CURRENT_FH: file */
stateid4 wsa_stateid;
stable_how4 wsa_stable;
app_data_block4 wsa_adb;
};
union WRITE_SAME4res switch (nfsstat4 wsr_status) {
case NFS4_OK:
write_response4 resok4;
default:
void;
};
/*
* Operation arrays (the rest)
*/
union nfs_argop4 switch (nfs_opnum4 argop) {
case OP_ACCESS: ACCESS4args opaccess;
case OP_CLOSE: CLOSE4args opclose;
case OP_COMMIT: COMMIT4args opcommit;
case OP_CREATE: CREATE4args opcreate;
case OP_DELEGPURGE: DELEGPURGE4args opdelegpurge;
case OP_DELEGRETURN: DELEGRETURN4args opdelegreturn;
case OP_GETATTR: GETATTR4args opgetattr;
case OP_GETFH: void;
case OP_LINK: LINK4args oplink;
case OP_LOCK: LOCK4args oplock;
case OP_LOCKT: LOCKT4args oplockt;
case OP_LOCKU: LOCKU4args oplocku;
case OP_LOOKUP: LOOKUP4args oplookup;
case OP_LOOKUPP: void;
case OP_NVERIFY: NVERIFY4args opnverify;
case OP_OPEN: OPEN4args opopen;
case OP_OPENATTR: OPENATTR4args opopenattr;
/* Not for NFSv4.1 */
case OP_OPEN_CONFIRM: OPEN_CONFIRM4args opopen_confirm;
case OP_OPEN_DOWNGRADE: OPEN_DOWNGRADE4args opopen_downgrade;
case OP_PUTFH: PUTFH4args opputfh;
case OP_PUTPUBFH: void;
case OP_PUTROOTFH: void;
case OP_READ: READ4args opread;
case OP_READDIR: READDIR4args opreaddir;
case OP_READLINK: void;
case OP_REMOVE: REMOVE4args opremove;
case OP_RENAME: RENAME4args oprename;
/* Not for NFSv4.1 */
case OP_RENEW: RENEW4args oprenew;
case OP_RESTOREFH: void;
case OP_SAVEFH: void;
case OP_SECINFO: SECINFO4args opsecinfo;
case OP_SETATTR: SETATTR4args opsetattr;
/* Not for NFSv4.1 */
case OP_SETCLIENTID: SETCLIENTID4args opsetclientid;
/* Not for NFSv4.1 */
case OP_SETCLIENTID_CONFIRM:
SETCLIENTID_CONFIRM4args
opsetclientid_confirm;
case OP_VERIFY: VERIFY4args opverify;
case OP_WRITE: WRITE4args opwrite;
/* Not for NFSv4.1 */
case OP_RELEASE_LOCKOWNER:
RELEASE_LOCKOWNER4args
oprelease_lockowner;
/* Operations new to NFSv4.1 */
case OP_BACKCHANNEL_CTL:
BACKCHANNEL_CTL4args opbackchannel_ctl;
case OP_BIND_CONN_TO_SESSION:
BIND_CONN_TO_SESSION4args
opbind_conn_to_session;
case OP_EXCHANGE_ID: EXCHANGE_ID4args opexchange_id;
case OP_CREATE_SESSION: CREATE_SESSION4args opcreate_session;
case OP_DESTROY_SESSION:
DESTROY_SESSION4args opdestroy_session;
case OP_FREE_STATEID: FREE_STATEID4args opfree_stateid;
case OP_GET_DIR_DELEGATION:
GET_DIR_DELEGATION4args
opget_dir_delegation;
case OP_GETDEVICEINFO: GETDEVICEINFO4args opgetdeviceinfo;
case OP_GETDEVICELIST: GETDEVICELIST4args opgetdevicelist;
case OP_LAYOUTCOMMIT: LAYOUTCOMMIT4args oplayoutcommit;
case OP_LAYOUTGET: LAYOUTGET4args oplayoutget;
case OP_LAYOUTRETURN: LAYOUTRETURN4args oplayoutreturn;
case OP_SECINFO_NO_NAME:
SECINFO_NO_NAME4args opsecinfo_no_name;
case OP_SEQUENCE: SEQUENCE4args opsequence;
case OP_SET_SSV: SET_SSV4args opset_ssv;
case OP_TEST_STATEID: TEST_STATEID4args optest_stateid;
case OP_WANT_DELEGATION:
WANT_DELEGATION4args opwant_delegation;
case OP_DESTROY_CLIENTID:
DESTROY_CLIENTID4args
opdestroy_clientid;
case OP_RECLAIM_COMPLETE:
RECLAIM_COMPLETE4args
opreclaim_complete;
/* Operations new to NFSv4.2 */
case OP_ALLOCATE: ALLOCATE4args opallocate;
case OP_COPY: COPY4args opcopy;
case OP_COPY_NOTIFY: COPY_NOTIFY4args opoffload_notify;
case OP_DEALLOCATE: DEALLOCATE4args opdeallocate;
case OP_IO_ADVISE: IO_ADVISE4args opio_advise;
case OP_LAYOUTERROR: LAYOUTERROR4args oplayouterror;
case OP_LAYOUTSTATS: LAYOUTSTATS4args oplayoutstats;
case OP_OFFLOAD_CANCEL: OFFLOAD_CANCEL4args opoffload_cancel;
case OP_OFFLOAD_STATUS: OFFLOAD_STATUS4args opoffload_status;
case OP_READ_PLUS: READ_PLUS4args opread_plus;
case OP_SEEK: SEEK4args opseek;
case OP_WRITE_SAME: WRITE_SAME4args opwrite_same;
case OP_CLONE: CLONE4args opclone;
/* Operations not new to NFSv4.1 */
case OP_ILLEGAL: void;
};
union nfs_resop4 switch (nfs_opnum4 resop) {
case OP_ACCESS: ACCESS4res opaccess;
case OP_CLOSE: CLOSE4res opclose;
case OP_COMMIT: COMMIT4res opcommit;
case OP_CREATE: CREATE4res opcreate;
case OP_DELEGPURGE: DELEGPURGE4res opdelegpurge;
case OP_DELEGRETURN: DELEGRETURN4res opdelegreturn;
case OP_GETATTR: GETATTR4res opgetattr;
case OP_GETFH: GETFH4res opgetfh;
case OP_LINK: LINK4res oplink;
case OP_LOCK: LOCK4res oplock;
case OP_LOCKT: LOCKT4res oplockt;
case OP_LOCKU: LOCKU4res oplocku;
case OP_LOOKUP: LOOKUP4res oplookup;
case OP_LOOKUPP: LOOKUPP4res oplookupp;
case OP_NVERIFY: NVERIFY4res opnverify;
case OP_OPEN: OPEN4res opopen;
case OP_OPENATTR: OPENATTR4res opopenattr;
/* Not for NFSv4.1 */
case OP_OPEN_CONFIRM: OPEN_CONFIRM4res opopen_confirm;
case OP_OPEN_DOWNGRADE: OPEN_DOWNGRADE4res opopen_downgrade;
case OP_PUTFH: PUTFH4res opputfh;
case OP_PUTPUBFH: PUTPUBFH4res opputpubfh;
case OP_PUTROOTFH: PUTROOTFH4res opputrootfh;
case OP_READ: READ4res opread;
case OP_READDIR: READDIR4res opreaddir;
case OP_READLINK: READLINK4res opreadlink;
case OP_REMOVE: REMOVE4res opremove;
case OP_RENAME: RENAME4res oprename;
/* Not for NFSv4.1 */
case OP_RENEW: RENEW4res oprenew;
case OP_RESTOREFH: RESTOREFH4res oprestorefh;
case OP_SAVEFH: SAVEFH4res opsavefh;
case OP_SECINFO: SECINFO4res opsecinfo;
case OP_SETATTR: SETATTR4res opsetattr;
/* Not for NFSv4.1 */
case OP_SETCLIENTID: SETCLIENTID4res opsetclientid;
/* Not for NFSv4.1 */
case OP_SETCLIENTID_CONFIRM:
SETCLIENTID_CONFIRM4res
opsetclientid_confirm;
case OP_VERIFY: VERIFY4res opverify;
case OP_WRITE: WRITE4res opwrite;
/* Not for NFSv4.1 */
case OP_RELEASE_LOCKOWNER:
RELEASE_LOCKOWNER4res
oprelease_lockowner;
/* Operations new to NFSv4.1 */
case OP_BACKCHANNEL_CTL:
BACKCHANNEL_CTL4res opbackchannel_ctl;
case OP_BIND_CONN_TO_SESSION:
BIND_CONN_TO_SESSION4res
opbind_conn_to_session;
case OP_EXCHANGE_ID: EXCHANGE_ID4res opexchange_id;
case OP_CREATE_SESSION: CREATE_SESSION4res opcreate_session;
case OP_DESTROY_SESSION:
DESTROY_SESSION4res opdestroy_session;
case OP_FREE_STATEID: FREE_STATEID4res opfree_stateid;
case OP_GET_DIR_DELEGATION:
GET_DIR_DELEGATION4res
opget_dir_delegation;
case OP_GETDEVICEINFO: GETDEVICEINFO4res opgetdeviceinfo;
case OP_GETDEVICELIST: GETDEVICELIST4res opgetdevicelist;
case OP_LAYOUTCOMMIT: LAYOUTCOMMIT4res oplayoutcommit;
case OP_LAYOUTGET: LAYOUTGET4res oplayoutget;
case OP_LAYOUTRETURN: LAYOUTRETURN4res oplayoutreturn;
case OP_SECINFO_NO_NAME:
SECINFO_NO_NAME4res opsecinfo_no_name;
case OP_SEQUENCE: SEQUENCE4res opsequence;
case OP_SET_SSV: SET_SSV4res opset_ssv;
case OP_TEST_STATEID: TEST_STATEID4res optest_stateid;
case OP_WANT_DELEGATION:
WANT_DELEGATION4res opwant_delegation;
case OP_DESTROY_CLIENTID:
DESTROY_CLIENTID4res
opdestroy_clientid;
case OP_RECLAIM_COMPLETE:
RECLAIM_COMPLETE4res
opreclaim_complete;
/* Operations new to NFSv4.2 */
case OP_ALLOCATE: ALLOCATE4res opallocate;
case OP_COPY: COPY4res opcopy;
case OP_COPY_NOTIFY: COPY_NOTIFY4res opcopy_notify;
case OP_DEALLOCATE: DEALLOCATE4res opdeallocate;
case OP_IO_ADVISE: IO_ADVISE4res opio_advise;
case OP_LAYOUTERROR: LAYOUTERROR4res oplayouterror;
case OP_LAYOUTSTATS: LAYOUTSTATS4res oplayoutstats;
case OP_OFFLOAD_CANCEL: OFFLOAD_CANCEL4res opoffload_cancel;
case OP_OFFLOAD_STATUS: OFFLOAD_STATUS4res opoffload_status;
case OP_READ_PLUS: READ_PLUS4res opread_plus;
case OP_SEEK: SEEK4res opseek;
case OP_WRITE_SAME: WRITE_SAME4res opwrite_same;
case OP_CLONE: CLONE4res opclone;
/* Operations not new to NFSv4.1 */
case OP_ILLEGAL: ILLEGAL4res opillegal;
};
struct COMPOUND4args {
utf8str_cs tag;
uint32_t minorversion;
nfs_argop4 argarray<>;
};
struct COMPOUND4res {
nfsstat4 status;
utf8str_cs tag;
nfs_resop4 resarray<>;
};
/*
* Remote file service routines
*/
program NFS4_PROGRAM {
version NFS_V4 {
void
NFSPROC4_NULL(void) = 0;
COMPOUND4res
NFSPROC4_COMPOUND(COMPOUND4args) = 1;
} = 4;
} = 100003;
/*
* NFS4 callback procedure definitions and program
*/
struct CB_GETATTR4args {
nfs_fh4 fh;
bitmap4 attr_request;
};
struct CB_GETATTR4resok {
fattr4 obj_attributes;
};
union CB_GETATTR4res switch (nfsstat4 status) {
case NFS4_OK:
CB_GETATTR4resok resok4;
default:
void;
};
struct CB_RECALL4args {
stateid4 stateid;
bool truncate;
nfs_fh4 fh;
};
struct CB_RECALL4res {
nfsstat4 status;
};
/*
* CB_ILLEGAL: Response for illegal operation numbers
*/
struct CB_ILLEGAL4res {
nfsstat4 status;
};
/*
* NFSv4.1 callback arguments and results
*/
enum layoutrecall_type4 {
LAYOUTRECALL4_FILE = LAYOUT4_RET_REC_FILE,
LAYOUTRECALL4_FSID = LAYOUT4_RET_REC_FSID,
LAYOUTRECALL4_ALL = LAYOUT4_RET_REC_ALL
};
struct layoutrecall_file4 {
nfs_fh4 lor_fh;
offset4 lor_offset;
length4 lor_length;
stateid4 lor_stateid;
};
union layoutrecall4 switch (layoutrecall_type4 lor_recalltype) {
case LAYOUTRECALL4_FILE:
layoutrecall_file4 lor_layout;
case LAYOUTRECALL4_FSID:
fsid4 lor_fsid;
case LAYOUTRECALL4_ALL:
void;
};
struct CB_LAYOUTRECALL4args {
layouttype4 clora_type;
layoutiomode4 clora_iomode;
bool clora_changed;
layoutrecall4 clora_recall;
};
struct CB_LAYOUTRECALL4res {
nfsstat4 clorr_status;
};
/*
* Directory notification types
*/
enum notify_type4 {
NOTIFY4_CHANGE_CHILD_ATTRS = 0,
NOTIFY4_CHANGE_DIR_ATTRS = 1,
NOTIFY4_REMOVE_ENTRY = 2,
NOTIFY4_ADD_ENTRY = 3,
NOTIFY4_RENAME_ENTRY = 4,
NOTIFY4_CHANGE_COOKIE_VERIFIER = 5
};
/* Changed entry information */
struct notify_entry4 {
component4 ne_file;
fattr4 ne_attrs;
};
/* Previous entry information */
struct prev_entry4 {
notify_entry4 pe_prev_entry;
/* What READDIR returned for this entry */
nfs_cookie4 pe_prev_entry_cookie;
};
struct notify_remove4 {
notify_entry4 nrm_old_entry;
nfs_cookie4 nrm_old_entry_cookie;
};
struct notify_add4 {
/*
* During a rename, contains
* the object that was deleted.
*/
notify_remove4 nad_old_entry<1>;
notify_entry4 nad_new_entry;
/* What READDIR would have returned for this entry */
nfs_cookie4 nad_new_entry_cookie<1>;
prev_entry4 nad_prev_entry<1>;
bool nad_last_entry;
};
struct notify_attr4 {
notify_entry4 na_changed_entry;
};
struct notify_rename4 {
notify_remove4 nrn_old_entry;
notify_add4 nrn_new_entry;
};
struct notify_verifier4 {
verifier4 nv_old_cookieverf;
verifier4 nv_new_cookieverf;
};
/*
* Objects of type notify_<>4 and
* notify_device_<>4 are encoded in this.
*/
typedef opaque notifylist4<>;
struct notify4 {
/* Composed from notify_type4 or notify_deviceid_type4 */
bitmap4 notify_mask;
notifylist4 notify_vals;
};
struct CB_NOTIFY4args {
stateid4 cna_stateid;
nfs_fh4 cna_fh;
notify4 cna_changes<>;
};
struct CB_NOTIFY4res {
nfsstat4 cnr_status;
};
struct CB_PUSH_DELEG4args {
nfs_fh4 cpda_fh;
open_delegation4 cpda_delegation;
};
struct CB_PUSH_DELEG4res {
nfsstat4 cpdr_status;
};
const RCA4_TYPE_MASK_RDATA_DLG = 0;
const RCA4_TYPE_MASK_WDATA_DLG = 1;
const RCA4_TYPE_MASK_DIR_DLG = 2;
const RCA4_TYPE_MASK_FILE_LAYOUT = 3;
const RCA4_TYPE_MASK_BLK_LAYOUT = 4;
const RCA4_TYPE_MASK_OBJ_LAYOUT_MIN = 8;
const RCA4_TYPE_MASK_OBJ_LAYOUT_MAX = 9;
const RCA4_TYPE_MASK_OTHER_LAYOUT_MIN = 12;
const RCA4_TYPE_MASK_OTHER_LAYOUT_MAX = 15;
struct CB_RECALL_ANY4args {
uint32_t craa_objects_to_keep;
bitmap4 craa_type_mask;
};
struct CB_RECALL_ANY4res {
nfsstat4 crar_status;
};
typedef CB_RECALL_ANY4args CB_RECALLABLE_OBJ_AVAIL4args;
struct CB_RECALLABLE_OBJ_AVAIL4res {
nfsstat4 croa_status;
};
struct CB_RECALL_SLOT4args {
slotid4 rsa_target_highest_slotid;
};
struct CB_RECALL_SLOT4res {
nfsstat4 rsr_status;
};
struct referring_call4 {
sequenceid4 rc_sequenceid;
slotid4 rc_slotid;
};
struct referring_call_list4 {
sessionid4 rcl_sessionid;
referring_call4 rcl_referring_calls<>;
};
struct CB_SEQUENCE4args {
sessionid4 csa_sessionid;
sequenceid4 csa_sequenceid;
slotid4 csa_slotid;
slotid4 csa_highest_slotid;
bool csa_cachethis;
referring_call_list4 csa_referring_call_lists<>;
};
struct CB_SEQUENCE4resok {
sessionid4 csr_sessionid;
sequenceid4 csr_sequenceid;
slotid4 csr_slotid;
slotid4 csr_highest_slotid;
slotid4 csr_target_highest_slotid;
};
union CB_SEQUENCE4res switch (nfsstat4 csr_status) {
case NFS4_OK:
CB_SEQUENCE4resok csr_resok4;
default:
void;
};
struct CB_WANTS_CANCELLED4args {
bool cwca_contended_wants_cancelled;
bool cwca_resourced_wants_cancelled;
};
struct CB_WANTS_CANCELLED4res {
nfsstat4 cwcr_status;
};
struct CB_NOTIFY_LOCK4args {
nfs_fh4 cnla_fh;
lock_owner4 cnla_lock_owner;
};
struct CB_NOTIFY_LOCK4res {
nfsstat4 cnlr_status;
};
/*
* Device notification types
*/
enum notify_deviceid_type4 {
NOTIFY_DEVICEID4_CHANGE = 1,
NOTIFY_DEVICEID4_DELETE = 2
};
/* For NOTIFY4_DEVICEID4_DELETE */
struct notify_deviceid_delete4 {
layouttype4 ndd_layouttype;
deviceid4 ndd_deviceid;
};
/* For NOTIFY4_DEVICEID4_CHANGE */
struct notify_deviceid_change4 {
layouttype4 ndc_layouttype;
deviceid4 ndc_deviceid;
bool ndc_immediate;
};
struct CB_NOTIFY_DEVICEID4args {
notify4 cnda_changes<>;
};
struct CB_NOTIFY_DEVICEID4res {
nfsstat4 cndr_status;
};
union offload_info4 switch (nfsstat4 coa_status) {
case NFS4_OK:
write_response4 coa_resok4;
default:
length4 coa_bytes_copied;
};
struct CB_OFFLOAD4args {
nfs_fh4 coa_fh;
stateid4 coa_stateid;
offload_info4 coa_offload_info;
};
struct CB_OFFLOAD4res {
nfsstat4 cor_status;
};
/*
* Various definitions for CB_COMPOUND
*/
%
enum nfs_cb_opnum4 {
OP_CB_GETATTR = 3,
OP_CB_RECALL = 4,
%/* Callback operations new to NFSv4.1 */
OP_CB_LAYOUTRECALL = 5,
OP_CB_NOTIFY = 6,
OP_CB_PUSH_DELEG = 7,
OP_CB_RECALL_ANY = 8,
OP_CB_RECALLABLE_OBJ_AVAIL = 9,
OP_CB_RECALL_SLOT = 10,
OP_CB_SEQUENCE = 11,
OP_CB_WANTS_CANCELLED = 12,
OP_CB_NOTIFY_LOCK = 13,
OP_CB_NOTIFY_DEVICEID = 14,
%/* Callback operations new to NFSv4.2 */
OP_CB_OFFLOAD = 15,
OP_CB_ILLEGAL = 10044
};
union nfs_cb_argop4 switch (nfs_cb_opnum4 argop) {
case OP_CB_GETATTR:
CB_GETATTR4args opcbgetattr;
/* New NFSv4.1 operations */
case OP_CB_RECALL:
CB_RECALL4args opcbrecall;
case OP_CB_LAYOUTRECALL:
CB_LAYOUTRECALL4args opcblayoutrecall;
case OP_CB_NOTIFY:
CB_NOTIFY4args opcbnotify;
case OP_CB_PUSH_DELEG:
CB_PUSH_DELEG4args opcbpush_deleg;
case OP_CB_RECALL_ANY:
CB_RECALL_ANY4args opcbrecall_any;
case OP_CB_RECALLABLE_OBJ_AVAIL:
CB_RECALLABLE_OBJ_AVAIL4args opcbrecallable_obj_avail;
case OP_CB_RECALL_SLOT:
CB_RECALL_SLOT4args opcbrecall_slot;
case OP_CB_SEQUENCE:
CB_SEQUENCE4args opcbsequence;
case OP_CB_WANTS_CANCELLED:
CB_WANTS_CANCELLED4args opcbwants_cancelled;
case OP_CB_NOTIFY_LOCK:
CB_NOTIFY_LOCK4args opcbnotify_lock;
case OP_CB_NOTIFY_DEVICEID:
CB_NOTIFY_DEVICEID4args opcbnotify_deviceid;
/* New NFSv4.2 operations */
case OP_CB_OFFLOAD:
CB_OFFLOAD4args opcboffload;
case OP_CB_ILLEGAL: void;
};
union nfs_cb_resop4 switch (nfs_cb_opnum4 resop) {
case OP_CB_GETATTR: CB_GETATTR4res opcbgetattr;
case OP_CB_RECALL: CB_RECALL4res opcbrecall;
/* New NFSv4.1 operations */
case OP_CB_LAYOUTRECALL:
CB_LAYOUTRECALL4res
opcblayoutrecall;
case OP_CB_NOTIFY: CB_NOTIFY4res opcbnotify;
case OP_CB_PUSH_DELEG: CB_PUSH_DELEG4res
opcbpush_deleg;
case OP_CB_RECALL_ANY: CB_RECALL_ANY4res
opcbrecall_any;
case OP_CB_RECALLABLE_OBJ_AVAIL:
CB_RECALLABLE_OBJ_AVAIL4res
opcbrecallable_obj_avail;
case OP_CB_RECALL_SLOT:
CB_RECALL_SLOT4res
opcbrecall_slot;
case OP_CB_SEQUENCE: CB_SEQUENCE4res opcbsequence;
case OP_CB_WANTS_CANCELLED:
CB_WANTS_CANCELLED4res
opcbwants_cancelled;
case OP_CB_NOTIFY_LOCK:
CB_NOTIFY_LOCK4res
opcbnotify_lock;
case OP_CB_NOTIFY_DEVICEID:
CB_NOTIFY_DEVICEID4res
opcbnotify_deviceid;
/* New NFSv4.2 operations */
case OP_CB_OFFLOAD: CB_OFFLOAD4res opcboffload;
/* Not new operation */
case OP_CB_ILLEGAL: CB_ILLEGAL4res opcbillegal;
};
struct CB_COMPOUND4args {
utf8str_cs tag;
uint32_t minorversion;
uint32_t callback_ident;
nfs_cb_argop4 argarray<>;
};
struct CB_COMPOUND4res {
nfsstat4 status;
utf8str_cs tag;
nfs_cb_resop4 resarray<>;
};
/*
* Program number is in the transient range, since the client
* will assign the exact transient program number and provide
* that to the server via the CREATE_SESSION or
* BACKCHANNEL_CTL operations.
*/
program NFS4_CALLBACK {
version NFS_CB {
void
CB_NULL(void) = 0;
CB_COMPOUND4res
CB_COMPOUND(CB_COMPOUND4args) = 1;
} = 1;
} = 0x40000000;
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _NFS_ACL_H_RPCGEN
#define _NFS_ACL_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NFS_ACL_MAX_ENTRIES 1024
typedef int uid;
typedef u_short o_mode;
struct aclent {
int type;
uid id;
o_mode perm;
};
typedef struct aclent aclent;
#define NA_USER_OBJ 0x1
#define NA_USER 0x2
#define NA_GROUP_OBJ 0x4
#define NA_GROUP 0x8
#define NA_CLASS_OBJ 0x10
#define NA_OTHER_OBJ 0x20
#define NA_ACL_DEFAULT 0x1000
#define NA_READ 0x4
#define NA_WRITE 0x2
#define NA_EXEC 0x1
struct secattr {
u_int mask;
int aclcnt;
struct {
u_int aclent_len;
aclent *aclent_val;
} aclent;
int dfaclcnt;
struct {
u_int dfaclent_len;
aclent *dfaclent_val;
} dfaclent;
};
typedef struct secattr secattr;
#define NA_ACL 0x1
#define NA_ACLCNT 0x2
#define NA_DFACL 0x4
#define NA_DFACLCNT 0x8
struct GETACL2args {
fhandle_t fh;
u_int mask;
};
typedef struct GETACL2args GETACL2args;
struct GETACL2resok {
struct nfsfattr attr;
secattr acl;
};
typedef struct GETACL2resok GETACL2resok;
struct GETACL2res {
nfsstat status;
union {
GETACL2resok resok;
} GETACL2res_u;
};
typedef struct GETACL2res GETACL2res;
struct SETACL2args {
fhandle_t fh;
secattr acl;
};
typedef struct SETACL2args SETACL2args;
struct SETACL2resok {
struct nfsfattr attr;
};
typedef struct SETACL2resok SETACL2resok;
struct SETACL2res {
nfsstat status;
union {
SETACL2resok resok;
} SETACL2res_u;
};
typedef struct SETACL2res SETACL2res;
struct GETATTR2args {
fhandle_t fh;
};
typedef struct GETATTR2args GETATTR2args;
struct GETATTR2resok {
struct nfsfattr attr;
};
typedef struct GETATTR2resok GETATTR2resok;
struct GETATTR2res {
nfsstat status;
union {
GETATTR2resok resok;
} GETATTR2res_u;
};
typedef struct GETATTR2res GETATTR2res;
struct ACCESS2args {
fhandle_t fh;
uint32 access;
};
typedef struct ACCESS2args ACCESS2args;
#define ACCESS2_READ 0x1
#define ACCESS2_LOOKUP 0x2
#define ACCESS2_MODIFY 0x4
#define ACCESS2_EXTEND 0x8
#define ACCESS2_DELETE 0x10
#define ACCESS2_EXECUTE 0x20
struct ACCESS2resok {
struct nfsfattr attr;
uint32 access;
};
typedef struct ACCESS2resok ACCESS2resok;
struct ACCESS2res {
nfsstat status;
union {
ACCESS2resok resok;
} ACCESS2res_u;
};
typedef struct ACCESS2res ACCESS2res;
struct GETXATTRDIR2args {
fhandle_t fh;
bool_t create;
};
typedef struct GETXATTRDIR2args GETXATTRDIR2args;
struct GETXATTRDIR2resok {
fhandle_t fh;
struct nfsfattr attr;
};
typedef struct GETXATTRDIR2resok GETXATTRDIR2resok;
struct GETXATTRDIR2res {
nfsstat status;
union {
GETXATTRDIR2resok resok;
} GETXATTRDIR2res_u;
};
typedef struct GETXATTRDIR2res GETXATTRDIR2res;
struct GETACL3args {
nfs_fh3 fh;
u_int mask;
};
typedef struct GETACL3args GETACL3args;
struct GETACL3resok {
post_op_attr attr;
secattr acl;
};
typedef struct GETACL3resok GETACL3resok;
struct GETACL3resfail {
post_op_attr attr;
};
typedef struct GETACL3resfail GETACL3resfail;
struct GETACL3res {
nfsstat3 status;
union {
GETACL3resok resok;
GETACL3resfail resfail;
} GETACL3res_u;
};
typedef struct GETACL3res GETACL3res;
struct SETACL3args {
nfs_fh3 fh;
secattr acl;
};
typedef struct SETACL3args SETACL3args;
struct SETACL3resok {
post_op_attr attr;
};
typedef struct SETACL3resok SETACL3resok;
struct SETACL3resfail {
post_op_attr attr;
};
typedef struct SETACL3resfail SETACL3resfail;
struct SETACL3res {
nfsstat3 status;
union {
SETACL3resok resok;
SETACL3resfail resfail;
} SETACL3res_u;
};
typedef struct SETACL3res SETACL3res;
struct GETXATTRDIR3args {
nfs_fh3 fh;
bool_t create;
};
typedef struct GETXATTRDIR3args GETXATTRDIR3args;
struct GETXATTRDIR3resok {
nfs_fh3 fh;
post_op_attr attr;
};
typedef struct GETXATTRDIR3resok GETXATTRDIR3resok;
struct GETXATTRDIR3res {
nfsstat3 status;
union {
GETXATTRDIR3resok resok;
} GETXATTRDIR3res_u;
};
typedef struct GETXATTRDIR3res GETXATTRDIR3res;
struct GETACL4args {
nfs_fh4 fh;
u_int mask;
};
typedef struct GETACL4args GETACL4args;
struct GETACL4resok {
post_op_attr attr;
secattr acl;
};
typedef struct GETACL4resok GETACL4resok;
struct GETACL4resfail {
post_op_attr attr;
};
typedef struct GETACL4resfail GETACL4resfail;
struct GETACL4res {
nfsstat3 status;
union {
GETACL4resok resok;
GETACL4resfail resfail;
} GETACL4res_u;
};
typedef struct GETACL4res GETACL4res;
struct SETACL4args {
nfs_fh4 fh;
secattr acl;
};
typedef struct SETACL4args SETACL4args;
struct SETACL4resok {
post_op_attr attr;
};
typedef struct SETACL4resok SETACL4resok;
struct SETACL4resfail {
post_op_attr attr;
};
typedef struct SETACL4resfail SETACL4resfail;
struct SETACL4res {
nfsstat3 status;
union {
SETACL4resok resok;
SETACL4resfail resfail;
} SETACL4res_u;
};
typedef struct SETACL4res SETACL4res;
#define NFS_ACL_PORT 2049
#define NFS_ACL_PROGRAM 100227
#define NFS_ACL_V2 2
#if defined(__STDC__) || defined(__cplusplus)
#define ACLPROC2_NULL 0
extern void * aclproc2_null_2(void *, CLIENT *);
extern void * aclproc2_null_2_svc(void *, struct svc_req *);
#define ACLPROC2_GETACL 1
extern GETACL2res * aclproc2_getacl_2(GETACL2args *, CLIENT *);
extern GETACL2res * aclproc2_getacl_2_svc(GETACL2args *, struct svc_req *);
#define ACLPROC2_SETACL 2
extern SETACL2res * aclproc2_setacl_2(SETACL2args *, CLIENT *);
extern SETACL2res * aclproc2_setacl_2_svc(SETACL2args *, struct svc_req *);
#define ACLPROC2_GETATTR 3
extern GETATTR2res * aclproc2_getattr_2(GETATTR2args *, CLIENT *);
extern GETATTR2res * aclproc2_getattr_2_svc(GETATTR2args *, struct svc_req *);
#define ACLPROC2_ACCESS 4
extern ACCESS2res * aclproc2_access_2(ACCESS2args *, CLIENT *);
extern ACCESS2res * aclproc2_access_2_svc(ACCESS2args *, struct svc_req *);
#define ACLPROC2_GETXATTRDIR 5
extern GETXATTRDIR2res * aclproc2_getxattrdir_2(GETXATTRDIR2args *, CLIENT *);
extern GETXATTRDIR2res * aclproc2_getxattrdir_2_svc(GETXATTRDIR2args *, struct svc_req *);
extern int nfs_acl_program_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define ACLPROC2_NULL 0
extern void * aclproc2_null_2();
extern void * aclproc2_null_2_svc();
#define ACLPROC2_GETACL 1
extern GETACL2res * aclproc2_getacl_2();
extern GETACL2res * aclproc2_getacl_2_svc();
#define ACLPROC2_SETACL 2
extern SETACL2res * aclproc2_setacl_2();
extern SETACL2res * aclproc2_setacl_2_svc();
#define ACLPROC2_GETATTR 3
extern GETATTR2res * aclproc2_getattr_2();
extern GETATTR2res * aclproc2_getattr_2_svc();
#define ACLPROC2_ACCESS 4
extern ACCESS2res * aclproc2_access_2();
extern ACCESS2res * aclproc2_access_2_svc();
#define ACLPROC2_GETXATTRDIR 5
extern GETXATTRDIR2res * aclproc2_getxattrdir_2();
extern GETXATTRDIR2res * aclproc2_getxattrdir_2_svc();
extern int nfs_acl_program_2_freeresult();
#endif /* K&R C */
#define NFS_ACL_V3 3
#if defined(__STDC__) || defined(__cplusplus)
#define ACLPROC3_NULL 0
extern void * aclproc3_null_3(void *, CLIENT *);
extern void * aclproc3_null_3_svc(void *, struct svc_req *);
#define ACLPROC3_GETACL 1
extern GETACL3res * aclproc3_getacl_3(GETACL3args *, CLIENT *);
extern GETACL3res * aclproc3_getacl_3_svc(GETACL3args *, struct svc_req *);
#define ACLPROC3_SETACL 2
extern SETACL3res * aclproc3_setacl_3(SETACL3args *, CLIENT *);
extern SETACL3res * aclproc3_setacl_3_svc(SETACL3args *, struct svc_req *);
#define ACLPROC3_GETXATTRDIR 3
extern GETXATTRDIR3res * aclproc3_getxattrdir_3(GETXATTRDIR3args *, CLIENT *);
extern GETXATTRDIR3res * aclproc3_getxattrdir_3_svc(GETXATTRDIR3args *, struct svc_req *);
extern int nfs_acl_program_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define ACLPROC3_NULL 0
extern void * aclproc3_null_3();
extern void * aclproc3_null_3_svc();
#define ACLPROC3_GETACL 1
extern GETACL3res * aclproc3_getacl_3();
extern GETACL3res * aclproc3_getacl_3_svc();
#define ACLPROC3_SETACL 2
extern SETACL3res * aclproc3_setacl_3();
extern SETACL3res * aclproc3_setacl_3_svc();
#define ACLPROC3_GETXATTRDIR 3
extern GETXATTRDIR3res * aclproc3_getxattrdir_3();
extern GETXATTRDIR3res * aclproc3_getxattrdir_3_svc();
extern int nfs_acl_program_3_freeresult();
#endif /* K&R C */
#define NFS_ACL_V4 4
#if defined(__STDC__) || defined(__cplusplus)
#define ACLPROC4_NULL 0
extern void * aclproc4_null_4(void *, CLIENT *);
extern void * aclproc4_null_4_svc(void *, struct svc_req *);
#define ACLPROC4_GETACL 1
extern GETACL4res * aclproc4_getacl_4(GETACL4args *, CLIENT *);
extern GETACL4res * aclproc4_getacl_4_svc(GETACL4args *, struct svc_req *);
#define ACLPROC4_SETACL 2
extern SETACL4res * aclproc4_setacl_4(SETACL4args *, CLIENT *);
extern SETACL4res * aclproc4_setacl_4_svc(SETACL4args *, struct svc_req *);
extern int nfs_acl_program_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define ACLPROC4_NULL 0
extern void * aclproc4_null_4();
extern void * aclproc4_null_4_svc();
#define ACLPROC4_GETACL 1
extern GETACL4res * aclproc4_getacl_4();
extern GETACL4res * aclproc4_getacl_4_svc();
#define ACLPROC4_SETACL 2
extern SETACL4res * aclproc4_setacl_4();
extern SETACL4res * aclproc4_setacl_4_svc();
extern int nfs_acl_program_4_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_uid(XDR *, uid*);
extern bool_t xdr_o_mode(XDR *, o_mode*);
extern bool_t xdr_aclent(XDR *, aclent*);
extern bool_t xdr_secattr(XDR *, secattr*);
extern bool_t xdr_GETACL2args(XDR *, GETACL2args*);
extern bool_t xdr_GETACL2resok(XDR *, GETACL2resok*);
extern bool_t xdr_GETACL2res(XDR *, GETACL2res*);
extern bool_t xdr_SETACL2args(XDR *, SETACL2args*);
extern bool_t xdr_SETACL2resok(XDR *, SETACL2resok*);
extern bool_t xdr_SETACL2res(XDR *, SETACL2res*);
extern bool_t xdr_GETATTR2args(XDR *, GETATTR2args*);
extern bool_t xdr_GETATTR2resok(XDR *, GETATTR2resok*);
extern bool_t xdr_GETATTR2res(XDR *, GETATTR2res*);
extern bool_t xdr_ACCESS2args(XDR *, ACCESS2args*);
extern bool_t xdr_ACCESS2resok(XDR *, ACCESS2resok*);
extern bool_t xdr_ACCESS2res(XDR *, ACCESS2res*);
extern bool_t xdr_GETXATTRDIR2args(XDR *, GETXATTRDIR2args*);
extern bool_t xdr_GETXATTRDIR2resok(XDR *, GETXATTRDIR2resok*);
extern bool_t xdr_GETXATTRDIR2res(XDR *, GETXATTRDIR2res*);
extern bool_t xdr_GETACL3args(XDR *, GETACL3args*);
extern bool_t xdr_GETACL3resok(XDR *, GETACL3resok*);
extern bool_t xdr_GETACL3resfail(XDR *, GETACL3resfail*);
extern bool_t xdr_GETACL3res(XDR *, GETACL3res*);
extern bool_t xdr_SETACL3args(XDR *, SETACL3args*);
extern bool_t xdr_SETACL3resok(XDR *, SETACL3resok*);
extern bool_t xdr_SETACL3resfail(XDR *, SETACL3resfail*);
extern bool_t xdr_SETACL3res(XDR *, SETACL3res*);
extern bool_t xdr_GETXATTRDIR3args(XDR *, GETXATTRDIR3args*);
extern bool_t xdr_GETXATTRDIR3resok(XDR *, GETXATTRDIR3resok*);
extern bool_t xdr_GETXATTRDIR3res(XDR *, GETXATTRDIR3res*);
extern bool_t xdr_GETACL4args(XDR *, GETACL4args*);
extern bool_t xdr_GETACL4resok(XDR *, GETACL4resok*);
extern bool_t xdr_GETACL4resfail(XDR *, GETACL4resfail*);
extern bool_t xdr_GETACL4res(XDR *, GETACL4res*);
extern bool_t xdr_SETACL4args(XDR *, SETACL4args*);
extern bool_t xdr_SETACL4resok(XDR *, SETACL4resok*);
extern bool_t xdr_SETACL4resfail(XDR *, SETACL4resfail*);
extern bool_t xdr_SETACL4res(XDR *, SETACL4res*);
#else /* K&R C */
extern bool_t xdr_uid();
extern bool_t xdr_o_mode();
extern bool_t xdr_aclent();
extern bool_t xdr_secattr();
extern bool_t xdr_GETACL2args();
extern bool_t xdr_GETACL2resok();
extern bool_t xdr_GETACL2res();
extern bool_t xdr_SETACL2args();
extern bool_t xdr_SETACL2resok();
extern bool_t xdr_SETACL2res();
extern bool_t xdr_GETATTR2args();
extern bool_t xdr_GETATTR2resok();
extern bool_t xdr_GETATTR2res();
extern bool_t xdr_ACCESS2args();
extern bool_t xdr_ACCESS2resok();
extern bool_t xdr_ACCESS2res();
extern bool_t xdr_GETXATTRDIR2args();
extern bool_t xdr_GETXATTRDIR2resok();
extern bool_t xdr_GETXATTRDIR2res();
extern bool_t xdr_GETACL3args();
extern bool_t xdr_GETACL3resok();
extern bool_t xdr_GETACL3resfail();
extern bool_t xdr_GETACL3res();
extern bool_t xdr_SETACL3args();
extern bool_t xdr_SETACL3resok();
extern bool_t xdr_SETACL3resfail();
extern bool_t xdr_SETACL3res();
extern bool_t xdr_GETXATTRDIR3args();
extern bool_t xdr_GETXATTRDIR3resok();
extern bool_t xdr_GETXATTRDIR3res();
extern bool_t xdr_GETACL4args();
extern bool_t xdr_GETACL4resok();
extern bool_t xdr_GETACL4resfail();
extern bool_t xdr_GETACL4res();
extern bool_t xdr_SETACL4args();
extern bool_t xdr_SETACL4resok();
extern bool_t xdr_SETACL4resfail();
extern bool_t xdr_SETACL4res();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_NFS_ACL_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1994,2001-2003 Sun Microsystems, Inc.
* All rights reserved.
* Use is subject to license terms.
*/
const NFS_ACL_MAX_ENTRIES = 1024;
typedef int uid;
typedef unsigned short o_mode;
/*
* This is the format of an ACL which is passed over the network.
*/
struct aclent {
int type;
uid id;
o_mode perm;
};
/*
* The values for the type element of the aclent structure.
*/
const NA_USER_OBJ = 0x1; /* object owner */
const NA_USER = 0x2; /* additional users */
const NA_GROUP_OBJ = 0x4; /* owning group of the object */
const NA_GROUP = 0x8; /* additional groups */
const NA_CLASS_OBJ = 0x10; /* file group class and mask entry */
const NA_OTHER_OBJ = 0x20; /* other entry for the object */
const NA_ACL_DEFAULT = 0x1000; /* default flag */
/*
* The bit field values for the perm element of the aclent
* structure. The three values can be combined to form any
* of the 8 combinations.
*/
const NA_READ = 0x4; /* read permission */
const NA_WRITE = 0x2; /* write permission */
const NA_EXEC = 0x1; /* exec permission */
/*
* This is the structure which contains the ACL entries for a
* particular entity. It contains the ACL entries which apply
* to this object plus any default ACL entries which are
* inherited by its children.
*
* The values for the mask field are defined below.
*/
struct secattr {
u_int mask;
int aclcnt;
aclent aclent<NFS_ACL_MAX_ENTRIES>;
int dfaclcnt;
aclent dfaclent<NFS_ACL_MAX_ENTRIES>;
};
/*
* The values for the mask element of the secattr struct as well
* as for the mask element in the arguments in the GETACL2 and
* GETACL3 procedures.
*/
const NA_ACL = 0x1; /* aclent contains a valid list */
const NA_ACLCNT = 0x2; /* the number of entries in the aclent list */
const NA_DFACL = 0x4; /* dfaclent contains a valid list */
const NA_DFACLCNT = 0x8; /* the number of entries in the dfaclent list */
/*
* This the definition for the GETACL procedure which applies to
* NFS Version 2.
*/
struct GETACL2args {
fhandle_t fh;
u_int mask;
};
struct GETACL2resok {
struct nfsfattr attr;
secattr acl;
};
union GETACL2res switch (enum nfsstat status) {
case ACL2_OK:
GETACL2resok resok;
default:
void;
};
/*
* This is the definition for the SETACL procedure which applies
* NFS Version 2.
*/
struct SETACL2args {
fhandle_t fh;
secattr acl;
};
struct SETACL2resok {
struct nfsfattr attr;
};
union SETACL2res switch (enum nfsstat status) {
case ACL2_OK:
SETACL2resok resok;
default:
void;
};
/*
* This is the definition for the GETATTR procedure which can be
* used as an alternative to the GETATTR in NFS Version 2. The
* main difference between this GETATTR and the NFS GETATTR is
* that this GETATTR returns the mode of the file without it being
* changed to match the min/max permissions mapping that the NFS
* Version 2 server does.
*/
struct GETATTR2args {
fhandle_t fh;
};
struct GETATTR2resok {
struct nfsfattr attr;
};
union GETATTR2res switch (enum nfsstat status) {
case ACL2_OK:
GETATTR2resok resok;
default:
void;
};
/*
* This is the definition for the ACCESS procedure which applies
* to NFS Version 2.
*/
struct ACCESS2args {
fhandle_t fh;
uint32 access;
};
/*
* The following access permissions may be requested:
*/
const ACCESS2_READ = 0x1; /* read data or readdir a directory */
const ACCESS2_LOOKUP = 0x2; /* lookup a name in a directory */
const ACCESS2_MODIFY = 0x4; /* rewrite existing file data or */
/* modify existing directory entries */
const ACCESS2_EXTEND = 0x8; /* write new data or add directory entries */
const ACCESS2_DELETE = 0x10; /* delete existing directory entry */
const ACCESS2_EXECUTE = 0x20; /* execute file (no meaning for a directory) */
struct ACCESS2resok {
struct nfsfattr attr;
uint32 access;
};
union ACCESS2res switch (enum nfsstat status) {
case ACL2_OK:
ACCESS2resok resok;
default:
void;
};
/*
* This is the definition for the GETXATTRDIR procedure which applies
* to NFS Version 2 files.
*/
struct GETXATTRDIR2args {
fhandle_t fh;
bool create;
};
struct GETXATTRDIR2resok {
fhandle_t fh;
struct nfsfattr attr;
};
union GETXATTRDIR2res switch (enum nfsstat status) {
case ACL2_OK:
GETXATTRDIR2resok resok;
default:
void;
};
/*
* This is the definition for the GETACL procedure which applies
* to NFS Version 3 files.
*/
struct GETACL3args {
nfs_fh3 fh;
u_int mask;
};
struct GETACL3resok {
post_op_attr attr;
secattr acl;
};
struct GETACL3resfail {
post_op_attr attr;
};
union GETACL3res switch (nfsstat3 status) {
case ACL3_OK:
GETACL3resok resok;
default:
GETACL3resfail resfail;
};
/*
* This is the definition for the SETACL procedure which applies
* to NFS Version 3 files.
*/
struct SETACL3args {
nfs_fh3 fh;
secattr acl;
};
struct SETACL3resok {
post_op_attr attr;
};
struct SETACL3resfail {
post_op_attr attr;
};
union SETACL3res switch (nfsstat3 status) {
case ACL3_OK:
SETACL3resok resok;
default:
SETACL3resfail resfail;
};
/*
* This is the definition for the GETXATTRDIR procedure which applies
* to NFS Version 3 files.
*/
struct GETXATTRDIR3args {
nfs_fh3 fh;
bool create;
};
struct GETXATTRDIR3resok {
nfs_fh3 fh;
post_op_attr attr;
};
union GETXATTRDIR3res switch (nfsstat3 status) {
case ACL3_OK:
GETXATTRDIR3resok resok;
default:
void;
};
/*
* XXX {
* This is a transitional interface to enable Solaris NFSv4
* clients to manipulate ACLs on Solaris servers until the
* spec is complete enough to implement this inside the
* NFSv4 protocol itself. NFSv4 does handle extended
* attributes in-band.
*/
/*
* This is the definition for the GETACL procedure which applies
* to NFS Version 4 files.
*/
struct GETACL4args {
nfs_fh4 fh;
u_int mask;
};
struct GETACL4resok {
post_op_attr attr;
secattr acl;
};
struct GETACL4resfail {
post_op_attr attr;
};
union GETACL4res switch (nfsstat3 status) {
case ACL4_OK:
GETACL4resok resok;
default:
GETACL4resfail resfail;
};
/*
* This is the definition for the SETACL procedure which applies
* to NFS Version 4 files.
*/
struct SETACL4args {
nfs_fh4 fh;
secattr acl;
};
struct SETACL4resok {
post_op_attr attr;
};
struct SETACL4resfail {
post_op_attr attr;
};
union SETACL4res switch (nfsstat3 status) {
case ACL4_OK:
SETACL4resok resok;
default:
SETACL4resfail resfail;
};
/* XXX } */
/*
* Share the port with the NFS service. NFS has to be running
* in order for this service to be useful anyway.
*/
const NFS_ACL_PORT = 2049;
/*
* This is the definition for the ACL network protocol which is used
* to provide support for Solaris ACLs for files which are accessed
* via NFS Version 2 and NFS Version 3.
*/
program NFS_ACL_PROGRAM {
version NFS_ACL_V2 {
void
ACLPROC2_NULL(void) = 0;
GETACL2res
ACLPROC2_GETACL(GETACL2args) = 1;
SETACL2res
ACLPROC2_SETACL(SETACL2args) = 2;
GETATTR2res
ACLPROC2_GETATTR(GETATTR2args) = 3;
ACCESS2res
ACLPROC2_ACCESS(ACCESS2args) = 4;
GETXATTRDIR2res
ACLPROC2_GETXATTRDIR(GETXATTRDIR2args) = 5;
} = 2;
version NFS_ACL_V3 {
void
ACLPROC3_NULL(void) = 0;
GETACL3res
ACLPROC3_GETACL(GETACL3args) = 1;
SETACL3res
ACLPROC3_SETACL(SETACL3args) = 2;
GETXATTRDIR3res
ACLPROC3_GETXATTRDIR(GETXATTRDIR3args) = 3;
} = 3;
version NFS_ACL_V4 {
void
ACLPROC4_NULL(void) = 0;
GETACL4res
ACLPROC4_GETACL(GETACL4args) = 1;
SETACL4res
ACLPROC4_SETACL(SETACL4args) = 2;
} = 4;
} = 100227;
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _NFS_PROT_H_RPCGEN
#define _NFS_PROT_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Definitions for uint64, int64, uint32, and int32
*/
#include <rpc/rpc_sztypes.h>
#define NFS_PORT 2049
#define NFS_MAXDATA 8192
#define NFS_MAXPATHLEN 1024
#define NFS_MAXNAMLEN 255
#define NFS_FHSIZE 32
#define NFS_COOKIESIZE 4
#define NFS_FIFO_DEV -1
#define NFSMODE_FMT 0170000
#define NFSMODE_DIR 0040000
#define NFSMODE_CHR 0020000
#define NFSMODE_BLK 0060000
#define NFSMODE_REG 0100000
#define NFSMODE_LNK 0120000
#define NFSMODE_SOCK 0140000
#define NFSMODE_FIFO 0010000
enum nfsstat {
NFS_OK = 0,
NFSERR_PERM = 1,
NFSERR_NOENT = 2,
NFSERR_IO = 5,
NFSERR_NXIO = 6,
NFSERR_ACCES = 13,
NFSERR_EXIST = 17,
NFSERR_XDEV = 18,
NFSERR_NODEV = 19,
NFSERR_NOTDIR = 20,
NFSERR_ISDIR = 21,
NFSERR_INVAL = 22,
NFSERR_FBIG = 27,
NFSERR_NOSPC = 28,
NFSERR_ROFS = 30,
NFSERR_OPNOTSUPP = 45,
NFSERR_NAMETOOLONG = 63,
NFSERR_NOTEMPTY = 66,
NFSERR_DQUOT = 69,
NFSERR_STALE = 70,
NFSERR_REMOTE = 71,
NFSERR_WFLUSH = 72
};
typedef enum nfsstat nfsstat;
enum ftype {
NFNON = 0,
NFREG = 1,
NFDIR = 2,
NFBLK = 3,
NFCHR = 4,
NFLNK = 5,
NFSOCK = 6,
NFBAD = 7,
NFFIFO = 8
};
typedef enum ftype ftype;
struct nfs_fh {
char data[NFS_FHSIZE];
};
typedef struct nfs_fh nfs_fh;
struct nfstime {
u_int seconds;
u_int useconds;
};
typedef struct nfstime nfstime;
struct fattr {
ftype type;
u_int mode;
u_int nlink;
u_int uid;
u_int gid;
u_int size;
u_int blocksize;
u_int rdev;
u_int blocks;
u_int fsid;
u_int fileid;
nfstime atime;
nfstime mtime;
nfstime ctime;
};
typedef struct fattr fattr;
struct sattr {
u_int mode;
u_int uid;
u_int gid;
u_int size;
nfstime atime;
nfstime mtime;
};
typedef struct sattr sattr;
typedef char *filename;
typedef char *nfspath;
struct attrstat {
nfsstat status;
union {
fattr attributes;
} attrstat_u;
};
typedef struct attrstat attrstat;
struct sattrargs {
nfs_fh file;
sattr attributes;
};
typedef struct sattrargs sattrargs;
struct diropargs {
nfs_fh dir;
filename name;
};
typedef struct diropargs diropargs;
struct diropokres {
nfs_fh file;
fattr attributes;
};
typedef struct diropokres diropokres;
struct diropres {
nfsstat status;
union {
diropokres diropres;
} diropres_u;
};
typedef struct diropres diropres;
struct readlinkres {
nfsstat status;
union {
nfspath data;
} readlinkres_u;
};
typedef struct readlinkres readlinkres;
struct readargs {
nfs_fh file;
u_int offset;
u_int count;
u_int totalcount;
};
typedef struct readargs readargs;
struct readokres {
fattr attributes;
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct readokres readokres;
struct readres {
nfsstat status;
union {
readokres reply;
} readres_u;
};
typedef struct readres readres;
struct writeargs {
nfs_fh file;
u_int beginoffset;
u_int offset;
u_int totalcount;
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct writeargs writeargs;
struct createargs {
diropargs where;
sattr attributes;
};
typedef struct createargs createargs;
struct renameargs {
diropargs from;
diropargs to;
};
typedef struct renameargs renameargs;
struct linkargs {
nfs_fh from;
diropargs to;
};
typedef struct linkargs linkargs;
struct symlinkargs {
diropargs from;
nfspath to;
sattr attributes;
};
typedef struct symlinkargs symlinkargs;
typedef char nfscookie[NFS_COOKIESIZE];
struct readdirargs {
nfs_fh dir;
nfscookie cookie;
u_int count;
};
typedef struct readdirargs readdirargs;
struct entry {
u_int fileid;
filename name;
nfscookie cookie;
struct entry *nextentry;
};
typedef struct entry entry;
struct dirlist {
entry *entries;
bool_t eof;
};
typedef struct dirlist dirlist;
struct readdirres {
nfsstat status;
union {
dirlist reply;
} readdirres_u;
};
typedef struct readdirres readdirres;
struct statfsokres {
u_int tsize;
u_int bsize;
u_int blocks;
u_int bfree;
u_int bavail;
};
typedef struct statfsokres statfsokres;
struct statfsres {
nfsstat status;
union {
statfsokres reply;
} statfsres_u;
};
typedef struct statfsres statfsres;
#define NFS3_FHSIZE 64
#define NFS3_COOKIEVERFSIZE 8
#define NFS3_CREATEVERFSIZE 8
#define NFS3_WRITEVERFSIZE 8
typedef char *filename3;
typedef char *nfspath3;
typedef uint64 fileid3;
typedef uint64 cookie3;
typedef char cookieverf3[NFS3_COOKIEVERFSIZE];
typedef char createverf3[NFS3_CREATEVERFSIZE];
typedef char writeverf3[NFS3_WRITEVERFSIZE];
typedef uint32 uid3;
typedef uint32 gid3;
typedef uint64 size3;
typedef uint64 offset3;
typedef uint32 mode3;
typedef uint32 count3;
enum nfsstat3 {
NFS3_OK = 0,
NFS3ERR_PERM = 1,
NFS3ERR_NOENT = 2,
NFS3ERR_IO = 5,
NFS3ERR_NXIO = 6,
NFS3ERR_ACCES = 13,
NFS3ERR_EXIST = 17,
NFS3ERR_XDEV = 18,
NFS3ERR_NODEV = 19,
NFS3ERR_NOTDIR = 20,
NFS3ERR_ISDIR = 21,
NFS3ERR_INVAL = 22,
NFS3ERR_FBIG = 27,
NFS3ERR_NOSPC = 28,
NFS3ERR_ROFS = 30,
NFS3ERR_MLINK = 31,
NFS3ERR_NAMETOOLONG = 63,
NFS3ERR_NOTEMPTY = 66,
NFS3ERR_DQUOT = 69,
NFS3ERR_STALE = 70,
NFS3ERR_REMOTE = 71,
NFS3ERR_BADHANDLE = 10001,
NFS3ERR_NOT_SYNC = 10002,
NFS3ERR_BAD_COOKIE = 10003,
NFS3ERR_NOTSUPP = 10004,
NFS3ERR_TOOSMALL = 10005,
NFS3ERR_SERVERFAULT = 10006,
NFS3ERR_BADTYPE = 10007,
NFS3ERR_JUKEBOX = 10008
};
typedef enum nfsstat3 nfsstat3;
enum ftype3 {
NF3REG = 1,
NF3DIR = 2,
NF3BLK = 3,
NF3CHR = 4,
NF3LNK = 5,
NF3SOCK = 6,
NF3FIFO = 7
};
typedef enum ftype3 ftype3;
struct specdata3 {
uint32 specdata1;
uint32 specdata2;
};
typedef struct specdata3 specdata3;
struct nfs_fh3 {
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct nfs_fh3 nfs_fh3;
struct nfstime3 {
uint32 seconds;
uint32 nseconds;
};
typedef struct nfstime3 nfstime3;
struct fattr3 {
ftype3 type;
mode3 mode;
uint32 nlink;
uid3 uid;
gid3 gid;
size3 size;
size3 used;
specdata3 rdev;
uint64 fsid;
fileid3 fileid;
nfstime3 atime;
nfstime3 mtime;
nfstime3 ctime;
};
typedef struct fattr3 fattr3;
struct post_op_attr {
bool_t attributes_follow;
union {
fattr3 attributes;
} post_op_attr_u;
};
typedef struct post_op_attr post_op_attr;
struct wcc_attr {
size3 size;
nfstime3 mtime;
nfstime3 ctime;
};
typedef struct wcc_attr wcc_attr;
struct pre_op_attr {
bool_t attributes_follow;
union {
wcc_attr attributes;
} pre_op_attr_u;
};
typedef struct pre_op_attr pre_op_attr;
struct wcc_data {
pre_op_attr before;
post_op_attr after;
};
typedef struct wcc_data wcc_data;
struct post_op_fh3 {
bool_t handle_follows;
union {
nfs_fh3 handle;
} post_op_fh3_u;
};
typedef struct post_op_fh3 post_op_fh3;
enum time_how {
DONT_CHANGE = 0,
SET_TO_SERVER_TIME = 1,
SET_TO_CLIENT_TIME = 2
};
typedef enum time_how time_how;
struct set_mode3 {
bool_t set_it;
union {
mode3 mode;
} set_mode3_u;
};
typedef struct set_mode3 set_mode3;
struct set_uid3 {
bool_t set_it;
union {
uid3 uid;
} set_uid3_u;
};
typedef struct set_uid3 set_uid3;
struct set_gid3 {
bool_t set_it;
union {
gid3 gid;
} set_gid3_u;
};
typedef struct set_gid3 set_gid3;
struct set_size3 {
bool_t set_it;
union {
size3 size;
} set_size3_u;
};
typedef struct set_size3 set_size3;
struct set_atime {
time_how set_it;
union {
nfstime3 atime;
} set_atime_u;
};
typedef struct set_atime set_atime;
struct set_mtime {
time_how set_it;
union {
nfstime3 mtime;
} set_mtime_u;
};
typedef struct set_mtime set_mtime;
struct sattr3 {
set_mode3 mode;
set_uid3 uid;
set_gid3 gid;
set_size3 size;
set_atime atime;
set_mtime mtime;
};
typedef struct sattr3 sattr3;
struct diropargs3 {
nfs_fh3 dir;
filename3 name;
};
typedef struct diropargs3 diropargs3;
struct GETATTR3args {
nfs_fh3 object;
};
typedef struct GETATTR3args GETATTR3args;
struct GETATTR3resok {
fattr3 obj_attributes;
};
typedef struct GETATTR3resok GETATTR3resok;
struct GETATTR3res {
nfsstat3 status;
union {
GETATTR3resok resok;
} GETATTR3res_u;
};
typedef struct GETATTR3res GETATTR3res;
struct sattrguard3 {
bool_t check;
union {
nfstime3 obj_ctime;
} sattrguard3_u;
};
typedef struct sattrguard3 sattrguard3;
struct SETATTR3args {
nfs_fh3 object;
sattr3 new_attributes;
sattrguard3 guard;
};
typedef struct SETATTR3args SETATTR3args;
struct SETATTR3resok {
wcc_data obj_wcc;
};
typedef struct SETATTR3resok SETATTR3resok;
struct SETATTR3resfail {
wcc_data obj_wcc;
};
typedef struct SETATTR3resfail SETATTR3resfail;
struct SETATTR3res {
nfsstat3 status;
union {
SETATTR3resok resok;
SETATTR3resfail resfail;
} SETATTR3res_u;
};
typedef struct SETATTR3res SETATTR3res;
struct LOOKUP3args {
diropargs3 what;
};
typedef struct LOOKUP3args LOOKUP3args;
struct LOOKUP3resok {
nfs_fh3 object;
post_op_attr obj_attributes;
post_op_attr dir_attributes;
};
typedef struct LOOKUP3resok LOOKUP3resok;
struct LOOKUP3resfail {
post_op_attr dir_attributes;
};
typedef struct LOOKUP3resfail LOOKUP3resfail;
struct LOOKUP3res {
nfsstat3 status;
union {
LOOKUP3resok resok;
LOOKUP3resfail resfail;
} LOOKUP3res_u;
};
typedef struct LOOKUP3res LOOKUP3res;
#define ACCESS3_READ 0x0001
#define ACCESS3_LOOKUP 0x0002
#define ACCESS3_MODIFY 0x0004
#define ACCESS3_EXTEND 0x0008
#define ACCESS3_DELETE 0x0010
#define ACCESS3_EXECUTE 0x0020
struct ACCESS3args {
nfs_fh3 object;
uint32 access;
};
typedef struct ACCESS3args ACCESS3args;
struct ACCESS3resok {
post_op_attr obj_attributes;
uint32 access;
};
typedef struct ACCESS3resok ACCESS3resok;
struct ACCESS3resfail {
post_op_attr obj_attributes;
};
typedef struct ACCESS3resfail ACCESS3resfail;
struct ACCESS3res {
nfsstat3 status;
union {
ACCESS3resok resok;
ACCESS3resfail resfail;
} ACCESS3res_u;
};
typedef struct ACCESS3res ACCESS3res;
struct READLINK3args {
nfs_fh3 symlink;
};
typedef struct READLINK3args READLINK3args;
struct READLINK3resok {
post_op_attr symlink_attributes;
nfspath3 data;
};
typedef struct READLINK3resok READLINK3resok;
struct READLINK3resfail {
post_op_attr symlink_attributes;
};
typedef struct READLINK3resfail READLINK3resfail;
struct READLINK3res {
nfsstat3 status;
union {
READLINK3resok resok;
READLINK3resfail resfail;
} READLINK3res_u;
};
typedef struct READLINK3res READLINK3res;
struct READ3args {
nfs_fh3 file;
offset3 offset;
count3 count;
};
typedef struct READ3args READ3args;
struct READ3resok {
post_op_attr file_attributes;
count3 count;
bool_t eof;
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct READ3resok READ3resok;
struct READ3resfail {
post_op_attr file_attributes;
};
typedef struct READ3resfail READ3resfail;
struct READ3res {
nfsstat3 status;
union {
READ3resok resok;
READ3resfail resfail;
} READ3res_u;
};
typedef struct READ3res READ3res;
enum stable_how {
UNSTABLE = 0,
DATA_SYNC = 1,
FILE_SYNC = 2
};
typedef enum stable_how stable_how;
struct WRITE3args {
nfs_fh3 file;
offset3 offset;
count3 count;
stable_how stable;
struct {
u_int data_len;
char *data_val;
} data;
};
typedef struct WRITE3args WRITE3args;
struct WRITE3resok {
wcc_data file_wcc;
count3 count;
stable_how committed;
writeverf3 verf;
};
typedef struct WRITE3resok WRITE3resok;
struct WRITE3resfail {
wcc_data file_wcc;
};
typedef struct WRITE3resfail WRITE3resfail;
struct WRITE3res {
nfsstat3 status;
union {
WRITE3resok resok;
WRITE3resfail resfail;
} WRITE3res_u;
};
typedef struct WRITE3res WRITE3res;
enum createmode3 {
UNCHECKED = 0,
GUARDED = 1,
EXCLUSIVE = 2
};
typedef enum createmode3 createmode3;
struct createhow3 {
createmode3 mode;
union {
sattr3 obj_attributes;
createverf3 verf;
} createhow3_u;
};
typedef struct createhow3 createhow3;
struct CREATE3args {
diropargs3 where;
createhow3 how;
};
typedef struct CREATE3args CREATE3args;
struct CREATE3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
typedef struct CREATE3resok CREATE3resok;
struct CREATE3resfail {
wcc_data dir_wcc;
};
typedef struct CREATE3resfail CREATE3resfail;
struct CREATE3res {
nfsstat3 status;
union {
CREATE3resok resok;
CREATE3resfail resfail;
} CREATE3res_u;
};
typedef struct CREATE3res CREATE3res;
struct MKDIR3args {
diropargs3 where;
sattr3 attributes;
};
typedef struct MKDIR3args MKDIR3args;
struct MKDIR3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
typedef struct MKDIR3resok MKDIR3resok;
struct MKDIR3resfail {
wcc_data dir_wcc;
};
typedef struct MKDIR3resfail MKDIR3resfail;
struct MKDIR3res {
nfsstat3 status;
union {
MKDIR3resok resok;
MKDIR3resfail resfail;
} MKDIR3res_u;
};
typedef struct MKDIR3res MKDIR3res;
struct symlinkdata3 {
sattr3 symlink_attributes;
nfspath3 symlink_data;
};
typedef struct symlinkdata3 symlinkdata3;
struct SYMLINK3args {
diropargs3 where;
symlinkdata3 symlink;
};
typedef struct SYMLINK3args SYMLINK3args;
struct SYMLINK3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
typedef struct SYMLINK3resok SYMLINK3resok;
struct SYMLINK3resfail {
wcc_data dir_wcc;
};
typedef struct SYMLINK3resfail SYMLINK3resfail;
struct SYMLINK3res {
nfsstat3 status;
union {
SYMLINK3resok resok;
SYMLINK3resfail resfail;
} SYMLINK3res_u;
};
typedef struct SYMLINK3res SYMLINK3res;
struct devicedata3 {
sattr3 dev_attributes;
specdata3 spec;
};
typedef struct devicedata3 devicedata3;
struct mknoddata3 {
ftype3 type;
union {
devicedata3 device;
sattr3 pipe_attributes;
} mknoddata3_u;
};
typedef struct mknoddata3 mknoddata3;
struct MKNOD3args {
diropargs3 where;
mknoddata3 what;
};
typedef struct MKNOD3args MKNOD3args;
struct MKNOD3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
typedef struct MKNOD3resok MKNOD3resok;
struct MKNOD3resfail {
wcc_data dir_wcc;
};
typedef struct MKNOD3resfail MKNOD3resfail;
struct MKNOD3res {
nfsstat3 status;
union {
MKNOD3resok resok;
MKNOD3resfail resfail;
} MKNOD3res_u;
};
typedef struct MKNOD3res MKNOD3res;
struct REMOVE3args {
diropargs3 object;
};
typedef struct REMOVE3args REMOVE3args;
struct REMOVE3resok {
wcc_data dir_wcc;
};
typedef struct REMOVE3resok REMOVE3resok;
struct REMOVE3resfail {
wcc_data dir_wcc;
};
typedef struct REMOVE3resfail REMOVE3resfail;
struct REMOVE3res {
nfsstat3 status;
union {
REMOVE3resok resok;
REMOVE3resfail resfail;
} REMOVE3res_u;
};
typedef struct REMOVE3res REMOVE3res;
struct RMDIR3args {
diropargs3 object;
};
typedef struct RMDIR3args RMDIR3args;
struct RMDIR3resok {
wcc_data dir_wcc;
};
typedef struct RMDIR3resok RMDIR3resok;
struct RMDIR3resfail {
wcc_data dir_wcc;
};
typedef struct RMDIR3resfail RMDIR3resfail;
struct RMDIR3res {
nfsstat3 status;
union {
RMDIR3resok resok;
RMDIR3resfail resfail;
} RMDIR3res_u;
};
typedef struct RMDIR3res RMDIR3res;
struct RENAME3args {
diropargs3 from;
diropargs3 to;
};
typedef struct RENAME3args RENAME3args;
struct RENAME3resok {
wcc_data fromdir_wcc;
wcc_data todir_wcc;
};
typedef struct RENAME3resok RENAME3resok;
struct RENAME3resfail {
wcc_data fromdir_wcc;
wcc_data todir_wcc;
};
typedef struct RENAME3resfail RENAME3resfail;
struct RENAME3res {
nfsstat3 status;
union {
RENAME3resok resok;
RENAME3resfail resfail;
} RENAME3res_u;
};
typedef struct RENAME3res RENAME3res;
struct LINK3args {
nfs_fh3 file;
diropargs3 link;
};
typedef struct LINK3args LINK3args;
struct LINK3resok {
post_op_attr file_attributes;
wcc_data linkdir_wcc;
};
typedef struct LINK3resok LINK3resok;
struct LINK3resfail {
post_op_attr file_attributes;
wcc_data linkdir_wcc;
};
typedef struct LINK3resfail LINK3resfail;
struct LINK3res {
nfsstat3 status;
union {
LINK3resok resok;
LINK3resfail resfail;
} LINK3res_u;
};
typedef struct LINK3res LINK3res;
struct READDIR3args {
nfs_fh3 dir;
cookie3 cookie;
cookieverf3 cookieverf;
count3 count;
};
typedef struct READDIR3args READDIR3args;
struct entry3 {
fileid3 fileid;
filename3 name;
cookie3 cookie;
struct entry3 *nextentry;
};
typedef struct entry3 entry3;
struct dirlist3 {
entry3 *entries;
bool_t eof;
};
typedef struct dirlist3 dirlist3;
struct READDIR3resok {
post_op_attr dir_attributes;
cookieverf3 cookieverf;
dirlist3 reply;
};
typedef struct READDIR3resok READDIR3resok;
struct READDIR3resfail {
post_op_attr dir_attributes;
};
typedef struct READDIR3resfail READDIR3resfail;
struct READDIR3res {
nfsstat3 status;
union {
READDIR3resok resok;
READDIR3resfail resfail;
} READDIR3res_u;
};
typedef struct READDIR3res READDIR3res;
struct READDIRPLUS3args {
nfs_fh3 dir;
cookie3 cookie;
cookieverf3 cookieverf;
count3 dircount;
count3 maxcount;
};
typedef struct READDIRPLUS3args READDIRPLUS3args;
struct entryplus3 {
fileid3 fileid;
filename3 name;
cookie3 cookie;
post_op_attr name_attributes;
post_op_fh3 name_handle;
struct entryplus3 *nextentry;
};
typedef struct entryplus3 entryplus3;
struct dirlistplus3 {
entryplus3 *entries;
bool_t eof;
};
typedef struct dirlistplus3 dirlistplus3;
struct READDIRPLUS3resok {
post_op_attr dir_attributes;
cookieverf3 cookieverf;
dirlistplus3 reply;
};
typedef struct READDIRPLUS3resok READDIRPLUS3resok;
struct READDIRPLUS3resfail {
post_op_attr dir_attributes;
};
typedef struct READDIRPLUS3resfail READDIRPLUS3resfail;
struct READDIRPLUS3res {
nfsstat3 status;
union {
READDIRPLUS3resok resok;
READDIRPLUS3resfail resfail;
} READDIRPLUS3res_u;
};
typedef struct READDIRPLUS3res READDIRPLUS3res;
struct FSSTAT3args {
nfs_fh3 fsroot;
};
typedef struct FSSTAT3args FSSTAT3args;
struct FSSTAT3resok {
post_op_attr obj_attributes;
size3 tbytes;
size3 fbytes;
size3 abytes;
size3 tfiles;
size3 ffiles;
size3 afiles;
uint32 invarsec;
};
typedef struct FSSTAT3resok FSSTAT3resok;
struct FSSTAT3resfail {
post_op_attr obj_attributes;
};
typedef struct FSSTAT3resfail FSSTAT3resfail;
struct FSSTAT3res {
nfsstat3 status;
union {
FSSTAT3resok resok;
FSSTAT3resfail resfail;
} FSSTAT3res_u;
};
typedef struct FSSTAT3res FSSTAT3res;
#define FSF3_LINK 0x0001
#define FSF3_SYMLINK 0x0002
#define FSF3_HOMOGENEOUS 0x0008
#define FSF3_CANSETTIME 0x0010
struct FSINFO3args {
nfs_fh3 fsroot;
};
typedef struct FSINFO3args FSINFO3args;
struct FSINFO3resok {
post_op_attr obj_attributes;
uint32 rtmax;
uint32 rtpref;
uint32 rtmult;
uint32 wtmax;
uint32 wtpref;
uint32 wtmult;
uint32 dtpref;
size3 maxfilesize;
nfstime3 time_delta;
uint32 properties;
};
typedef struct FSINFO3resok FSINFO3resok;
struct FSINFO3resfail {
post_op_attr obj_attributes;
};
typedef struct FSINFO3resfail FSINFO3resfail;
struct FSINFO3res {
nfsstat3 status;
union {
FSINFO3resok resok;
FSINFO3resfail resfail;
} FSINFO3res_u;
};
typedef struct FSINFO3res FSINFO3res;
struct PATHCONF3args {
nfs_fh3 object;
};
typedef struct PATHCONF3args PATHCONF3args;
struct PATHCONF3resok {
post_op_attr obj_attributes;
uint32 linkmax;
uint32 name_max;
bool_t no_trunc;
bool_t chown_restricted;
bool_t case_insensitive;
bool_t case_preserving;
};
typedef struct PATHCONF3resok PATHCONF3resok;
struct PATHCONF3resfail {
post_op_attr obj_attributes;
};
typedef struct PATHCONF3resfail PATHCONF3resfail;
struct PATHCONF3res {
nfsstat3 status;
union {
PATHCONF3resok resok;
PATHCONF3resfail resfail;
} PATHCONF3res_u;
};
typedef struct PATHCONF3res PATHCONF3res;
struct COMMIT3args {
nfs_fh3 file;
offset3 offset;
count3 count;
};
typedef struct COMMIT3args COMMIT3args;
struct COMMIT3resok {
wcc_data file_wcc;
writeverf3 verf;
};
typedef struct COMMIT3resok COMMIT3resok;
struct COMMIT3resfail {
wcc_data file_wcc;
};
typedef struct COMMIT3resfail COMMIT3resfail;
struct COMMIT3res {
nfsstat3 status;
union {
COMMIT3resok resok;
COMMIT3resfail resfail;
} COMMIT3res_u;
};
typedef struct COMMIT3res COMMIT3res;
#define NFS_PROGRAM 100003
#define NFS_VERSION 2
#if defined(__STDC__) || defined(__cplusplus)
#define NFSPROC_NULL 0
extern void * nfsproc_null_2(void *, CLIENT *);
extern void * nfsproc_null_2_svc(void *, struct svc_req *);
#define NFSPROC_GETATTR 1
extern attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
extern attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
#define NFSPROC_SETATTR 2
extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
extern attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
#define NFSPROC_ROOT 3
extern void * nfsproc_root_2(void *, CLIENT *);
extern void * nfsproc_root_2_svc(void *, struct svc_req *);
#define NFSPROC_LOOKUP 4
extern diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
extern diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
#define NFSPROC_READLINK 5
extern readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
extern readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
#define NFSPROC_READ 6
extern readres * nfsproc_read_2(readargs *, CLIENT *);
extern readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
#define NFSPROC_WRITECACHE 7
extern void * nfsproc_writecache_2(void *, CLIENT *);
extern void * nfsproc_writecache_2_svc(void *, struct svc_req *);
#define NFSPROC_WRITE 8
extern attrstat * nfsproc_write_2(writeargs *, CLIENT *);
extern attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
#define NFSPROC_CREATE 9
extern diropres * nfsproc_create_2(createargs *, CLIENT *);
extern diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
#define NFSPROC_REMOVE 10
extern nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
extern nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
#define NFSPROC_RENAME 11
extern nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
extern nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
#define NFSPROC_LINK 12
extern nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
extern nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
#define NFSPROC_SYMLINK 13
extern nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
extern nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
#define NFSPROC_MKDIR 14
extern diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
extern diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
#define NFSPROC_RMDIR 15
extern nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
extern nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
#define NFSPROC_READDIR 16
extern readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
extern readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
#define NFSPROC_STATFS 17
extern statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
extern statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
extern int nfs_program_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define NFSPROC_NULL 0
extern void * nfsproc_null_2();
extern void * nfsproc_null_2_svc();
#define NFSPROC_GETATTR 1
extern attrstat * nfsproc_getattr_2();
extern attrstat * nfsproc_getattr_2_svc();
#define NFSPROC_SETATTR 2
extern attrstat * nfsproc_setattr_2();
extern attrstat * nfsproc_setattr_2_svc();
#define NFSPROC_ROOT 3
extern void * nfsproc_root_2();
extern void * nfsproc_root_2_svc();
#define NFSPROC_LOOKUP 4
extern diropres * nfsproc_lookup_2();
extern diropres * nfsproc_lookup_2_svc();
#define NFSPROC_READLINK 5
extern readlinkres * nfsproc_readlink_2();
extern readlinkres * nfsproc_readlink_2_svc();
#define NFSPROC_READ 6
extern readres * nfsproc_read_2();
extern readres * nfsproc_read_2_svc();
#define NFSPROC_WRITECACHE 7
extern void * nfsproc_writecache_2();
extern void * nfsproc_writecache_2_svc();
#define NFSPROC_WRITE 8
extern attrstat * nfsproc_write_2();
extern attrstat * nfsproc_write_2_svc();
#define NFSPROC_CREATE 9
extern diropres * nfsproc_create_2();
extern diropres * nfsproc_create_2_svc();
#define NFSPROC_REMOVE 10
extern nfsstat * nfsproc_remove_2();
extern nfsstat * nfsproc_remove_2_svc();
#define NFSPROC_RENAME 11
extern nfsstat * nfsproc_rename_2();
extern nfsstat * nfsproc_rename_2_svc();
#define NFSPROC_LINK 12
extern nfsstat * nfsproc_link_2();
extern nfsstat * nfsproc_link_2_svc();
#define NFSPROC_SYMLINK 13
extern nfsstat * nfsproc_symlink_2();
extern nfsstat * nfsproc_symlink_2_svc();
#define NFSPROC_MKDIR 14
extern diropres * nfsproc_mkdir_2();
extern diropres * nfsproc_mkdir_2_svc();
#define NFSPROC_RMDIR 15
extern nfsstat * nfsproc_rmdir_2();
extern nfsstat * nfsproc_rmdir_2_svc();
#define NFSPROC_READDIR 16
extern readdirres * nfsproc_readdir_2();
extern readdirres * nfsproc_readdir_2_svc();
#define NFSPROC_STATFS 17
extern statfsres * nfsproc_statfs_2();
extern statfsres * nfsproc_statfs_2_svc();
extern int nfs_program_2_freeresult();
#endif /* K&R C */
#define NFS3_PROGRAM 100003
#define NFS_V3 3
#if defined(__STDC__) || defined(__cplusplus)
#define NFSPROC3_NULL 0
extern void * nfsproc3_null_3(void *, CLIENT *);
extern void * nfsproc3_null_3_svc(void *, struct svc_req *);
#define NFSPROC3_GETATTR 1
extern GETATTR3res * nfsproc3_getattr_3(GETATTR3args *, CLIENT *);
extern GETATTR3res * nfsproc3_getattr_3_svc(GETATTR3args *, struct svc_req *);
#define NFSPROC3_SETATTR 2
extern SETATTR3res * nfsproc3_setattr_3(SETATTR3args *, CLIENT *);
extern SETATTR3res * nfsproc3_setattr_3_svc(SETATTR3args *, struct svc_req *);
#define NFSPROC3_LOOKUP 3
extern LOOKUP3res * nfsproc3_lookup_3(LOOKUP3args *, CLIENT *);
extern LOOKUP3res * nfsproc3_lookup_3_svc(LOOKUP3args *, struct svc_req *);
#define NFSPROC3_ACCESS 4
extern ACCESS3res * nfsproc3_access_3(ACCESS3args *, CLIENT *);
extern ACCESS3res * nfsproc3_access_3_svc(ACCESS3args *, struct svc_req *);
#define NFSPROC3_READLINK 5
extern READLINK3res * nfsproc3_readlink_3(READLINK3args *, CLIENT *);
extern READLINK3res * nfsproc3_readlink_3_svc(READLINK3args *, struct svc_req *);
#define NFSPROC3_READ 6
extern READ3res * nfsproc3_read_3(READ3args *, CLIENT *);
extern READ3res * nfsproc3_read_3_svc(READ3args *, struct svc_req *);
#define NFSPROC3_WRITE 7
extern WRITE3res * nfsproc3_write_3(WRITE3args *, CLIENT *);
extern WRITE3res * nfsproc3_write_3_svc(WRITE3args *, struct svc_req *);
#define NFSPROC3_CREATE 8
extern CREATE3res * nfsproc3_create_3(CREATE3args *, CLIENT *);
extern CREATE3res * nfsproc3_create_3_svc(CREATE3args *, struct svc_req *);
#define NFSPROC3_MKDIR 9
extern MKDIR3res * nfsproc3_mkdir_3(MKDIR3args *, CLIENT *);
extern MKDIR3res * nfsproc3_mkdir_3_svc(MKDIR3args *, struct svc_req *);
#define NFSPROC3_SYMLINK 10
extern SYMLINK3res * nfsproc3_symlink_3(SYMLINK3args *, CLIENT *);
extern SYMLINK3res * nfsproc3_symlink_3_svc(SYMLINK3args *, struct svc_req *);
#define NFSPROC3_MKNOD 11
extern MKNOD3res * nfsproc3_mknod_3(MKNOD3args *, CLIENT *);
extern MKNOD3res * nfsproc3_mknod_3_svc(MKNOD3args *, struct svc_req *);
#define NFSPROC3_REMOVE 12
extern REMOVE3res * nfsproc3_remove_3(REMOVE3args *, CLIENT *);
extern REMOVE3res * nfsproc3_remove_3_svc(REMOVE3args *, struct svc_req *);
#define NFSPROC3_RMDIR 13
extern RMDIR3res * nfsproc3_rmdir_3(RMDIR3args *, CLIENT *);
extern RMDIR3res * nfsproc3_rmdir_3_svc(RMDIR3args *, struct svc_req *);
#define NFSPROC3_RENAME 14
extern RENAME3res * nfsproc3_rename_3(RENAME3args *, CLIENT *);
extern RENAME3res * nfsproc3_rename_3_svc(RENAME3args *, struct svc_req *);
#define NFSPROC3_LINK 15
extern LINK3res * nfsproc3_link_3(LINK3args *, CLIENT *);
extern LINK3res * nfsproc3_link_3_svc(LINK3args *, struct svc_req *);
#define NFSPROC3_READDIR 16
extern READDIR3res * nfsproc3_readdir_3(READDIR3args *, CLIENT *);
extern READDIR3res * nfsproc3_readdir_3_svc(READDIR3args *, struct svc_req *);
#define NFSPROC3_READDIRPLUS 17
extern READDIRPLUS3res * nfsproc3_readdirplus_3(READDIRPLUS3args *, CLIENT *);
extern READDIRPLUS3res * nfsproc3_readdirplus_3_svc(READDIRPLUS3args *, struct svc_req *);
#define NFSPROC3_FSSTAT 18
extern FSSTAT3res * nfsproc3_fsstat_3(FSSTAT3args *, CLIENT *);
extern FSSTAT3res * nfsproc3_fsstat_3_svc(FSSTAT3args *, struct svc_req *);
#define NFSPROC3_FSINFO 19
extern FSINFO3res * nfsproc3_fsinfo_3(FSINFO3args *, CLIENT *);
extern FSINFO3res * nfsproc3_fsinfo_3_svc(FSINFO3args *, struct svc_req *);
#define NFSPROC3_PATHCONF 20
extern PATHCONF3res * nfsproc3_pathconf_3(PATHCONF3args *, CLIENT *);
extern PATHCONF3res * nfsproc3_pathconf_3_svc(PATHCONF3args *, struct svc_req *);
#define NFSPROC3_COMMIT 21
extern COMMIT3res * nfsproc3_commit_3(COMMIT3args *, CLIENT *);
extern COMMIT3res * nfsproc3_commit_3_svc(COMMIT3args *, struct svc_req *);
extern int nfs3_program_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define NFSPROC3_NULL 0
extern void * nfsproc3_null_3();
extern void * nfsproc3_null_3_svc();
#define NFSPROC3_GETATTR 1
extern GETATTR3res * nfsproc3_getattr_3();
extern GETATTR3res * nfsproc3_getattr_3_svc();
#define NFSPROC3_SETATTR 2
extern SETATTR3res * nfsproc3_setattr_3();
extern SETATTR3res * nfsproc3_setattr_3_svc();
#define NFSPROC3_LOOKUP 3
extern LOOKUP3res * nfsproc3_lookup_3();
extern LOOKUP3res * nfsproc3_lookup_3_svc();
#define NFSPROC3_ACCESS 4
extern ACCESS3res * nfsproc3_access_3();
extern ACCESS3res * nfsproc3_access_3_svc();
#define NFSPROC3_READLINK 5
extern READLINK3res * nfsproc3_readlink_3();
extern READLINK3res * nfsproc3_readlink_3_svc();
#define NFSPROC3_READ 6
extern READ3res * nfsproc3_read_3();
extern READ3res * nfsproc3_read_3_svc();
#define NFSPROC3_WRITE 7
extern WRITE3res * nfsproc3_write_3();
extern WRITE3res * nfsproc3_write_3_svc();
#define NFSPROC3_CREATE 8
extern CREATE3res * nfsproc3_create_3();
extern CREATE3res * nfsproc3_create_3_svc();
#define NFSPROC3_MKDIR 9
extern MKDIR3res * nfsproc3_mkdir_3();
extern MKDIR3res * nfsproc3_mkdir_3_svc();
#define NFSPROC3_SYMLINK 10
extern SYMLINK3res * nfsproc3_symlink_3();
extern SYMLINK3res * nfsproc3_symlink_3_svc();
#define NFSPROC3_MKNOD 11
extern MKNOD3res * nfsproc3_mknod_3();
extern MKNOD3res * nfsproc3_mknod_3_svc();
#define NFSPROC3_REMOVE 12
extern REMOVE3res * nfsproc3_remove_3();
extern REMOVE3res * nfsproc3_remove_3_svc();
#define NFSPROC3_RMDIR 13
extern RMDIR3res * nfsproc3_rmdir_3();
extern RMDIR3res * nfsproc3_rmdir_3_svc();
#define NFSPROC3_RENAME 14
extern RENAME3res * nfsproc3_rename_3();
extern RENAME3res * nfsproc3_rename_3_svc();
#define NFSPROC3_LINK 15
extern LINK3res * nfsproc3_link_3();
extern LINK3res * nfsproc3_link_3_svc();
#define NFSPROC3_READDIR 16
extern READDIR3res * nfsproc3_readdir_3();
extern READDIR3res * nfsproc3_readdir_3_svc();
#define NFSPROC3_READDIRPLUS 17
extern READDIRPLUS3res * nfsproc3_readdirplus_3();
extern READDIRPLUS3res * nfsproc3_readdirplus_3_svc();
#define NFSPROC3_FSSTAT 18
extern FSSTAT3res * nfsproc3_fsstat_3();
extern FSSTAT3res * nfsproc3_fsstat_3_svc();
#define NFSPROC3_FSINFO 19
extern FSINFO3res * nfsproc3_fsinfo_3();
extern FSINFO3res * nfsproc3_fsinfo_3_svc();
#define NFSPROC3_PATHCONF 20
extern PATHCONF3res * nfsproc3_pathconf_3();
extern PATHCONF3res * nfsproc3_pathconf_3_svc();
#define NFSPROC3_COMMIT 21
extern COMMIT3res * nfsproc3_commit_3();
extern COMMIT3res * nfsproc3_commit_3_svc();
extern int nfs3_program_3_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_nfsstat(XDR *, nfsstat*);
extern bool_t xdr_ftype(XDR *, ftype*);
extern bool_t xdr_nfs_fh(XDR *, nfs_fh*);
extern bool_t xdr_nfstime(XDR *, nfstime*);
extern bool_t xdr_fattr(XDR *, fattr*);
extern bool_t xdr_sattr(XDR *, sattr*);
extern bool_t xdr_filename(XDR *, filename*);
extern bool_t xdr_nfspath(XDR *, nfspath*);
extern bool_t xdr_attrstat(XDR *, attrstat*);
extern bool_t xdr_sattrargs(XDR *, sattrargs*);
extern bool_t xdr_diropargs(XDR *, diropargs*);
extern bool_t xdr_diropokres(XDR *, diropokres*);
extern bool_t xdr_diropres(XDR *, diropres*);
extern bool_t xdr_readlinkres(XDR *, readlinkres*);
extern bool_t xdr_readargs(XDR *, readargs*);
extern bool_t xdr_readokres(XDR *, readokres*);
extern bool_t xdr_readres(XDR *, readres*);
extern bool_t xdr_writeargs(XDR *, writeargs*);
extern bool_t xdr_createargs(XDR *, createargs*);
extern bool_t xdr_renameargs(XDR *, renameargs*);
extern bool_t xdr_linkargs(XDR *, linkargs*);
extern bool_t xdr_symlinkargs(XDR *, symlinkargs*);
extern bool_t xdr_nfscookie(XDR *, nfscookie);
extern bool_t xdr_readdirargs(XDR *, readdirargs*);
extern bool_t xdr_entry(XDR *, entry*);
extern bool_t xdr_dirlist(XDR *, dirlist*);
extern bool_t xdr_readdirres(XDR *, readdirres*);
extern bool_t xdr_statfsokres(XDR *, statfsokres*);
extern bool_t xdr_statfsres(XDR *, statfsres*);
extern bool_t xdr_filename3(XDR *, filename3*);
extern bool_t xdr_nfspath3(XDR *, nfspath3*);
extern bool_t xdr_fileid3(XDR *, fileid3*);
extern bool_t xdr_cookie3(XDR *, cookie3*);
extern bool_t xdr_cookieverf3(XDR *, cookieverf3);
extern bool_t xdr_createverf3(XDR *, createverf3);
extern bool_t xdr_writeverf3(XDR *, writeverf3);
extern bool_t xdr_uid3(XDR *, uid3*);
extern bool_t xdr_gid3(XDR *, gid3*);
extern bool_t xdr_size3(XDR *, size3*);
extern bool_t xdr_offset3(XDR *, offset3*);
extern bool_t xdr_mode3(XDR *, mode3*);
extern bool_t xdr_count3(XDR *, count3*);
extern bool_t xdr_nfsstat3(XDR *, nfsstat3*);
extern bool_t xdr_ftype3(XDR *, ftype3*);
extern bool_t xdr_specdata3(XDR *, specdata3*);
extern bool_t xdr_nfs_fh3(XDR *, nfs_fh3*);
extern bool_t xdr_nfstime3(XDR *, nfstime3*);
extern bool_t xdr_fattr3(XDR *, fattr3*);
extern bool_t xdr_post_op_attr(XDR *, post_op_attr*);
extern bool_t xdr_wcc_attr(XDR *, wcc_attr*);
extern bool_t xdr_pre_op_attr(XDR *, pre_op_attr*);
extern bool_t xdr_wcc_data(XDR *, wcc_data*);
extern bool_t xdr_post_op_fh3(XDR *, post_op_fh3*);
extern bool_t xdr_time_how(XDR *, time_how*);
extern bool_t xdr_set_mode3(XDR *, set_mode3*);
extern bool_t xdr_set_uid3(XDR *, set_uid3*);
extern bool_t xdr_set_gid3(XDR *, set_gid3*);
extern bool_t xdr_set_size3(XDR *, set_size3*);
extern bool_t xdr_set_atime(XDR *, set_atime*);
extern bool_t xdr_set_mtime(XDR *, set_mtime*);
extern bool_t xdr_sattr3(XDR *, sattr3*);
extern bool_t xdr_diropargs3(XDR *, diropargs3*);
extern bool_t xdr_GETATTR3args(XDR *, GETATTR3args*);
extern bool_t xdr_GETATTR3resok(XDR *, GETATTR3resok*);
extern bool_t xdr_GETATTR3res(XDR *, GETATTR3res*);
extern bool_t xdr_sattrguard3(XDR *, sattrguard3*);
extern bool_t xdr_SETATTR3args(XDR *, SETATTR3args*);
extern bool_t xdr_SETATTR3resok(XDR *, SETATTR3resok*);
extern bool_t xdr_SETATTR3resfail(XDR *, SETATTR3resfail*);
extern bool_t xdr_SETATTR3res(XDR *, SETATTR3res*);
extern bool_t xdr_LOOKUP3args(XDR *, LOOKUP3args*);
extern bool_t xdr_LOOKUP3resok(XDR *, LOOKUP3resok*);
extern bool_t xdr_LOOKUP3resfail(XDR *, LOOKUP3resfail*);
extern bool_t xdr_LOOKUP3res(XDR *, LOOKUP3res*);
extern bool_t xdr_ACCESS3args(XDR *, ACCESS3args*);
extern bool_t xdr_ACCESS3resok(XDR *, ACCESS3resok*);
extern bool_t xdr_ACCESS3resfail(XDR *, ACCESS3resfail*);
extern bool_t xdr_ACCESS3res(XDR *, ACCESS3res*);
extern bool_t xdr_READLINK3args(XDR *, READLINK3args*);
extern bool_t xdr_READLINK3resok(XDR *, READLINK3resok*);
extern bool_t xdr_READLINK3resfail(XDR *, READLINK3resfail*);
extern bool_t xdr_READLINK3res(XDR *, READLINK3res*);
extern bool_t xdr_READ3args(XDR *, READ3args*);
extern bool_t xdr_READ3resok(XDR *, READ3resok*);
extern bool_t xdr_READ3resfail(XDR *, READ3resfail*);
extern bool_t xdr_READ3res(XDR *, READ3res*);
extern bool_t xdr_stable_how(XDR *, stable_how*);
extern bool_t xdr_WRITE3args(XDR *, WRITE3args*);
extern bool_t xdr_WRITE3resok(XDR *, WRITE3resok*);
extern bool_t xdr_WRITE3resfail(XDR *, WRITE3resfail*);
extern bool_t xdr_WRITE3res(XDR *, WRITE3res*);
extern bool_t xdr_createmode3(XDR *, createmode3*);
extern bool_t xdr_createhow3(XDR *, createhow3*);
extern bool_t xdr_CREATE3args(XDR *, CREATE3args*);
extern bool_t xdr_CREATE3resok(XDR *, CREATE3resok*);
extern bool_t xdr_CREATE3resfail(XDR *, CREATE3resfail*);
extern bool_t xdr_CREATE3res(XDR *, CREATE3res*);
extern bool_t xdr_MKDIR3args(XDR *, MKDIR3args*);
extern bool_t xdr_MKDIR3resok(XDR *, MKDIR3resok*);
extern bool_t xdr_MKDIR3resfail(XDR *, MKDIR3resfail*);
extern bool_t xdr_MKDIR3res(XDR *, MKDIR3res*);
extern bool_t xdr_symlinkdata3(XDR *, symlinkdata3*);
extern bool_t xdr_SYMLINK3args(XDR *, SYMLINK3args*);
extern bool_t xdr_SYMLINK3resok(XDR *, SYMLINK3resok*);
extern bool_t xdr_SYMLINK3resfail(XDR *, SYMLINK3resfail*);
extern bool_t xdr_SYMLINK3res(XDR *, SYMLINK3res*);
extern bool_t xdr_devicedata3(XDR *, devicedata3*);
extern bool_t xdr_mknoddata3(XDR *, mknoddata3*);
extern bool_t xdr_MKNOD3args(XDR *, MKNOD3args*);
extern bool_t xdr_MKNOD3resok(XDR *, MKNOD3resok*);
extern bool_t xdr_MKNOD3resfail(XDR *, MKNOD3resfail*);
extern bool_t xdr_MKNOD3res(XDR *, MKNOD3res*);
extern bool_t xdr_REMOVE3args(XDR *, REMOVE3args*);
extern bool_t xdr_REMOVE3resok(XDR *, REMOVE3resok*);
extern bool_t xdr_REMOVE3resfail(XDR *, REMOVE3resfail*);
extern bool_t xdr_REMOVE3res(XDR *, REMOVE3res*);
extern bool_t xdr_RMDIR3args(XDR *, RMDIR3args*);
extern bool_t xdr_RMDIR3resok(XDR *, RMDIR3resok*);
extern bool_t xdr_RMDIR3resfail(XDR *, RMDIR3resfail*);
extern bool_t xdr_RMDIR3res(XDR *, RMDIR3res*);
extern bool_t xdr_RENAME3args(XDR *, RENAME3args*);
extern bool_t xdr_RENAME3resok(XDR *, RENAME3resok*);
extern bool_t xdr_RENAME3resfail(XDR *, RENAME3resfail*);
extern bool_t xdr_RENAME3res(XDR *, RENAME3res*);
extern bool_t xdr_LINK3args(XDR *, LINK3args*);
extern bool_t xdr_LINK3resok(XDR *, LINK3resok*);
extern bool_t xdr_LINK3resfail(XDR *, LINK3resfail*);
extern bool_t xdr_LINK3res(XDR *, LINK3res*);
extern bool_t xdr_READDIR3args(XDR *, READDIR3args*);
extern bool_t xdr_entry3(XDR *, entry3*);
extern bool_t xdr_dirlist3(XDR *, dirlist3*);
extern bool_t xdr_READDIR3resok(XDR *, READDIR3resok*);
extern bool_t xdr_READDIR3resfail(XDR *, READDIR3resfail*);
extern bool_t xdr_READDIR3res(XDR *, READDIR3res*);
extern bool_t xdr_READDIRPLUS3args(XDR *, READDIRPLUS3args*);
extern bool_t xdr_entryplus3(XDR *, entryplus3*);
extern bool_t xdr_dirlistplus3(XDR *, dirlistplus3*);
extern bool_t xdr_READDIRPLUS3resok(XDR *, READDIRPLUS3resok*);
extern bool_t xdr_READDIRPLUS3resfail(XDR *, READDIRPLUS3resfail*);
extern bool_t xdr_READDIRPLUS3res(XDR *, READDIRPLUS3res*);
extern bool_t xdr_FSSTAT3args(XDR *, FSSTAT3args*);
extern bool_t xdr_FSSTAT3resok(XDR *, FSSTAT3resok*);
extern bool_t xdr_FSSTAT3resfail(XDR *, FSSTAT3resfail*);
extern bool_t xdr_FSSTAT3res(XDR *, FSSTAT3res*);
extern bool_t xdr_FSINFO3args(XDR *, FSINFO3args*);
extern bool_t xdr_FSINFO3resok(XDR *, FSINFO3resok*);
extern bool_t xdr_FSINFO3resfail(XDR *, FSINFO3resfail*);
extern bool_t xdr_FSINFO3res(XDR *, FSINFO3res*);
extern bool_t xdr_PATHCONF3args(XDR *, PATHCONF3args*);
extern bool_t xdr_PATHCONF3resok(XDR *, PATHCONF3resok*);
extern bool_t xdr_PATHCONF3resfail(XDR *, PATHCONF3resfail*);
extern bool_t xdr_PATHCONF3res(XDR *, PATHCONF3res*);
extern bool_t xdr_COMMIT3args(XDR *, COMMIT3args*);
extern bool_t xdr_COMMIT3resok(XDR *, COMMIT3resok*);
extern bool_t xdr_COMMIT3resfail(XDR *, COMMIT3resfail*);
extern bool_t xdr_COMMIT3res(XDR *, COMMIT3res*);
#else /* K&R C */
extern bool_t xdr_nfsstat();
extern bool_t xdr_ftype();
extern bool_t xdr_nfs_fh();
extern bool_t xdr_nfstime();
extern bool_t xdr_fattr();
extern bool_t xdr_sattr();
extern bool_t xdr_filename();
extern bool_t xdr_nfspath();
extern bool_t xdr_attrstat();
extern bool_t xdr_sattrargs();
extern bool_t xdr_diropargs();
extern bool_t xdr_diropokres();
extern bool_t xdr_diropres();
extern bool_t xdr_readlinkres();
extern bool_t xdr_readargs();
extern bool_t xdr_readokres();
extern bool_t xdr_readres();
extern bool_t xdr_writeargs();
extern bool_t xdr_createargs();
extern bool_t xdr_renameargs();
extern bool_t xdr_linkargs();
extern bool_t xdr_symlinkargs();
extern bool_t xdr_nfscookie();
extern bool_t xdr_readdirargs();
extern bool_t xdr_entry();
extern bool_t xdr_dirlist();
extern bool_t xdr_readdirres();
extern bool_t xdr_statfsokres();
extern bool_t xdr_statfsres();
extern bool_t xdr_filename3();
extern bool_t xdr_nfspath3();
extern bool_t xdr_fileid3();
extern bool_t xdr_cookie3();
extern bool_t xdr_cookieverf3();
extern bool_t xdr_createverf3();
extern bool_t xdr_writeverf3();
extern bool_t xdr_uid3();
extern bool_t xdr_gid3();
extern bool_t xdr_size3();
extern bool_t xdr_offset3();
extern bool_t xdr_mode3();
extern bool_t xdr_count3();
extern bool_t xdr_nfsstat3();
extern bool_t xdr_ftype3();
extern bool_t xdr_specdata3();
extern bool_t xdr_nfs_fh3();
extern bool_t xdr_nfstime3();
extern bool_t xdr_fattr3();
extern bool_t xdr_post_op_attr();
extern bool_t xdr_wcc_attr();
extern bool_t xdr_pre_op_attr();
extern bool_t xdr_wcc_data();
extern bool_t xdr_post_op_fh3();
extern bool_t xdr_time_how();
extern bool_t xdr_set_mode3();
extern bool_t xdr_set_uid3();
extern bool_t xdr_set_gid3();
extern bool_t xdr_set_size3();
extern bool_t xdr_set_atime();
extern bool_t xdr_set_mtime();
extern bool_t xdr_sattr3();
extern bool_t xdr_diropargs3();
extern bool_t xdr_GETATTR3args();
extern bool_t xdr_GETATTR3resok();
extern bool_t xdr_GETATTR3res();
extern bool_t xdr_sattrguard3();
extern bool_t xdr_SETATTR3args();
extern bool_t xdr_SETATTR3resok();
extern bool_t xdr_SETATTR3resfail();
extern bool_t xdr_SETATTR3res();
extern bool_t xdr_LOOKUP3args();
extern bool_t xdr_LOOKUP3resok();
extern bool_t xdr_LOOKUP3resfail();
extern bool_t xdr_LOOKUP3res();
extern bool_t xdr_ACCESS3args();
extern bool_t xdr_ACCESS3resok();
extern bool_t xdr_ACCESS3resfail();
extern bool_t xdr_ACCESS3res();
extern bool_t xdr_READLINK3args();
extern bool_t xdr_READLINK3resok();
extern bool_t xdr_READLINK3resfail();
extern bool_t xdr_READLINK3res();
extern bool_t xdr_READ3args();
extern bool_t xdr_READ3resok();
extern bool_t xdr_READ3resfail();
extern bool_t xdr_READ3res();
extern bool_t xdr_stable_how();
extern bool_t xdr_WRITE3args();
extern bool_t xdr_WRITE3resok();
extern bool_t xdr_WRITE3resfail();
extern bool_t xdr_WRITE3res();
extern bool_t xdr_createmode3();
extern bool_t xdr_createhow3();
extern bool_t xdr_CREATE3args();
extern bool_t xdr_CREATE3resok();
extern bool_t xdr_CREATE3resfail();
extern bool_t xdr_CREATE3res();
extern bool_t xdr_MKDIR3args();
extern bool_t xdr_MKDIR3resok();
extern bool_t xdr_MKDIR3resfail();
extern bool_t xdr_MKDIR3res();
extern bool_t xdr_symlinkdata3();
extern bool_t xdr_SYMLINK3args();
extern bool_t xdr_SYMLINK3resok();
extern bool_t xdr_SYMLINK3resfail();
extern bool_t xdr_SYMLINK3res();
extern bool_t xdr_devicedata3();
extern bool_t xdr_mknoddata3();
extern bool_t xdr_MKNOD3args();
extern bool_t xdr_MKNOD3resok();
extern bool_t xdr_MKNOD3resfail();
extern bool_t xdr_MKNOD3res();
extern bool_t xdr_REMOVE3args();
extern bool_t xdr_REMOVE3resok();
extern bool_t xdr_REMOVE3resfail();
extern bool_t xdr_REMOVE3res();
extern bool_t xdr_RMDIR3args();
extern bool_t xdr_RMDIR3resok();
extern bool_t xdr_RMDIR3resfail();
extern bool_t xdr_RMDIR3res();
extern bool_t xdr_RENAME3args();
extern bool_t xdr_RENAME3resok();
extern bool_t xdr_RENAME3resfail();
extern bool_t xdr_RENAME3res();
extern bool_t xdr_LINK3args();
extern bool_t xdr_LINK3resok();
extern bool_t xdr_LINK3resfail();
extern bool_t xdr_LINK3res();
extern bool_t xdr_READDIR3args();
extern bool_t xdr_entry3();
extern bool_t xdr_dirlist3();
extern bool_t xdr_READDIR3resok();
extern bool_t xdr_READDIR3resfail();
extern bool_t xdr_READDIR3res();
extern bool_t xdr_READDIRPLUS3args();
extern bool_t xdr_entryplus3();
extern bool_t xdr_dirlistplus3();
extern bool_t xdr_READDIRPLUS3resok();
extern bool_t xdr_READDIRPLUS3resfail();
extern bool_t xdr_READDIRPLUS3res();
extern bool_t xdr_FSSTAT3args();
extern bool_t xdr_FSSTAT3resok();
extern bool_t xdr_FSSTAT3resfail();
extern bool_t xdr_FSSTAT3res();
extern bool_t xdr_FSINFO3args();
extern bool_t xdr_FSINFO3resok();
extern bool_t xdr_FSINFO3resfail();
extern bool_t xdr_FSINFO3res();
extern bool_t xdr_PATHCONF3args();
extern bool_t xdr_PATHCONF3resok();
extern bool_t xdr_PATHCONF3resfail();
extern bool_t xdr_PATHCONF3res();
extern bool_t xdr_COMMIT3args();
extern bool_t xdr_COMMIT3resok();
extern bool_t xdr_COMMIT3resfail();
extern bool_t xdr_COMMIT3res();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_NFS_PROT_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifdef RPC_HDR
%/*
% * Definitions for uint64, int64, uint32, and int32
% */
%#include <rpc/rpc_sztypes.h>
%
#endif
const NFS_PORT = 2049;
const NFS_MAXDATA = 8192;
const NFS_MAXPATHLEN = 1024;
const NFS_MAXNAMLEN = 255;
const NFS_FHSIZE = 32;
const NFS_COOKIESIZE = 4;
const NFS_FIFO_DEV = -1; /* size kludge for named pipes */
/*
* File types
*/
const NFSMODE_FMT = 0170000; /* type of file */
const NFSMODE_DIR = 0040000; /* directory */
const NFSMODE_CHR = 0020000; /* character special */
const NFSMODE_BLK = 0060000; /* block special */
const NFSMODE_REG = 0100000; /* regular */
const NFSMODE_LNK = 0120000; /* symbolic link */
const NFSMODE_SOCK = 0140000; /* socket */
const NFSMODE_FIFO = 0010000; /* fifo */
/*
* Error status
*/
enum nfsstat {
NFS_OK= 0, /* no error */
NFSERR_PERM=1, /* Not owner */
NFSERR_NOENT=2, /* No such file or directory */
NFSERR_IO=5, /* I/O error */
NFSERR_NXIO=6, /* No such device or address */
NFSERR_ACCES=13, /* Permission denied */
NFSERR_EXIST=17, /* File exists */
NFSERR_XDEV=18, /* Cross-device link */
NFSERR_NODEV=19, /* No such device */
NFSERR_NOTDIR=20, /* Not a directory*/
NFSERR_ISDIR=21, /* Is a directory */
NFSERR_INVAL=22, /* Invalid argument */
NFSERR_FBIG=27, /* File too large */
NFSERR_NOSPC=28, /* No space left on device */
NFSERR_ROFS=30, /* Read-only file system */
NFSERR_OPNOTSUPP=45, /* Operation not supported */
NFSERR_NAMETOOLONG=63, /* File name too long */
NFSERR_NOTEMPTY=66, /* Directory not empty */
NFSERR_DQUOT=69, /* Disc quota exceeded */
NFSERR_STALE=70, /* Stale NFS file handle */
NFSERR_REMOTE=71, /* Object is remote */
NFSERR_WFLUSH=72 /* write cache flushed */
};
/*
* File types
*/
enum ftype {
NFNON = 0, /* non-file */
NFREG = 1, /* regular file */
NFDIR = 2, /* directory */
NFBLK = 3, /* block special */
NFCHR = 4, /* character special */
NFLNK = 5, /* symbolic link */
NFSOCK = 6, /* unix domain sockets */
NFBAD = 7, /* unused */
NFFIFO = 8 /* named pipe */
};
/*
* File access handle
*/
struct nfs_fh {
opaque data[NFS_FHSIZE];
};
/*
* Timeval
*/
struct nfstime {
unsigned seconds;
unsigned useconds;
};
/*
* File attributes
*/
struct fattr {
ftype type; /* file type */
unsigned mode; /* protection mode bits */
unsigned nlink; /* # hard links */
unsigned uid; /* owner user id */
unsigned gid; /* owner group id */
unsigned size; /* file size in bytes */
unsigned blocksize; /* prefered block size */
unsigned rdev; /* special device # */
unsigned blocks; /* Kb of disk used by file */
unsigned fsid; /* device # */
unsigned fileid; /* inode # */
nfstime atime; /* time of last access */
nfstime mtime; /* time of last modification */
nfstime ctime; /* time of last change */
};
/*
* File attributes which can be set
*/
struct sattr {
unsigned mode; /* protection mode bits */
unsigned uid; /* owner user id */
unsigned gid; /* owner group id */
unsigned size; /* file size in bytes */
nfstime atime; /* time of last access */
nfstime mtime; /* time of last modification */
};
typedef string filename<NFS_MAXNAMLEN>;
typedef string nfspath<NFS_MAXPATHLEN>;
/*
* Reply status with file attributes
*/
union attrstat switch (nfsstat status) {
case NFS_OK:
fattr attributes;
default:
void;
};
struct sattrargs {
nfs_fh file;
sattr attributes;
};
/*
* Arguments for directory operations
*/
struct diropargs {
nfs_fh dir; /* directory file handle */
filename name; /* name (up to NFS_MAXNAMLEN bytes) */
};
struct diropokres {
nfs_fh file;
fattr attributes;
};
/*
* Results from directory operation
*/
union diropres switch (nfsstat status) {
case NFS_OK:
diropokres diropres;
default:
void;
};
union readlinkres switch (nfsstat status) {
case NFS_OK:
nfspath data;
default:
void;
};
/*
* Arguments to remote read
*/
struct readargs {
nfs_fh file; /* handle for file */
unsigned offset; /* byte offset in file */
unsigned count; /* immediate read count */
unsigned totalcount; /* total read count (from this offset)*/
};
/*
* Status OK portion of remote read reply
*/
struct readokres {
fattr attributes; /* attributes, need for pagin*/
opaque data<NFS_MAXDATA>;
};
union readres switch (nfsstat status) {
case NFS_OK:
readokres reply;
default:
void;
};
/*
* Arguments to remote write
*/
struct writeargs {
nfs_fh file; /* handle for file */
unsigned beginoffset; /* beginning byte offset in file */
unsigned offset; /* current byte offset in file */
unsigned totalcount; /* total write count (to this offset)*/
opaque data<NFS_MAXDATA>;
};
struct createargs {
diropargs where;
sattr attributes;
};
struct renameargs {
diropargs from;
diropargs to;
};
struct linkargs {
nfs_fh from;
diropargs to;
};
struct symlinkargs {
diropargs from;
nfspath to;
sattr attributes;
};
typedef opaque nfscookie[NFS_COOKIESIZE];
/*
* Arguments to readdir
*/
struct readdirargs {
nfs_fh dir; /* directory handle */
nfscookie cookie;
unsigned count; /* number of directory bytes to read */
};
struct entry {
unsigned fileid;
filename name;
nfscookie cookie;
entry *nextentry;
};
struct dirlist {
entry *entries;
bool eof;
};
union readdirres switch (nfsstat status) {
case NFS_OK:
dirlist reply;
default:
void;
};
struct statfsokres {
unsigned tsize; /* preferred transfer size in bytes */
unsigned bsize; /* fundamental file system block size */
unsigned blocks; /* total blocks in file system */
unsigned bfree; /* free blocks in fs */
unsigned bavail; /* free blocks avail to non-superuser */
};
union statfsres switch (nfsstat status) {
case NFS_OK:
statfsokres reply;
default:
void;
};
/*
* Remote file service routines
*/
program NFS_PROGRAM {
version NFS_VERSION {
void
NFSPROC_NULL(void) = 0;
attrstat
NFSPROC_GETATTR(nfs_fh) = 1;
attrstat
NFSPROC_SETATTR(sattrargs) = 2;
void
NFSPROC_ROOT(void) = 3;
diropres
NFSPROC_LOOKUP(diropargs) = 4;
readlinkres
NFSPROC_READLINK(nfs_fh) = 5;
readres
NFSPROC_READ(readargs) = 6;
void
NFSPROC_WRITECACHE(void) = 7;
attrstat
NFSPROC_WRITE(writeargs) = 8;
diropres
NFSPROC_CREATE(createargs) = 9;
nfsstat
NFSPROC_REMOVE(diropargs) = 10;
nfsstat
NFSPROC_RENAME(renameargs) = 11;
nfsstat
NFSPROC_LINK(linkargs) = 12;
nfsstat
NFSPROC_SYMLINK(symlinkargs) = 13;
diropres
NFSPROC_MKDIR(createargs) = 14;
nfsstat
NFSPROC_RMDIR(diropargs) = 15;
readdirres
NFSPROC_READDIR(readdirargs) = 16;
statfsres
NFSPROC_STATFS(nfs_fh) = 17;
} = 2;
} = 100003;
/*
* Version 3 declarations and definitions.
*/
/*
* Sizes
*/
const NFS3_FHSIZE = 64;
const NFS3_COOKIEVERFSIZE = 8;
const NFS3_CREATEVERFSIZE = 8;
const NFS3_WRITEVERFSIZE = 8;
/*
* Basic data types
*/
typedef string filename3<>;
typedef string nfspath3<>;
typedef uint64 fileid3;
typedef uint64 cookie3;
typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE];
typedef opaque createverf3[NFS3_CREATEVERFSIZE];
typedef opaque writeverf3[NFS3_WRITEVERFSIZE];
typedef uint32 uid3;
typedef uint32 gid3;
typedef uint64 size3;
typedef uint64 offset3;
typedef uint32 mode3;
typedef uint32 count3;
/*
* Error status
*/
enum nfsstat3 {
NFS3_OK = 0,
NFS3ERR_PERM = 1,
NFS3ERR_NOENT = 2,
NFS3ERR_IO = 5,
NFS3ERR_NXIO = 6,
NFS3ERR_ACCES = 13,
NFS3ERR_EXIST = 17,
NFS3ERR_XDEV = 18,
NFS3ERR_NODEV = 19,
NFS3ERR_NOTDIR = 20,
NFS3ERR_ISDIR = 21,
NFS3ERR_INVAL = 22,
NFS3ERR_FBIG = 27,
NFS3ERR_NOSPC = 28,
NFS3ERR_ROFS = 30,
NFS3ERR_MLINK = 31,
NFS3ERR_NAMETOOLONG = 63,
NFS3ERR_NOTEMPTY = 66,
NFS3ERR_DQUOT = 69,
NFS3ERR_STALE = 70,
NFS3ERR_REMOTE = 71,
NFS3ERR_BADHANDLE = 10001,
NFS3ERR_NOT_SYNC = 10002,
NFS3ERR_BAD_COOKIE = 10003,
NFS3ERR_NOTSUPP = 10004,
NFS3ERR_TOOSMALL = 10005,
NFS3ERR_SERVERFAULT = 10006,
NFS3ERR_BADTYPE = 10007,
NFS3ERR_JUKEBOX = 10008
};
/*
* File types
*/
enum ftype3 {
NF3REG = 1,
NF3DIR = 2,
NF3BLK = 3,
NF3CHR = 4,
NF3LNK = 5,
NF3SOCK = 6,
NF3FIFO = 7
};
struct specdata3 {
uint32 specdata1;
uint32 specdata2;
};
/*
* File access handle
*/
struct nfs_fh3 {
opaque data<NFS3_FHSIZE>;
};
/*
* Timeval
*/
struct nfstime3 {
uint32 seconds;
uint32 nseconds;
};
/*
* File attributes
*/
struct fattr3 {
ftype3 type;
mode3 mode;
uint32 nlink;
uid3 uid;
gid3 gid;
size3 size;
size3 used;
specdata3 rdev;
uint64 fsid;
fileid3 fileid;
nfstime3 atime;
nfstime3 mtime;
nfstime3 ctime;
};
/*
* File attributes
*/
union post_op_attr switch (bool attributes_follow) {
case TRUE:
fattr3 attributes;
case FALSE:
void;
};
struct wcc_attr {
size3 size;
nfstime3 mtime;
nfstime3 ctime;
};
union pre_op_attr switch (bool attributes_follow) {
case TRUE:
wcc_attr attributes;
case FALSE:
void;
};
struct wcc_data {
pre_op_attr before;
post_op_attr after;
};
union post_op_fh3 switch (bool handle_follows) {
case TRUE:
nfs_fh3 handle;
case FALSE:
void;
};
enum time_how {
DONT_CHANGE = 0,
SET_TO_SERVER_TIME = 1,
SET_TO_CLIENT_TIME = 2
};
union set_mode3 switch (bool set_it) {
case TRUE:
mode3 mode;
default:
void;
};
union set_uid3 switch (bool set_it) {
case TRUE:
uid3 uid;
default:
void;
};
union set_gid3 switch (bool set_it) {
case TRUE:
gid3 gid;
default:
void;
};
union set_size3 switch (bool set_it) {
case TRUE:
size3 size;
default:
void;
};
union set_atime switch (time_how set_it) {
case SET_TO_CLIENT_TIME:
nfstime3 atime;
default:
void;
};
union set_mtime switch (time_how set_it) {
case SET_TO_CLIENT_TIME:
nfstime3 mtime;
default:
void;
};
struct sattr3 {
set_mode3 mode;
set_uid3 uid;
set_gid3 gid;
set_size3 size;
set_atime atime;
set_mtime mtime;
};
struct diropargs3 {
nfs_fh3 dir;
filename3 name;
};
/*
* GETATTR: Get file attributes
*/
struct GETATTR3args {
nfs_fh3 object;
};
struct GETATTR3resok {
fattr3 obj_attributes;
};
union GETATTR3res switch (nfsstat3 status) {
case NFS3_OK:
GETATTR3resok resok;
default:
void;
};
/*
* SETATTR: Set file attributes
*/
union sattrguard3 switch (bool check) {
case TRUE:
nfstime3 obj_ctime;
case FALSE:
void;
};
struct SETATTR3args {
nfs_fh3 object;
sattr3 new_attributes;
sattrguard3 guard;
};
struct SETATTR3resok {
wcc_data obj_wcc;
};
struct SETATTR3resfail {
wcc_data obj_wcc;
};
union SETATTR3res switch (nfsstat3 status) {
case NFS3_OK:
SETATTR3resok resok;
default:
SETATTR3resfail resfail;
};
/*
* LOOKUP: Lookup filename
*/
struct LOOKUP3args {
diropargs3 what;
};
struct LOOKUP3resok {
nfs_fh3 object;
post_op_attr obj_attributes;
post_op_attr dir_attributes;
};
struct LOOKUP3resfail {
post_op_attr dir_attributes;
};
union LOOKUP3res switch (nfsstat3 status) {
case NFS3_OK:
LOOKUP3resok resok;
default:
LOOKUP3resfail resfail;
};
/*
* ACCESS: Check access permission
*/
const ACCESS3_READ = 0x0001;
const ACCESS3_LOOKUP = 0x0002;
const ACCESS3_MODIFY = 0x0004;
const ACCESS3_EXTEND = 0x0008;
const ACCESS3_DELETE = 0x0010;
const ACCESS3_EXECUTE = 0x0020;
struct ACCESS3args {
nfs_fh3 object;
uint32 access;
};
struct ACCESS3resok {
post_op_attr obj_attributes;
uint32 access;
};
struct ACCESS3resfail {
post_op_attr obj_attributes;
};
union ACCESS3res switch (nfsstat3 status) {
case NFS3_OK:
ACCESS3resok resok;
default:
ACCESS3resfail resfail;
};
/*
* READLINK: Read from symbolic link
*/
struct READLINK3args {
nfs_fh3 symlink;
};
struct READLINK3resok {
post_op_attr symlink_attributes;
nfspath3 data;
};
struct READLINK3resfail {
post_op_attr symlink_attributes;
};
union READLINK3res switch (nfsstat3 status) {
case NFS3_OK:
READLINK3resok resok;
default:
READLINK3resfail resfail;
};
/*
* READ: Read from file
*/
struct READ3args {
nfs_fh3 file;
offset3 offset;
count3 count;
};
struct READ3resok {
post_op_attr file_attributes;
count3 count;
bool eof;
opaque data<>;
};
struct READ3resfail {
post_op_attr file_attributes;
};
union READ3res switch (nfsstat3 status) {
case NFS3_OK:
READ3resok resok;
default:
READ3resfail resfail;
};
/*
* WRITE: Write to file
*/
enum stable_how {
UNSTABLE = 0,
DATA_SYNC = 1,
FILE_SYNC = 2
};
struct WRITE3args {
nfs_fh3 file;
offset3 offset;
count3 count;
stable_how stable;
opaque data<>;
};
struct WRITE3resok {
wcc_data file_wcc;
count3 count;
stable_how committed;
writeverf3 verf;
};
struct WRITE3resfail {
wcc_data file_wcc;
};
union WRITE3res switch (nfsstat3 status) {
case NFS3_OK:
WRITE3resok resok;
default:
WRITE3resfail resfail;
};
/*
* CREATE: Create a file
*/
enum createmode3 {
UNCHECKED = 0,
GUARDED = 1,
EXCLUSIVE = 2
};
union createhow3 switch (createmode3 mode) {
case UNCHECKED:
case GUARDED:
sattr3 obj_attributes;
case EXCLUSIVE:
createverf3 verf;
};
struct CREATE3args {
diropargs3 where;
createhow3 how;
};
struct CREATE3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
struct CREATE3resfail {
wcc_data dir_wcc;
};
union CREATE3res switch (nfsstat3 status) {
case NFS3_OK:
CREATE3resok resok;
default:
CREATE3resfail resfail;
};
/*
* MKDIR: Create a directory
*/
struct MKDIR3args {
diropargs3 where;
sattr3 attributes;
};
struct MKDIR3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
struct MKDIR3resfail {
wcc_data dir_wcc;
};
union MKDIR3res switch (nfsstat3 status) {
case NFS3_OK:
MKDIR3resok resok;
default:
MKDIR3resfail resfail;
};
/*
* SYMLINK: Create a symbolic link
*/
struct symlinkdata3 {
sattr3 symlink_attributes;
nfspath3 symlink_data;
};
struct SYMLINK3args {
diropargs3 where;
symlinkdata3 symlink;
};
struct SYMLINK3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
struct SYMLINK3resfail {
wcc_data dir_wcc;
};
union SYMLINK3res switch (nfsstat3 status) {
case NFS3_OK:
SYMLINK3resok resok;
default:
SYMLINK3resfail resfail;
};
/*
* MKNOD: Create a special file
*/
struct devicedata3 {
sattr3 dev_attributes;
specdata3 spec;
};
union mknoddata3 switch (ftype3 type) {
case NF3CHR:
case NF3BLK:
devicedata3 device;
case NF3SOCK:
case NF3FIFO:
sattr3 pipe_attributes;
default:
void;
};
struct MKNOD3args {
diropargs3 where;
mknoddata3 what;
};
struct MKNOD3resok {
post_op_fh3 obj;
post_op_attr obj_attributes;
wcc_data dir_wcc;
};
struct MKNOD3resfail {
wcc_data dir_wcc;
};
union MKNOD3res switch (nfsstat3 status) {
case NFS3_OK:
MKNOD3resok resok;
default:
MKNOD3resfail resfail;
};
/*
* REMOVE: Remove a file
*/
struct REMOVE3args {
diropargs3 object;
};
struct REMOVE3resok {
wcc_data dir_wcc;
};
struct REMOVE3resfail {
wcc_data dir_wcc;
};
union REMOVE3res switch (nfsstat3 status) {
case NFS3_OK:
REMOVE3resok resok;
default:
REMOVE3resfail resfail;
};
/*
* RMDIR: Remove a directory
*/
struct RMDIR3args {
diropargs3 object;
};
struct RMDIR3resok {
wcc_data dir_wcc;
};
struct RMDIR3resfail {
wcc_data dir_wcc;
};
union RMDIR3res switch (nfsstat3 status) {
case NFS3_OK:
RMDIR3resok resok;
default:
RMDIR3resfail resfail;
};
/*
* RENAME: Rename a file or directory
*/
struct RENAME3args {
diropargs3 from;
diropargs3 to;
};
struct RENAME3resok {
wcc_data fromdir_wcc;
wcc_data todir_wcc;
};
struct RENAME3resfail {
wcc_data fromdir_wcc;
wcc_data todir_wcc;
};
union RENAME3res switch (nfsstat3 status) {
case NFS3_OK:
RENAME3resok resok;
default:
RENAME3resfail resfail;
};
/*
* LINK: Create link to an object
*/
struct LINK3args {
nfs_fh3 file;
diropargs3 link;
};
struct LINK3resok {
post_op_attr file_attributes;
wcc_data linkdir_wcc;
};
struct LINK3resfail {
post_op_attr file_attributes;
wcc_data linkdir_wcc;
};
union LINK3res switch (nfsstat3 status) {
case NFS3_OK:
LINK3resok resok;
default:
LINK3resfail resfail;
};
/*
* READDIR: Read from directory
*/
struct READDIR3args {
nfs_fh3 dir;
cookie3 cookie;
cookieverf3 cookieverf;
count3 count;
};
struct entry3 {
fileid3 fileid;
filename3 name;
cookie3 cookie;
entry3 *nextentry;
};
struct dirlist3 {
entry3 *entries;
bool eof;
};
struct READDIR3resok {
post_op_attr dir_attributes;
cookieverf3 cookieverf;
dirlist3 reply;
};
struct READDIR3resfail {
post_op_attr dir_attributes;
};
union READDIR3res switch (nfsstat3 status) {
case NFS3_OK:
READDIR3resok resok;
default:
READDIR3resfail resfail;
};
/*
* READDIRPLUS: Extended read from a directory
*/
struct READDIRPLUS3args {
nfs_fh3 dir;
cookie3 cookie;
cookieverf3 cookieverf;
count3 dircount;
count3 maxcount;
};
struct entryplus3 {
fileid3 fileid;
filename3 name;
cookie3 cookie;
post_op_attr name_attributes;
post_op_fh3 name_handle;
entryplus3 *nextentry;
};
struct dirlistplus3 {
entryplus3 *entries;
bool eof;
};
struct READDIRPLUS3resok {
post_op_attr dir_attributes;
cookieverf3 cookieverf;
dirlistplus3 reply;
};
struct READDIRPLUS3resfail {
post_op_attr dir_attributes;
};
union READDIRPLUS3res switch (nfsstat3 status) {
case NFS3_OK:
READDIRPLUS3resok resok;
default:
READDIRPLUS3resfail resfail;
};
/*
* FSSTAT: Get dynamic file system information
*/
struct FSSTAT3args {
nfs_fh3 fsroot;
};
struct FSSTAT3resok {
post_op_attr obj_attributes;
size3 tbytes;
size3 fbytes;
size3 abytes;
size3 tfiles;
size3 ffiles;
size3 afiles;
uint32 invarsec;
};
struct FSSTAT3resfail {
post_op_attr obj_attributes;
};
union FSSTAT3res switch (nfsstat3 status) {
case NFS3_OK:
FSSTAT3resok resok;
default:
FSSTAT3resfail resfail;
};
/*
* FSINFO: Get static file system information
*/
const FSF3_LINK = 0x0001;
const FSF3_SYMLINK = 0x0002;
const FSF3_HOMOGENEOUS = 0x0008;
const FSF3_CANSETTIME = 0x0010;
struct FSINFO3args {
nfs_fh3 fsroot;
};
struct FSINFO3resok {
post_op_attr obj_attributes;
uint32 rtmax;
uint32 rtpref;
uint32 rtmult;
uint32 wtmax;
uint32 wtpref;
uint32 wtmult;
uint32 dtpref;
size3 maxfilesize;
nfstime3 time_delta;
uint32 properties;
};
struct FSINFO3resfail {
post_op_attr obj_attributes;
};
union FSINFO3res switch (nfsstat3 status) {
case NFS3_OK:
FSINFO3resok resok;
default:
FSINFO3resfail resfail;
};
/*
* PATHCONF: Retrieve POSIX information
*/
struct PATHCONF3args {
nfs_fh3 object;
};
struct PATHCONF3resok {
post_op_attr obj_attributes;
uint32 linkmax;
uint32 name_max;
bool no_trunc;
bool chown_restricted;
bool case_insensitive;
bool case_preserving;
};
struct PATHCONF3resfail {
post_op_attr obj_attributes;
};
union PATHCONF3res switch (nfsstat3 status) {
case NFS3_OK:
PATHCONF3resok resok;
default:
PATHCONF3resfail resfail;
};
/*
* COMMIT: Commit cached data on a server to stable storage
*/
struct COMMIT3args {
nfs_fh3 file;
offset3 offset;
count3 count;
};
struct COMMIT3resok {
wcc_data file_wcc;
writeverf3 verf;
};
struct COMMIT3resfail {
wcc_data file_wcc;
};
union COMMIT3res switch (nfsstat3 status) {
case NFS3_OK:
COMMIT3resok resok;
default:
COMMIT3resfail resfail;
};
/*
* Remote file service routines
*/
program NFS3_PROGRAM {
version NFS_V3 {
void
NFSPROC3_NULL(void) = 0;
GETATTR3res
NFSPROC3_GETATTR(GETATTR3args) = 1;
SETATTR3res
NFSPROC3_SETATTR(SETATTR3args) = 2;
LOOKUP3res
NFSPROC3_LOOKUP(LOOKUP3args) = 3;
ACCESS3res
NFSPROC3_ACCESS(ACCESS3args) = 4;
READLINK3res
NFSPROC3_READLINK(READLINK3args) = 5;
READ3res
NFSPROC3_READ(READ3args) = 6;
WRITE3res
NFSPROC3_WRITE(WRITE3args) = 7;
CREATE3res
NFSPROC3_CREATE(CREATE3args) = 8;
MKDIR3res
NFSPROC3_MKDIR(MKDIR3args) = 9;
SYMLINK3res
NFSPROC3_SYMLINK(SYMLINK3args) = 10;
MKNOD3res
NFSPROC3_MKNOD(MKNOD3args) = 11;
REMOVE3res
NFSPROC3_REMOVE(REMOVE3args) = 12;
RMDIR3res
NFSPROC3_RMDIR(RMDIR3args) = 13;
RENAME3res
NFSPROC3_RENAME(RENAME3args) = 14;
LINK3res
NFSPROC3_LINK(LINK3args) = 15;
READDIR3res
NFSPROC3_READDIR(READDIR3args) = 16;
READDIRPLUS3res
NFSPROC3_READDIRPLUS(READDIRPLUS3args) = 17;
FSSTAT3res
NFSPROC3_FSSTAT(FSSTAT3args) = 18;
FSINFO3res
NFSPROC3_FSINFO(FSINFO3args) = 19;
PATHCONF3res
NFSPROC3_PATHCONF(PATHCONF3args) = 20;
COMMIT3res
NFSPROC3_COMMIT(COMMIT3args) = 21;
} = 3;
} = 100003;
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _NIS_H_RPCGEN
#define _NIS_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rpc/xdr.h>
#ifndef __nis_object_h
#define __nis_object_h
#define NIS_MAXSTRINGLEN 255
#define NIS_MAXNAMELEN 1024
#define NIS_MAXATTRNAME 32
#define NIS_MAXATTRVAL 2048
#define NIS_MAXCOLUMNS 64
#define NIS_MAXATTR 16
#define NIS_MAXPATH 1024
#define NIS_MAXREPLICAS 128
#define NIS_MAXLINKS 16
#define NIS_PK_NONE 0
#define NIS_PK_DH 1
#define NIS_PK_RSA 2
#define NIS_PK_KERB 3
#define NIS_PK_DHEXT 4
struct nis_attr {
char *zattr_ndx;
struct {
u_int zattr_val_len;
char *zattr_val_val;
} zattr_val;
};
typedef struct nis_attr nis_attr;
typedef char *nis_name;
enum zotypes {
BOGUS_OBJ = 0,
NO_OBJ = 1,
DIRECTORY_OBJ = 2,
GROUP_OBJ = 3,
TABLE_OBJ = 4,
ENTRY_OBJ = 5,
LINK_OBJ = 6,
PRIVATE_OBJ = 7,
NIS_BOGUS_OBJ = 0,
NIS_NO_OBJ = 1,
NIS_DIRECTORY_OBJ = 2,
NIS_GROUP_OBJ = 3,
NIS_TABLE_OBJ = 4,
NIS_ENTRY_OBJ = 5,
NIS_LINK_OBJ = 6,
NIS_PRIVATE_OBJ = 7
};
typedef enum zotypes zotypes;
enum nstype {
UNKNOWN = 0,
NIS = 1,
SUNYP = 2,
IVY = 3,
DNS = 4,
X500 = 5,
DNANS = 6,
XCHS = 7,
CDS = 8
};
typedef enum nstype nstype;
struct oar_mask {
uint_t oa_rights;
zotypes oa_otype;
};
typedef struct oar_mask oar_mask;
struct endpoint {
char *uaddr;
char *family;
char *proto;
};
typedef struct endpoint endpoint;
struct nis_server {
nis_name name;
struct {
u_int ep_len;
endpoint *ep_val;
} ep;
uint_t key_type;
netobj pkey;
};
typedef struct nis_server nis_server;
struct directory_obj {
nis_name do_name;
nstype do_type;
struct {
u_int do_servers_len;
nis_server *do_servers_val;
} do_servers;
uint32_t do_ttl;
struct {
u_int do_armask_len;
oar_mask *do_armask_val;
} do_armask;
};
typedef struct directory_obj directory_obj;
#define EN_BINARY 1
#define EN_CRYPT 2
#define EN_XDR 4
#define EN_MODIFIED 8
#define EN_ASN1 64
struct entry_col {
uint_t ec_flags;
struct {
u_int ec_value_len;
char *ec_value_val;
} ec_value;
};
typedef struct entry_col entry_col;
struct entry_obj {
char *en_type;
struct {
u_int en_cols_len;
entry_col *en_cols_val;
} en_cols;
};
typedef struct entry_obj entry_obj;
struct group_obj {
uint_t gr_flags;
struct {
u_int gr_members_len;
nis_name *gr_members_val;
} gr_members;
};
typedef struct group_obj group_obj;
struct link_obj {
zotypes li_rtype;
struct {
u_int li_attrs_len;
nis_attr *li_attrs_val;
} li_attrs;
nis_name li_name;
};
typedef struct link_obj link_obj;
#define TA_BINARY 1
#define TA_CRYPT 2
#define TA_XDR 4
#define TA_SEARCHABLE 8
#define TA_CASE 16
#define TA_MODIFIED 32
#define TA_ASN1 64
struct table_col {
char *tc_name;
uint_t tc_flags;
uint_t tc_rights;
};
typedef struct table_col table_col;
struct table_obj {
char *ta_type;
int ta_maxcol;
u_char ta_sep;
struct {
u_int ta_cols_len;
table_col *ta_cols_val;
} ta_cols;
char *ta_path;
};
typedef struct table_obj table_obj;
struct objdata {
zotypes zo_type;
union {
struct directory_obj di_data;
struct group_obj gr_data;
struct table_obj ta_data;
struct entry_obj en_data;
struct link_obj li_data;
struct {
u_int po_data_len;
char *po_data_val;
} po_data;
} objdata_u;
};
typedef struct objdata objdata;
struct nis_oid {
uint32_t ctime;
uint32_t mtime;
};
typedef struct nis_oid nis_oid;
struct nis_object {
nis_oid zo_oid;
nis_name zo_name;
nis_name zo_owner;
nis_name zo_group;
nis_name zo_domain;
uint_t zo_access;
uint32_t zo_ttl;
objdata zo_data;
};
typedef struct nis_object nis_object;
#endif /* if __nis_object_h */
enum log_entry_t {
LOG_NOP = 0,
ADD_NAME = 1,
REM_NAME = 2,
MOD_NAME_OLD = 3,
MOD_NAME_NEW = 4,
ADD_IBASE = 5,
REM_IBASE = 6,
MOD_IBASE = 7,
UPD_STAMP = 8
};
typedef enum log_entry_t log_entry_t;
struct log_entry {
uint32_t le_time;
log_entry_t le_type;
nis_name le_princp;
nis_name le_name;
struct {
u_int le_attrs_len;
nis_attr *le_attrs_val;
} le_attrs;
nis_object le_object;
};
typedef struct log_entry log_entry;
struct nis_tag {
u_int tag_type;
char *tag_val;
};
typedef struct nis_tag nis_tag;
/*
* Structures used for server binding.
*/
struct nis_bound_endpoint {
endpoint ep;
int generation;
int rank;
u_int flags;
int hostnum;
int epnum;
nis_name uaddr;
endpoint cbep;
};
typedef struct nis_bound_endpoint nis_bound_endpoint;
struct nis_bound_directory {
int generation;
int min_rank;
int optimal_rank;
directory_obj dobj;
struct {
u_int BEP_len;
nis_bound_endpoint *BEP_val;
} BEP;
};
typedef struct nis_bound_directory nis_bound_directory;
#define bep_len BEP.BEP_len
#define bep_val BEP.BEP_val
struct nis_active_endpoint {
endpoint ep;
nis_name hostname;
int rank;
int uaddr_generation;
nis_name uaddr;
int cbep_generation;
endpoint cbep;
};
typedef struct nis_active_endpoint nis_active_endpoint;
/* defines for nis_bound_endpoint.flags */
#define NIS_BOUND 0x1
#define NIS_TRANSIENT_ERRORS 0x2
/*
* Generic "hash" datastructures, used by all types of hashed data.
*/
struct nis_hash_data {
nis_name name; /* NIS name of hashed item */
int keychain; /* It's hash key (for pop) */
struct nis_hash_data *next; /* Hash collision pointer */
struct nis_hash_data *prv_item; /* A serial, doubly linked list */
struct nis_hash_data *nxt_item; /* of items in the hash table */
};
typedef struct nis_hash_data NIS_HASH_ITEM;
struct nis_hash_table {
NIS_HASH_ITEM *keys[64]; /* A hash table of items */
NIS_HASH_ITEM *first; /* The first "item" in serial list */
};
typedef struct nis_hash_table NIS_HASH_TABLE;
/* Structure for storing dynamically allocated static data */
struct nis_sdata {
void *buf; /* Memory allocation pointer */
u_int size; /* Buffer size */
};
/* Generic client creating flags */
#define ZMH_VC 1
#define ZMH_DG 2
#define ZMH_AUTH 4
#define ZMH_NOFALLBACK 8
/* Testing Access rights for objects */
#define NIS_READ_ACC 1
#define NIS_MODIFY_ACC 2
#define NIS_CREATE_ACC 4
#define NIS_DESTROY_ACC 8
/* Test macros. a == access rights, m == desired rights. */
#define NIS_WORLD(a, m) (((a) & (m)) != 0)
#define NIS_GROUP(a, m) (((a) & ((m) << 8)) != 0)
#define NIS_OWNER(a, m) (((a) & ((m) << 16)) != 0)
#define NIS_NOBODY(a, m) (((a) & ((m) << 24)) != 0)
/*
* EOL Alert - The following non-prefixed test macros are
* here for backward compatability, and will be not be present
* in future releases - use the NIS_*() macros above.
*/
#define WORLD(a, m) (((a) & (m)) != 0)
#define GROUP(a, m) (((a) & ((m) << 8)) != 0)
#define OWNER(a, m) (((a) & ((m) << 16)) != 0)
#define NOBODY(a, m) (((a) & ((m) << 24)) != 0)
#define OATYPE(d, n) (((d)->do_armask.do_armask_val+n)->oa_otype)
#define OARIGHTS(d, n) (((d)->do_armask.do_armask_val+n)->oa_rights)
#define WORLD_DEFAULT (NIS_READ_ACC)
#define GROUP_DEFAULT (NIS_READ_ACC << 8)
#define OWNER_DEFAULT ((NIS_READ_ACC +\
NIS_MODIFY_ACC +\
NIS_CREATE_ACC +\
NIS_DESTROY_ACC) << 16)
#define DEFAULT_RIGHTS (WORLD_DEFAULT | GROUP_DEFAULT | OWNER_DEFAULT)
/* Result manipulation defines ... */
#define NIS_RES_NUMOBJ(x) ((x)->objects.objects_len)
#define NIS_RES_OBJECT(x) ((x)->objects.objects_val)
#define NIS_RES_COOKIE(x) ((x)->cookie)
#define NIS_RES_STATUS(x) ((x)->status)
/* These defines make getting at the variant part of the object easier. */
#define TA_data zo_data.objdata_u.ta_data
#define EN_data zo_data.objdata_u.en_data
#define DI_data zo_data.objdata_u.di_data
#define LI_data zo_data.objdata_u.li_data
#define GR_data zo_data.objdata_u.gr_data
#define __type_of(o) ((o)->zo_data.zo_type)
/* Declarations for the internal subroutines in nislib.c */
enum name_pos {SAME_NAME, HIGHER_NAME, LOWER_NAME, NOT_SEQUENTIAL, BAD_NAME};
typedef enum name_pos name_pos;
/*
* Defines for getting at column data in entry objects. Because RPCGEN
* generates some rather wordy structures, we create some defines that
* collapse the needed keystrokes to access a particular value using
* these definitions they take an nis_object *, and an int and return
* a u_char * for Value, and an int for length.
*/
#define ENTRY_VAL(obj, col) \
(obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_val
#define ENTRY_LEN(obj, col) \
(obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_len
/* XDR function declarations (normally rpcgen-generated, pre-generated here
* because rpcgen cannot handle %#define line continuations in nis.x) */
extern bool_t xdr_nis_attr(XDR *, nis_attr*);
extern bool_t xdr_nis_name(XDR *, nis_name*);
extern bool_t xdr_zotypes(XDR *, zotypes*);
extern bool_t xdr_nstype(XDR *, nstype*);
extern bool_t xdr_oar_mask(XDR *, oar_mask*);
extern bool_t xdr_endpoint(XDR *, endpoint*);
extern bool_t xdr_nis_server(XDR *, nis_server*);
extern bool_t xdr_directory_obj(XDR *, directory_obj*);
extern bool_t xdr_entry_col(XDR *, entry_col*);
extern bool_t xdr_entry_obj(XDR *, entry_obj*);
extern bool_t xdr_group_obj(XDR *, group_obj*);
extern bool_t xdr_link_obj(XDR *, link_obj*);
extern bool_t xdr_table_col(XDR *, table_col*);
extern bool_t xdr_table_obj(XDR *, table_obj*);
extern bool_t xdr_objdata(XDR *, objdata*);
extern bool_t xdr_nis_oid(XDR *, nis_oid*);
extern bool_t xdr_nis_object(XDR *, nis_object*);
extern bool_t xdr_log_entry_t(XDR *, log_entry_t*);
extern bool_t xdr_log_entry(XDR *, log_entry*);
extern bool_t xdr_nis_tag(XDR *, nis_tag*);
extern bool_t xdr_nis_bound_endpoint(XDR *, nis_bound_endpoint*);
extern bool_t xdr_nis_bound_directory(XDR *, nis_bound_directory*);
extern bool_t xdr_nis_active_endpoint(XDR *, nis_active_endpoint*);
#ifdef __cplusplus
}
#endif
/* Prototypes, and extern declarations for the NIS library functions. */
#include <rpcsvc/nislib.h>
#endif /* __NIS_RPCGEN_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* RPC Language Protocol description file for NIS Plus
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*
* From 4.1 : @(#)nis.x 1.61 Copyright 1989 Sun Microsystems
*/
/* This gets stuffed into the source files. */
#if RPC_HDR
%#include <rpc/xdr.h>
#endif
#if defined(RPC_XDR) || defined(RPC_CLNT) || defined(RPC_SVC)
%#ifndef xdr_uint32_t
%#define xdr_uint32_t xdr_u_int
%#endif
%#ifndef xdr_uint_t
%#define xdr_uint_t xdr_u_int
%#endif
#endif
#if RPC_SVC
%#include "nis_svc.h"
#endif
/* Include the RPC Language description of NIS objects */
#include "nis_object.x"
/*
* These are the type of entries that are stored in the transaction log,
* note that modifications will appear as two entries, for names, they have
* a "OLD" entry followed by a "NEW" entry. For entries in tables, there
* is a remove followed by an add. It is done this way so that we can read
* the log backwards to back out transactions and forwards to propogate
* updated.
*/
enum log_entry_t {
LOG_NOP = 0,
ADD_NAME = 1, /* Name Added to name space */
REM_NAME = 2, /* Name removed from name space */
MOD_NAME_OLD = 3, /* Name was modified in the name space */
MOD_NAME_NEW = 4, /* Name was modified in the name space */
ADD_IBASE = 5, /* Entry added to information base */
REM_IBASE = 6, /* Entry removed from information base */
MOD_IBASE = 7, /* Entry was modified in information base */
UPD_STAMP = 8 /* Update timestamp (used as fenceposts) */
};
/*
* This result is returned from the name service when it is requested to
* dump logged entries from its transaction log. Information base updates
* will have the name of the information base in the le_name field and
* a canonical set of attribute/value pairs to fully specify the entry's
* 'name'.
*/
struct log_entry {
uint32_t le_time; /* Time in seconds */
log_entry_t le_type; /* Type of log entry */
nis_name le_princp; /* Principal making the change */
nis_name le_name; /* Name of table/dir involved */
nis_attr le_attrs<>; /* List of AV pairs. */
nis_object le_object; /* Actual object value */
};
/*
* This structure defines a generic NIS tag list. The taglist contains
* zero or tags, each of which is a type and a value. (u_int).
* These are used to report statistics (see tag definitions below)
* and to set or reset state variables.
*/
struct nis_tag {
u_int tag_type; /* Statistic tag (may vary) */
string tag_val<>; /* Statistic value may also vary */
};
%/*
% * Structures used for server binding.
% */
struct nis_bound_endpoint {
endpoint ep;
int generation;
int rank;
u_int flags;
int hostnum;
int epnum;
nis_name uaddr;
endpoint cbep;
};
typedef struct nis_bound_endpoint nis_bound_endpoint;
struct nis_bound_directory {
int generation;
int min_rank; /* minimum rank of bound endpoints */
int optimal_rank; /* best possible rank of all endpoints */
directory_obj dobj;
nis_bound_endpoint BEP<>;
};
typedef struct nis_bound_directory nis_bound_directory;
%#define bep_len BEP.BEP_len
%#define bep_val BEP.BEP_val
struct nis_active_endpoint {
endpoint ep;
nis_name hostname;
int rank;
int uaddr_generation;
nis_name uaddr;
int cbep_generation;
endpoint cbep;
};
typedef struct nis_active_endpoint nis_active_endpoint;
%/* defines for nis_bound_endpoint.flags */
%#define NIS_BOUND 0x1
%#define NIS_TRANSIENT_ERRORS 0x2
/*
* What's going on here? Well, it's like this. When the service
* is being compiled it wants to have the service definition specific
* info included, and when the client is being compiled it wants that
* info. This includes the appropriate file which was generated by
* make in the protocols directory (probably /usr/include/rpcsvc).
*/
#ifdef RPC_SVC
%#include "nis_svc.h"
#endif
#ifdef RPC_CLNT
%#include "nis_clnt.h"
#endif
/*
* Included below are the defines that become part of nis.h,
* they are technically not part of the protocol, but do define
* key aspects of the implementation and are therefore useful
* in building a conforming server or client.
*/
#if RPC_HDR
%/*
% * Generic "hash" datastructures, used by all types of hashed data.
% */
%struct nis_hash_data {
% nis_name name; /* NIS name of hashed item */
% int keychain; /* It's hash key (for pop) */
% struct nis_hash_data *next; /* Hash collision pointer */
% struct nis_hash_data *prv_item; /* A serial, doubly linked list */
% struct nis_hash_data *nxt_item; /* of items in the hash table */
%};
%typedef struct nis_hash_data NIS_HASH_ITEM;
%
%struct nis_hash_table {
% NIS_HASH_ITEM *keys[64]; /* A hash table of items */
% NIS_HASH_ITEM *first; /* The first "item" in serial list */
%};
%typedef struct nis_hash_table NIS_HASH_TABLE;
%
%/* Structure for storing dynamically allocated static data */
%struct nis_sdata {
% void *buf; /* Memory allocation pointer */
% u_int size; /* Buffer size */
%};
%
%/* Generic client creating flags */
%#define ZMH_VC 1
%#define ZMH_DG 2
%#define ZMH_AUTH 4
%#define ZMH_NOFALLBACK 8
%
%/* Testing Access rights for objects */
%
%#define NIS_READ_ACC 1
%#define NIS_MODIFY_ACC 2
%#define NIS_CREATE_ACC 4
%#define NIS_DESTROY_ACC 8
%/* Test macros. a == access rights, m == desired rights. */
%#define NIS_WORLD(a, m) (((a) & (m)) != 0)
%#define NIS_GROUP(a, m) (((a) & ((m) << 8)) != 0)
%#define NIS_OWNER(a, m) (((a) & ((m) << 16)) != 0)
%#define NIS_NOBODY(a, m) (((a) & ((m) << 24)) != 0)
%/*
% * EOL Alert - The following non-prefixed test macros are
% * here for backward compatability, and will be not be present
% * in future releases - use the NIS_*() macros above.
% */
%#define WORLD(a, m) (((a) & (m)) != 0)
%#define GROUP(a, m) (((a) & ((m) << 8)) != 0)
%#define OWNER(a, m) (((a) & ((m) << 16)) != 0)
%#define NOBODY(a, m) (((a) & ((m) << 24)) != 0)
%
%#define OATYPE(d, n) (((d)->do_armask.do_armask_val+n)->oa_otype)
%#define OARIGHTS(d, n) (((d)->do_armask.do_armask_val+n)->oa_rights)
%#define WORLD_DEFAULT (NIS_READ_ACC)
%#define GROUP_DEFAULT (NIS_READ_ACC << 8)
%#define OWNER_DEFAULT ((NIS_READ_ACC +\
% NIS_MODIFY_ACC +\
% NIS_CREATE_ACC +\
% NIS_DESTROY_ACC) << 16)
%#define DEFAULT_RIGHTS (WORLD_DEFAULT | GROUP_DEFAULT | OWNER_DEFAULT)
%
%/* Result manipulation defines ... */
%#define NIS_RES_NUMOBJ(x) ((x)->objects.objects_len)
%#define NIS_RES_OBJECT(x) ((x)->objects.objects_val)
%#define NIS_RES_COOKIE(x) ((x)->cookie)
%#define NIS_RES_STATUS(x) ((x)->status)
%
%/* These defines make getting at the variant part of the object easier. */
%#define TA_data zo_data.objdata_u.ta_data
%#define EN_data zo_data.objdata_u.en_data
%#define DI_data zo_data.objdata_u.di_data
%#define LI_data zo_data.objdata_u.li_data
%#define GR_data zo_data.objdata_u.gr_data
%
%#define __type_of(o) ((o)->zo_data.zo_type)
%
%/* Declarations for the internal subroutines in nislib.c */
%enum name_pos {SAME_NAME, HIGHER_NAME, LOWER_NAME, NOT_SEQUENTIAL, BAD_NAME};
%typedef enum name_pos name_pos;
%
%/*
% * Defines for getting at column data in entry objects. Because RPCGEN
% * generates some rather wordy structures, we create some defines that
% * collapse the needed keystrokes to access a particular value using
% * these definitions they take an nis_object *, and an int and return
% * a u_char * for Value, and an int for length.
% */
%#define ENTRY_VAL(obj, col) \
% (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_val
%#define ENTRY_LEN(obj, col) \
% (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_len
%
%
%
%#ifdef __cplusplus
%}
%#endif
%
%/* Prototypes, and extern declarations for the NIS library functions. */
%#include <rpcsvc/nislib.h>
%#endif /* __NIS_RPCGEN_H */
%/* EDIT_START */
%
%/*
% * nis_3.h
% *
% * This file contains definitions that are only of interest to the actual
% * service daemon and client stubs. Normal users of NIS will not include
% * this file.
% *
% * NOTE : This include file is automatically created by a combination
% * of rpcgen and sed. DO NOT EDIT IT, change the nis.x file instead
% * and then remake this file.
% */
%#ifndef __nis_3_h
%#define __nis_3_h
%#ifdef __cplusplus
%extern "C" {
%#endif
#endif
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright (c) 1991,1997-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
/*
* This header file defines the interface to the NIS database. All
* implementations of the database must export at least these routines.
* They must also follow the conventions set herein. See the implementors
* guide for specific semantics that are required.
*/
#ifndef _RPCSVC_NIS_DB_H
#define _RPCSVC_NIS_DB_H
#include <rpc/rpc.h>
#include <rpcsvc/nis.h>
#ifdef __cplusplus
extern "C" {
#endif
enum db_status {
DB_SUCCESS = 0,
DB_NOTFOUND = 1,
DB_NOTUNIQUE = 2,
DB_BADTABLE = 3,
DB_BADQUERY = 4,
DB_BADOBJECT = 5,
DB_MEMORY_LIMIT = 6,
DB_STORAGE_LIMIT = 7,
DB_INTERNAL_ERROR = 8
};
typedef enum db_status db_status;
enum db_action {
DB_LOOKUP = 0,
DB_REMOVE = 1,
DB_ADD = 2,
DB_FIRST = 3,
DB_NEXT = 4,
DB_ALL = 5,
DB_RESET_NEXT = 6
};
typedef enum db_action db_action;
typedef entry_obj *entry_object_p;
typedef struct {
uint_t db_next_desc_len;
char *db_next_desc_val;
} db_next_desc;
struct db_result {
db_status status;
db_next_desc nextinfo;
struct {
uint_t objects_len;
entry_object_p *objects_val;
} objects;
long ticks;
};
typedef struct db_result db_result;
/*
* Prototypes for the database functions.
*/
extern bool_t db_initialize(char *);
extern db_status db_create_table(char *, table_obj *);
extern db_status db_destroy_table(char *);
extern db_result *db_first_entry(char *, int, nis_attr *);
extern db_result *db_next_entry(char *, db_next_desc *);
extern db_result *db_reset_next_entry(char *, db_next_desc *);
extern db_result *db_list_entries(char *, int, nis_attr *);
extern db_result *db_add_entry(char *, int, nis_attr *, entry_obj *);
extern db_result *db_remove_entry(char *, int, nis_attr *);
extern db_status db_checkpoint(char *);
extern db_status db_standby(char *);
extern db_status db_table_exists(char *);
extern db_status db_unload_table(char *);
extern void db_free_result(db_result *);
#ifdef __cplusplus
}
#endif
#endif /* _RPCSVC_NIS_DB_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* nis_object.x
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#if RPC_HDR
%
%#ifndef __nis_object_h
%#define __nis_object_h
%
#endif
/*
* This file defines the format for a NIS object in RPC language.
* It is included by the main .x file and the database access protocol
* file. It is common because both of them need to deal with the same
* type of object. Generating the actual code though is a bit messy because
* the nis.x file and the nis_dba.x file will generate xdr routines to
* encode/decode objects when only one set is needed. Such is life when
* one is using rpcgen.
*
* Note, the protocol doesn't specify any limits on such things as
* maximum name length, number of attributes, etc. These are enforced
* by the database backend. When you hit them you will no. Also see
* the db_getlimits() function for fetching the limit values.
*
*/
#if defined(RPC_XDR) || defined(RPC_SVC) || defined(RPC_CLNT)
%#ifndef xdr_uint32_t
%#define xdr_uint32_t xdr_u_int
%#endif
%#ifndef xdr_uint_t
%#define xdr_uint_t xdr_u_int
%#endif
#endif
/* Some manifest constants, chosen to maximize flexibility without
* plugging the wire full of data.
*/
const NIS_MAXSTRINGLEN = 255;
const NIS_MAXNAMELEN = 1024;
const NIS_MAXATTRNAME = 32;
const NIS_MAXATTRVAL = 2048;
const NIS_MAXCOLUMNS = 64;
const NIS_MAXATTR = 16;
const NIS_MAXPATH = 1024;
const NIS_MAXREPLICAS = 128;
const NIS_MAXLINKS = 16;
const NIS_PK_NONE = 0; /* no public key (unix/sys auth) */
const NIS_PK_DH = 1; /* Public key is Diffie-Hellman type */
const NIS_PK_RSA = 2; /* Public key if RSA type */
const NIS_PK_KERB = 3; /* Use kerberos style authentication */
const NIS_PK_DHEXT = 4; /* Extended Diffie-Hellman for RPC-GSS */
/*
* The fundamental name type of NIS. The name may consist of two parts,
* the first being the fully qualified name, and the second being an
* optional set of attribute/value pairs.
*/
struct nis_attr {
string zattr_ndx<>; /* name of the index */
opaque zattr_val<>; /* Value for the attribute. */
};
typedef string nis_name<>; /* The NIS name itself. */
/* NIS object types are defined by the following enumeration. The numbers
* they use are based on the following scheme :
* 0 - 1023 are reserved for Sun,
* 1024 - 2047 are defined to be private to a particular tree.
* 2048 - 4095 are defined to be user defined.
* 4096 - ... are reserved for future use.
*
* EOL Alert - The non-prefixed names are present for backward
* compatability only, and will not exist in future releases. Use
* the NIS_* names for future compatability.
*/
enum zotypes {
BOGUS_OBJ = 0, /* Uninitialized object structure */
NO_OBJ = 1, /* NULL object (no data) */
DIRECTORY_OBJ = 2, /* Directory object describing domain */
GROUP_OBJ = 3, /* Group object (a list of names) */
TABLE_OBJ = 4, /* Table object (a database schema) */
ENTRY_OBJ = 5, /* Entry object (a database record) */
LINK_OBJ = 6, /* A name link. */
PRIVATE_OBJ = 7, /* Private object (all opaque data) */
NIS_BOGUS_OBJ = 0, /* Uninitialized object structure */
NIS_NO_OBJ = 1, /* NULL object (no data) */
NIS_DIRECTORY_OBJ = 2, /* Directory object describing domain */
NIS_GROUP_OBJ = 3, /* Group object (a list of names) */
NIS_TABLE_OBJ = 4, /* Table object (a database schema) */
NIS_ENTRY_OBJ = 5, /* Entry object (a database record) */
NIS_LINK_OBJ = 6, /* A name link. */
NIS_PRIVATE_OBJ = 7 /* Private object (all opaque data) */
};
/*
* The types of Name services NIS knows about. They are enumerated
* here. The Binder code will use this type to determine if it has
* a set of library routines that will access the indicated name service.
*/
enum nstype {
UNKNOWN = 0,
NIS = 1, /* Nis Plus Service */
SUNYP = 2, /* Old NIS Service */
IVY = 3, /* Nis Plus Plus Service */
DNS = 4, /* Domain Name Service */
X500 = 5, /* ISO/CCCIT X.500 Service */
DNANS = 6, /* Digital DECNet Name Service */
XCHS = 7, /* Xerox ClearingHouse Service */
CDS= 8
};
/*
* DIRECTORY - The name service object. These objects identify other name
* servers that are serving some portion of the name space. Each has a
* type associated with it. The resolver library will note whether or not
* is has the needed routines to access that type of service.
* The oarmask structure defines an access rights mask on a per object
* type basis for the name spaces. The only bits currently used are
* create and destroy. By enabling or disabling these access rights for
* a specific object type for a one of the accessor entities (owner,
* group, world) the administrator can control what types of objects
* may be freely added to the name space and which require the
* administrator's approval.
*/
struct oar_mask {
uint_t oa_rights; /* Access rights mask */
zotypes oa_otype; /* Object type */
};
struct endpoint {
string uaddr<>;
string family<>; /* Transport family (INET, OSI, etc) */
string proto<>; /* Protocol (TCP, UDP, CLNP, etc) */
};
/*
* Note: pkey is a netobj which is limited to 1024 bytes which limits the
* keysize to 8192 bits. This is consider to be a reasonable limit for
* the expected lifetime of this service.
*/
struct nis_server {
nis_name name; /* Principal name of the server */
endpoint ep<>; /* Universal addr(s) for server */
uint_t key_type; /* Public key type */
netobj pkey; /* server's public key */
};
struct directory_obj {
nis_name do_name; /* Name of the directory being served */
nstype do_type; /* one of NIS, DNS, IVY, YP, or X.500 */
nis_server do_servers<>; /* <0> == Primary name server */
uint32_t do_ttl; /* Time To Live (for caches) */
oar_mask do_armask<>; /* Create/Destroy rights by object type */
};
/*
* ENTRY - This is one row of data from an information base.
* The type value is used by the client library to convert the entry to
* it's internal structure representation. The Table name is a back pointer
* to the table where the entry is stored. This allows the client library
* to determine where to send a request if the client wishes to change this
* entry but got to it through a LINK rather than directly.
* If the entry is a "standalone" entry then this field is void.
*/
const EN_BINARY = 1; /* Indicates value is binary data */
const EN_CRYPT = 2; /* Indicates the value is encrypted */
const EN_XDR = 4; /* Indicates the value is XDR encoded */
const EN_MODIFIED = 8; /* Indicates entry is modified. */
const EN_ASN1 = 64; /* Means contents use ASN.1 encoding */
struct entry_col {
uint_t ec_flags; /* Flags for this value */
opaque ec_value<>; /* It's textual value */
};
struct entry_obj {
string en_type<>; /* Type of entry such as "passwd" */
entry_col en_cols<>; /* Value for the entry */
};
/*
* GROUP - The group object contains a list of NIS principal names. Groups
* are used to authorize principals. Each object has a set of access rights
* for members of its group. Principal names in groups are in the form
* name.directory and recursive groups are expressed as @groupname.directory
*/
struct group_obj {
uint_t gr_flags; /* Flags controlling group */
nis_name gr_members<>; /* List of names in group */
};
/*
* LINK - This is the LINK object. It is quite similar to a symbolic link
* in the UNIX filesystem. The attributes in the main object structure are
* relative to the LINK data and not what it points to (like the file system)
* "modify" privleges here indicate the right to modify what the link points
* at and not to modify that actual object pointed to by the link.
*/
struct link_obj {
zotypes li_rtype; /* Real type of the object */
nis_attr li_attrs<>; /* Attribute/Values for tables */
nis_name li_name; /* The object's real NIS name */
};
/*
* TABLE - This is the table object. It implements a simple
* data base that applications and use for configuration or
* administration purposes. The role of the table is to group together
* a set of related entries. Tables are the simple database component
* of NIS. Like many databases, tables are logically divided into columns
* and rows. The columns are labeled with indexes and each ENTRY makes
* up a row. Rows may be addressed within the table by selecting one
* or more indexes, and values for those indexes. Each row which has
* a value for the given index that matches the desired value is returned.
* Within the definition of each column there is a flags variable, this
* variable contains flags which determine whether or not the column is
* searchable, contains binary data, and access rights for the entry objects
* column value.
*/
const TA_BINARY = 1; /* Means table data is binary */
const TA_CRYPT = 2; /* Means value should be encrypted */
const TA_XDR = 4; /* Means value is XDR encoded */
const TA_SEARCHABLE = 8; /* Means this column is searchable */
const TA_CASE = 16; /* Means this column is Case Sensitive */
const TA_MODIFIED = 32; /* Means this columns attrs are modified*/
const TA_ASN1 = 64; /* Means contents use ASN.1 encoding */
struct table_col {
string tc_name<64>; /* Column Name */
uint_t tc_flags; /* control flags */
uint_t tc_rights; /* Access rights mask */
};
struct table_obj {
string ta_type<64>; /* Table type such as "passwd" */
int ta_maxcol; /* Total number of columns */
u_char ta_sep; /* Separator character */
table_col ta_cols<>; /* The number of table indexes */
string ta_path<>; /* A search path for this table */
};
/*
* This union joins together all of the currently known objects.
*/
union objdata switch (zotypes zo_type) {
case NIS_DIRECTORY_OBJ :
struct directory_obj di_data;
case NIS_GROUP_OBJ :
struct group_obj gr_data;
case NIS_TABLE_OBJ :
struct table_obj ta_data;
case NIS_ENTRY_OBJ:
struct entry_obj en_data;
case NIS_LINK_OBJ :
struct link_obj li_data;
case NIS_PRIVATE_OBJ :
opaque po_data<>;
case NIS_NO_OBJ :
void;
case NIS_BOGUS_OBJ :
void;
default :
void;
};
/*
* This is the basic NIS object data type. It consists of a generic part
* which all objects contain, and a specialized part which varies depending
* on the type of the object. All of the specialized sections have been
* described above. You might have wondered why they all start with an
* integer size, followed by the useful data. The answer is, when the
* server doesn't recognize the type returned it treats it as opaque data.
* And the definition for opaque data is {int size; char *data;}. In this
* way, servers and utility routines that do not understand a given type
* may still pass it around. One has to be careful in setting
* this variable accurately, it must take into account such things as
* XDR padding of structures etc. The best way to set it is to note one's
* position in the XDR encoding stream, encode the structure, look at the
* new position and calculate the size.
*/
struct nis_oid {
uint32_t ctime; /* Time of objects creation */
uint32_t mtime; /* Time of objects modification */
};
struct nis_object {
nis_oid zo_oid; /* object identity verifier. */
nis_name zo_name; /* The NIS name for this object */
nis_name zo_owner; /* NIS name of object owner. */
nis_name zo_group; /* NIS name of access group. */
nis_name zo_domain; /* The administrator for the object */
uint_t zo_access; /* Access rights (owner, group, world) */
uint32_t zo_ttl; /* Object's time to live in seconds. */
objdata zo_data; /* Data structure for this type */
};
#if RPC_HDR
%
%#endif /* if __nis_object_h */
%
#endif
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* nislib.h
*
* This file contains the interfaces that are visible in the SunOS 5.x
* implementation of NIS Plus.
*/
#ifndef _RPCSVC_NISLIB_H
#define _RPCSVC_NISLIB_H
#ifdef __cplusplus
extern "C" {
#endif
extern name_pos nis_dir_cmp(nis_name, nis_name);
extern nis_name nis_domain_of(nis_name);
extern nis_name nis_leaf_of(nis_name);
extern nis_name nis_leaf_of_r(const nis_name, char *, size_t);
extern nis_name nis_name_of(nis_name);
extern nis_name nis_local_group(void);
extern nis_name nis_local_directory(void);
extern nis_name nis_local_host(void);
extern void nis_destroy_object(nis_object *);
extern nis_object *nis_clone_object(nis_object *, nis_object *);
extern nis_object *nis_read_obj(char *);
extern int nis_write_obj(char *, nis_object *);
extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t);
extern nis_name __nis_rpc_domain(void);
CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *,
int, int, int, int, int);
#ifdef __cplusplus
}
#endif
#endif /* _RPCSVC_NISLIB_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1994, by Sun Microsystems, Inc.
*/
#ifndef _RPCSVC_RPC_SZTYPES_H
#define _RPCSVC_RPC_SZTYPES_H
#include <rpc/rpc_sztypes.h>
#endif /* _RPCSVC_RPC_SZTYPES_H */
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RQUOTA_H_RPCGEN
#define _RQUOTA_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#define RQ_PATHLEN 1024
struct getquota_args {
char *gqa_pathp;
int32_t gqa_uid;
};
typedef struct getquota_args getquota_args;
struct rquota {
int32_t rq_bsize;
bool_t rq_active;
uint32_t rq_bhardlimit;
uint32_t rq_bsoftlimit;
uint32_t rq_curblocks;
uint32_t rq_fhardlimit;
uint32_t rq_fsoftlimit;
uint32_t rq_curfiles;
uint32_t rq_btimeleft;
uint32_t rq_ftimeleft;
};
typedef struct rquota rquota;
enum gqr_status {
Q_OK = 1,
Q_NOQUOTA = 2,
Q_EPERM = 3
};
typedef enum gqr_status gqr_status;
struct getquota_rslt {
gqr_status status;
union {
rquota gqr_rquota;
} getquota_rslt_u;
};
typedef struct getquota_rslt getquota_rslt;
#define RQUOTAPROG 100011
#define RQUOTAVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define RQUOTAPROC_GETQUOTA 1
extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
#define RQUOTAPROC_GETACTIVEQUOTA 2
extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define RQUOTAPROC_GETQUOTA 1
extern getquota_rslt * rquotaproc_getquota_1();
extern getquota_rslt * rquotaproc_getquota_1_svc();
#define RQUOTAPROC_GETACTIVEQUOTA 2
extern getquota_rslt * rquotaproc_getactivequota_1();
extern getquota_rslt * rquotaproc_getactivequota_1_svc();
extern int rquotaprog_1_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_getquota_args(XDR *, getquota_args*);
extern bool_t xdr_rquota(XDR *, rquota*);
extern bool_t xdr_gqr_status(XDR *, gqr_status*);
extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
#else /* K&R C */
extern bool_t xdr_getquota_args();
extern bool_t xdr_rquota();
extern bool_t xdr_gqr_status();
extern bool_t xdr_getquota_rslt();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RQUOTA_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
* Copyright 1987 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Remote quota protocol
* Requires unix authentication
*/
const RQ_PATHLEN = 1024;
struct getquota_args {
string gqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
int32_t gqa_uid; /* inquire about quota for uid */
};
/*
* remote quota structure
*/
struct rquota {
int32_t rq_bsize; /* block size for block counts */
bool rq_active; /* indicates whether quota is active */
uint32_t rq_bhardlimit; /* absolute limit on disk blks alloc */
uint32_t rq_bsoftlimit; /* preferred limit on disk blks */
uint32_t rq_curblocks; /* current block count */
uint32_t rq_fhardlimit; /* absolute limit on allocated files */
uint32_t rq_fsoftlimit; /* preferred file limit */
uint32_t rq_curfiles; /* current # allocated files */
uint32_t rq_btimeleft; /* time left for excessive disk use */
uint32_t rq_ftimeleft; /* time left for excessive files */
};
enum gqr_status {
Q_OK = 1, /* quota returned */
Q_NOQUOTA = 2, /* noquota for uid */
Q_EPERM = 3 /* no permission to access quota */
};
union getquota_rslt switch (gqr_status status) {
case Q_OK:
rquota gqr_rquota; /* valid if status == Q_OK */
case Q_NOQUOTA:
void;
case Q_EPERM:
void;
};
program RQUOTAPROG {
version RQUOTAVERS {
/*
* Get all quotas
*/
getquota_rslt
RQUOTAPROC_GETQUOTA(getquota_args) = 1;
/*
* Get active quotas only
*/
getquota_rslt
RQUOTAPROC_GETACTIVEQUOTA(getquota_args) = 2;
} = 1;
} = 100011;
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RSTAT_H_RPCGEN
#define _RSTAT_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Copyright (c) 1985, 1990, 1991 by Sun Microsystems, Inc.
*/
/* from rstat.x */
/*
* Scale factor for scaled integers used to count load averages.
*/
#ifndef FSCALE
#define FSHIFT 8 /* bits to right of fixed binary point */
#define FSCALE (1<<FSHIFT)
#endif /* ndef FSCALE */
#ifndef DST_NONE
#include <sys/time.h> /* The time struct defined below is */
#endif /* meant to match struct timeval. */
#define RSTAT_CPUSTATES 4
#define RSTAT_DK_NDRIVE 4
#define RSTAT_CPU_USER 0
#define RSTAT_CPU_NICE 1
#define RSTAT_CPU_SYS 2
#define RSTAT_CPU_IDLE 3
struct rstat_timeval {
int tv_sec;
int tv_usec;
};
typedef struct rstat_timeval rstat_timeval;
struct statsvar {
struct {
u_int cp_time_len;
int *cp_time_val;
} cp_time;
struct {
u_int dk_xfer_len;
int *dk_xfer_val;
} dk_xfer;
u_int v_pgpgin;
u_int v_pgpgout;
u_int v_pswpin;
u_int v_pswpout;
u_int v_intr;
int if_ipackets;
int if_ierrors;
int if_opackets;
int if_oerrors;
int if_collisions;
u_int v_swtch;
int avenrun[3];
rstat_timeval boottime;
rstat_timeval curtime;
};
typedef struct statsvar statsvar;
struct statstime {
int cp_time[RSTAT_CPUSTATES];
int dk_xfer[RSTAT_DK_NDRIVE];
u_int v_pgpgin;
u_int v_pgpgout;
u_int v_pswpin;
u_int v_pswpout;
u_int v_intr;
int if_ipackets;
int if_ierrors;
int if_oerrors;
int if_collisions;
u_int v_swtch;
int avenrun[3];
rstat_timeval boottime;
rstat_timeval curtime;
int if_opackets;
};
typedef struct statstime statstime;
#if 1 || defined(__cplusplus)
enum clnt_stat rstat(char *, struct statstime *);
int havedisk(char *);
#else
enum clnt_stat rstat();
int havedisk();
#endif
#define RSTATPROG 100001
#define RSTATVERS_VAR 4
#if defined(__STDC__) || defined(__cplusplus)
#define RSTATPROC_STATS 1
extern statsvar * rstatproc_stats_4(void *, CLIENT *);
extern statsvar * rstatproc_stats_4_svc(void *, struct svc_req *);
#define RSTATPROC_HAVEDISK 2
extern u_int * rstatproc_havedisk_4(void *, CLIENT *);
extern u_int * rstatproc_havedisk_4_svc(void *, struct svc_req *);
extern int rstatprog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define RSTATPROC_STATS 1
extern statsvar * rstatproc_stats_4();
extern statsvar * rstatproc_stats_4_svc();
#define RSTATPROC_HAVEDISK 2
extern u_int * rstatproc_havedisk_4();
extern u_int * rstatproc_havedisk_4_svc();
extern int rstatprog_4_freeresult();
#endif /* K&R C */
#define RSTATVERS_TIME 3
#if defined(__STDC__) || defined(__cplusplus)
extern statstime * rstatproc_stats_3(void *, CLIENT *);
extern statstime * rstatproc_stats_3_svc(void *, struct svc_req *);
extern u_int * rstatproc_havedisk_3(void *, CLIENT *);
extern u_int * rstatproc_havedisk_3_svc(void *, struct svc_req *);
extern int rstatprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
extern statstime * rstatproc_stats_3();
extern statstime * rstatproc_stats_3_svc();
extern u_int * rstatproc_havedisk_3();
extern u_int * rstatproc_havedisk_3_svc();
extern int rstatprog_3_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_rstat_timeval(XDR *, rstat_timeval*);
extern bool_t xdr_statsvar(XDR *, statsvar*);
extern bool_t xdr_statstime(XDR *, statstime*);
#else /* K&R C */
extern bool_t xdr_rstat_timeval();
extern bool_t xdr_statsvar();
extern bool_t xdr_statstime();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RSTAT_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
%/*
% * Copyright (c) 1985, 1990, 1991 by Sun Microsystems, Inc.
% */
%/* from rstat.x */
/*
* Gather statistics on remote machines
*/
#ifdef RPC_HDR
%
%/*
% * Scale factor for scaled integers used to count load averages.
% */
%#ifndef FSCALE
%#define FSHIFT 8 /* bits to right of fixed binary point */
%#define FSCALE (1<<FSHIFT)
%#endif /* ndef FSCALE */
%
%#ifndef DST_NONE
%#include <sys/time.h> /* The time struct defined below is */
%#endif /* meant to match struct timeval. */
%
%
%
%
%
%
#elif RPC_SVC
%
%/*
% * Server side stub routines for the rstat daemon
% */
%
#elif RPC_CLNT
%
%/*
% * Client side stub routines for the rstat daemon
% */
%
#elif RPC_XDR
%/*
% * XDR routines for the rstat daemon, rup and perfmeter.
% */
%
%/*
% * xdr_timeval was used in previous releases.
% */
%
%bool_t
%#ifdef __STDC__
%xdr_timeval(XDR *xdrs, struct timeval *tvp)
%#else /* K&R C */
%xdr_timeval(xdrs, tvp)
% XDR *xdrs;
% struct timeval *tvp;
%#endif /* K&R C */
%{
% return (xdr_rstat_timeval(xdrs, (rstat_timeval *)tvp));
%}
%
#endif
const RSTAT_CPUSTATES = 4;
const RSTAT_DK_NDRIVE = 4;
/*
* the cpu stat values
*/
const RSTAT_CPU_USER = 0;
const RSTAT_CPU_NICE = 1;
const RSTAT_CPU_SYS = 2;
const RSTAT_CPU_IDLE = 3;
/*
* GMT since 0:00, January 1, 1970
*/
struct rstat_timeval {
int tv_sec; /* seconds */
int tv_usec; /* and microseconds */
};
struct statsvar { /* RSTATVERS_VAR */
int cp_time<>; /* variable number of CPU states */
int dk_xfer<>; /* variable number of disks */
unsigned v_pgpgin; /* these are cumulative sum */
unsigned v_pgpgout;
unsigned v_pswpin;
unsigned v_pswpout;
unsigned v_intr;
int if_ipackets;
int if_ierrors;
int if_opackets;
int if_oerrors;
int if_collisions;
unsigned v_swtch;
int avenrun[3];
rstat_timeval boottime;
rstat_timeval curtime;
};
struct statstime { /* RSTATVERS_TIME */
int cp_time[RSTAT_CPUSTATES];
int dk_xfer[RSTAT_DK_NDRIVE];
unsigned int v_pgpgin; /* these are cumulative sum */
unsigned int v_pgpgout;
unsigned int v_pswpin;
unsigned int v_pswpout;
unsigned int v_intr;
int if_ipackets;
int if_ierrors;
int if_oerrors;
int if_collisions;
unsigned int v_swtch;
int avenrun[3];
rstat_timeval boottime;
rstat_timeval curtime;
int if_opackets;
};
program RSTATPROG {
/*
* Version 4 allows for variable number of disk and RSTAT_CPU states.
*/
version RSTATVERS_VAR {
statsvar
RSTATPROC_STATS (void) = 1;
unsigned int
RSTATPROC_HAVEDISK (void) = 2;
} = 4;
/*
* Newest version includes current time and context switching info
*/
version RSTATVERS_TIME {
statstime
RSTATPROC_STATS(void) = 1;
unsigned int
RSTATPROC_HAVEDISK(void) = 2;
} = 3;
} = 100001;
#ifdef RPC_HDR
%
%#if defined(__STDC__) || defined(__cplusplus)
%enum clnt_stat rstat(char *, struct statstime *);
%int havedisk(char *);
%#else
%enum clnt_stat rstat();
%int havedisk();
%#endif
%
#endif
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RUSERS_H_RPCGEN
#define _RUSERS_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Find out about remote users
*/
#define RUSERS_MAXUSERLEN 32
#define RUSERS_MAXLINELEN 32
#define RUSERS_MAXHOSTLEN 257
struct rusers_utmp {
char *ut_user;
char *ut_line;
char *ut_host;
int ut_type;
int ut_time;
u_int ut_idle;
};
typedef struct rusers_utmp rusers_utmp;
typedef struct {
u_int utmp_array_len;
rusers_utmp *utmp_array_val;
} utmp_array;
/*
* Values for ut_type field above.
*/
#define RUSERS_EMPTY 0
#define RUSERS_RUN_LVL 1
#define RUSERS_BOOT_TIME 2
#define RUSERS_OLD_TIME 3
#define RUSERS_NEW_TIME 4
#define RUSERS_INIT_PROCESS 5
#define RUSERS_LOGIN_PROCESS 6
#define RUSERS_USER_PROCESS 7
#define RUSERS_DEAD_PROCESS 8
#define RUSERS_ACCOUNTING 9
/*
* The following structures are used by version 2 of the rusersd protocol.
* They were not developed with rpcgen, so they do not appear as RPCL.
*/
#define RUSERSVERS_IDLE 2
#define RUSERSVERS 3 /* current version */
#define MAXUSERS 100
/*
* This is the structure used in version 2 of the rusersd RPC service.
* It corresponds to the utmp structure for BSD systems.
*/
struct ru_utmp {
char ut_line[8]; /* tty name */
char ut_name[8]; /* user id */
char ut_host[16]; /* host name, if remote */
time_t ut_time; /* time on */
};
struct utmpidle {
struct ru_utmp ui_utmp;
unsigned ui_idle;
};
struct utmpidlearr {
struct utmpidle **uia_arr;
int uia_cnt;
};
int xdr_utmpidlearr();
#if 1 || defined(__cplusplus)
enum clnt_stat rusers(char *host, struct utmpidlearr *up);
int rnusers(char *host);
#else
enum clnt_stat rusers();
int rnusers();
#endif
#define RUSERSPROG 100002
#define RUSERSVERS_3 3
#if defined(__STDC__) || defined(__cplusplus)
#define RUSERSPROC_NUM 1
extern int * rusersproc_num_3(void *, CLIENT *);
extern int * rusersproc_num_3_svc(void *, struct svc_req *);
#define RUSERSPROC_NAMES 2
extern utmp_array * rusersproc_names_3(void *, CLIENT *);
extern utmp_array * rusersproc_names_3_svc(void *, struct svc_req *);
#define RUSERSPROC_ALLNAMES 3
extern utmp_array * rusersproc_allnames_3(void *, CLIENT *);
extern utmp_array * rusersproc_allnames_3_svc(void *, struct svc_req *);
extern int rusersprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define RUSERSPROC_NUM 1
extern int * rusersproc_num_3();
extern int * rusersproc_num_3_svc();
#define RUSERSPROC_NAMES 2
extern utmp_array * rusersproc_names_3();
extern utmp_array * rusersproc_names_3_svc();
#define RUSERSPROC_ALLNAMES 3
extern utmp_array * rusersproc_allnames_3();
extern utmp_array * rusersproc_allnames_3_svc();
extern int rusersprog_3_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_rusers_utmp(XDR *, rusers_utmp*);
extern bool_t xdr_utmp_array(XDR *, utmp_array*);
#else /* K&R C */
extern bool_t xdr_rusers_utmp();
extern bool_t xdr_utmp_array();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RUSERS_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1991 Sun Microsystems, Inc.
*/
%/*
% * Find out about remote users
% */
const RUSERS_MAXUSERLEN = 32;
const RUSERS_MAXLINELEN = 32;
const RUSERS_MAXHOSTLEN = 257;
struct rusers_utmp {
string ut_user<RUSERS_MAXUSERLEN>; /* aka ut_name */
string ut_line<RUSERS_MAXLINELEN>; /* device */
string ut_host<RUSERS_MAXHOSTLEN>; /* host user logged on from */
int ut_type; /* type of entry */
int ut_time; /* time entry was made */
unsigned int ut_idle; /* minutes idle */
};
typedef rusers_utmp utmp_array<>;
#ifdef RPC_HDR
%
%/*
% * Values for ut_type field above.
% */
#endif
const RUSERS_EMPTY = 0;
const RUSERS_RUN_LVL = 1;
const RUSERS_BOOT_TIME = 2;
const RUSERS_OLD_TIME = 3;
const RUSERS_NEW_TIME = 4;
const RUSERS_INIT_PROCESS = 5;
const RUSERS_LOGIN_PROCESS = 6;
const RUSERS_USER_PROCESS = 7;
const RUSERS_DEAD_PROCESS = 8;
const RUSERS_ACCOUNTING = 9;
program RUSERSPROG {
version RUSERSVERS_3 {
int
RUSERSPROC_NUM(void) = 1;
utmp_array
RUSERSPROC_NAMES(void) = 2;
utmp_array
RUSERSPROC_ALLNAMES(void) = 3;
} = 3;
} = 100002;
#ifdef RPC_HDR
%
%
%
%/*
% * The following structures are used by version 2 of the rusersd protocol.
% * They were not developed with rpcgen, so they do not appear as RPCL.
% */
%
%#define RUSERSVERS_IDLE 2
%#define RUSERSVERS 3 /* current version */
%#define MAXUSERS 100
%
%/*
% * This is the structure used in version 2 of the rusersd RPC service.
% * It corresponds to the utmp structure for BSD systems.
% */
%struct ru_utmp {
% char ut_line[8]; /* tty name */
% char ut_name[8]; /* user id */
% char ut_host[16]; /* host name, if remote */
% time_t ut_time; /* time on */
%};
%
%struct utmpidle {
% struct ru_utmp ui_utmp;
% unsigned ui_idle;
%};
%
%struct utmpidlearr {
% struct utmpidle **uia_arr;
% int uia_cnt;
%};
%
%int xdr_utmpidlearr();
%
%#if defined(__STDC__) || defined(__cplusplus)
%enum clnt_stat rusers(char *host, struct utmpidlearr *up);
%int rnusers(char *host);
%#else
%enum clnt_stat rusers();
%int rnusers();
%#endif
%
#endif
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RWALL_H_RPCGEN
#define _RWALL_H_RPCGEN
#include <rpc/rpc.h>
#ifndef _KERNEL
#include <synch.h>
#include <thread.h>
#endif /* !_KERNEL */
#ifdef __cplusplus
extern "C" {
#endif
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* from rwall.x */
/*
* Remote write-all ONC service
*/
typedef char *wrapstring;
#if 1 || defined(__cplusplus)
enum clnt_stat rwall(char *, char *);
#else
enum clnt_stat rwall();
#endif
#define WALLPROG 100008
#define WALLVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define WALLPROC_WALL 2
extern enum clnt_stat wallproc_wall_1(wrapstring *, void *, CLIENT *);
extern bool_t wallproc_wall_1_svc(wrapstring *, void *, struct svc_req *);
extern int wallprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define WALLPROC_WALL 2
extern enum clnt_stat wallproc_wall_1();
extern bool_t wallproc_wall_1_svc();
extern int wallprog_1_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_wrapstring(XDR *, wrapstring*);
#else /* K&R C */
extern bool_t xdr_wrapstring();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RWALL_H_RPCGEN */
%/*
% * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
% * Use is subject to license terms.
% *
% * CDDL HEADER START
% *
% * The contents of this file are subject to the terms of the
% * Common Development and Distribution License, Version 1.0 only
% * (the "License"). You may not use this file except in compliance
% * with the License.
% *
% * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
% * or http://www.opensolaris.org/os/licensing.
% * See the License for the specific language governing permissions
% * and limitations under the License.
% *
% * When distributing Covered Code, include this CDDL HEADER in each
% * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
% * If applicable, add the following below this CDDL HEADER, with the
% * fields enclosed by brackets "[]" replaced with your own identifying
% * information: Portions Copyright [yyyy] [name of copyright owner]
% *
% * CDDL HEADER END
% */
%/* from rwall.x */
%
%/*
% * Remote write-all ONC service
% */
#ifdef RPC_HDR
%
#elif RPC_SVC
%
%/*
% * Server side stub routines for the rpc.rwalld daemon
% */
%
#elif RPC_CLNT
%
%/*
% * Client side stub routines for the rwall program
% */
%
#endif
typedef string wrapstring<>; /* Define for RPC library's xdr_wrapstring */
program WALLPROG {
version WALLVERS {
/*
* There is no procedure 1
*/
void
WALLPROC_WALL (wrapstring) = 2;
} = 1;
} = 100008;
#ifdef RPC_HDR
%
%
%#if defined(__STDC__) || defined(__cplusplus)
%enum clnt_stat rwall(char *, char *);
%#else
%enum clnt_stat rwall();
%#endif
%
#endif
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _SPRAY_H_RPCGEN
#define _SPRAY_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Copyright (c) 1987, 1991 by Sun Microsystems, Inc.
*/
/* from spray.x */
#define SPRAYMAX 8845
struct spraytimeval {
u_int sec;
u_int usec;
};
typedef struct spraytimeval spraytimeval;
struct spraycumul {
u_int counter;
spraytimeval clock;
};
typedef struct spraycumul spraycumul;
typedef struct {
u_int sprayarr_len;
char *sprayarr_val;
} sprayarr;
#define SPRAYPROG 100012
#define SPRAYVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define SPRAYPROC_SPRAY 1
extern void * sprayproc_spray_1(sprayarr *, CLIENT *);
extern void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
#define SPRAYPROC_GET 2
extern spraycumul * sprayproc_get_1(void *, CLIENT *);
extern spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
#define SPRAYPROC_CLEAR 3
extern void * sprayproc_clear_1(void *, CLIENT *);
extern void * sprayproc_clear_1_svc(void *, struct svc_req *);
extern int sprayprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define SPRAYPROC_SPRAY 1
extern void * sprayproc_spray_1();
extern void * sprayproc_spray_1_svc();
#define SPRAYPROC_GET 2
extern spraycumul * sprayproc_get_1();
extern spraycumul * sprayproc_get_1_svc();
#define SPRAYPROC_CLEAR 3
extern void * sprayproc_clear_1();
extern void * sprayproc_clear_1_svc();
extern int sprayprog_1_freeresult();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_spraytimeval(XDR *, spraytimeval*);
extern bool_t xdr_spraycumul(XDR *, spraycumul*);
extern bool_t xdr_sprayarr(XDR *, sprayarr*);
#else /* K&R C */
extern bool_t xdr_spraytimeval();
extern bool_t xdr_spraycumul();
extern bool_t xdr_sprayarr();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_SPRAY_H_RPCGEN */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
%/*
% * Copyright (c) 1987, 1991 by Sun Microsystems, Inc.
% */
%/* from spray.x */
/*
* Spray a server with packets
* Useful for testing flakiness of network interfaces
*/
const SPRAYMAX = 8845; /* max amount can spray */
/*
* GMT since 0:00, 1 January 1970
*/
struct spraytimeval {
unsigned int sec;
unsigned int usec;
};
/*
* spray statistics
*/
struct spraycumul {
unsigned int counter;
spraytimeval clock;
};
/*
* spray data
*/
typedef opaque sprayarr<SPRAYMAX>;
program SPRAYPROG {
version SPRAYVERS {
/*
* Just throw away the data and increment the counter
* This call never returns, so the client should always
* time it out.
*/
void
SPRAYPROC_SPRAY(sprayarr) = 1;
/*
* Get the value of the counter and elapsed time since
* last CLEAR.
*/
spraycumul
SPRAYPROC_GET(void) = 2;
/*
* Clear the counter and reset the elapsed time
*/
void
SPRAYPROC_CLEAR(void) = 3;
} = 1;
} = 100012;
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SVC_DG_PRIV_H
#define _SVC_DG_PRIV_H
/*
* The svc_dg_data private datastructure shared by some services
* for nefarious reasons. THIS IS NOT AN INTERFACE. DO NOT USE.
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* The size of the option header should include sufficient space for
* a ucred; we reserve 32 words as before we had ucreds and we allocate
* sizeof (svc_dg_data) + ucred_size(). Of course, opts must be declared
* last so it can use the additional memory.
*/
#define MAX_OPT_WORDS 32
/*
* kept in xprt->xp_p2
*/
struct svc_dg_data {
/* Note: optbuf must be the first field, used by ti_opts.c code */
struct netbuf optbuf; /* netbuf for options */
uint_t su_iosz; /* size of send.recv buffer */
uint32_t su_xid; /* transaction id */
XDR su_xdrs; /* XDR handle */
char su_verfbody[MAX_AUTH_BYTES]; /* verifier body */
char *su_cache; /* cached data, NULL if none */
struct t_unitdata su_tudata; /* tu_data for recv */
int opts[MAX_OPT_WORDS]; /* options: MUST BE LAST */
};
#define get_svc_dg_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2))
#ifdef __cplusplus
}
#endif
#endif /* _SVC_DG_PRIV_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* yp.x
*
* Copyright (c) 1988-1992 Sun Microsystems Inc
* All Rights Reserved.
*/
/*
* Protocol description file for the Network Information Services
*/
const YPMAXRECORD = 1024;
const YPMAXDOMAIN = 256;
const YPMAXMAP = 64;
const YPMAXPEER = 64;
enum ypstat {
YP_TRUE = 1,
YP_NOMORE = 2,
YP_FALSE = 0,
YP_NOMAP = -1,
YP_NODOM = -2,
YP_NOKEY = -3,
YP_BADOP = -4,
YP_BADDB = -5,
YP_YPERR = -6,
YP_BADARGS = -7,
YP_VERS = -8
};
enum ypxfrstat {
YPXFR_SUCC = 1,
YPXFR_AGE = 2,
YPXFR_NOMAP = -1,
YPXFR_NODOM = -2,
YPXFR_RSRC = -3,
YPXFR_RPC = -4,
YPXFR_MADDR = -5,
YPXFR_YPERR = -6,
YPXFR_BADARGS = -7,
YPXFR_DBM = -8,
YPXFR_FILE = -9,
YPXFR_SKEW = -10,
YPXFR_CLEAR = -11,
YPXFR_FORCE = -12,
YPXFR_XFRERR = -13,
YPXFR_REFUSED = -14
};
typedef string domainname<YPMAXDOMAIN>;
typedef string mapname<YPMAXMAP>;
typedef string peername<YPMAXPEER>;
typedef opaque keydat<YPMAXRECORD>;
typedef opaque valdat<YPMAXRECORD>;
struct ypmap_parms {
domainname domain;
mapname map;
unsigned int ordernum;
peername peer;
};
struct ypreq_key {
domainname domain;
mapname map;
keydat key;
};
struct ypreq_nokey {
domainname domain;
mapname map;
};
struct ypreq_xfr {
ypmap_parms map_parms;
unsigned int transid;
unsigned int prog;
unsigned int port;
};
struct ypresp_val {
ypstat stat;
valdat val;
};
struct ypresp_key_val {
ypstat stat;
valdat val;
keydat key;
};
struct ypresp_master {
ypstat stat;
peername peer;
};
struct ypresp_order {
ypstat stat;
unsigned int ordernum;
};
union ypresp_all switch (bool more) {
case TRUE:
ypresp_key_val val;
case FALSE:
void;
};
struct ypresp_xfr {
unsigned int transid;
ypxfrstat xfrstat;
};
struct ypmaplist {
mapname map;
ypmaplist *next;
};
struct ypresp_maplist {
ypstat stat;
ypmaplist *maps;
};
enum yppush_status {
YPPUSH_SUCC = 1, /* Success */
YPPUSH_AGE = 2, /* Master's version not newer */
YPPUSH_NOMAP = -1, /* Can't find server for map */
YPPUSH_NODOM = -2, /* Domain not supported */
YPPUSH_RSRC = -3, /* Local resource alloc failure */
YPPUSH_RPC = -4, /* RPC failure talking to server */
YPPUSH_MADDR = -5, /* Can't get master address */
YPPUSH_YPERR = -6, /* NIS server/map db error */
YPPUSH_BADARGS = -7, /* Request arguments bad */
YPPUSH_DBM = -8, /* Local dbm operation failed */
YPPUSH_FILE = -9, /* Local file I/O operation failed */
YPPUSH_SKEW = -10, /* Map version skew during transfer */
YPPUSH_CLEAR = -11, /* Can't send "Clear" req to local ypserv */
YPPUSH_FORCE = -12, /* No local order number in map use -f flag. */
YPPUSH_XFRERR = -13, /* ypxfr error */
YPPUSH_REFUSED = -14 /* Transfer request refused by ypserv */
};
struct yppushresp_xfr {
unsigned transid;
yppush_status status;
};
/*
* Response structure and overall result status codes. Success and failure
* represent two separate response message types.
*/
enum ypbind_resptype {
YPBIND_SUCC_VAL = 1,
YPBIND_FAIL_VAL = 2
};
struct ypbind_binding {
opaque ypbind_binding_addr[4]; /* In network order */
opaque ypbind_binding_port[2]; /* In network order */
};
union ypbind_resp switch (ypbind_resptype ypbind_status) {
case YPBIND_FAIL_VAL:
unsigned ypbind_error;
case YPBIND_SUCC_VAL:
ypbind_binding ypbind_bindinfo;
};
/* Detailed failure reason codes for response field ypbind_error*/
const YPBIND_ERR_ERR = 1; /* Internal error */
const YPBIND_ERR_NOSERV = 2; /* No bound server for passed domain */
const YPBIND_ERR_RESC = 3; /* System resource allocation failure */
/*
* Request data structure for ypbind "Set domain" procedure.
*/
struct ypbind_setdom {
domainname ypsetdom_domain;
ypbind_binding ypsetdom_binding;
unsigned ypsetdom_vers;
};
/*
* NIS access protocol
*/
program YPPROG {
version YPVERS {
void
YPPROC_NULL(void) = 0;
bool
YPPROC_DOMAIN(domainname) = 1;
bool
YPPROC_DOMAIN_NONACK(domainname) = 2;
ypresp_val
YPPROC_MATCH(ypreq_key) = 3;
ypresp_key_val
YPPROC_FIRST(ypreq_key) = 4;
ypresp_key_val
YPPROC_NEXT(ypreq_key) = 5;
ypresp_xfr
YPPROC_XFR(ypreq_xfr) = 6;
void
YPPROC_CLEAR(void) = 7;
ypresp_all
YPPROC_ALL(ypreq_nokey) = 8;
ypresp_master
YPPROC_MASTER(ypreq_nokey) = 9;
ypresp_order
YPPROC_ORDER(ypreq_nokey) = 10;
ypresp_maplist
YPPROC_MAPLIST(domainname) = 11;
} = 2;
} = 100004;
/*
* YPPUSHPROC_XFRRESP is the callback routine for result of YPPROC_XFR
*/
program YPPUSH_XFRRESPPROG {
version YPPUSH_XFRRESPVERS {
void
YPPUSHPROC_NULL(void) = 0;
yppushresp_xfr
YPPUSHPROC_XFRRESP(void) = 1;
} = 1;
} = 0x40000000; /* transient: could be anything up to 0x5fffffff */
/*
* NIS binding protocol
*/
program YPBINDPROG {
version YPBINDVERS {
void
YPBINDPROC_NULL(void) = 0;
ypbind_resp
YPBINDPROC_DOMAIN(domainname) = 1;
void
YPBINDPROC_SETDOM(ypbind_setdom) = 2;
} = 2;
} = 100007;
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
* under license from the Regents of the University of California.
*/
#ifndef _RPCSVC_YP_PROT_H
#define _RPCSVC_YP_PROT_H
#include <rpc/rpc.h>
#include <rpcsvc/ypclnt.h>
#include <ndbm.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* This file contains symbols and structures defining the rpc protocol
* between the YP clients and the YP servers. The servers are the YP
* database servers, and the YP.
*/
/*
* The following procedures are supported by the protocol:
*
* YPPROC_NULL() returns () takes nothing, returns nothing. This indicates
* that the yp server is alive.
*
* YPPROC_DOMAIN (char *) returns (bool_t) TRUE. Indicates that the
* responding yp server does serve the named domain; FALSE indicates no
* support.
*
* YPPROC_DOMAIN_NONACK (char *) returns (TRUE) if the yp server does serve
* the named domain, otherwise does not return. Used in the broadcast case.
*
* YPPROC_MATCH (struct ypreq_key) returns (struct ypresp_val). Returns the
* right-hand value for a passed left-hand key, within a named map and
* domain.
*
* YPPROC_FIRST (struct ypreq_nokey) returns (struct ypresp_key_val).
* Returns the first key-value pair from a named domain and map.
*
* YPPROC_NEXT (struct ypreq_key) returns (struct ypresp_key_val). Returns
* the key-value pair following a passed key-value pair within a named
* domain and map.
*
* YPPROC_XFR (struct ypreq_xfr) returns nothing. Indicates to a server that
* a map should be updated.
*
* YPPROC_NEWXFR (struct ypreq_newxfr) returns nothing. Indicates to a server
* that a map should be updated. Uses protocol independent request struct.
*
* YPPROC_CLEAR takes nothing, returns nothing. Instructs a yp server to
* close the current map, so that old versions of the disk file don't get
* held open.
*
* YPPROC_ALL (struct ypreq_nokey), returns
* union switch (bool more) {
* TRUE: (struct ypresp_key_val);
* FALSE: (struct) {};
* }
*
* YPPROC_MASTER (struct ypreq_nokey), returns (ypresp_master)
*
* YPPROC_ORDER (struct ypreq_nokey), returns (ypresp_order)
*
* YPPROC_MAPLIST (char *), returns (struct ypmaplist *)
*/
/* 'bool' is a built-in type for g++ */
#if !(defined(__cplusplus) && defined(_BOOL)) && !defined(__GNUG__)
#ifndef BOOL_DEFINED
typedef unsigned int bool;
#define BOOL_DEFINED
#endif
#endif
/* Program and version symbols, magic numbers */
#define YPPROG ((rpcprog_t)100004)
#define YPVERS ((rpcvers_t)2)
#define YPVERS_ORIG ((rpcvers_t)1)
#define YPMAXRECORD ((uint_t)1024)
#define YPMAXDOMAIN ((uint_t)256)
#define YPMAXMAP ((uint_t)64)
#define YPMAXPEER ((uint_t)256)
/* byte size of a large yp packet */
#define YPMSGSZ 1600
struct ypmap_parms {
char *domain; /* Null string means not available */
char *map; /* Null string means not available */
unsigned int ordernum; /* 0 means not available */
char *owner; /* Null string means not available */
};
/*
* Request parameter structures
*/
struct ypreq_key {
char *domain;
char *map;
datum keydat;
};
struct ypreq_nokey {
char *domain;
char *map;
};
struct ypreq_xfr {
struct ypmap_parms map_parms;
unsigned int transid;
unsigned int proto;
unsigned short port;
};
struct ypreq_newxfr {
struct ypmap_parms map_parms;
unsigned int transid;
unsigned int proto;
char *name;
};
#define ypxfr_domain map_parms.domain
#define ypxfr_map map_parms.map
#define ypxfr_ordernum map_parms.ordernum
#define ypxfr_owner map_parms.owner
/*
* Response parameter structures
*/
struct ypresp_val {
unsigned int status;
datum valdat;
};
struct ypresp_key_val {
unsigned int status;
datum valdat;
datum keydat;
};
struct ypresp_master {
unsigned int status;
char *master;
};
struct ypresp_order {
unsigned int status;
unsigned int ordernum;
};
struct ypmaplist {
char ypml_name[YPMAXMAP + 1];
struct ypmaplist *ypml_next;
};
struct ypresp_maplist {
unsigned int status;
struct ypmaplist *list;
};
/*
* Procedure symbols. YPPROC_NULL, YPPROC_DOMAIN, and YPPROC_DOMAIN_NONACK
* must keep the same values (0, 1, and 2) that they had in the first version
* of the protocol.
*/
#define YPPROC_NULL ((rpcproc_t)0)
#define YPPROC_DOMAIN ((rpcproc_t)1)
#define YPPROC_DOMAIN_NONACK ((rpcproc_t)2)
#define YPPROC_MATCH ((rpcproc_t)3)
#define YPPROC_FIRST ((rpcproc_t)4)
#define YPPROC_NEXT ((rpcproc_t)5)
#define YPPROC_XFR ((rpcproc_t)6)
#define YPPROC_NEWXFR ((rpcproc_t)12)
#define YPPROC_CLEAR ((rpcproc_t)7)
#define YPPROC_ALL ((rpcproc_t)8)
#define YPPROC_MASTER ((rpcproc_t)9)
#define YPPROC_ORDER ((rpcproc_t)10)
#define YPPROC_MAPLIST ((rpcproc_t)11)
/* Return status values */
#define YP_TRUE (1) /* General purpose success code */
#define YP_NOMORE (2) /* No more entries in map */
#define YP_FALSE (0) /* General purpose failure code */
#define YP_NOMAP (-1) /* No such map in domain */
#define YP_NODOM (-2) /* Domain not supported */
#define YP_NOKEY (-3) /* No such key in map */
#define YP_BADOP (-4) /* Invalid operation */
#define YP_BADDB (-5) /* Server data base is bad */
#define YP_YPERR (-6) /* YP server error */
#define YP_BADARGS (-7) /* Request arguments bad */
#define YP_VERS (-8) /* YP server vers. mismatch - server */
/* can't supply requested service. */
enum ypreqtype {YPREQ_KEY = 1, YPREQ_NOKEY = 2, YPREQ_MAP_PARMS = 3};
struct yprequest {
enum ypreqtype yp_reqtype;
union {
struct ypreq_key yp_req_keytype;
struct ypreq_nokey yp_req_nokeytype;
struct ypmap_parms yp_req_map_parmstype;
}yp_reqbody;
};
#define YPMATCH_REQTYPE YPREQ_KEY
#define ypmatch_req_domain yp_reqbody.yp_req_keytype.domain
#define ypmatch_req_map yp_reqbody.yp_req_keytype.map
#define ypmatch_req_keydat yp_reqbody.yp_req_keytype.keydat
#define ypmatch_req_keyptr yp_reqbody.yp_req_keytype.keydat.dptr
#define ypmatch_req_keysize yp_reqbody.yp_req_keytype.keydat.dsize
#define YPFIRST_REQTYPE YPREQ_NOKEY
#define ypfirst_req_domain yp_reqbody.yp_req_nokeytype.domain
#define ypfirst_req_map yp_reqbody.yp_req_nokeytype.map
#define YPNEXT_REQTYPE YPREQ_KEY
#define ypnext_req_domain yp_reqbody.yp_req_keytype.domain
#define ypnext_req_map yp_reqbody.yp_req_keytype.map
#define ypnext_req_keydat yp_reqbody.yp_req_keytype.keydat
#define ypnext_req_keyptr yp_reqbody.yp_req_keytype.keydat.dptr
#define ypnext_req_keysize yp_reqbody.yp_req_keytype.keydat.dsize
#define YPPUSH_REQTYPE YPREQ_NOKEY
#define yppush_req_domain yp_reqbody.yp_req_nokeytype.domain
#define yppush_req_map yp_reqbody.yp_req_nokeytype.map
#define YPPULL_REQTYPE YPREQ_NOKEY
#define yppull_req_domain yp_reqbody.yp_req_nokeytype.domain
#define yppull_req_map yp_reqbody.yp_req_nokeytype.map
#define YPPOLL_REQTYPE YPREQ_NOKEY
#define yppoll_req_domain yp_reqbody.yp_req_nokeytype.domain
#define yppoll_req_map yp_reqbody.yp_req_nokeytype.map
#define YPGET_REQTYPE YPREQ_MAP_PARMS
#define ypget_req_domain yp_reqbody.yp_req_map_parmstype.domain
#define ypget_req_map yp_reqbody.yp_req_map_parmstype.map
#define ypget_req_ordernum yp_reqbody.yp_req_map_parmstype.ordernum
#define ypget_req_owner yp_reqbody.yp_req_map_parmstype.owner
enum ypresptype {YPRESP_VAL = 1, YPRESP_KEY_VAL = 2, YPRESP_MAP_PARMS = 3};
struct ypresponse {
enum ypresptype yp_resptype;
union {
struct ypresp_val yp_resp_valtype;
struct ypresp_key_val yp_resp_key_valtype;
struct ypmap_parms yp_resp_map_parmstype;
} yp_respbody;
};
#define YPMATCH_RESPTYPE YPRESP_VAL
#define ypmatch_resp_status yp_respbody.yp_resp_valtype.status
#define ypmatch_resp_valdat yp_respbody.yp_resp_valtype.valdat
#define ypmatch_resp_valptr yp_respbody.yp_resp_valtype.valdat.dptr
#define ypmatch_resp_valsize yp_respbody.yp_resp_valtype.valdat.dsize
#define YPFIRST_RESPTYPE YPRESP_KEY_VAL
#define ypfirst_resp_status yp_respbody.yp_resp_key_valtype.status
#define ypfirst_resp_keydat yp_respbody.yp_resp_key_valtype.keydat
#define ypfirst_resp_keyptr yp_respbody.yp_resp_key_valtype.keydat.dptr
#define ypfirst_resp_keysize yp_respbody.yp_resp_key_valtype.keydat.dsize
#define ypfirst_resp_valdat yp_respbody.yp_resp_key_valtype.valdat
#define ypfirst_resp_valptr yp_respbody.yp_resp_key_valtype.valdat.dptr
#define ypfirst_resp_valsize yp_respbody.yp_resp_key_valtype.valdat.dsize
#define YPNEXT_RESPTYPE YPRESP_KEY_VAL
#define ypnext_resp_status yp_respbody.yp_resp_key_valtype.status
#define ypnext_resp_keydat yp_respbody.yp_resp_key_valtype.keydat
#define ypnext_resp_keyptr yp_respbody.yp_resp_key_valtype.keydat.dptr
#define ypnext_resp_keysize yp_respbody.yp_resp_key_valtype.keydat.dsize
#define ypnext_resp_valdat yp_respbody.yp_resp_key_valtype.valdat
#define ypnext_resp_valptr yp_respbody.yp_resp_key_valtype.valdat.dptr
#define ypnext_resp_valsize yp_respbody.yp_resp_key_valtype.valdat.dsize
#define YPPOLL_RESPTYPE YPRESP_MAP_PARMS
#define yppoll_resp_domain yp_respbody.yp_resp_map_parmstype.domain
#define yppoll_resp_map yp_respbody.yp_resp_map_parmstype.map
#define yppoll_resp_ordernum yp_respbody.yp_resp_map_parmstype.ordernum
#define yppoll_resp_owner yp_respbody.yp_resp_map_parmstype.owner
extern bool _xdr_yprequest();
extern bool _xdr_ypresponse();
/*
* Protocol between clients (ypxfr, only) and yppush
* yppush speaks a protocol in the transient range, which
* is supplied to ypxfr as a command-line parameter when it
* is activated by ypserv.
*/
#define YPPUSHVERS ((rpcvers_t)1)
#define YPPUSHVERS_ORIG ((rpcvers_t)1)
/* Procedure symbols */
#define YPPUSHPROC_NULL ((rpcproc_t)0)
#define YPPUSHPROC_XFRRESP ((rpcproc_t)1)
struct yppushresp_xfr {
unsigned int transid;
unsigned int status;
};
/* Status values for yppushresp_xfr.status */
#define YPPUSH_SUCC (1) /* Success */
#define YPPUSH_AGE (2) /* Master's version not newer */
#define YPPUSH_NOMAP (-1) /* Can't find server for map */
#define YPPUSH_NODOM (-2) /* Domain not supported */
#define YPPUSH_RSRC (-3) /* Local resouce alloc failure */
#define YPPUSH_RPC (-4) /* RPC failure talking to server */
#define YPPUSH_MADDR (-5) /* Can't get master address */
#define YPPUSH_YPERR (-6) /* YP server/map db error */
#define YPPUSH_BADARGS (-7) /* Request arguments bad */
#define YPPUSH_DBM (-8) /* Local dbm operation failed */
#define YPPUSH_FILE (-9) /* Local file I/O operation failed */
#define YPPUSH_SKEW (-10) /* Map version skew during transfer */
#define YPPUSH_CLEAR (-11) /* Can't send "Clear" req to local */
/* ypserv */
#define YPPUSH_FORCE (-12) /* No local order number in map - */
/* use -f flag. */
#define YPPUSH_XFRERR (-13) /* ypxfr error */
#define YPPUSH_REFUSED (-14) /* Transfer request refused by ypserv */
#define YPPUSH_NOALIAS (-15) /* Alias not found for map or domain */
extern bool xdr_datum(XDR *, datum *);
extern bool xdr_ypdomain_wrap_string(XDR *, char **);
extern bool xdr_ypmap_wrap_string(XDR *, char **);
extern bool xdr_ypreq_key(XDR *, struct ypreq_key *);
extern bool xdr_ypreq_nokey(XDR *, struct ypreq_nokey *);
extern bool xdr_ypreq_xfr(XDR *, struct ypreq_xfr *);
extern bool xdr_ypreq_newxfr(XDR *, struct ypreq_newxfr *);
extern bool xdr_ypresp_val(XDR *, struct ypresp_val *);
extern bool xdr_ypresp_key_val(XDR *, struct ypresp_key_val *);
extern bool xdr_ypmap_parms(XDR *, struct ypmap_parms *);
extern bool xdr_ypowner_wrap_string(XDR *, char **);
extern bool xdr_yppushresp_xfr(XDR *, struct yppushresp_xfr *);
extern bool xdr_ypresp_order(XDR *, struct ypresp_order *);
extern bool xdr_ypresp_master(XDR *, struct ypresp_master *);
extern bool xdr_ypall(XDR *, struct ypall_callback *);
extern bool xdr_ypresp_maplist(XDR *, struct ypresp_maplist *);
#ifdef __cplusplus
}
#endif
#endif /* _RPCSVC_YP_PROT_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 1989 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
* under license from the Regents of the University of California.
*/
#ifndef _RPCSVC_YPCLNT_H
#define _RPCSVC_YPCLNT_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* ypclnt.h
* This defines the symbols used in the c language
* interface to the yp client functions. A description of this interface
* can be read in ypclnt(3NSL).
*/
/*
* Failure reason codes. The success condition is indicated by a functional
* value of "0".
*/
#define YPERR_BADARGS 1 /* Args to function are bad */
#define YPERR_RPC 2 /* RPC failure */
#define YPERR_DOMAIN 3 /* Can't bind to a server which */
/* serves this domain. */
#define YPERR_MAP 4 /* No such map in server's domain */
#define YPERR_KEY 5 /* No such key in map */
#define YPERR_YPERR 6 /* Internal yp server or client */
/* interface error */
#define YPERR_RESRC 7 /* Local resource allocation failure */
#define YPERR_NOMORE 8 /* No more records in map database */
#define YPERR_PMAP 9 /* Can't communicate with portmapper */
#define YPERR_YPBIND 10 /* Can't communicate with ypbind */
#define YPERR_YPSERV 11 /* Can't communicate with ypserv */
#define YPERR_NODOM 12 /* Local domain name not set */
#define YPERR_BADDB 13 /* yp data base is bad */
#define YPERR_VERS 14 /* YP version mismatch */
#define YPERR_ACCESS 15 /* Access violation */
#define YPERR_BUSY 16 /* Database is busy */
/*
* Types of update operations
*/
#define YPOP_CHANGE 1 /* change, do not add */
#define YPOP_INSERT 2 /* add, do not change */
#define YPOP_DELETE 3 /* delete this entry */
#define YPOP_STORE 4 /* add, or change */
/*
* Data definitions
*/
/*
* struct ypall_callback * is the arg which must be passed to yp_all
*/
struct ypall_callback {
int (*foreach)(); /* Return non-0 to stop getting */
/* called */
char *data; /* Opaque pointer for use of callback */
/* function */
};
/*
* External yp client function references.
*/
extern int yp_bind(char *);
extern void yp_unbind(char *);
extern int yp_get_default_domain(char **);
extern int yp_match(char *, char *, char *, int, char **, int *);
extern int yp_first(char *, char *, char **, int *, char **, int *);
extern int yp_next(char *, char *, char *, int, char **, int *, char **, int *);
extern int yp_master(char *, char *, char **);
extern int yp_order(char *, char *, unsigned long *);
extern int yp_all(char *, char *, struct ypall_callback *);
extern char *yperr_string(int);
extern int ypprot_err(int);
extern int yp_update(char *, char *, unsigned, char *, int, char *, int);
/*
* Global yp data structures
*/
#ifdef __cplusplus
}
#endif
#endif /* _RPCSVC_YPCLNT_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1985 by Sun Microsystems, Inc.
*
*/
#ifndef _RPCSVC_YPPASSWD_H
#define _RPCSVC_YPPASSWD_H
#ifndef _PWD_H
#include <pwd.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define YPPASSWDPROG ((rpcprog_t)100009)
#define YPPASSWDVERS ((rpcvers_t)1)
#define YPPASSWDPROC_UPDATE ((rpcproc_t)1)
struct yppasswd {
char *oldpass; /* old (unencrypted) password */
struct passwd newpw; /* new pw structure */
};
int xdr_yppasswd();
#ifdef __cplusplus
}
#endif
#endif /* !_RPCSVC_YPPASSWD_H */
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
* under license from the Regents of the University of California.
*/
#ifndef _RPCSVC_YPUPD_H
#define _RPCSVC_YPUPD_H
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Compiled from ypupdate_prot.x using rpcgen
* This is NOT source code!
* DO NOT EDIT THIS FILE!
*/
#define MAXMAPNAMELEN 255
#define MAXYPDATALEN 1023
#define MAXERRMSGLEN 255
#define YPU_PROG ((ulong_t)100028)
#define YPU_VERS ((ulong_t)1)
#define YPU_CHANGE ((ulong_t)1)
extern uint_t *ypu_change_1();
#define YPU_INSERT ((ulong_t)2)
extern uint_t *ypu_insert_1();
#define YPU_DELETE ((ulong_t)3)
extern uint_t *ypu_delete_1();
#define YPU_STORE ((ulong_t)4)
extern uint_t *ypu_store_1();
typedef struct {
uint_t yp_buf_len;
char *yp_buf_val;
} yp_buf;
bool_t xdr_yp_buf();
struct ypupdate_args {
char *mapname;
yp_buf key;
yp_buf datum;
};
typedef struct ypupdate_args ypupdate_args;
bool_t xdr_ypupdate_args();
struct ypdelete_args {
char *mapname;
yp_buf key;
};
typedef struct ypdelete_args ypdelete_args;
bool_t xdr_ypdelete_args();
#ifdef __cplusplus
}
#endif
#endif /* _RPCSVC_YPUPD_H */
|