FreeBSD/Linux Kernel Cross Reference
sys/i386/setjmp.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1993,1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: setjmp.h,v $
29 * Revision 2.5 93/11/17 16:39:27 dbg
30 * Added prototypes for _setjmp, _longjmp.
31 * [93/10/11 dbg]
32 *
33 * Revision 2.4 91/05/14 16:16:12 mrt
34 * Correcting copyright
35 *
36 * Revision 2.3 91/02/05 17:14:34 mrt
37 * Changed to new Mach copyright
38 * [91/02/01 17:37:53 mrt]
39 *
40 * Revision 2.2 90/08/27 21:58:23 dbg
41 * Created.
42 * [90/07/16 dbg]
43 *
44 */
45
46 /*
47 * Setjmp/longjmp buffer for i386.
48 */
49 #ifndef _I386_SETJMP_H_
50 #define _I386_SETJMP_H_
51
52 typedef struct jmp_buf {
53 int jmp_buf[6]; /* ebx, esi, edi, ebp, esp, eip */
54 } jmp_buf_t;
55
56 extern int _setjmp(jmp_buf_t *);
57
58 extern
59 #ifdef __GNUC__
60 volatile
61 #endif
62 void _longjmp(jmp_buf_t *, int);
63
64 #endif /* _I386_SETJMP_H_ */
Cache object: 63b2c06a45fe32d4abca72f173970e37
|