Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: more _PC_XXX constants for apple targets #3648

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 18 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down