From 90a1ce7e772599214e625df00cdece2bb436941b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 14 Sep 2024 20:20:02 +0100 Subject: [PATCH] fcntl add F_TRANSFEREXTENTS for macos. [ref](https://newosxbook.com/src.jl?tree=xnu&file=/bsd/man/man2/fcntl.2) --- libc-test/semver/apple.txt | 1 + src/unix/bsd/apple/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index 832182dd117b3..fa75eb765bedd 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -455,6 +455,7 @@ F_SPECULATIVE_READ F_TEST F_THAW_FS F_TLOCK +F_TRANSFEREXTENTS F_TRIM_ACTIVE_FILE F_ULOCK F_UNLCK diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 9a5dc357fd038..c66ae9a90012b 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3590,6 +3590,7 @@ pub const F_PUNCHHOLE: ::c_int = 99; pub const F_TRIM_ACTIVE_FILE: ::c_int = 100; pub const F_SPECULATIVE_READ: ::c_int = 101; pub const F_GETPATH_NOFIRMLINK: ::c_int = 102; +pub const F_TRANSFEREXTENTS: ::c_int = 110; pub const F_ALLOCATECONTIG: ::c_uint = 0x02; pub const F_ALLOCATEALL: ::c_uint = 0x04;