1 /* 2 * CDDL HEADER START 3 * 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. 8 * 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. 13 * 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] 19 * 20 * CDDL HEADER END 21 */ 22 /* from UCB 4.1 83/05/03 */ 23 24 #pragma ident "%Z%%M% %I% %E% SMI" 25 26 #ifndef __sparc_setjmp_h 27 #define __sparc_setjmp_h 28 29 /* 30 * onsstack,sigmask,sp,pc,npc,psr,g1,o0,wbcnt (sigcontext). 31 * All else recovered by under/over(flow) handling. 32 */ 33 #define _JBLEN 9 34 35 typedef int jmp_buf[_JBLEN]; 36 37 /* 38 * One extra word for the "signal mask saved here" flag. 39 */ 40 typedef int sigjmp_buf[_JBLEN+1]; 41 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 */); 48 49 /* 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. 54 */ 55 #pragma unknown_control_flow(sigsetjmp, setjmp, _setjmp) 56 57 #endif /* !__sparc_setjmp_h */ 58