Merge pull request #201 from fiveop/sigwait
Add sigwait/sigwaitinfo/sigtimedwait.
This commit is contained in:
commit
2a48d49c22
@ -588,6 +588,11 @@ extern {
|
|||||||
hdtr: *mut ::sf_hdtr,
|
hdtr: *mut ::sf_hdtr,
|
||||||
sbytes: *mut ::off_t,
|
sbytes: *mut ::off_t,
|
||||||
flags: ::c_int) -> ::c_int;
|
flags: ::c_int) -> ::c_int;
|
||||||
|
pub fn sigtimedwait(set: *const sigset_t,
|
||||||
|
info: *mut siginfo_t,
|
||||||
|
timeout: *const ::timespec) -> ::c_int;
|
||||||
|
pub fn sigwaitinfo(set: *const sigset_t,
|
||||||
|
info: *mut siginfo_t) -> ::c_int;
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
|
@ -378,4 +378,10 @@ extern {
|
|||||||
pub fn pthread_attr_getstack(attr: *const ::pthread_attr_t,
|
pub fn pthread_attr_getstack(attr: *const ::pthread_attr_t,
|
||||||
stackaddr: *mut *mut ::c_void,
|
stackaddr: *mut *mut ::c_void,
|
||||||
stacksize: *mut ::size_t) -> ::c_int;
|
stacksize: *mut ::size_t) -> ::c_int;
|
||||||
|
#[link_name = "__sigtimedwait50"]
|
||||||
|
pub fn sigtimedwait(set: *const sigset_t,
|
||||||
|
info: *mut siginfo_t,
|
||||||
|
timeout: *const ::timespec) -> ::c_int;
|
||||||
|
pub fn sigwaitinfo(set: *const sigset_t,
|
||||||
|
info: *mut siginfo_t) -> ::c_int;
|
||||||
}
|
}
|
||||||
|
@ -509,6 +509,10 @@ extern {
|
|||||||
#[cfg_attr(target_os = "netbsd", link_name = "__sigaltstack14")]
|
#[cfg_attr(target_os = "netbsd", link_name = "__sigaltstack14")]
|
||||||
pub fn sigaltstack(ss: *const stack_t,
|
pub fn sigaltstack(ss: *const stack_t,
|
||||||
oss: *mut stack_t) -> ::c_int;
|
oss: *mut stack_t) -> ::c_int;
|
||||||
|
#[cfg_attr(all(target_os = "macos", target_arch ="x86"),
|
||||||
|
link_name = "sigwait$UNIX2003")]
|
||||||
|
pub fn sigwait(set: *const sigset_t,
|
||||||
|
sig: *mut ::c_int) -> ::c_int;
|
||||||
|
|
||||||
#[cfg_attr(target_os = "netbsd", link_name = "__utimes50")]
|
#[cfg_attr(target_os = "netbsd", link_name = "__utimes50")]
|
||||||
pub fn utimes(filename: *const ::c_char,
|
pub fn utimes(filename: *const ::c_char,
|
||||||
|
@ -542,6 +542,11 @@ extern {
|
|||||||
pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int;
|
pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int;
|
||||||
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
|
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
|
||||||
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
|
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
|
||||||
|
pub fn sigtimedwait(set: *const sigset_t,
|
||||||
|
info: *mut siginfo_t,
|
||||||
|
timeout: *const ::timespec) -> ::c_int;
|
||||||
|
pub fn sigwaitinfo(set: *const sigset_t,
|
||||||
|
info: *mut siginfo_t) -> ::c_int;
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
|
Loading…
Reference in New Issue
Block a user