Skip to content

Commit b6676b7

Browse files
committed
apple add task_create/task_terminate
1 parent eecb648 commit b6676b7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,10 @@ sysdir_get_next_search_path_enumeration
19971997
sysdir_search_path_directory_t
19981998
sysdir_search_path_domain_mask_t
19991999
sysdir_start_search_path_enumeration
2000+
task_create
2001+
task_for_pid
2002+
task_info
2003+
task_terminate
20002004
telldir
20012005
thread_basic_info_t
20022006
thread_extended_info_t

src/unix/bsd/apple/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ pub type memory_object_offset_t = ::c_ulonglong;
6464
pub type vm_inherit_t = ::c_uint;
6565
pub type vm_prot_t = ::c_int;
6666

67+
pub type ledger_t = ::mach_port_t;
68+
pub type ledger_array_t = *mut ::ledger_t;
69+
6770
pub type iconv_t = *mut ::c_void;
6871

6972
pub type processor_cpu_load_info_t = *mut processor_cpu_load_info;
@@ -5498,6 +5501,14 @@ extern "C" {
54985501
task_info_out: task_info_t,
54995502
task_info_count: *mut mach_msg_type_number_t,
55005503
) -> ::kern_return_t;
5504+
pub fn task_create(
5505+
target_task: ::task_t,
5506+
ledgers: ::ledger_array_t,
5507+
ledgersCnt: ::mach_msg_type_number_t,
5508+
inherit_memory: ::boolean_t,
5509+
child_task: *mut ::task_t,
5510+
) -> ::kern_return_t;
5511+
pub fn task_terminate(target_task: ::task_t) -> ::kern_return_t;
55015512
pub fn host_statistics(
55025513
host_priv: host_t,
55035514
flavor: host_flavor_t,

0 commit comments

Comments
 (0)