Skip to content

Commit 06148e1

Browse files
committed
Add F_PUNCHHOLE and fpunchhole_t
Closes #3336.
1 parent 6f31de3 commit 06148e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,13 @@ s! {
378378
pub fst_bytesalloc: ::off_t,
379379
}
380380

381+
pub struct fpunchhole_t {
382+
pub fp_flags: ::c_uint, /* unused */
383+
pub reserved: ::c_uint, /* (to maintain 8-byte alignment) */
384+
pub fp_offset: ::off_t, /* IN: start of the region */
385+
pub fp_length: ::off_t, /* IN: size of the region */
386+
}
387+
381388
pub struct radvisory {
382389
pub ra_offset: ::off_t,
383390
pub ra_count: ::c_int,
@@ -3241,6 +3248,7 @@ pub const F_GLOBAL_NOCACHE: ::c_int = 55;
32413248
pub const F_NODIRECT: ::c_int = 62;
32423249
pub const F_LOG2PHYS_EXT: ::c_int = 65;
32433250
pub const F_BARRIERFSYNC: ::c_int = 85;
3251+
pub const F_PUNCHHOLE: ::c_int = 99;
32443252
pub const F_GETPATH_NOFIRMLINK: ::c_int = 102;
32453253

32463254
pub const F_ALLOCATECONTIG: ::c_uint = 0x02;

0 commit comments

Comments
 (0)