sigjmp_struct.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SIGJMP_STRUCT_H
#define _SIGJMP_STRUCT_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <ucontext.h>
#include <setjmp.h>
#if defined(__sparc)
/*
* The following structure MUST match the ABI size specifier _SIGJBLEN.
* This is 19 (longs). The ABI value for _JBLEN is 12 (longs).
* A greg_t is a long. A sigset_t is 4 ints and a stack_t is 3 longs.
*
* The layout of this structure must match the layout of the same
* the layout is private, not known to applications.
*
* We make the first 5 members match the implementations of
* setjmp()/longjmp(), so that an application could (stupidly)
* do sigsetjmp(env) followed by longjmp(env) (but not setjmp(env)
* followed by siglongjmp(env)).
*/
typedef struct {
int sjs_flags; /* JBUF[ 0] */
#if defined(_LP64)
#endif
#define JB_SAVEMASK 0x1
#define JB_FRAMEPTR 0x2
#endif /* __sparc */
#ifdef __cplusplus
}
#endif
#endif /* _SIGJMP_STRUCT_H */