File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/unix/notbsd/linux/other Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 6161 _align: [ usize ; 0 ] ,
6262 }
6363
64- impl siginfo_t {
65- pub unsafe fn si_addr( & self ) -> * mut :: c_void {
66- #[ repr( C ) ]
67- struct siginfo_sigfault {
68- _si_signo: :: c_int,
69- _si_errno: :: c_int,
70- _si_code: :: c_int,
71- si_addr: * mut :: c_void
72- }
73- ( * ( self as * const siginfo_t as * const siginfo_sigfault) ) . si_addr
74- }
75- }
76-
7764 pub struct glob64_t {
7865 pub gl_pathc: :: size_t,
7966 pub gl_pathv: * mut * mut :: c_char,
@@ -213,6 +200,19 @@ s! {
213200 }
214201}
215202
203+ impl siginfo_t {
204+ pub unsafe fn si_addr ( & self ) -> * mut :: c_void {
205+ #[ repr( C ) ]
206+ struct siginfo_sigfault {
207+ _si_signo : :: c_int ,
208+ _si_errno : :: c_int ,
209+ _si_code : :: c_int ,
210+ si_addr : * mut :: c_void
211+ }
212+ ( * ( self as * const siginfo_t as * const siginfo_sigfault ) ) . si_addr
213+ }
214+ }
215+
216216s_no_extra_traits ! {
217217 pub struct utmpx {
218218 pub ut_type: :: c_short,
You can’t perform that action at this time.
0 commit comments