|
|
1.1 root 1: /*
2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * The contents of this file constitute Original Code as defined in and
7: * are subject to the Apple Public Source License Version 1.1 (the
8: * "License"). You may not use this file except in compliance with the
9: * License. Please obtain a copy of the License at
10: * http://www.apple.com/publicsource and read it before using this file.
11: *
12: * This Original Code and all software distributed under the License are
13: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17: * License for the specific language governing rights and limitations
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved.
23: *
24: * File: setjmp.h
25: *
26: * Declaration of setjmp routines and data structures.
27: */
28: #ifndef _BSD_I386_SETJMP_H
29: #define _BSD_I386_SETJMP_H
30:
31: #include <sys/cdefs.h>
32: #include <i386/signal.h>
33:
34: typedef struct sigcontext jmp_buf[1];
35:
36: #define _JBLEN ((sizeof(struct sigcontext)) / sizeof(int))
37: typedef int sigjmp_buf[_JBLEN+1];
38:
39: __BEGIN_DECLS
40: extern int setjmp __P((jmp_buf env));
41: extern void longjmp __P((jmp_buf env, int val));
42:
43: #ifndef _ANSI_SOURCE
44: int sigsetjmp __P((sigjmp_buf env, int val));
45: void siglongjmp __P((sigjmp_buf env, int val));
46: #endif /* _ANSI_SOURCE */
47:
48: #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
49: int _setjmp __P((jmp_buf env));
50: void _longjmp __P((jmp_buf, int val));
51: void longjmperror __P((void));
52: #endif /* neither ANSI nor POSIX */
53: __END_DECLS
54: #endif /* !_BSD_I386_SETJMP_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.