1*5fd6947dSthorpej /* $NetBSD: signal.h,v 1.13 2021/10/27 04:45:42 thorpej Exp $ */ 281918bf8Sfvdl 381918bf8Sfvdl /* 481918bf8Sfvdl * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California. 581918bf8Sfvdl * All rights reserved. 681918bf8Sfvdl * 781918bf8Sfvdl * Redistribution and use in source and binary forms, with or without 881918bf8Sfvdl * modification, are permitted provided that the following conditions 981918bf8Sfvdl * are met: 1081918bf8Sfvdl * 1. Redistributions of source code must retain the above copyright 1181918bf8Sfvdl * notice, this list of conditions and the following disclaimer. 1281918bf8Sfvdl * 2. Redistributions in binary form must reproduce the above copyright 1381918bf8Sfvdl * notice, this list of conditions and the following disclaimer in the 1481918bf8Sfvdl * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 1681918bf8Sfvdl * may be used to endorse or promote products derived from this software 1781918bf8Sfvdl * without specific prior written permission. 1881918bf8Sfvdl * 1981918bf8Sfvdl * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2081918bf8Sfvdl * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2181918bf8Sfvdl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2281918bf8Sfvdl * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2381918bf8Sfvdl * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2481918bf8Sfvdl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2581918bf8Sfvdl * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2681918bf8Sfvdl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2781918bf8Sfvdl * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2881918bf8Sfvdl * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2981918bf8Sfvdl * SUCH DAMAGE. 3081918bf8Sfvdl * 3181918bf8Sfvdl * @(#)signal.h 7.16 (Berkeley) 3/17/91 3281918bf8Sfvdl */ 3381918bf8Sfvdl 3481918bf8Sfvdl #ifndef _AMD64_SIGNAL_H_ 3581918bf8Sfvdl #define _AMD64_SIGNAL_H_ 3681918bf8Sfvdl 37433b5ddeSmrg #ifdef __x86_64__ 38433b5ddeSmrg 394be7a2dcSbjh21 #include <sys/featuretest.h> 404be7a2dcSbjh21 41*5fd6947dSthorpej #ifdef _KERNEL 42*5fd6947dSthorpej /* This is needed to support COMPAT_NETBSD32. */ 43*5fd6947dSthorpej #define __HAVE_STRUCT_SIGCONTEXT 44*5fd6947dSthorpej #endif /* _KERNEL */ 45*5fd6947dSthorpej 4681918bf8Sfvdl typedef int sig_atomic_t; 4781918bf8Sfvdl 484be7a2dcSbjh21 #if defined(_NETBSD_SOURCE) 4981918bf8Sfvdl /* 5081918bf8Sfvdl * Get the "code" values 5181918bf8Sfvdl */ 5281918bf8Sfvdl #include <machine/trap.h> 5381918bf8Sfvdl #include <machine/mcontext.h> 5481918bf8Sfvdl 5511f19508Spavel #ifdef _KERNEL_OPT 5611f19508Spavel #include "opt_compat_netbsd.h" 5711f19508Spavel #include "opt_compat_netbsd32.h" 5811f19508Spavel #endif 591c36c6dcSbriggs 604be7a2dcSbjh21 #endif /* _NETBSD_SOURCE */ 61433b5ddeSmrg 62433b5ddeSmrg #else /* __x86_64__ */ 63433b5ddeSmrg 64433b5ddeSmrg #include <i386/signal.h> 65433b5ddeSmrg 66433b5ddeSmrg #endif /* __x86_64__ */ 67433b5ddeSmrg 6881918bf8Sfvdl #endif /* !_AMD64_SIGNAL_H_ */ 69