Skip to content

Commit 89d8c5e

Browse files
committed
Auto merge of #2482 - devnexen:macos_big_sur_univ_posix_spawnattr_update, r=Amanieu
darwin add posix_spawn specific extensions for universal binaries purpose.
2 parents ac2538f + 799f3df commit 89d8c5e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,7 @@ fdopendir
16561656
fgetxattr
16571657
flistxattr
16581658
fmemopen
1659+
fmount
16591660
forkpty
16601661
freeifaddrs
16611662
freelocale
@@ -1796,11 +1797,13 @@ posix_spawn_file_actions_destroy
17961797
posix_spawn_file_actions_init
17971798
posix_spawn_file_actions_t
17981799
posix_spawnattr_destroy
1800+
posix_spawnattr_getarchpref_np
17991801
posix_spawnattr_getflags
18001802
posix_spawnattr_getpgroup
18011803
posix_spawnattr_getsigdefault
18021804
posix_spawnattr_getsigmask
18031805
posix_spawnattr_init
1806+
posix_spawnattr_setarchpref_np
18041807
posix_spawnattr_setflags
18051808
posix_spawnattr_setpgroup
18061809
posix_spawnattr_setsigdefault

src/unix/bsd/apple/mod.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4934,6 +4934,12 @@ extern "C" {
49344934
flags: ::c_int,
49354935
data: *mut ::c_void,
49364936
) -> ::c_int;
4937+
pub fn fmount(
4938+
src: *const ::c_char,
4939+
fd: ::c_int,
4940+
flags: ::c_int,
4941+
data: *mut ::c_void,
4942+
) -> ::c_int;
49374943
pub fn ptrace(request: ::c_int, pid: ::pid_t, addr: *mut ::c_char, data: ::c_int) -> ::c_int;
49384944
pub fn quotactl(
49394945
special: *const ::c_char,
@@ -5110,6 +5116,20 @@ extern "C" {
51105116
flags: *mut ::pid_t,
51115117
) -> ::c_int;
51125118
pub fn posix_spawnattr_setpgroup(attr: *mut posix_spawnattr_t, flags: ::pid_t) -> ::c_int;
5119+
pub fn posix_spawnattr_setarchpref_np(
5120+
attr: *mut posix_spawnattr_t,
5121+
count: ::size_t,
5122+
pref: *mut ::cpu_type_t,
5123+
subpref: *mut ::cpu_subtype_t,
5124+
ocount: *mut ::size_t,
5125+
) -> ::c_int;
5126+
pub fn posix_spawnattr_getarchpref_np(
5127+
attr: *const posix_spawnattr_t,
5128+
count: ::size_t,
5129+
pref: *mut ::cpu_type_t,
5130+
subpref: *mut ::cpu_subtype_t,
5131+
ocount: *mut ::size_t,
5132+
) -> ::c_int;
51135133

51145134
pub fn posix_spawn_file_actions_init(actions: *mut posix_spawn_file_actions_t) -> ::c_int;
51155135
pub fn posix_spawn_file_actions_destroy(actions: *mut posix_spawn_file_actions_t) -> ::c_int;

0 commit comments

Comments
 (0)