Skip to content

Commit 3bcd65c

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 (backport <#4764>) (cherry picked from commit db33ac4)
1 parent cabf324 commit 3bcd65c

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
@@ -337,8 +337,6 @@ fn test_apple(target: &str) {
337337
// FIXME(deprecated): These OSX constants are removed in Sierra.
338338
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
339339
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true,
340-
// FIXME(macos): the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
341-
"SF_SETTABLE" => true,
342340

343341
// FIXME(deprecated): Removed since 12.0.1 / xnu-8019.41.5. See `ttycom.h` at
344342
// 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
@@ -4773,7 +4773,7 @@ pub const UF_APPEND: c_uint = 0x00000004;
47734773
pub const UF_OPAQUE: c_uint = 0x00000008;
47744774
pub const UF_COMPRESSED: c_uint = 0x00000020;
47754775
pub const UF_TRACKED: c_uint = 0x00000040;
4776-
pub const SF_SETTABLE: c_uint = 0xffff0000;
4776+
pub const SF_SETTABLE: c_uint = 0x3fff0000;
47774777
pub const SF_ARCHIVED: c_uint = 0x00010000;
47784778
pub const SF_IMMUTABLE: c_uint = 0x00020000;
47794779
pub const SF_APPEND: c_uint = 0x00040000;

0 commit comments

Comments
 (0)