Add PTHREAD_MUTEX_ADAPTIVE_NP for glibc

This commit is contained in:
Mike Hommey 2018-04-04 13:44:22 +09:00
parent 829d02037c
commit 4355dfcfa4
3 changed files with 3 additions and 0 deletions

View File

@ -463,6 +463,7 @@ pub const POLLWRNORM: ::c_short = 0x004;
pub const POLLWRBAND: ::c_short = 0x100;
pub const PTHREAD_STACK_MIN: ::size_t = 131072;
pub const PTHREAD_MUTEX_ADAPTIVE_NP: ::c_int = 3;
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;

View File

@ -813,6 +813,7 @@ cfg_if! {
pub const PTHREAD_STACK_MIN: ::size_t = 131072;
}
}
pub const PTHREAD_MUTEX_ADAPTIVE_NP: ::c_int = 3;
f! {
pub fn NLA_ALIGN(len: ::c_int) -> ::c_int {

View File

@ -374,6 +374,7 @@ pub const O_CREAT: ::c_int = 64;
pub const O_EXCL: ::c_int = 128;
pub const O_NONBLOCK: ::c_int = 2048;
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
pub const PTHREAD_MUTEX_ADAPTIVE_NP: ::c_int = 3;
pub const RLIM_INFINITY: ::rlim_t = 0xffffffffffffffff;
pub const SA_NOCLDWAIT: ::c_int = 2;
pub const SA_ONSTACK: ::c_int = 0x08000000;