Skip to content

Commit 4db7327

Browse files
committed
Add pthread_atfork
1 parent 20c1bdc commit 4db7327

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ pub const PTHREAD_COND_INITIALIZER: ::pthread_cond_t = -1isize as *mut _;
336336
pub const PTHREAD_RWLOCK_INITIALIZER: ::pthread_rwlock_t = -1isize as *mut _;
337337
pub const PTHREAD_STACK_MIN : ::size_t = 4096;
338338
extern {
339+
pub fn pthread_atfork(prepare: ::Option<unsafe extern fn()>,
340+
parent: ::Option<unsafe extern fn()>,
341+
child: ::Option<unsafe extern fn()>) -> ::c_int;
339342
pub fn pthread_create(tid: *mut ::pthread_t,
340343
attr: *const ::pthread_attr_t,
341344
start: extern fn(*mut ::c_void) -> *mut ::c_void,

0 commit comments

Comments
 (0)