35 lines · 834 B · C
RawDownload
/*  * 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_SOURCEtypedef int sigjmp_buf[10];#endif #ifdef __cplusplusextern "C" {#endif extern int setjmp(jmp_buf);extern void longjmp(jmp_buf, int); #ifdef _POSIX_SOURCEextern int sigsetjmp(sigjmp_buf, int);extern void siglongjmp(sigjmp_buf, int);#endif #ifdef __cplusplus}#endif #endif /* __SETJMP_H */