Skip to content

Commit f4e8c60

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 d8dfdac commit f4e8c60

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

347345
// FIXME(deprecated): Removed since 12.0.1 / xnu-8019.41.5. See `ttycom.h` at
348346
// 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)