Skip to content

Commit a3ba5b3

Browse files
committed
darwin adding bunch of macOs Ventura new calls
1 parent b811b70 commit a3ba5b3

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
@@ -349,6 +349,9 @@ fn test_apple(target: &str) {
349349
// FIXME: ABI has been changed on recent macOSes.
350350
"os_unfair_lock_assert_owner" | "os_unfair_lock_assert_not_owner" => true,
351351

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

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
@@ -5905,6 +5905,15 @@ extern "C" {
59055905

59065906
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
59075907
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
5908+
5909+
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int;
5910+
pub fn mknodat(
5911+
dirfd: ::c_int,
5912+
pathname: *const ::c_char,
5913+
mode: ::mode_t,
5914+
dev: dev_t,
5915+
) -> ::c_int;
5916+
pub fn freadlink(fd: ::c_int, buf: *mut ::c_char, size: ::size_t) -> ::c_int;
59085917
}
59095918

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

0 commit comments

Comments
 (0)