Skip to content

Commit 097f864

Browse files
committed
apple SEEK_{DATA,HOLE} O_{EVTONLY,NOFOLLOW_ANY}
Checked values in MacOSX12.3.sdk and iPhoneOS15.5.sdk /usr/include/sys/_types/_seek_set.h /usr/include/sys/fcntl.h Also updated representation format by following Apple's form and order
1 parent 59a6070 commit 097f864

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

libc-test/semver/apple.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,12 @@ ONOEOT
917917
OXTABS
918918
O_ASYNC
919919
O_DSYNC
920+
O_EVTONLY
920921
O_EXLOCK
921922
O_FSYNC
922923
O_NDELAY
923924
O_NOCTTY
925+
O_NOFOLLOW_ANY
924926
O_SHLOCK
925927
O_SYMLINK
926928
O_SYNC
@@ -1164,6 +1166,8 @@ SCHED_RR
11641166
SCM_CREDS
11651167
SCM_RIGHTS
11661168
SCM_TIMESTAMP
1169+
SEEK_DATA
1170+
SEEK_HOLE
11671171
SEM_FAILED
11681172
SEM_UNDO
11691173
SETALL

src/unix/bsd/apple/mod.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,6 +2654,8 @@ pub const EOF: ::c_int = -1;
26542654
pub const SEEK_SET: ::c_int = 0;
26552655
pub const SEEK_CUR: ::c_int = 1;
26562656
pub const SEEK_END: ::c_int = 2;
2657+
pub const SEEK_HOLE: ::c_int = 3;
2658+
pub const SEEK_DATA: ::c_int = 4;
26572659
pub const _IOFBF: ::c_int = 0;
26582660
pub const _IONBF: ::c_int = 2;
26592661
pub const _IOLBF: ::c_int = 1;
@@ -2671,11 +2673,13 @@ pub const _PC_PIPE_BUF: ::c_int = 6;
26712673
pub const _PC_CHOWN_RESTRICTED: ::c_int = 7;
26722674
pub const _PC_NO_TRUNC: ::c_int = 8;
26732675
pub const _PC_VDISABLE: ::c_int = 9;
2674-
pub const O_DSYNC: ::c_int = 0x400000;
2675-
pub const O_NOCTTY: ::c_int = 0x20000;
2676-
pub const O_CLOEXEC: ::c_int = 0x1000000;
2677-
pub const O_DIRECTORY: ::c_int = 0x100000;
2678-
pub const O_SYMLINK: ::c_int = 0x200000;
2676+
pub const O_EVTONLY: ::c_int = 0x00008000;
2677+
pub const O_NOCTTY: ::c_int = 0x00020000;
2678+
pub const O_DIRECTORY: ::c_int = 0x00100000;
2679+
pub const O_SYMLINK: ::c_int = 0x00200000;
2680+
pub const O_DSYNC: ::c_int = 0x00400000;
2681+
pub const O_CLOEXEC: ::c_int = 0x01000000;
2682+
pub const O_NOFOLLOW_ANY: ::c_int = 0x20000000;
26792683
pub const S_IFIFO: mode_t = 4096;
26802684
pub const S_IFCHR: mode_t = 8192;
26812685
pub const S_IFBLK: mode_t = 24576;

0 commit comments

Comments
 (0)