Skip to content

Commit 09d5a4b

Browse files
committed
Auto merge of #3128 - stepancheg:qos-class, r=JohnTitor
Add posix_spawnattr_set_qos_class_np https://opensource.apple.com/source/libpthread/libpthread-137.1.1/pthread/spawn.h
2 parents 02d27a4 + 1f5e500 commit 09d5a4b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ fn test_apple(target: &str) {
240240
"pthread.h",
241241
"pthread_spis.h",
242242
"pthread/introspection.h",
243+
"pthread/spawn.h",
243244
"pthread/stack_np.h",
244245
"pwd.h",
245246
"regex.h",

libc-test/semver/apple.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,12 +2033,14 @@ posix_spawn_file_actions_destroy
20332033
posix_spawn_file_actions_init
20342034
posix_spawn_file_actions_t
20352035
posix_spawnattr_destroy
2036+
posix_spawnattr_get_qos_class_np
20362037
posix_spawnattr_getarchpref_np
20372038
posix_spawnattr_getflags
20382039
posix_spawnattr_getpgroup
20392040
posix_spawnattr_getsigdefault
20402041
posix_spawnattr_getsigmask
20412042
posix_spawnattr_init
2043+
posix_spawnattr_set_qos_class_np
20422044
posix_spawnattr_setarchpref_np
20432045
posix_spawnattr_setflags
20442046
posix_spawnattr_setpgroup

src/unix/bsd/apple/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5563,6 +5563,14 @@ extern "C" {
55635563
subpref: *mut ::cpu_subtype_t,
55645564
ocount: *mut ::size_t,
55655565
) -> ::c_int;
5566+
pub fn posix_spawnattr_set_qos_class_np(
5567+
attr: *mut posix_spawnattr_t,
5568+
qos_class: ::qos_class_t,
5569+
) -> ::c_int;
5570+
pub fn posix_spawnattr_get_qos_class_np(
5571+
attr: *const posix_spawnattr_t,
5572+
qos_class: *mut ::qos_class_t,
5573+
) -> ::c_int;
55665574

55675575
pub fn posix_spawn_file_actions_init(actions: *mut posix_spawn_file_actions_t) -> ::c_int;
55685576
pub fn posix_spawn_file_actions_destroy(actions: *mut posix_spawn_file_actions_t) -> ::c_int;

0 commit comments

Comments
 (0)