setjmp.h revision 234785
11539Srgrimes/*- 21539Srgrimes * Copyright (c) 1990, 1993 31539Srgrimes * The Regents of the University of California. All rights reserved. 41539Srgrimes * (c) UNIX System Laboratories, Inc. 51539Srgrimes * All or some portions of this file are derived from material licensed 61539Srgrimes * to the University of California by American Telephone and Telegraph 71539Srgrimes * Co. or Unix System Laboratories, Inc. and are reproduced herein with 81539Srgrimes * the permission of UNIX System Laboratories, Inc. 91539Srgrimes * 101539Srgrimes * Redistribution and use in source and binary forms, with or without 111539Srgrimes * modification, are permitted provided that the following conditions 121539Srgrimes * are met: 131539Srgrimes * 1. Redistributions of source code must retain the above copyright 141539Srgrimes * notice, this list of conditions and the following disclaimer. 151539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 161539Srgrimes * notice, this list of conditions and the following disclaimer in the 171539Srgrimes * documentation and/or other materials provided with the distribution. 18203964Simp * 3. Neither the name of the University nor the names of its contributors 191539Srgrimes * may be used to endorse or promote products derived from this software 201539Srgrimes * without specific prior written permission. 211539Srgrimes * 221539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 231539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 251539Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 261539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 271539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 281539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 291539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 301539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 311539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321539Srgrimes * SUCH DAMAGE. 331539Srgrimes * 341539Srgrimes * @(#)setjmp.h 8.2 (Berkeley) 1/21/94 3593032Simp * $FreeBSD: head/include/setjmp.h 234785 2012-04-29 11:04:31Z dim $ 361539Srgrimes */ 371539Srgrimes 381539Srgrimes#ifndef _SETJMP_H_ 391539Srgrimes#define _SETJMP_H_ 401539Srgrimes 41104506Smike#include <sys/cdefs.h> 42104506Smike 4332419Sjb/* The size of the jmp_buf is machine dependent: */ 4432419Sjb#include <machine/setjmp.h> 451539Srgrimes 461539Srgrimes__BEGIN_DECLS 47189807Sdas#if __BSD_VISIBLE || __XSI_VISIBLE >= 600 48104506Smikevoid _longjmp(jmp_buf, int) __dead2; 49234785Sdimint _setjmp(jmp_buf) __returns_twice; 50104506Smike#endif 51104506Smikevoid longjmp(jmp_buf, int) __dead2; 52104506Smike#if __BSD_VISIBLE 53104506Smikevoid longjmperror(void); 54104506Smike#endif 55234785Sdimint setjmp(jmp_buf) __returns_twice; 56104506Smike#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE 57104506Smikevoid siglongjmp(sigjmp_buf, int) __dead2; 58234785Sdimint sigsetjmp(sigjmp_buf, int) __returns_twice; 59104506Smike#endif 601539Srgrimes__END_DECLS 611539Srgrimes 621539Srgrimes#endif /* !_SETJMP_H_ */ 63