Commit | Line | Data |
---|---|---|
9f015abc KB |
1 | /*- |
2 | * Copyright (c) 1990 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.redist.c% | |
6 | * | |
7ca48bc5 | 7 | * @(#)setjmp.h 5.8 (Berkeley) %G% |
9f015abc | 8 | */ |
21e51ba9 | 9 | |
91befe9c KB |
10 | #ifndef _SETJMP_H_ |
11 | #define _SETJMP_H_ | |
caf5d079 | 12 | |
473c3377 | 13 | #if defined(hp300) || defined(__hp300__) || defined(luna68k) || defined(__luna68k__) |
a96588ae KB |
14 | #define _JBLEN 17 |
15 | #endif | |
16 | ||
b1bbedcc | 17 | #if defined(i386) || defined(__i386__) |
caf5d079 KM |
18 | #define _JBLEN 10 |
19 | #endif | |
20 | ||
8b171282 RC |
21 | #if defined(mips) || defined(__mips__) |
22 | #define _JBLEN 83 | |
23 | #endif | |
24 | ||
3543c52f CT |
25 | #if defined(sparc) || defined(__sparc__) |
26 | #define _JBLEN 10 | |
27 | #endif | |
28 | ||
b1bbedcc | 29 | #if defined(tahoe) || defined(__tahoe__) |
caf5d079 KM |
30 | #define _JBLEN 10 |
31 | #endif | |
32 | ||
b1bbedcc | 33 | #if defined(vax) || defined(__vax__) |
a96588ae | 34 | #define _JBLEN 10 |
caf5d079 KM |
35 | #endif |
36 | ||
59c161d4 | 37 | #ifndef _ANSI_SOURCE |
a96588ae | 38 | /* |
59c161d4 | 39 | * WARNING: sigsetjmp() isn't supported yet, this is a placeholder. |
a96588ae KB |
40 | */ |
41 | typedef int sigjmp_buf[_JBLEN + 1]; | |
59c161d4 | 42 | #endif /* not ANSI */ |
a96588ae | 43 | |
caf5d079 KM |
44 | typedef int jmp_buf[_JBLEN]; |
45 | ||
91befe9c KB |
46 | #include <sys/cdefs.h> |
47 | ||
48 | __BEGIN_DECLS | |
59c161d4 DS |
49 | int setjmp __P((jmp_buf)); |
50 | void longjmp __P((jmp_buf, int)); | |
51 | ||
52 | #ifndef _ANSI_SOURCE | |
53 | /* | |
54 | * WARNING: sigsetjmp() isn't supported yet, this is a placeholder. | |
55 | */ | |
56 | int sigsetjmp __P((sigjmp_buf, int)); | |
57 | void siglongjmp __P((sigjmp_buf, int)); | |
58 | #endif /* not ANSI */ | |
59 | ||
60 | #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) | |
61 | int _setjmp __P((jmp_buf)); | |
62 | void _longjmp __P((jmp_buf, int)); | |
63 | void longjmperror __P((void)); | |
64 | #endif /* neither ANSI nor POSIX */ | |
91befe9c KB |
65 | __END_DECLS |
66 | ||
67 | #endif /* !_SETJMP_H_ */ |