Skip to content

Commit 2fcf54b

Browse files
devnexentgross35
authored andcommitted
fcntl add F_TRANSFEREXTENTS for macos.
[ref](https://newosxbook.com/src.jl?tree=xnu&file=/bsd/man/man2/fcntl.2)
1 parent fbec928 commit 2fcf54b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/apple.txt

+1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ F_SPECULATIVE_READ
455455
F_TEST
456456
F_THAW_FS
457457
F_TLOCK
458+
F_TRANSFEREXTENTS
458459
F_TRIM_ACTIVE_FILE
459460
F_ULOCK
460461
F_UNLCK

src/unix/bsd/apple/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3591,6 +3591,7 @@ pub const F_PUNCHHOLE: ::c_int = 99;
35913591
pub const F_TRIM_ACTIVE_FILE: ::c_int = 100;
35923592
pub const F_SPECULATIVE_READ: ::c_int = 101;
35933593
pub const F_GETPATH_NOFIRMLINK: ::c_int = 102;
3594+
pub const F_TRANSFEREXTENTS: ::c_int = 110;
35943595

35953596
pub const F_ALLOCATECONTIG: ::c_uint = 0x02;
35963597
pub const F_ALLOCATEALL: ::c_uint = 0x04;

0 commit comments

Comments
 (0)