From 6db5674b8f47c326eccf24af95b7706816f859e8 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Wed, 3 Apr 2024 10:33:20 +0800 Subject: [PATCH] feat: more _PC_XXX constants for apple targets --- libc-test/semver/apple.txt | 18 ++++++++++++++++++ src/unix/bsd/apple/mod.rs | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index da5e2c77caa74..c53554b9e1e89 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -2174,3 +2174,21 @@ wait4 waitid xsw_usage xucred +_PC_NAME_CHARS_MAX +_PC_CASE_SENSITIVE +_PC_CASE_PRESERVING +_PC_EXTENDED_SECURITY_NP +_PC_AUTH_OPAQUE_NP +_PC_2_SYMLINKS +_PC_ALLOC_SIZE_MIN +_PC_ASYNC_IO +_PC_FILESIZEBITS +_PC_PRIO_IO +_PC_REC_INCR_XFER_SIZE +_PC_REC_MAX_XFER_SIZE +_PC_REC_MIN_XFER_SIZE +_PC_REC_XFER_ALIGN +_PC_SYMLINK_MAX +_PC_SYNC_IO +_PC_XATTR_SIZE_BITS +_PC_MIN_HOLE_SIZE diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 5cad5d320e472..47caeb66a3ff7 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3159,6 +3159,24 @@ pub const _PC_PIPE_BUF: ::c_int = 6; pub const _PC_CHOWN_RESTRICTED: ::c_int = 7; pub const _PC_NO_TRUNC: ::c_int = 8; pub const _PC_VDISABLE: ::c_int = 9; +pub const _PC_NAME_CHARS_MAX: ::c_int = 10; +pub const _PC_CASE_SENSITIVE: ::c_int = 11; +pub const _PC_CASE_PRESERVING: ::c_int = 12; +pub const _PC_EXTENDED_SECURITY_NP: ::c_int = 13; +pub const _PC_AUTH_OPAQUE_NP: ::c_int = 14; +pub const _PC_2_SYMLINKS: ::c_int = 15; +pub const _PC_ALLOC_SIZE_MIN: ::c_int = 16; +pub const _PC_ASYNC_IO: ::c_int = 17; +pub const _PC_FILESIZEBITS: ::c_int = 18; +pub const _PC_PRIO_IO: ::c_int = 19; +pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 20; +pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 21; +pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 22; +pub const _PC_REC_XFER_ALIGN: ::c_int = 23; +pub const _PC_SYMLINK_MAX: ::c_int = 24; +pub const _PC_SYNC_IO: ::c_int = 25; +pub const _PC_XATTR_SIZE_BITS: ::c_int = 26; +pub const _PC_MIN_HOLE_SIZE: ::c_int = 27; pub const O_EVTONLY: ::c_int = 0x00008000; pub const O_NOCTTY: ::c_int = 0x00020000; pub const O_DIRECTORY: ::c_int = 0x00100000;