@@ -224,7 +224,10 @@ pub mod types {
224
224
pub mod common {
225
225
pub mod posix01 {
226
226
use libc:: types:: common:: c95:: { c_void} ;
227
- use libc:: types:: os:: arch:: c95:: { c_char, size_t} ;
227
+ use libc:: types:: os:: arch:: c95:: { c_char, c_ulong, size_t} ;
228
+
229
+ pub type pthread_t = c_ulong ;
230
+
228
231
pub struct glob_t {
229
232
gl_pathc : size_t ,
230
233
gl_pathv : * * c_char ,
@@ -294,7 +297,7 @@ pub mod types {
294
297
}
295
298
#[ cfg( target_arch = "x86" ) ]
296
299
pub mod posix01 {
297
- use libc:: types:: os:: arch:: c95:: { c_short, c_long, time_t} ;
300
+ use libc:: types:: os:: arch:: c95:: { c_char , c_short, c_long, time_t} ;
298
301
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
299
302
use libc:: types:: os:: arch:: posix88:: { mode_t, off_t} ;
300
303
use libc:: types:: os:: arch:: posix88:: { uid_t} ;
@@ -325,10 +328,14 @@ pub mod types {
325
328
__unused4 : c_long ,
326
329
__unused5 : c_long ,
327
330
}
331
+
332
+ pub struct pthread_attr_t {
333
+ __size : [ c_char , ..36 ]
334
+ }
328
335
}
329
336
#[ cfg( target_arch = "arm" ) ]
330
337
pub mod posix01 {
331
- use libc:: types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, time_t} ;
338
+ use libc:: types:: os:: arch:: c95:: { c_char , c_uchar, c_uint, c_ulong, time_t} ;
332
339
use libc:: types:: os:: arch:: c99:: { c_longlong, c_ulonglong} ;
333
340
use libc:: types:: os:: arch:: posix88:: { uid_t, gid_t, ino_t} ;
334
341
@@ -357,10 +364,14 @@ pub mod types {
357
364
st_ctime_nsec : c_ulong ,
358
365
st_ino : c_ulonglong
359
366
}
367
+
368
+ pub struct pthread_attr_t {
369
+ __size : [ c_char , ..36 ]
370
+ }
360
371
}
361
372
#[ cfg( target_arch = "mips" ) ]
362
373
pub mod posix01 {
363
- use libc:: types:: os:: arch:: c95:: { c_long, c_ulong, time_t} ;
374
+ use libc:: types:: os:: arch:: c95:: { c_char , c_long, c_ulong, time_t} ;
364
375
use libc:: types:: os:: arch:: posix88:: { gid_t, ino_t} ;
365
376
use libc:: types:: os:: arch:: posix88:: { mode_t, off_t} ;
366
377
use libc:: types:: os:: arch:: posix88:: { uid_t} ;
@@ -391,6 +402,10 @@ pub mod types {
391
402
st_blocks : blkcnt_t ,
392
403
st_pad5 : [ c_long , ..14 ] ,
393
404
}
405
+
406
+ pub struct pthread_attr_t {
407
+ __size : [ c_char , ..36 ]
408
+ }
394
409
}
395
410
pub mod posix08 { }
396
411
pub mod bsd44 { }
@@ -435,7 +450,7 @@ pub mod types {
435
450
pub type ssize_t = i64 ;
436
451
}
437
452
pub mod posix01 {
438
- use libc:: types:: os:: arch:: c95:: { c_int, c_long, time_t} ;
453
+ use libc:: types:: os:: arch:: c95:: { c_char , c_int, c_long, time_t} ;
439
454
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
440
455
use libc:: types:: os:: arch:: posix88:: { mode_t, off_t} ;
441
456
use libc:: types:: os:: arch:: posix88:: { uid_t} ;
@@ -463,6 +478,10 @@ pub mod types {
463
478
st_ctime_nsec : c_long ,
464
479
__unused : [ c_long , ..3 ] ,
465
480
}
481
+
482
+ pub struct pthread_attr_t {
483
+ __size : [ c_char , ..56 ]
484
+ }
466
485
}
467
486
pub mod posix08 {
468
487
}
@@ -479,6 +498,10 @@ pub mod types {
479
498
pub mod posix01 {
480
499
use libc:: types:: common:: c95:: { c_void} ;
481
500
use libc:: types:: os:: arch:: c95:: { c_char, c_int, size_t} ;
501
+ use libc:: types:: os:: arch:: c99:: { uintptr_t} ;
502
+
503
+ pub type pthread_t = uintptr_t ;
504
+
482
505
pub struct glob_t {
483
506
gl_pathc : size_t ,
484
507
__unused1 : size_t ,
@@ -535,6 +558,7 @@ pub mod types {
535
558
pub type ssize_t = i64 ;
536
559
}
537
560
pub mod posix01 {
561
+ use libc:: types:: common:: c95:: { c_void} ;
538
562
use libc:: types:: common:: c99:: { uint8_t, uint32_t, int32_t} ;
539
563
use libc:: types:: os:: arch:: c95:: { c_long, time_t} ;
540
564
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
@@ -569,6 +593,8 @@ pub mod types {
569
593
st_birthtime_nsec : c_long ,
570
594
__unused : [ uint8_t , ..2 ] ,
571
595
}
596
+
597
+ pub type pthread_attr_t = * c_void ;
572
598
}
573
599
pub mod posix08 {
574
600
}
@@ -945,6 +971,10 @@ pub mod types {
945
971
pub mod posix01 {
946
972
use libc:: types:: common:: c95:: { c_void} ;
947
973
use libc:: types:: os:: arch:: c95:: { c_char, c_int, size_t} ;
974
+ use libc:: types:: os:: arch:: c99:: { uintptr_t} ;
975
+
976
+ pub type pthread_t = uintptr_t ;
977
+
948
978
pub struct glob_t {
949
979
gl_pathc : size_t ,
950
980
__unused1 : c_int ,
@@ -1002,7 +1032,7 @@ pub mod types {
1002
1032
}
1003
1033
pub mod posix01 {
1004
1034
use libc:: types:: common:: c99:: { int32_t, int64_t, uint32_t} ;
1005
- use libc:: types:: os:: arch:: c95:: { c_long, time_t} ;
1035
+ use libc:: types:: os:: arch:: c95:: { c_char , c_long, time_t} ;
1006
1036
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t,
1007
1037
mode_t, off_t, uid_t} ;
1008
1038
@@ -1034,6 +1064,11 @@ pub mod types {
1034
1064
st_lspare : int32_t ,
1035
1065
st_qspare : [ int64_t , ..2 ] ,
1036
1066
}
1067
+
1068
+ pub struct pthread_attr_t {
1069
+ __sig : c_long ,
1070
+ __opaque : [ c_char , ..36 ]
1071
+ }
1037
1072
}
1038
1073
pub mod posix08 {
1039
1074
}
@@ -1083,7 +1118,7 @@ pub mod types {
1083
1118
pub mod posix01 {
1084
1119
use libc:: types:: common:: c99:: { int32_t, int64_t} ;
1085
1120
use libc:: types:: common:: c99:: { uint32_t} ;
1086
- use libc:: types:: os:: arch:: c95:: { c_long, time_t} ;
1121
+ use libc:: types:: os:: arch:: c95:: { c_char , c_long, time_t} ;
1087
1122
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
1088
1123
use libc:: types:: os:: arch:: posix88:: { mode_t, off_t, uid_t} ;
1089
1124
@@ -1115,6 +1150,11 @@ pub mod types {
1115
1150
st_lspare : int32_t ,
1116
1151
st_qspare : [ int64_t , ..2 ] ,
1117
1152
}
1153
+
1154
+ pub struct pthread_attr_t {
1155
+ __sig : c_long ,
1156
+ __opaque : [ c_char , ..56 ]
1157
+ }
1118
1158
}
1119
1159
pub mod posix08 {
1120
1160
}
@@ -1800,6 +1840,9 @@ pub mod consts {
1800
1840
pub static _SC_XOPEN_LEGACY : c_int = 129 ;
1801
1841
pub static _SC_XOPEN_REALTIME : c_int = 130 ;
1802
1842
pub static _SC_XOPEN_REALTIME_THREADS : c_int = 131 ;
1843
+
1844
+ pub static PTHREAD_CREATE_JOINABLE : c_int = 0 ;
1845
+ pub static PTHREAD_CREATE_DETACHED : c_int = 1 ;
1803
1846
}
1804
1847
pub mod posix08 {
1805
1848
}
@@ -2207,6 +2250,9 @@ pub mod consts {
2207
2250
pub static _SC_XOPEN_UNIX : c_int = 115 ;
2208
2251
pub static _SC_XOPEN_VERSION : c_int = 116 ;
2209
2252
pub static _SC_XOPEN_XCU_VERSION : c_int = 117 ;
2253
+
2254
+ pub static PTHREAD_CREATE_JOINABLE : c_int = 0 ;
2255
+ pub static PTHREAD_CREATE_DETACHED : c_int = 1 ;
2210
2256
}
2211
2257
pub mod posix08 {
2212
2258
}
@@ -2560,6 +2606,9 @@ pub mod consts {
2560
2606
pub static _SC_XOPEN_UNIX : c_int = 115 ;
2561
2607
pub static _SC_XOPEN_VERSION : c_int = 116 ;
2562
2608
pub static _SC_XOPEN_XCU_VERSION : c_int = 121 ;
2609
+
2610
+ pub static PTHREAD_CREATE_JOINABLE : c_int = 1 ;
2611
+ pub static PTHREAD_CREATE_DETACHED : c_int = 2 ;
2563
2612
}
2564
2613
pub mod posix08 {
2565
2614
}
0 commit comments