@@ -134,6 +134,33 @@ s! {
134
134
pub ss_size: :: size_t,
135
135
pub ss_flags: :: c_int,
136
136
}
137
+
138
+ pub struct fstore_t {
139
+ pub fst_flags: :: c_uint,
140
+ pub fst_posmode: :: c_int,
141
+ pub fst_offset: :: off_t,
142
+ pub fst_length: :: off_t,
143
+ pub fst_bytesalloc: :: off_t,
144
+ }
145
+
146
+ pub struct radvisory {
147
+ pub ra_offset: :: off_t,
148
+ pub ra_count: :: c_int,
149
+ }
150
+
151
+ pub struct statvfs {
152
+ pub f_bsize: :: c_ulong,
153
+ pub f_frsize: :: c_ulong,
154
+ pub f_blocks: :: fsblkcnt_t,
155
+ pub f_bfree: :: fsblkcnt_t,
156
+ pub f_bavail: :: fsblkcnt_t,
157
+ pub f_files: :: fsfilcnt_t,
158
+ pub f_ffree: :: fsfilcnt_t,
159
+ pub f_favail: :: fsfilcnt_t,
160
+ pub f_fsid: :: c_ulong,
161
+ pub f_flag: :: c_ulong,
162
+ pub f_namemax: :: c_ulong,
163
+ }
137
164
}
138
165
139
166
pub const EXIT_FAILURE : :: c_int = 1 ;
@@ -196,7 +223,6 @@ pub const F_LOCK: ::c_int = 1;
196
223
pub const F_TEST : :: c_int = 3 ;
197
224
pub const F_TLOCK : :: c_int = 2 ;
198
225
pub const F_ULOCK : :: c_int = 0 ;
199
- pub const F_DUPFD_CLOEXEC : :: c_int = 67 ;
200
226
pub const SIGHUP : :: c_int = 1 ;
201
227
pub const SIGINT : :: c_int = 2 ;
202
228
pub const SIGQUIT : :: c_int = 3 ;
@@ -342,10 +368,27 @@ pub const EQFULL: ::c_int = 106;
342
368
pub const ELAST : :: c_int = 106 ;
343
369
344
370
pub const F_DUPFD : :: c_int = 0 ;
371
+ pub const F_DUPFD_CLOEXEC : :: c_int = 67 ;
345
372
pub const F_GETFD : :: c_int = 1 ;
346
373
pub const F_SETFD : :: c_int = 2 ;
347
374
pub const F_GETFL : :: c_int = 3 ;
348
375
pub const F_SETFL : :: c_int = 4 ;
376
+ pub const F_PREALLOCATE : :: c_int = 42 ;
377
+ pub const F_RDADVISE : :: c_int = 44 ;
378
+ pub const F_RDAHEAD : :: c_int = 45 ;
379
+ pub const F_NOCACHE : :: c_int = 48 ;
380
+ pub const F_GETPATH : :: c_int = 50 ;
381
+ pub const F_FULLFSYNC : :: c_int = 51 ;
382
+ pub const F_FREEZE_FS : :: c_int = 53 ;
383
+ pub const F_THAW_FS : :: c_int = 54 ;
384
+ pub const F_GLOBAL_NOCACHE : :: c_int = 55 ;
385
+ pub const F_NODIRECT : :: c_int = 62 ;
386
+
387
+ pub const F_ALLOCATECONTIG : :: c_uint = 0x02 ;
388
+ pub const F_ALLOCATEALL : :: c_uint = 0x04 ;
389
+
390
+ pub const F_PEOFPOSMODE : :: c_int = 3 ;
391
+ pub const F_VOLPOSMODE : :: c_int = 4 ;
349
392
350
393
pub const O_ACCMODE : :: c_int = 3 ;
351
394
@@ -491,8 +534,6 @@ pub const LOCK_UN: ::c_int = 8;
491
534
pub const O_DSYNC : :: c_int = 4194304 ;
492
535
pub const O_SYNC : :: c_int = 128 ;
493
536
pub const O_NONBLOCK : :: c_int = 4 ;
494
- pub const F_GETPATH : :: c_int = 50 ;
495
- pub const F_FULLFSYNC : :: c_int = 51 ;
496
537
497
538
pub const MAP_COPY : :: c_int = 0x0002 ;
498
539
pub const MAP_RENAME : :: c_int = 0x0020 ;
0 commit comments