setjmp.h revision 32641
1139969Simp/*-
21556Srgrimes * Copyright (c) 1990, 1993
31556Srgrimes *	The Regents of the University of California.  All rights reserved.
41556Srgrimes * (c) UNIX System Laboratories, Inc.
51556Srgrimes * All or some portions of this file are derived from material licensed
61556Srgrimes * to the University of California by American Telephone and Telegraph
71556Srgrimes * Co. or Unix System Laboratories, Inc. and are reproduced herein with
81556Srgrimes * the permission of UNIX System Laboratories, Inc.
91556Srgrimes *
101556Srgrimes * Redistribution and use in source and binary forms, with or without
111556Srgrimes * modification, are permitted provided that the following conditions
121556Srgrimes * are met:
131556Srgrimes * 1. Redistributions of source code must retain the above copyright
141556Srgrimes *    notice, this list of conditions and the following disclaimer.
151556Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
161556Srgrimes *    notice, this list of conditions and the following disclaimer in the
171556Srgrimes *    documentation and/or other materials provided with the distribution.
181556Srgrimes * 3. All advertising materials mentioning features or use of this software
191556Srgrimes *    must display the following acknowledgement:
201556Srgrimes *	This product includes software developed by the University of
211556Srgrimes *	California, Berkeley and its contributors.
221556Srgrimes * 4. Neither the name of the University nor the names of its contributors
231556Srgrimes *    may be used to endorse or promote products derived from this software
241556Srgrimes *    without specific prior written permission.
251556Srgrimes *
261556Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
271556Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
281556Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
291556Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
301556Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
311556Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
321556Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
331556Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3427958Ssteve * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
351556Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
361556Srgrimes * SUCH DAMAGE.
3727967Ssteve *
3827967Ssteve *	@(#)setjmp.h	8.2 (Berkeley) 1/21/94
3990153Smarkm */
4027967Ssteve
4127967Ssteve#ifndef _SETJMP_H_
4290153Smarkm#define _SETJMP_H_
4327967Ssteve
4499109Sobrien/* The size of the jmp_buf is machine dependent: */
4599109Sobrien#include <machine/setjmp.h>
461556Srgrimes
47226509Sdes#include <sys/cdefs.h>
481556Srgrimes
491556Srgrimes__BEGIN_DECLS
50105832Srwatsonint	setjmp __P((jmp_buf));
511556Srgrimesvoid	longjmp __P((jmp_buf, int)) __dead2;
521556Srgrimes
531556Srgrimes#ifndef _ANSI_SOURCE
541556Srgrimesint	sigsetjmp __P((sigjmp_buf, int));
551556Srgrimesvoid	siglongjmp __P((sigjmp_buf, int)) __dead2;
5690878Simp#endif /* not ANSI */
57114583Smarkm
5850050Ssheldonh#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
5950050Ssheldonhint	_setjmp __P((jmp_buf));
6090878Simpvoid	_longjmp __P((jmp_buf, int)) __dead2;
611556Srgrimesvoid	longjmperror __P((void));
621556Srgrimes#endif /* neither ANSI nor POSIX */
631556Srgrimes__END_DECLS
6461289Sache
6561268Sjoe#endif /* !_SETJMP_H_ */
6661289Sache