8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libbc / inc / include / sys / setjmp.h
blob1954bdd08c3a95896cb74102adf86095670019f2
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 /* from UCB 4.1 83/05/03 */
24 #pragma ident "%Z%%M% %I% %E% SMI"
26 #ifndef __sparc_setjmp_h
27 #define __sparc_setjmp_h
30 * onsstack,sigmask,sp,pc,npc,psr,g1,o0,wbcnt (sigcontext).
31 * All else recovered by under/over(flow) handling.
33 #define _JBLEN 9
35 typedef int jmp_buf[_JBLEN];
38 * One extra word for the "signal mask saved here" flag.
40 typedef int sigjmp_buf[_JBLEN+1];
42 int setjmp(/* jmp_buf env */);
43 int _setjmp(/* jmp_buf env */);
44 int sigsetjmp(/* sigjmp_buf env, int savemask */);
45 void longjmp(/* jmp_buf env, int val */);
46 void _longjmp(/* jmp_buf env, int val */);
47 void siglongjmp(/* sigjmp_buf env, int val */);
50 * Routines that call setjmp have strange control flow graphs,
51 * since a call to a routine that calls resume/longjmp will eventually
52 * return at the setjmp site, not the original call site. This
53 * utterly wrecks control flow analysis.
55 #pragma unknown_control_flow(sigsetjmp, setjmp, _setjmp)
57 #endif /* !__sparc_setjmp_h */