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
/* automatically generated by rust-bindgen 0.56.0 */

pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 31;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __LONG_DOUBLE_USES_FLOAT128: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const __TIMESIZE: u32 = 64;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const LFS_VERSION: u32 = 131074;
pub const LFS_VERSION_MAJOR: u32 = 2;
pub const LFS_VERSION_MINOR: u32 = 2;
pub const LFS_DISK_VERSION: u32 = 131072;
pub const LFS_DISK_VERSION_MAJOR: u32 = 2;
pub const LFS_DISK_VERSION_MINOR: u32 = 0;
pub const LFS_NAME_MAX: u32 = 255;
pub const LFS_FILE_MAX: u32 = 2147483647;
pub const LFS_ATTR_MAX: u32 = 1022;
pub type __u_char = cty::c_uchar;
pub type __u_short = cty::c_ushort;
pub type __u_int = cty::c_uint;
pub type __u_long = cty::c_ulong;
pub type __int8_t = cty::c_schar;
pub type __uint8_t = cty::c_uchar;
pub type __int16_t = cty::c_short;
pub type __uint16_t = cty::c_ushort;
pub type __int32_t = cty::c_int;
pub type __uint32_t = cty::c_uint;
pub type __int64_t = cty::c_long;
pub type __uint64_t = cty::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = cty::c_long;
pub type __u_quad_t = cty::c_ulong;
pub type __intmax_t = cty::c_long;
pub type __uintmax_t = cty::c_ulong;
pub type __dev_t = cty::c_ulong;
pub type __uid_t = cty::c_uint;
pub type __gid_t = cty::c_uint;
pub type __ino_t = cty::c_ulong;
pub type __ino64_t = cty::c_ulong;
pub type __mode_t = cty::c_uint;
pub type __nlink_t = cty::c_ulong;
pub type __off_t = cty::c_long;
pub type __off64_t = cty::c_long;
pub type __pid_t = cty::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [cty::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
    assert_eq!(
        ::core::mem::size_of::<__fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__fsid_t))
    );
    assert_eq!(
        ::core::mem::align_of::<__fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__fsid_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<__fsid_t>())).__val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__fsid_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type __clock_t = cty::c_long;
