1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * This file is part of the UCB release of Plan 9. It is subject to the license
- * terms in the LICENSE file found in the top-level directory of this
- * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
- * part of the UCB release of Plan 9, including this file, may be copied,
- * modified, propagated, or distributed except according to the terms contained
- * in the LICENSE file.
- */
- #ifndef __SETJMP_H
- #define __SETJMP_H
- #pragma lib "/$M/lib/ape/libap.a"
- typedef int jmp_buf[10];
- #ifdef _POSIX_SOURCE
- typedef int sigjmp_buf[10];
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern int setjmp(jmp_buf);
- extern void longjmp(jmp_buf, int);
- #ifdef _POSIX_SOURCE
- extern int sigsetjmp(sigjmp_buf, int);
- extern void siglongjmp(sigjmp_buf, int);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* __SETJMP_H */
|