Skip to content

Commit

Permalink
Auto merge of #3128 - stepancheg:qos-class, r=JohnTitor
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Mar 1, 2023
2 parents 02d27a4 + 1f5e500 commit 09d5a4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/build.rs
Expand Up @@ -240,6 +240,7 @@ fn test_apple(target: &str) {
"pthread.h",
"pthread_spis.h",
"pthread/introspection.h",
"pthread/spawn.h",
"pthread/stack_np.h",
"pwd.h",
"regex.h",
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/apple.txt
Expand Up @@ -2033,12 +2033,14 @@ posix_spawn_file_actions_destroy
posix_spawn_file_actions_init
posix_spawn_file_actions_t
posix_spawnattr_destroy
posix_spawnattr_get_qos_class_np
posix_spawnattr_getarchpref_np
posix_spawnattr_getflags
posix_spawnattr_getpgroup
posix_spawnattr_getsigdefault
posix_spawnattr_getsigmask
posix_spawnattr_init
posix_spawnattr_set_qos_class_np
posix_spawnattr_setarchpref_np
posix_spawnattr_setflags
posix_spawnattr_setpgroup
Expand Down
8 changes: 8 additions & 0 deletions src/unix/bsd/apple/mod.rs
Expand Up @@ -5563,6 +5563,14 @@ extern "C" {
subpref: *mut ::cpu_subtype_t,
ocount: *mut ::size_t,
) -> ::c_int;
pub fn posix_spawnattr_set_qos_class_np(
attr: *mut posix_spawnattr_t,
qos_class: ::qos_class_t,
) -> ::c_int;
pub fn posix_spawnattr_get_qos_class_np(
attr: *const posix_spawnattr_t,
qos_class: *mut ::qos_class_t,
) -> ::c_int;

pub fn posix_spawn_file_actions_init(actions: *mut posix_spawn_file_actions_t) -> ::c_int;
pub fn posix_spawn_file_actions_destroy(actions: *mut posix_spawn_file_actions_t) -> ::c_int;
Expand Down

0 comments on commit 09d5a4b

Please sign in to comment.