File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,22 @@ s! {
655
655
pub updated: :: c_ulong,
656
656
pub ha: [ :: c_uchar; :: MAX_ADDR_LEN ] ,
657
657
}
658
+
659
+ #[ cfg( target_arch="x86_64" ) ]
660
+ #[ repr( C ) ]
661
+ pub struct jmp_buf {
662
+ __jmpbuf: [ i64 ; 8 ] ,
663
+ __mask_was_saved: :: c_int,
664
+ __saved_mask: :: sigset_t,
665
+ }
666
+
667
+ #[ cfg( target_arch="x86_64" ) ]
668
+ #[ repr( C ) ]
669
+ pub struct sigjmp_buf {
670
+ __jmpbuf: [ i64 ; 8 ] ,
671
+ __mask_was_saved: :: c_int,
672
+ __saved_mask: :: sigset_t,
673
+ }
658
674
}
659
675
660
676
pub const ABDAY_1 : :: nl_item = 0x20000 ;
@@ -2259,6 +2275,17 @@ extern {
2259
2275
nobj : :: size_t ,
2260
2276
stream : * mut :: FILE
2261
2277
) -> :: size_t ;
2278
+
2279
+ #[ cfg( target_arch="x86_64" ) ]
2280
+ pub fn setjmp ( env : * mut :: jmp_buf ) -> :: c_int ;
2281
+ #[ cfg( target_arch="x86_64" ) ]
2282
+ #[ link_name="__sigsetjmp" ]
2283
+ #[ cfg( target_arch="x86_64" ) ]
2284
+ pub fn sigsetjmp ( env : * mut :: sigjmp_buf , savesigs : :: c_int ) -> :: c_int ;
2285
+ #[ cfg( target_arch="x86_64" ) ]
2286
+ pub fn longjmp ( env : * mut :: jmp_buf , val : :: c_int ) ;
2287
+ #[ cfg( target_arch="x86_64" ) ]
2288
+ pub fn siglongjmp ( env : * mut :: sigjmp_buf , val : :: c_int ) ;
2262
2289
}
2263
2290
2264
2291
cfg_if ! {
You can’t perform that action at this time.
0 commit comments