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