Skip to content

Commit db33ac4

Browse files
committed
apple: Correct the value of SF_SETTABLE
This was updated a long time ago in MacOS Catalina; update ours to match. Link: https://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/bsd/sys/stat.h#L497
1 parent 3985d13 commit db33ac4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libc-test/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,6 @@ fn test_apple(target: &str) {
325325
// FIXME(deprecated): These OSX constants are removed in Sierra.
326326
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
327327
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true,
328-
// FIXME(macos): the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
329-
"SF_SETTABLE" => true,
330328

331329
// FIXME(deprecated): Removed since 12.0.1 / xnu-8019.41.5. See `ttycom.h` at
332330
// https://github.com/apple-oss-distributions/xnu/commit/e6231be02a03711ca404e5121a151b24afbff733

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4581,7 +4581,7 @@ pub const UF_APPEND: c_uint = 0x00000004;
45814581
pub const UF_OPAQUE: c_uint = 0x00000008;
45824582
pub const UF_COMPRESSED: c_uint = 0x00000020;
45834583
pub const UF_TRACKED: c_uint = 0x00000040;
4584-
pub const SF_SETTABLE: c_uint = 0xffff0000;
4584+
pub const SF_SETTABLE: c_uint = 0x3fff0000;
45854585
pub const SF_ARCHIVED: c_uint = 0x00010000;
45864586
pub const SF_IMMUTABLE: c_uint = 0x00020000;
45874587
pub const SF_APPEND: c_uint = 0x00040000;

0 commit comments

Comments
 (0)