Skip to content

Commit 9bfa899

Browse files
committed
Auto merge of #3296 - devnexen:apple_13_upd, r=JohnTitor
darwin adding bunch of macOs Ventura new calls
2 parents 2bd687d + a3ba5b3 commit 9bfa899

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ fn test_apple(target: &str) {
350350
// FIXME: ABI has been changed on recent macOSes.
351351
"os_unfair_lock_assert_owner" | "os_unfair_lock_assert_not_owner" => true,
352352

353+
// FIXME: Once the SDK get updated to Ventura's level
354+
"freadlink" | "mknodat" | "mkfifoat" => true,
355+
353356
_ => false,
354357
}
355358
});

libc-test/semver/apple.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ flistxattr
18711871
fmemopen
18721872
fmount
18731873
forkpty
1874+
freadlink
18741875
freeifaddrs
18751876
freelocale
18761877
fremovexattr
@@ -1994,6 +1995,8 @@ memset_s
19941995
mem_entry_name_port_t
19951996
mincore
19961997
mkdirat
1998+
mkfifoat
1999+
mknodat
19972000
mkstemps
19982001
mount
19992002
msghdr

src/unix/bsd/apple/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6058,6 +6058,15 @@ extern "C" {
60586058

60596059
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
60606060
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
6061+
6062+
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int;
6063+
pub fn mknodat(
6064+
dirfd: ::c_int,
6065+
pathname: *const ::c_char,
6066+
mode: ::mode_t,
6067+
dev: dev_t,
6068+
) -> ::c_int;
6069+
pub fn freadlink(fd: ::c_int, buf: *mut ::c_char, size: ::size_t) -> ::c_int;
60616070
}
60626071

60636072
pub unsafe fn mach_task_self() -> ::mach_port_t {

0 commit comments

Comments
 (0)