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 | * | |
6670c0eb | 7 | * @(#)setjmp.h 5.2 (Berkeley) %G% |
9f015abc | 8 | */ |
21e51ba9 | 9 | |
caf5d079 KM |
10 | #ifndef _SETJMP_ |
11 | #define _SETJMP_ | |
12 | ||
a96588ae KB |
13 | #ifdef hp300 |
14 | #define _JBLEN 17 | |
15 | #endif | |
16 | ||
17 | #ifdef i386 | |
caf5d079 KM |
18 | #define _JBLEN 10 |
19 | #endif | |
20 | ||
21 | #ifdef tahoe | |
22 | #define _JBLEN 10 | |
23 | #endif | |
24 | ||
a96588ae KB |
25 | #ifdef vax |
26 | #define _JBLEN 10 | |
caf5d079 KM |
27 | #endif |
28 | ||
a96588ae KB |
29 | /* |
30 | * sigsetjmp/siglongjmp use the first int to decide if the | |
31 | * signal mask was saved or not. | |
32 | */ | |
33 | typedef int sigjmp_buf[_JBLEN + 1]; | |
34 | ||
35 | #ifndef _POSIX_SOURCE | |
caf5d079 | 36 | typedef int jmp_buf[_JBLEN]; |
a96588ae | 37 | #endif |
caf5d079 | 38 | |
6670c0eb | 39 | #if __STDC__ || c_plusplus |
a96588ae KB |
40 | int sigsetjmp(sigjmp_buf, int); |
41 | void siglongjmp(sigjmp_buf, int); | |
42 | #ifndef _POSIX_SOURCE | |
43 | extern int setjmp(jmp_buf); | |
44 | extern int _setjmp(jmp_buf); | |
45 | extern void longjmp(jmp_buf, int); | |
46 | extern void _longjmp(jmp_buf, int); | |
47 | #endif | |
9f015abc | 48 | #else |
a96588ae KB |
49 | int sigsetjmp(); |
50 | void siglongjmp(); | |
51 | #ifndef _POSIX_SOURCE | |
52 | extern int setjmp(); | |
53 | extern int _setjmp(); | |
54 | extern void longjmp(); | |
55 | extern void _longjmp(); | |
56 | #endif | |
9f015abc | 57 | #endif |
caf5d079 | 58 | #endif |