@@ -7,6 +7,7 @@ pub type pthread_mutexattr_t = *mut ::c_void;
77pub type pthread_cond_t = * mut :: c_void ;
88pub type pthread_condattr_t = * mut :: c_void ;
99pub type pthread_rwlock_t = * mut :: c_void ;
10+ pub type pthread_rwlockattr_t = * mut :: c_void ;
1011pub type pthread_key_t = :: c_int ;
1112pub type tcflag_t = :: c_uint ;
1213pub type speed_t = :: c_uint ;
@@ -466,6 +467,8 @@ pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2;
466467pub const POSIX_MADV_WILLNEED : :: c_int = 3 ;
467468pub const POSIX_MADV_DONTNEED : :: c_int = 4 ;
468469
470+ pub const PTHREAD_PROCESS_PRIVATE : :: c_int = 0 ;
471+ pub const PTHREAD_PROCESS_SHARED : :: c_int = 1 ;
469472pub const PTHREAD_CREATE_JOINABLE : :: c_int = 0 ;
470473pub const PTHREAD_CREATE_DETACHED : :: c_int = 1 ;
471474
@@ -1059,6 +1062,10 @@ extern {
10591062 pshared : :: c_int ) -> :: c_int ;
10601063 pub fn pthread_mutexattr_getpshared ( attr : * const pthread_mutexattr_t ,
10611064 pshared : * mut :: c_int ) -> :: c_int ;
1065+ pub fn pthread_rwlockattr_getpshared ( attr : * const pthread_rwlockattr_t ,
1066+ val : * mut :: c_int ) -> :: c_int ;
1067+ pub fn pthread_rwlockattr_setpshared ( attr : * mut pthread_rwlockattr_t ,
1068+ val : :: c_int ) -> :: c_int ;
10621069 pub fn getpriority ( which : :: c_int , who : :: c_int ) -> :: c_int ;
10631070 pub fn setpriority ( which : :: c_int , who : :: c_int , prio : :: c_int ) -> :: c_int ;
10641071
0 commit comments