@@ -12,25 +12,25 @@ extern "C" {
1212 child : Option < unsafe extern "C" fn ( ) > ,
1313 ) -> c_int ;
1414
15- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
15+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
1616 pub fn pthread_attr_getguardsize (
1717 attr : * const crate :: pthread_attr_t ,
1818 guardsize : * mut size_t ,
1919 ) -> c_int ;
2020
21- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
21+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
2222 pub fn pthread_attr_getinheritsched (
2323 attr : * const crate :: pthread_attr_t ,
2424 inheritsched : * mut c_int ,
2525 ) -> c_int ;
2626
27- #[ cfg( target_os = "linux" ) ]
27+ #[ cfg( any ( target_os = "l4re" , target_os = " linux") ) ]
2828 pub fn pthread_attr_getschedparam (
2929 attr : * const crate :: pthread_attr_t ,
3030 param : * mut crate :: sched_param ,
3131 ) -> c_int ;
3232
33- #[ cfg( target_os = "linux" ) ]
33+ #[ cfg( any ( target_os = "l4re" , target_os = " linux") ) ]
3434 pub fn pthread_attr_getschedpolicy (
3535 attr : * const crate :: pthread_attr_t ,
3636 policy : * mut c_int ,
@@ -48,22 +48,22 @@ extern "C" {
4848 stacksize : * mut size_t ,
4949 ) -> c_int ;
5050
51- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
51+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
5252 pub fn pthread_attr_setguardsize ( attr : * mut crate :: pthread_attr_t , guardsize : size_t ) -> c_int ;
5353
54- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
54+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
5555 pub fn pthread_attr_setinheritsched (
5656 attr : * mut crate :: pthread_attr_t ,
5757 inheritsched : c_int ,
5858 ) -> c_int ;
5959
60- #[ cfg( target_os = "linux" ) ]
60+ #[ cfg( any ( target_os = "l4re" , target_os = " linux") ) ]
6161 pub fn pthread_attr_setschedparam (
6262 attr : * mut crate :: pthread_attr_t ,
6363 param : * const crate :: sched_param ,
6464 ) -> c_int ;
6565
66- #[ cfg( target_os = "linux" ) ]
66+ #[ cfg( any ( target_os = "l4re" , target_os = " linux") ) ]
6767 pub fn pthread_attr_setschedpolicy ( attr : * mut crate :: pthread_attr_t , policy : c_int ) -> c_int ;
6868
6969 #[ cfg( any(
@@ -78,20 +78,20 @@ extern "C" {
7878 stacksize : size_t ,
7979 ) -> c_int ;
8080
81- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
81+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
8282 pub fn pthread_barrier_destroy ( barrier : * mut crate :: pthread_barrier_t ) -> c_int ;
8383
84- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
84+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
8585 pub fn pthread_barrier_init (
8686 barrier : * mut crate :: pthread_barrier_t ,
8787 attr : * const crate :: pthread_barrierattr_t ,
8888 count : c_uint ,
8989 ) -> c_int ;
9090
91- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
91+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
9292 pub fn pthread_barrier_wait ( barrier : * mut crate :: pthread_barrier_t ) -> c_int ;
9393
94- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
94+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
9595 pub fn pthread_barrierattr_destroy ( attr : * mut crate :: pthread_barrierattr_t ) -> c_int ;
9696
9797 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -100,16 +100,16 @@ extern "C" {
100100 shared : * mut c_int ,
101101 ) -> c_int ;
102102
103- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
103+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
104104 pub fn pthread_barrierattr_init ( attr : * mut crate :: pthread_barrierattr_t ) -> c_int ;
105105
106- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
106+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
107107 pub fn pthread_barrierattr_setpshared (
108108 attr : * mut crate :: pthread_barrierattr_t ,
109109 shared : c_int ,
110110 ) -> c_int ;
111111
112- #[ cfg( all( target_os = "linux" , not( target_env = "ohos" ) ) ) ]
112+ #[ cfg( any ( target_os = "l4re" , all( target_os = "linux" , not( target_env = "ohos" ) ) ) ) ]
113113 pub fn pthread_cancel ( thread : crate :: pthread_t ) -> c_int ;
114114
115115 #[ cfg( any(
@@ -123,7 +123,7 @@ extern "C" {
123123 clock_id : * mut crate :: clockid_t ,
124124 ) -> c_int ;
125125
126- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
126+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
127127 pub fn pthread_condattr_getpshared (
128128 attr : * const crate :: pthread_condattr_t ,
129129 pshared : * mut c_int ,
@@ -151,7 +151,12 @@ extern "C" {
151151 pshared : c_int ,
152152 ) -> c_int ;
153153
154- #[ cfg( any( target_os = "android" , target_os = "emscripten" , target_os = "linux" ) ) ]
154+ #[ cfg( any(
155+ target_os = "android" ,
156+ target_os = "emscripten" ,
157+ target_os = "l4re" ,
158+ target_os = "linux"
159+ ) ) ]
155160 pub fn pthread_create (
156161 native : * mut crate :: pthread_t ,
157162 attr : * const crate :: pthread_attr_t ,
@@ -162,7 +167,7 @@ extern "C" {
162167 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
163168 pub fn pthread_getcpuclockid ( thread : crate :: pthread_t , clk_id : * mut crate :: clockid_t ) -> c_int ;
164169
165- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
170+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
166171 pub fn pthread_getschedparam (
167172 native : crate :: pthread_t ,
168173 policy : * mut c_int ,
@@ -171,13 +176,13 @@ extern "C" {
171176
172177 // FIXME(reorg): In recent POSIX versions, this is a signal.h function and not required
173178 // in pthread.
174- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
179+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
175180 pub fn pthread_kill ( thread : crate :: pthread_t , sig : c_int ) -> c_int ;
176181
177182 #[ cfg( all( target_os = "linux" , not( target_env = "ohos" ) ) ) ]
178183 pub fn pthread_mutex_consistent ( mutex : * mut crate :: pthread_mutex_t ) -> c_int ;
179184
180- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
185+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
181186 #[ cfg_attr( gnu_time_bits64, link_name = "__pthread_mutex_timedlock64" ) ]
182187 pub fn pthread_mutex_timedlock (
183188 lock : * mut crate :: pthread_mutex_t ,
@@ -190,7 +195,7 @@ extern "C" {
190195 protocol : * mut c_int ,
191196 ) -> c_int ;
192197
193- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
198+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
194199 pub fn pthread_mutexattr_getpshared (
195200 attr : * const crate :: pthread_mutexattr_t ,
196201 pshared : * mut c_int ,
@@ -247,10 +252,10 @@ extern "C" {
247252 val : c_int ,
248253 ) -> c_int ;
249254
250- #[ cfg( target_os = "linux" ) ]
255+ #[ cfg( any ( target_os = "l4re" , target_os = " linux") ) ]
251256 pub fn pthread_once ( control : * mut crate :: pthread_once_t , routine : extern "C" fn ( ) ) -> c_int ;
252257
253- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
258+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
254259 pub fn pthread_setschedparam (
255260 native : crate :: pthread_t ,
256261 policy : c_int ,
@@ -262,25 +267,25 @@ extern "C" {
262267
263268 // FIXME(reorg): In recent POSIX versions, this is a signal.h function and not required
264269 // in pthread.
265- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
270+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
266271 pub fn pthread_sigmask (
267272 how : c_int ,
268273 set : * const crate :: sigset_t ,
269274 oldset : * mut crate :: sigset_t ,
270275 ) -> c_int ;
271276
272- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
277+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
273278 pub fn pthread_spin_destroy ( lock : * mut crate :: pthread_spinlock_t ) -> c_int ;
274279
275- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
280+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
276281 pub fn pthread_spin_init ( lock : * mut crate :: pthread_spinlock_t , pshared : c_int ) -> c_int ;
277282
278- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
283+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
279284 pub fn pthread_spin_lock ( lock : * mut crate :: pthread_spinlock_t ) -> c_int ;
280285
281- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
286+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
282287 pub fn pthread_spin_trylock ( lock : * mut crate :: pthread_spinlock_t ) -> c_int ;
283288
284- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
289+ #[ cfg( any( target_os = "android" , target_os = "l4re" , target_os = " linux") ) ]
285290 pub fn pthread_spin_unlock ( lock : * mut crate :: pthread_spinlock_t ) -> c_int ;
286291}
0 commit comments