From 1069b4eccd6328f483aa2be62b9a624454f9be15 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 19 May 2024 11:01:57 +0800 Subject: [PATCH] feat: F_ALLOCATEPERSIST for apple --- 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 0f97434a4d320..bd076264a1212 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -428,6 +428,7 @@ FSOPT_REPORT_FULLSIZE FSOPT_RETURN_REALDEV F_ALLOCATEALL F_ALLOCATECONTIG +F_ALLOCATEPERSIST F_BARRIERFSYNC F_FREEZE_FS F_FULLFSYNC diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 77ac67151ac98..ea19b71366cf8 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3440,6 +3440,7 @@ pub const F_GETPATH_NOFIRMLINK: ::c_int = 102; pub const F_ALLOCATECONTIG: ::c_uint = 0x02; pub const F_ALLOCATEALL: ::c_uint = 0x04; +pub const F_ALLOCATEPERSIST: ::c_uint = 0x08; pub const F_PEOFPOSMODE: ::c_int = 3; pub const F_VOLPOSMODE: ::c_int = 4;