Auto merge of #2873 - pirocks:master, r=JohnTitor
Add pthread_sigqueue. This resurrects https://github.com/rust-lang/libc/pull/991. Should be a pretty straightforward addition of pthread_sigqueue.
This commit is contained in:
commit
08c0f2c00a
|
@ -3273,6 +3273,12 @@ fn test_linux(target: &str) {
|
|||
// Needs musl 1.2.3 or later.
|
||||
"pthread_getname_np" if musl => true,
|
||||
|
||||
// pthread_sigqueue uses sigval, which was initially declared
|
||||
// as a struct but should be defined as a union. However due
|
||||
// to the issues described here: https://github.com/rust-lang/libc/issues/2816
|
||||
// it can't be changed from struct.
|
||||
"pthread_sigqueue" => true,
|
||||
|
||||
_ => false,
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1291,6 +1291,7 @@ extern "C" {
|
|||
attr: *mut ::pthread_rwlockattr_t,
|
||||
val: ::c_int,
|
||||
) -> ::c_int;
|
||||
pub fn pthread_sigqueue(thread: ::pthread_t, sig: ::c_int, value: ::sigval) -> ::c_int;
|
||||
pub fn mallinfo() -> ::mallinfo;
|
||||
pub fn mallinfo2() -> ::mallinfo2;
|
||||
pub fn malloc_info(options: ::c_int, stream: *mut ::FILE) -> ::c_int;
|
||||
|
|
Loading…
Reference in a new issue