File tree 5 files changed +67
-0
lines changed
src/unix/linux_like/linux
5 files changed +67
-0
lines changed Original file line number Diff line number Diff line change @@ -2827,6 +2827,7 @@ fn test_linux(target: &str) {
2827
2827
"linux/rtnetlink.h" ,
2828
2828
"linux/sched.h" ,
2829
2829
"linux/seccomp.h" ,
2830
+ "linux/sched.h" ,
2830
2831
"linux/sockios.h" ,
2831
2832
"linux/uinput.h" ,
2832
2833
"linux/vm_sockets.h" ,
@@ -2977,6 +2978,8 @@ fn test_linux(target: &str) {
2977
2978
2978
2979
// Requires glibc 2.33 or newer.
2979
2980
"mallinfo2" => true ,
2981
+ // clone_args might differ b/w libc versions
2982
+ "clone_args" => true ,
2980
2983
2981
2984
// Might differ between kernel versions
2982
2985
"open_how" => true ,
Original file line number Diff line number Diff line change 34
34
pub fpcr: :: c_uint,
35
35
}
36
36
37
+ #[ repr( align( 8 ) ) ]
38
+ pub struct clone_args {
39
+ pub flags: :: c_ulonglong,
40
+ pub pidfd: :: c_ulonglong,
41
+ pub child_tid: :: c_ulonglong,
42
+ pub parent_tid: :: c_ulonglong,
43
+ pub exit_signal: :: c_ulonglong,
44
+ pub stack: :: c_ulonglong,
45
+ pub stack_size: :: c_ulonglong,
46
+ pub tls: :: c_ulonglong,
47
+ pub set_tid: :: c_ulonglong,
48
+ pub set_tid_size: :: c_ulonglong,
49
+ pub cgroup: :: c_ulonglong,
50
+ }
37
51
}
Original file line number Diff line number Diff line change @@ -5,3 +5,20 @@ s_no_extra_traits! {
5
5
priv_: [ f64 ; 4 ]
6
6
}
7
7
}
8
+
9
+ s ! {
10
+ #[ repr( align( 8 ) ) ]
11
+ pub struct clone_args {
12
+ pub flags: :: c_ulonglong,
13
+ pub pidfd: :: c_ulonglong,
14
+ pub child_tid: :: c_ulonglong,
15
+ pub parent_tid: :: c_ulonglong,
16
+ pub exit_signal: :: c_ulonglong,
17
+ pub stack: :: c_ulonglong,
18
+ pub stack_size: :: c_ulonglong,
19
+ pub tls: :: c_ulonglong,
20
+ pub set_tid: :: c_ulonglong,
21
+ pub set_tid_size: :: c_ulonglong,
22
+ pub cgroup: :: c_ulonglong,
23
+ }
24
+ }
Original file line number Diff line number Diff line change 24
24
pub pstate: :: c_ulong,
25
25
__reserved: [ [ u64 ; 32 ] ; 16 ] ,
26
26
}
27
+
28
+ #[ repr( align( 8 ) ) ]
29
+ pub struct clone_args {
30
+ pub flags: :: c_ulonglong,
31
+ pub pidfd: :: c_ulonglong,
32
+ pub child_tid: :: c_ulonglong,
33
+ pub parent_tid: :: c_ulonglong,
34
+ pub exit_signal: :: c_ulonglong,
35
+ pub stack: :: c_ulonglong,
36
+ pub stack_size: :: c_ulonglong,
37
+ pub tls: :: c_ulonglong,
38
+ pub set_tid: :: c_ulonglong,
39
+ pub set_tid_size: :: c_ulonglong,
40
+ pub cgroup: :: c_ulonglong,
41
+ }
27
42
}
Original file line number Diff line number Diff line change @@ -4,4 +4,22 @@ s_no_extra_traits! {
4
4
pub struct max_align_t {
5
5
priv_: [ f64 ; 4 ]
6
6
}
7
+
8
+ }
9
+
10
+ s ! {
11
+ #[ repr( align( 8 ) ) ]
12
+ pub struct clone_args {
13
+ pub flags: :: c_ulonglong,
14
+ pub pidfd: :: c_ulonglong,
15
+ pub child_tid: :: c_ulonglong,
16
+ pub parent_tid: :: c_ulonglong,
17
+ pub exit_signal: :: c_ulonglong,
18
+ pub stack: :: c_ulonglong,
19
+ pub stack_size: :: c_ulonglong,
20
+ pub tls: :: c_ulonglong,
21
+ pub set_tid: :: c_ulonglong,
22
+ pub set_tid_size: :: c_ulonglong,
23
+ pub cgroup: :: c_ulonglong,
24
+ }
7
25
}
You can’t perform that action at this time.
0 commit comments