File tree Expand file tree Collapse file tree 13 files changed +96
-0
lines changed Expand file tree Collapse file tree 13 files changed +96
-0
lines changed Original file line number Diff line number Diff line change @@ -2234,6 +2234,9 @@ fn test_linux(target: &str) {
2234
2234
2235
2235
t if t. ends_with ( "_t" ) => t. to_string ( ) ,
2236
2236
2237
+ // In MUSL `flock64` is a typedef to `flock`.
2238
+ "flock64" if musl => format ! ( "struct {}" , ty) ,
2239
+
2237
2240
// put `struct` in front of all structs:.
2238
2241
t if is_struct => format ! ( "struct {}" , t) ,
2239
2242
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ pub type ino_t = ::c_ulong;
22
22
pub type __CPU_BITTYPE = :: c_ulong ;
23
23
pub type idtype_t = :: c_int ;
24
24
pub type loff_t = :: c_longlong ;
25
+ pub type __kernel_loff_t = :: c_longlong ;
26
+ pub type __kernel_pid_t = :: c_int ;
25
27
26
28
s ! {
27
29
pub struct stack_t {
78
80
pub l_pid: :: pid_t,
79
81
}
80
82
83
+ pub struct flock64 {
84
+ pub l_type: :: c_short,
85
+ pub l_whence: :: c_short,
86
+ pub l_start: :: __kernel_loff_t,
87
+ pub l_len: :: __kernel_loff_t,
88
+ pub l_pid: :: __kernel_pid_t,
89
+ }
90
+
81
91
pub struct cpu_set_t {
82
92
#[ cfg( target_pointer_width = "64" ) ]
83
93
__bits: [ __CPU_BITTYPE; 16 ] ,
Original file line number Diff line number Diff line change @@ -223,6 +223,14 @@ s! {
223
223
pub l_pid: :: pid_t,
224
224
}
225
225
226
+ pub struct flock64 {
227
+ pub l_type: :: c_short,
228
+ pub l_whence: :: c_short,
229
+ pub l_start: :: off64_t,
230
+ pub l_len: :: off64_t,
231
+ pub l_pid: :: pid_t,
232
+ }
233
+
226
234
pub struct pthread_attr_t {
227
235
__size: [ u32 ; 11 ]
228
236
}
Original file line number Diff line number Diff line change 33
33
pub l_pid: :: pid_t,
34
34
}
35
35
36
+ pub struct flock64 {
37
+ pub l_type: :: c_short,
38
+ pub l_whence: :: c_short,
39
+ pub l_start: :: off64_t,
40
+ pub l_len: :: off64_t,
41
+ pub l_pid: :: pid_t,
42
+ }
43
+
36
44
pub struct ipc_perm {
37
45
pub __key: :: key_t,
38
46
pub uid: :: uid_t,
Original file line number Diff line number Diff line change 33
33
pub l_pid: :: pid_t,
34
34
}
35
35
36
+ pub struct flock64 {
37
+ pub l_type: :: c_short,
38
+ pub l_whence: :: c_short,
39
+ pub l_start: :: off64_t,
40
+ pub l_len: :: off64_t,
41
+ pub l_pid: :: pid_t,
42
+ }
43
+
36
44
pub struct ipc_perm {
37
45
__key: :: key_t,
38
46
pub uid: :: uid_t,
Original file line number Diff line number Diff line change 34
34
pub l_pid: :: pid_t,
35
35
}
36
36
37
+ pub struct flock64 {
38
+ pub l_type: :: c_short,
39
+ pub l_whence: :: c_short,
40
+ pub l_start: :: off64_t,
41
+ pub l_len: :: off64_t,
42
+ pub l_pid: :: pid_t,
43
+ }
44
+
37
45
pub struct _libc_fpreg {
38
46
pub significand: [ u16 ; 4 ] ,
39
47
pub exponent: u16 ,
Original file line number Diff line number Diff line change 45
45
pub l_pid: :: pid_t,
46
46
}
47
47
48
+ pub struct flock64 {
49
+ pub l_type: :: c_short,
50
+ pub l_whence: :: c_short,
51
+ pub l_start: :: off64_t,
52
+ pub l_len: :: off64_t,
53
+ pub l_pid: :: pid_t,
54
+ }
55
+
48
56
pub struct stat {
49
57
pub st_dev: :: dev_t,
50
58
pub st_ino: :: ino_t,
Original file line number Diff line number Diff line change 57
57
pub l_pid: :: pid_t,
58
58
}
59
59
60
+ pub struct flock64 {
61
+ pub l_type: :: c_short,
62
+ pub l_whence: :: c_short,
63
+ pub l_start: :: off64_t,
64
+ pub l_len: :: off64_t,
65
+ pub l_pid: :: pid_t,
66
+ }
67
+
60
68
pub struct stat64 {
61
69
pub st_dev: :: c_ulong,
62
70
st_pad1: [ :: c_long; 2 ] ,
Original file line number Diff line number Diff line change 45
45
pub l_pid: :: pid_t,
46
46
}
47
47
48
+ pub struct flock64 {
49
+ pub l_type: :: c_short,
50
+ pub l_whence: :: c_short,
51
+ pub l_start: :: off64_t,
52
+ pub l_len: :: off64_t,
53
+ pub l_pid: :: pid_t,
54
+ }
55
+
48
56
pub struct stat {
49
57
pub st_dev: :: dev_t,
50
58
pub st_ino: :: ino_t,
Original file line number Diff line number Diff line change 44
44
pub l_pid: :: pid_t,
45
45
}
46
46
47
+ pub struct flock64 {
48
+ pub l_type: :: c_short,
49
+ pub l_whence: :: c_short,
50
+ pub l_start: :: off64_t,
51
+ pub l_len: :: off64_t,
52
+ pub l_pid: :: pid_t,
53
+ }
54
+
47
55
pub struct siginfo_t {
48
56
pub si_signo: :: c_int,
49
57
pub si_errno: :: c_int,
You can’t perform that action at this time.
0 commit comments