File tree 1 file changed +33
-1
lines changed
src/unix/notbsd/linux/other
1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 1
1
pub type __priority_which_t = :: c_uint ;
2
2
3
+ s_no_extra_traits ! {
4
+ pub union XXX_not_sure_what_to_call_this {
5
+ addr_bnd: addr_bnd_t,
6
+ pkey: u32 ,
7
+ }
8
+
9
+ #[ repr( C , packed) ]
10
+ pub union sifields_t {
11
+ _pad: [ :: c_int; 29 ] ,
12
+ sigfault: sigfault_t,
13
+ }
14
+ }
15
+
3
16
s ! {
4
17
pub struct aiocb {
5
18
pub aio_fildes: :: c_int,
44
57
pub ss_size: :: size_t
45
58
}
46
59
60
+ pub struct addr_bnd_t {
61
+ lower: * mut :: c_void,
62
+ upper: * mut :: c_void,
63
+ }
64
+
65
+ pub struct sigfault_t {
66
+ addr: * mut :: c_void,
67
+ #[ cfg( target_arch = "sparc" ) ]
68
+ trapno: :: c_int,
69
+ addr_lsb: :: c_short,
70
+ xxx_name_unclear: XXX_not_sure_what_to_call_this
71
+ }
72
+
47
73
pub struct siginfo_t {
48
74
pub si_signo: :: c_int,
49
75
pub si_errno: :: c_int,
50
76
pub si_code: :: c_int,
51
- pub _pad : [ :: c_int ; 29 ] ,
77
+ sifields : sifields_t ,
52
78
#[ cfg( target_arch = "x86_64" ) ]
53
79
_align: [ u64 ; 0 ] ,
54
80
#[ cfg( not( target_arch = "x86_64" ) ) ]
@@ -232,6 +258,12 @@ s_no_extra_traits! {
232
258
}
233
259
}
234
260
261
+ impl siginfo_t {
262
+ pub unsafe fn si_addr ( & self ) -> * mut :: c_void {
263
+ self . sifields . sigfault . addr
264
+ }
265
+ }
266
+
235
267
cfg_if ! {
236
268
if #[ cfg( feature = "extra_traits" ) ] {
237
269
impl PartialEq for utmpx {
You can’t perform that action at this time.
0 commit comments