Skip to content

Commit 91b54d7

Browse files
committed
Auto merge of #3365 - devnexen:apple_fcntl_update, r=JohnTitor
apple fcntl update.
2 parents 9f3c5bc + 7437477 commit 91b54d7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,11 @@ F_RDADVISE
447447
F_RDAHEAD
448448
F_RDLCK
449449
F_SETOWN
450+
F_SPECULATIVE_READ
450451
F_TEST
451452
F_THAW_FS
452453
F_TLOCK
454+
F_TRIM_ACTIVE_FILE
453455
F_ULOCK
454456
F_UNLCK
455457
F_VOLPOSMODE
@@ -1900,9 +1902,11 @@ fremovexattr
19001902
fsetattrlist
19011903
fsetxattr
19021904
fsid_t
1905+
fspecread_t
19031906
fstatfs
19041907
fstore_t
19051908
ftok
1909+
ftrimactivefile_t
19061910
futimes
19071911
getattrlist
19081912
getattrlistat

src/unix/bsd/apple/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,18 @@ s! {
385385
pub fp_length: ::off_t, /* IN: size of the region */
386386
}
387387

388+
pub struct ftrimactivefile_t {
389+
pub fta_offset: ::off_t,
390+
pub fta_length: ::off_t,
391+
}
392+
393+
pub struct fspecread_t {
394+
pub fsr_flags: ::c_uint,
395+
pub reserved: ::c_uint,
396+
pub fsr_offset: ::off_t,
397+
pub fsr_length: ::off_t,
398+
}
399+
388400
pub struct radvisory {
389401
pub ra_offset: ::off_t,
390402
pub ra_count: ::c_int,
@@ -3249,6 +3261,8 @@ pub const F_NODIRECT: ::c_int = 62;
32493261
pub const F_LOG2PHYS_EXT: ::c_int = 65;
32503262
pub const F_BARRIERFSYNC: ::c_int = 85;
32513263
pub const F_PUNCHHOLE: ::c_int = 99;
3264+
pub const F_TRIM_ACTIVE_FILE: ::c_int = 100;
3265+
pub const F_SPECULATIVE_READ: ::c_int = 101;
32523266
pub const F_GETPATH_NOFIRMLINK: ::c_int = 102;
32533267

32543268
pub const F_ALLOCATECONTIG: ::c_uint = 0x02;

0 commit comments

Comments
 (0)