Skip to content

Commit

Permalink
Merge pull request #3649 from SteveLauC/feat/_PC_XXX_for_apple_0.2
Browse files Browse the repository at this point in the history
feat: more _PC_XXX constants for apple targets
  • Loading branch information
JohnTitor authored Apr 27, 2024
2 parents 275c999 + 16b06ea commit e425fe3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2284,3 +2284,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 @@ -3227,6 +3227,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

0 comments on commit e425fe3

Please sign in to comment.