File tree Expand file tree Collapse file tree 2 files changed +50
-2
lines changed
src/unix/notbsd/linux/other Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change 1
1
pub type c_char = i8 ;
2
2
pub type wchar_t = i32 ;
3
+ pub type greg_t = i32 ;
3
4
4
5
s ! {
6
+ pub struct _libc_fpreg {
7
+ pub significand: [ u16 ; 4 ] ,
8
+ pub exponent: u16 ,
9
+ }
10
+
11
+ pub struct _libc_fpstate {
12
+ pub cw: :: c_ulong,
13
+ pub sw: :: c_ulong,
14
+ pub tag: :: c_ulong,
15
+ pub ipoff: :: c_ulong,
16
+ pub cssel: :: c_ulong,
17
+ pub dataoff: :: c_ulong,
18
+ pub datasel: :: c_ulong,
19
+ pub _st: [ _libc_fpreg; 8 ] ,
20
+ pub status: :: c_ulong,
21
+ }
22
+
5
23
pub struct mcontext_t {
6
- __private: [ u32 ; 22 ]
24
+ pub gregs: [ greg_t; 19 ] ,
25
+ pub fpregs: * mut _libc_fpstate,
26
+ pub oldmask: :: c_ulong,
27
+ pub cr2: :: c_ulong,
7
28
}
8
29
9
30
pub struct ucontext_t {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ pub type c_char = i8;
4
4
pub type wchar_t = i32 ;
5
5
pub type nlink_t = u64 ;
6
6
pub type blksize_t = i64 ;
7
+ pub type greg_t = i64 ;
7
8
8
9
s ! {
9
10
pub struct stat {
52
53
__size: [ u64 ; 7 ]
53
54
}
54
55
56
+ pub struct _libc_fpxreg {
57
+ pub significand: [ u16 ; 4 ] ,
58
+ pub exponent: u16 ,
59
+ __private: [ u16 ; 3 ] ,
60
+ }
61
+
62
+ pub struct _libc_xmmreg {
63
+ pub element: [ u32 ; 4 ] ,
64
+ }
65
+
66
+ pub struct _libc_fpstate {
67
+ pub cwd: u16 ,
68
+ pub swd: u16 ,
69
+ pub ftw: u16 ,
70
+ pub fop: u16 ,
71
+ pub rip: u64 ,
72
+ pub rdp: u64 ,
73
+ pub mxcsr: u32 ,
74
+ pub mxcr_mask: u32 ,
75
+ pub _st: [ _libc_fpxreg; 8 ] ,
76
+ pub _xmm: [ _libc_xmmreg; 16 ] ,
77
+ __private: [ u64 ; 12 ] ,
78
+ }
79
+
55
80
pub struct mcontext_t {
56
- __private: [ u64 ; 32 ] ,
81
+ pub gregs: [ greg_t; 23 ] ,
82
+ pub fpregs: * mut _libc_fpstate,
83
+ __private: [ u64 ; 8 ] ,
57
84
}
58
85
59
86
pub struct ucontext_t {
You can’t perform that action at this time.
0 commit comments