signal.h revision 1.5
1/* $OpenBSD: signal.h,v 1.5 2004/04/03 01:03:11 mickey Exp $ */ 2 3/* 4 * Copyright (c) 1994, The University of Utah and 5 * the Computer Systems Laboratory at the University of Utah (CSL). 6 * All rights reserved. 7 * 8 * Permission to use, copy, modify and distribute this software is hereby 9 * granted provided that (1) source code retains these copyright, permission, 10 * and disclaimer notices, and (2) redistributions including binaries 11 * reproduce the notices in supporting documentation, and (3) all advertising 12 * materials mentioning features or use of this software display the following 13 * acknowledgement: ``This product includes software developed by the 14 * Computer Systems Laboratory at the University of Utah.'' 15 * 16 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS 17 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF 18 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19 * 20 * CSL requests users of this software to return to csl-dist@cs.utah.edu any 21 * improvements that they make and grant CSL redistribution rights. 22 * 23 * Utah $Hdr: signal.h 1.3 94/12/16$ 24 */ 25 26#ifndef _HPPA_SIGNAL_H_ 27#define _HPPA_SIGNAL_H_ 28 29/* 30 * Machine-dependent signal definitions 31 */ 32 33typedef int sig_atomic_t; 34 35#ifndef _ANSI_SOURCE 36#include <machine/trap.h> 37 38/* 39 * Information pushed on stack when a signal is delivered. 40 * This is used by the kernel to restore state following 41 * execution of the signal handler. It is also made available 42 * to the handler to allow it to restore state properly if 43 * a non-standard exit is performed. 44 */ 45struct sigcontext { 46 unsigned sc_onstack; /* sigstack state to restore */ 47 unsigned sc_mask; /* signal mask to restore */ 48 unsigned sc_ps; /* psl to restore */ 49 unsigned sc_fp; /* fp to restore */ 50 unsigned sc_pcoqh; /* pc offset queue (head) to restore */ 51 unsigned sc_pcoqt; /* pc offset queue (tail) to restore */ 52 unsigned sc_resv[2]; 53 unsigned sc_regs[32]; 54 unsigned sc_fpregs[64]; 55}; 56#endif /* !_ANSI_SOURCE */ 57#endif /* !_HPPA_SIGNAL_H_ */ 58