Changes in uspace/lib/c/include/setjmp.h [bc56f30:82fd245] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/setjmp.h
rbc56f30 r82fd245 31 31 */ 32 32 33 #ifndef _LIBC_SETJMP_H_ 34 #define _LIBC_SETJMP_H_ 33 #ifndef LIBC_SETJMP_H_ 34 #define LIBC_SETJMP_H_ 35 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 35 39 36 40 #include <libarch/fibril_context.h> 37 41 #include <_bits/__noreturn.h> 38 #include <_bits/decls.h>39 42 40 __C_DECLS_BEGIN;43 typedef context_t jmp_buf[1]; 41 44 42 typedef __context_t jmp_buf[1]; 45 extern int __setjmp(jmp_buf) __attribute__((returns_twice)); 46 extern __noreturn void __longjmp(jmp_buf, int); 43 47 44 extern int __context_save(__context_t *) __attribute__((returns_twice)); 45 extern __noreturn void __context_restore(__context_t *, int); 46 48 #define setjmp __setjmp 47 49 extern __noreturn void longjmp(jmp_buf, int); 48 50 49 __C_DECLS_END; 50 51 # define setjmp __context_save51 #ifdef __cplusplus 52 } 53 #endif 52 54 53 55 #endif
Note:
See TracChangeset
for help on using the changeset viewer.