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