pub type __rlim_t = cty::c_ulong;
pub type __rlim64_t = cty::c_ulong;
pub type __id_t = cty::c_uint;
pub type __time_t = cty::c_long;
pub type __useconds_t = cty::c_uint;
pub type __suseconds_t = cty::c_long;
pub type __daddr_t = cty::c_int;
pub type __key_t = cty::c_int;
pub type __clockid_t = cty::c_int;
pub type __timer_t = *mut cty::c_void;
pub type __blksize_t = cty::c_long;
pub type __blkcnt_t = cty::c_long;
pub type __blkcnt64_t = cty::c_long;
pub type __fsblkcnt_t = cty::c_ulong;
pub type __fsblkcnt64_t = cty::c_ulong;
pub type __fsfilcnt_t = cty::c_ulong;
pub type __fsfilcnt64_t = cty::c_ulong;
pub type __fsword_t = cty::c_long;
pub type __ssize_t = cty::c_long;
pub type __syscall_slong_t = cty::c_long;
pub type __syscall_ulong_t = cty::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut cty::c_char;
pub type __intptr_t = cty::c_long;
pub type __socklen_t = cty::c_uint;
pub type __sig_atomic_t = cty::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = cty::c_schar;
pub type int_fast16_t = cty::c_long;
pub type int_fast32_t = cty::c_long;
pub type int_fast64_t = cty::c_long;
pub type uint_fast8_t = cty::c_uchar;
pub type uint_fast16_t = cty::c_ulong;
pub type uint_fast32_t = cty::c_ulong;
pub type uint_fast64_t = cty::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
#[doc = " Definitions ///"]
pub type lfs_size_t = u32;
pub type lfs_off_t = u32;
pub type lfs_ssize_t = i32;
pub type lfs_soff_t = i32;
pub type lfs_block_t = u32;
pub const lfs_error_LFS_ERR_OK: lfs_error = 0;
pub const lfs_error_LFS_ERR_IO: lfs_error = -5;
pub const lfs_error_LFS_ERR_CORRUPT: lfs_error = -84;
pub const lfs_error_LFS_ERR_NOENT: lfs_error = -2;
pub const lfs_error_LFS_ERR_EXIST: lfs_error = -17;
pub const lfs_error_LFS_ERR_NOTDIR: lfs_error = -20;
pub const lfs_error_LFS_ERR_ISDIR: lfs_error = -21;
pub const lfs_error_LFS_ERR_NOTEMPTY: lfs_error = -39;
pub const lfs_error_LFS_ERR_BADF: lfs_error = -9;
pub const lfs_error_LFS_ERR_FBIG: lfs_error = -27;
pub const lfs_error_LFS_ERR_INVAL: lfs_error = -22;
pub const lfs_error_LFS_ERR_NOSPC: lfs_error = -28;
pub const lfs_error_LFS_ERR_NOMEM: lfs_error = -12;
pub const lfs_error_LFS_ERR_NOATTR: lfs_error = -61;
pub const lfs_error_LFS_ERR_NAMETOOLONG: lfs_error = -36;
pub type lfs_error = cty::c_int;
pub const lfs_type_LFS_TYPE_REG: lfs_type = 1;
pub const lfs_type_LFS_TYPE_DIR: lfs_type = 2;
pub const lfs_type_LFS_TYPE_SPLICE: lfs_type = 1024;
pub const lfs_type_LFS_TYPE_NAME: lfs_type = 0;
pub const lfs_type_LFS_TYPE_STRUCT: lfs_type = 512;
pub const lfs_type_LFS_TYPE_USERATTR: lfs_type = 768;
pub const lfs_type_LFS_TYPE_FROM: lfs_type = 256;
pub const lfs_type_LFS_TYPE_TAIL: lfs_type = 1536;
pub const lfs_type_LFS_TYPE_GLOBALS: lfs_type = 1792;
pub const lfs_type_LFS_TYPE_CRC: lfs_type = 1280;
pub const lfs_type_LFS_TYPE_CREATE: lfs_type = 1025;
pub const lfs_type_LFS_TYPE_DELETE: lfs_type = 1279;
pub const lfs_type_LFS_TYPE_SUPERBLOCK: lfs_type = 255;
pub const lfs_type_LFS_TYPE_DIRSTRUCT: lfs_type = 512;
pub const lfs_type_LFS_TYPE_CTZSTRUCT: lfs_type = 514;
pub const lfs_type_LFS_TYPE_INLINESTRUCT: lfs_type = 513;
pub const lfs_type_LFS_TYPE_SOFTTAIL: lfs_type = 1536;
pub const lfs_type_LFS_TYPE_HARDTAIL: lfs_type = 1537;
pub const lfs_type_LFS_TYPE_MOVESTATE: lfs_type = 2047;
pub const lfs_type_LFS_FROM_NOOP: lfs_type = 0;
pub const lfs_type_LFS_FROM_MOVE: lfs_type = 257;
pub const lfs_type_LFS_FROM_USERATTRS: lfs_type = 258;
pub type lfs_type = cty::c_uint;
pub const lfs_open_flags_LFS_O_RDONLY: lfs_open_flags = 1;
pub const lfs_open_flags_LFS_O_WRONLY: lfs_open_flags = 2;
pub const lfs_open_flags_LFS_O_RDWR: lfs_open_flags = 3;
pub const lfs_open_flags_LFS_O_CREAT: lfs_open_flags = 256;
pub const lfs_open_flags_LFS_O_EXCL: lfs_open_flags = 512;
pub const lfs_open_flags_LFS_O_TRUNC: lfs_open_flags = 1024;
pub const lfs_open_flags_LFS_O_APPEND: lfs_open_flags = 2048;
pub const lfs_open_flags_LFS_F_DIRTY: lfs_open_flags = 65536;
pub const lfs_open_flags_LFS_F_WRITING: lfs_open_flags = 131072;
pub const lfs_open_flags_LFS_F_READING: lfs_open_flags = 262144;
pub const lfs_open_flags_LFS_F_ERRED: lfs_open_flags = 524288;
pub const lfs_open_flags_LFS_F_INLINE: lfs_open_flags = 1048576;
pub const lfs_open_flags_LFS_F_OPENED: lfs_open_flags = 2097152;
pub type lfs_open_flags = cty::c_uint;
pub const lfs_whence_flags_LFS_SEEK_SET: lfs_whence_flags = 0;
pub const lfs_whence_flags_LFS_SEEK_CUR: lfs_whence_flags = 1;
pub const lfs_whence_flags_LFS_SEEK_END: lfs_whence_flags = 2;
pub type lfs_whence_flags = cty::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_config {
    pub context: *mut cty::c_void,
    pub read: ::core::option::Option<
        unsafe extern "C" fn(
            c: *const lfs_config,
            block: lfs_block_t,
            off: lfs_off_t,
            buffer: *mut cty::c_void,
            size: lfs_size_t,
        ) -> cty::c_int,
    >,
    pub prog: ::core::option::Option<
        unsafe extern "C" fn(
            c: *const lfs_config,
            block: lfs_block_t,
            off: lfs_off_t,
            buffer: *const cty::c_void,
            size: lfs_size_t,
        ) -> cty::c_int,
    >,
    pub erase: ::core::option::Option<
        unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t) -> cty::c_int,
    >,
    pub sync: ::core::option::Option<unsafe extern "C" fn(c: *const lfs_config) -> cty::c_int>,
    pub read_size: lfs_size_t,
    pub prog_size: lfs_size_t,
    pub block_size: lfs_size_t,
    pub block_count: lfs_size_t,
    pub block_cycles: i32,
    pub cache_size: lfs_size_t,
    pub lookahead_size: lfs_size_t,
    pub read_buffer: *mut cty::c_void,
    pub prog_buffer: *mut cty::c_void,
    pub lookahead_buffer: *mut cty::c_void,
    pub name_max: lfs_size_t,
    pub file_max: lfs_size_t,
    pub attr_max: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_config() {
    assert_eq!(
        ::core::mem::size_of::<lfs_config>(),
        112usize,
        concat!("Size of: ", stringify!(lfs_config))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_config>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_config))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).context as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).read as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(read)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).prog as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(prog)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).erase as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(erase)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).sync as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(sync)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).read_size as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(read_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).prog_size as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(prog_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).block_size as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(block_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).block_count as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(block_count)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).block_cycles as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(block_cycles)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).cache_size as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(cache_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).lookahead_size as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(lookahead_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).read_buffer as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(read_buffer)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).prog_buffer as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(prog_buffer)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).lookahead_buffer as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(lookahead_buffer)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).name_max as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(name_max)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).file_max as *const _ as usize },
        100usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(file_max)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_config>())).attr_max as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_config),
            "::",
            stringify!(attr_max)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lfs_info {
    pub type_: u8,
    pub size: lfs_size_t,
    pub name: [cty::c_char; 256usize],
}
#[test]
fn bindgen_test_layout_lfs_info() {
    assert_eq!(
        ::core::mem::size_of::<lfs_info>(),
        264usize,
        concat!("Size of: ", stringify!(lfs_info))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_info>(),
        4usize,
        concat!("Alignment of ", stringify!(lfs_info))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_info>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_info),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_info>())).size as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_info),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_info>())).name as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_info),
            "::",
            stringify!(name)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_attr {
    pub type_: u8,
    pub buffer: *mut cty::c_void,
    pub size: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_attr() {
    assert_eq!(
        ::core::mem::size_of::<lfs_attr>(),
        24usize,
        concat!("Size of: ", stringify!(lfs_attr))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_attr>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_attr))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_attr>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_attr),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_attr>())).buffer as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_attr),
            "::",
            stringify!(buffer)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_attr>())).size as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_attr),
            "::",
            stringify!(size)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_file_config {
    pub buffer: *mut cty::c_void,
    pub attrs: *mut lfs_attr,
    pub attr_count: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_file_config() {
    assert_eq!(
        ::core::mem::size_of::<lfs_file_config>(),
        24usize,
        concat!("Size of: ", stringify!(lfs_file_config))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_file_config>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_file_config))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file_config>())).buffer as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file_config),
            "::",
            stringify!(buffer)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file_config>())).attrs as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file_config),
            "::",
            stringify!(attrs)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file_config>())).attr_count as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file_config),
            "::",
            stringify!(attr_count)
        )
    );
}
#[doc = " internal littlefs data structures ///"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_cache {
    pub block: lfs_block_t,
    pub off: lfs_off_t,
    pub size: lfs_size_t,
    pub buffer: *mut u8,
}
#[test]
fn bindgen_test_layout_lfs_cache() {
    assert_eq!(
        ::core::mem::size_of::<lfs_cache>(),
        24usize,
        concat!("Size of: ", stringify!(lfs_cache))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_cache>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_cache))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_cache>())).block as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_cache),
            "::",
            stringify!(block)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_cache>())).off as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_cache),
            "::",
            stringify!(off)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_cache>())).size as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_cache),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_cache>())).buffer as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_cache),
            "::",
            stringify!(buffer)
        )
    );
}
#[doc = " internal littlefs data structures ///"]
pub type lfs_cache_t = lfs_cache;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_mdir {
    pub pair: [lfs_block_t; 2usize],
    pub rev: u32,
    pub off: lfs_off_t,
    pub etag: u32,
    pub count: u16,
    pub erased: bool,
    pub split: bool,
    pub tail: [lfs_block_t; 2usize],
}
#[test]
fn bindgen_test_layout_lfs_mdir() {
    assert_eq!(
        ::core::mem::size_of::<lfs_mdir>(),
        32usize,
        concat!("Size of: ", stringify!(lfs_mdir))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_mdir>(),
        4usize,
        concat!("Alignment of ", stringify!(lfs_mdir))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).pair as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(pair)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).rev as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(rev)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).off as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(off)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).etag as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(etag)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).count as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).erased as *const _ as usize },
        22usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(erased)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).split as *const _ as usize },
        23usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(split)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_mdir>())).tail as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_mdir),
            "::",
            stringify!(tail)
        )
    );
}
pub type lfs_mdir_t = lfs_mdir;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_dir {
    pub next: *mut lfs_dir,
    pub id: u16,
    pub type_: u8,
    pub m: lfs_mdir_t,
    pub pos: lfs_off_t,
    pub head: [lfs_block_t; 2usize],
}
#[test]
fn bindgen_test_layout_lfs_dir() {
    assert_eq!(
        ::core::mem::size_of::<lfs_dir>(),
        56usize,
        concat!("Size of: ", stringify!(lfs_dir))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_dir>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_dir))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_dir>())).next as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_dir),
            "::",
            stringify!(next)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_dir>())).id as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_dir),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_dir>())).type_ as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_dir),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_dir>())).m as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_dir),
            "::",
            stringify!(m)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_dir>())).pos as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_dir),
            "::",
            stringify!(pos)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_dir>())).head as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_dir),
            "::",
            stringify!(head)
        )
    );
}
pub type lfs_dir_t = lfs_dir;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_file {
    pub next: *mut lfs_file,
    pub id: u16,
    pub type_: u8,
    pub m: lfs_mdir_t,
    pub ctz: lfs_file_lfs_ctz,
    pub flags: u32,
    pub pos: lfs_off_t,
    pub block: lfs_block_t,
    pub off: lfs_off_t,
    pub cache: lfs_cache_t,
    pub cfg: *const lfs_file_config,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_file_lfs_ctz {
    pub head: lfs_block_t,
    pub size: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_file_lfs_ctz() {
    assert_eq!(
        ::core::mem::size_of::<lfs_file_lfs_ctz>(),
        8usize,
        concat!("Size of: ", stringify!(lfs_file_lfs_ctz))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_file_lfs_ctz>(),
        4usize,
        concat!("Alignment of ", stringify!(lfs_file_lfs_ctz))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file_lfs_ctz>())).head as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file_lfs_ctz),
            "::",
            stringify!(head)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file_lfs_ctz>())).size as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file_lfs_ctz),
            "::",
            stringify!(size)
        )
    );
}
#[test]
fn bindgen_test_layout_lfs_file() {
    assert_eq!(
        ::core::mem::size_of::<lfs_file>(),
        104usize,
        concat!("Size of: ", stringify!(lfs_file))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_file>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_file))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).next as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(next)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).id as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).type_ as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).m as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(m)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).ctz as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(ctz)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).flags as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).pos as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(pos)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).block as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(block)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).off as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(off)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).cache as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(cache)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_file>())).cfg as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_file),
            "::",
            stringify!(cfg)
        )
    );
}
pub type lfs_file_t = lfs_file;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_superblock {
    pub version: u32,
    pub block_size: lfs_size_t,
    pub block_count: lfs_size_t,
    pub name_max: lfs_size_t,
    pub file_max: lfs_size_t,
    pub attr_max: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_superblock() {
    assert_eq!(
        ::core::mem::size_of::<lfs_superblock>(),
        24usize,
        concat!("Size of: ", stringify!(lfs_superblock))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_superblock>(),
        4usize,
        concat!("Alignment of ", stringify!(lfs_superblock))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_superblock>())).version as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_superblock),
            "::",
            stringify!(version)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_superblock>())).block_size as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_superblock),
            "::",
            stringify!(block_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_superblock>())).block_count as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_superblock),
            "::",
            stringify!(block_count)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_superblock>())).name_max as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_superblock),
            "::",
            stringify!(name_max)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_superblock>())).file_max as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_superblock),
            "::",
            stringify!(file_max)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_superblock>())).attr_max as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_superblock),
            "::",
            stringify!(attr_max)
        )
    );
}
pub type lfs_superblock_t = lfs_superblock;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_gstate {
    pub tag: u32,
    pub pair: [lfs_block_t; 2usize],
}
#[test]
fn bindgen_test_layout_lfs_gstate() {
    assert_eq!(
        ::core::mem::size_of::<lfs_gstate>(),
        12usize,
        concat!("Size of: ", stringify!(lfs_gstate))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_gstate>(),
        4usize,
        concat!("Alignment of ", stringify!(lfs_gstate))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_gstate>())).tag as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_gstate),
            "::",
            stringify!(tag)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_gstate>())).pair as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_gstate),
            "::",
            stringify!(pair)
        )
    );
}
pub type lfs_gstate_t = lfs_gstate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs {
    pub rcache: lfs_cache_t,
    pub pcache: lfs_cache_t,
    pub root: [lfs_block_t; 2usize],
    pub mlist: *mut lfs_lfs_mlist,
    pub seed: u32,
    pub gstate: lfs_gstate_t,
    pub gdisk: lfs_gstate_t,
    pub gdelta: lfs_gstate_t,
    pub free: lfs_lfs_free,
    pub cfg: *const lfs_config,
    pub name_max: lfs_size_t,
    pub file_max: lfs_size_t,
    pub attr_max: lfs_size_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_lfs_mlist {
    pub next: *mut lfs_lfs_mlist,
    pub id: u16,
    pub type_: u8,
    pub m: lfs_mdir_t,
}
#[test]
fn bindgen_test_layout_lfs_lfs_mlist() {
    assert_eq!(
        ::core::mem::size_of::<lfs_lfs_mlist>(),
        48usize,
        concat!("Size of: ", stringify!(lfs_lfs_mlist))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_lfs_mlist>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_lfs_mlist))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).next as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_mlist),
            "::",
            stringify!(next)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).id as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_mlist),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).type_ as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_mlist),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).m as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_mlist),
            "::",
            stringify!(m)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_lfs_free {
    pub off: lfs_block_t,
    pub size: lfs_block_t,
    pub i: lfs_block_t,
    pub ack: lfs_block_t,
    pub buffer: *mut u32,
}
#[test]
fn bindgen_test_layout_lfs_lfs_free() {
    assert_eq!(
        ::core::mem::size_of::<lfs_lfs_free>(),
        24usize,
        concat!("Size of: ", stringify!(lfs_lfs_free))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs_lfs_free>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs_lfs_free))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).off as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_free),
            "::",
            stringify!(off)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).size as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_free),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).i as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_free),
            "::",
            stringify!(i)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).ack as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_free),
            "::",
            stringify!(ack)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).buffer as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs_lfs_free),
            "::",
            stringify!(buffer)
        )
    );
}
#[test]
fn bindgen_test_layout_lfs() {
    assert_eq!(
        ::core::mem::size_of::<lfs>(),
        152usize,
        concat!("Size of: ", stringify!(lfs))
    );
    assert_eq!(
        ::core::mem::align_of::<lfs>(),
        8usize,
        concat!("Alignment of ", stringify!(lfs))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).rcache as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(rcache)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).pcache as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(pcache)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).root as *const _ as usize },
        48usize,
        concat!("Offset of field: ", stringify!(lfs), "::", stringify!(root))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).mlist as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(mlist)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).seed as *const _ as usize },
        64usize,
        concat!("Offset of field: ", stringify!(lfs), "::", stringify!(seed))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).gstate as *const _ as usize },
        68usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(gstate)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).gdisk as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(gdisk)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).gdelta as *const _ as usize },
        92usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(gdelta)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).free as *const _ as usize },
        104usize,
        concat!("Offset of field: ", stringify!(lfs), "::", stringify!(free))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).cfg as *const _ as usize },
        128usize,
        concat!("Offset of field: ", stringify!(lfs), "::", stringify!(cfg))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).name_max as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(name_max)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).file_max as *const _ as usize },
        140usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(file_max)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<lfs>())).attr_max as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(lfs),
            "::",
            stringify!(attr_max)
        )
    );
}
pub type lfs_t = lfs;
extern "C" {
    #[doc = " Filesystem functions ///"]
    pub fn lfs_format(lfs: *mut lfs_t, config: *const lfs_config) -> cty::c_int;
}
extern "C" {
    pub fn lfs_mount(lfs: *mut lfs_t, config: *const lfs_config) -> cty::c_int;
}
extern "C" {
    pub fn lfs_unmount(lfs: *mut lfs_t) -> cty::c_int;
}
extern "C" {
    #[doc = " General operations ///"]
    pub fn lfs_remove(lfs: *mut lfs_t, path: *const cty::c_char) -> cty::c_int;
}
extern "C" {
    pub fn lfs_rename(
        lfs: *mut lfs_t,
        oldpath: *const cty::c_char,
        newpath: *const cty::c_char,
    ) -> cty::c_int;
}
extern "C" {
    pub fn lfs_stat(lfs: *mut lfs_t, path: *const cty::c_char, info: *mut lfs_info) -> cty::c_int;
}
extern "C" {
    pub fn lfs_getattr(
        lfs: *mut lfs_t,
        path: *const cty::c_char,
        type_: u8,
        buffer: *mut cty::c_void,
        size: lfs_size_t,
    ) -> lfs_ssize_t;
}
extern "C" {
    pub fn lfs_setattr(
        lfs: *mut lfs_t,
        path: *const cty::c_char,
        type_: u8,
        buffer: *const cty::c_void,
        size: lfs_size_t,
    ) -> cty::c_int;
}
extern "C" {
    pub fn lfs_removeattr(lfs: *mut lfs_t, path: *const cty::c_char, type_: u8) -> cty::c_int;
}
extern "C" {
    #[doc = " File operations ///"]
    pub fn lfs_file_open(
        lfs: *mut lfs_t,
        file: *mut lfs_file_t,
        path: *const cty::c_char,
        flags: cty::c_int,
    ) -> cty::c_int;
}
extern "C" {
    pub fn lfs_file_opencfg(
        lfs: *mut lfs_t,
        file: *mut lfs_file_t,
        path: *const cty::c_char,
        flags: cty::c_int,
        config: *const lfs_file_config,
    ) -> cty::c_int;
}
extern "C" {
    pub fn lfs_file_close(lfs: *mut lfs_t, file: *mut lfs_file_t) -> cty::c_int;
}
extern "C" {
    pub fn lfs_file_sync(lfs: *mut lfs_t, file: *mut lfs_file_t) -> cty::c_int;
}
extern "C" {
    pub fn lfs_file_read(
        lfs: *mut lfs_t,
        file: *mut lfs_file_t,
        buffer: *mut cty::c_void,
        size: lfs_size_t,
    ) -> lfs_ssize_t;
}
extern "C" {
    pub fn lfs_file_write(
        lfs: *mut lfs_t,
        file: *mut lfs_file_t,
        buffer: *const cty::c_void,
        size: lfs_size_t,
    ) -> lfs_ssize_t;
}
extern "C" {
    pub fn lfs_file_seek(
        lfs: *mut lfs_t,
        file: *mut lfs_file_t,
        off: lfs_soff_t,
        whence: cty::c_int,
    ) -> lfs_soff_t;
}
extern "C" {
    pub fn lfs_file_truncate(lfs: *mut lfs_t, file: *mut lfs_file_t, size: lfs_off_t)
        -> cty::c_int;
}
extern "C" {
    pub fn lfs_file_tell(lfs: *mut lfs_t, file: *mut lfs_file_t) -> lfs_soff_t;
}
extern "C" {
    pub fn lfs_file_rewind(lfs: *mut lfs_t, file: *mut lfs_file_t) -> cty::c_int;
}
extern "C" {
    pub fn lfs_file_size(lfs: *mut lfs_t, file: *mut lfs_file_t) -> lfs_soff_t;
}
extern "C" {
    #[doc = " Directory operations ///"]
    pub fn lfs_mkdir(lfs: *mut lfs_t, path: *const cty::c_char) -> cty::c_int;
}
extern "C" {
    pub fn lfs_dir_open(
        lfs: *mut lfs_t,
        dir: *mut lfs_dir_t,
        path: *const cty::c_char,
    ) -> cty::c_int;
}
extern "C" {
    pub fn lfs_dir_close(lfs: *mut lfs_t, dir: *mut lfs_dir_t) -> cty::c_int;
}
extern "C" {
    pub fn lfs_dir_read(lfs: *mut lfs_t, dir: *mut lfs_dir_t, info: *mut lfs_info) -> cty::c_int;
}
extern "C" {
    pub fn lfs_dir_seek(lfs: *mut lfs_t, dir: *mut lfs_dir_t, off: lfs_off_t) -> cty::c_int;
}
extern "C" {
    pub fn lfs_dir_tell(lfs: *mut lfs_t, dir: *mut lfs_dir_t) -> lfs_soff_t;
}
extern "C" {
    pub fn lfs_dir_rewind(lfs: *mut lfs_t, dir: *mut lfs_dir_t) -> cty::c_int;
}
extern "C" {
    #[doc = " Filesystem-level filesystem operations"]
    pub fn lfs_fs_size(lfs: *mut lfs_t) -> lfs_ssize_t;
}
extern "C" {
    pub fn lfs_fs_traverse(
        lfs: *mut lfs_t,
        cb: ::core::option::Option<
            unsafe extern "C" fn(arg1: *mut cty::c_void, arg2: lfs_block_t) -> cty::c_int,
        >,
        data: *mut cty::c_void,
    ) -> cty::c_int;
}