Home | History | Annotate | Line # | Download | only in include
      1  1.12  christos /*	$NetBSD: signal.h,v 1.12 2021/10/28 11:25:02 christos Exp $	*/
      2   1.1  fredette 
      3   1.1  fredette /*	$OpenBSD: signal.h,v 1.1 1998/06/23 19:45:27 mickey Exp $	*/
      4   1.1  fredette 
      5   1.8     skrll /*
      6   1.1  fredette  * Copyright (c) 1994, The University of Utah and
      7   1.1  fredette  * the Computer Systems Laboratory at the University of Utah (CSL).
      8   1.1  fredette  * All rights reserved.
      9   1.1  fredette  *
     10   1.1  fredette  * Permission to use, copy, modify and distribute this software is hereby
     11   1.1  fredette  * granted provided that (1) source code retains these copyright, permission,
     12   1.1  fredette  * and disclaimer notices, and (2) redistributions including binaries
     13   1.1  fredette  * reproduce the notices in supporting documentation, and (3) all advertising
     14   1.1  fredette  * materials mentioning features or use of this software display the following
     15   1.1  fredette  * acknowledgement: ``This product includes software developed by the
     16   1.1  fredette  * Computer Systems Laboratory at the University of Utah.''
     17   1.1  fredette  *
     18   1.1  fredette  * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
     19   1.1  fredette  * IS" CONDITION.  THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
     20   1.1  fredette  * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     21   1.1  fredette  *
     22   1.1  fredette  * CSL requests users of this software to return to csl-dist (at) cs.utah.edu any
     23   1.1  fredette  * improvements that they make and grant CSL redistribution rights.
     24   1.1  fredette  *
     25   1.1  fredette  * 	Utah $Hdr: signal.h 1.3 94/12/16$
     26   1.1  fredette  */
     27   1.1  fredette 
     28   1.3      matt #ifndef _HPPA_SIGNAL_H__
     29   1.3      matt #define _HPPA_SIGNAL_H__
     30   1.3      matt 
     31   1.1  fredette /*
     32   1.1  fredette  * Machine-dependent signal definitions
     33   1.1  fredette  */
     34   1.1  fredette 
     35   1.2     bjh21 #include <sys/featuretest.h>
     36   1.7  christos #include <sys/sigtypes.h>
     37   1.2     bjh21 
     38   1.1  fredette typedef int sig_atomic_t;
     39   1.1  fredette 
     40   1.2     bjh21 #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
     41   1.1  fredette #include <machine/trap.h>	/* codes for SIGILL, SIGFPE */
     42   1.1  fredette #endif
     43   1.1  fredette 
     44  1.11  christos #if defined(_LIBC)
     45  1.12  christos #define	__HAVE_STRUCT_SIGCONTEXT
     46  1.11  christos /*
     47  1.11  christos  * Information pushed on stack when a signal is delivered.
     48  1.11  christos  * This is used by the kernel to restore state following
     49  1.11  christos  * execution of the signal handler.  It is also made available
     50  1.11  christos  * to the handler to allow it to restore state properly if
     51  1.11  christos  * a non-standard exit is performed.
     52  1.11  christos  */
     53  1.11  christos struct	sigcontext {
     54  1.11  christos 	int	sc_onstack;		/* sigstack state to restore */
     55  1.11  christos 	int	__sc_mask13;		/* signal mask to restore (old style) */
     56  1.11  christos 	int	sc_sp;			/* sp to restore */
     57  1.11  christos 	int	sc_fp;			/* fp to restore */
     58  1.11  christos 	int	sc_ap;			/* ap to restore */
     59  1.11  christos 	int	sc_pcsqh;		/* pc space queue (head) to restore */
     60  1.11  christos 	int	sc_pcoqh;		/* pc offset queue (head) to restore */
     61  1.11  christos 	int	sc_pcsqt;		/* pc space queue (tail) to restore */
     62  1.11  christos 	int	sc_pcoqt;		/* pc offset queue (tail) to restore */
     63  1.11  christos 	int	sc_ps;			/* psl to restore */
     64  1.11  christos 	sigset_t sc_mask;		/* signal mask to restore (new style) */
     65  1.11  christos };
     66  1.11  christos #endif
     67  1.11  christos 
     68   1.3      matt #endif /* _HPPA_SIGNAL_H__ */
     69