11.13Sthorpej/*	$NetBSD: signal.h,v 1.13 2021/10/27 04:45:42 thorpej Exp $	*/
21.1Sfvdl
31.1Sfvdl/*
41.1Sfvdl * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
51.1Sfvdl * All rights reserved.
61.1Sfvdl *
71.1Sfvdl * Redistribution and use in source and binary forms, with or without
81.1Sfvdl * modification, are permitted provided that the following conditions
91.1Sfvdl * are met:
101.1Sfvdl * 1. Redistributions of source code must retain the above copyright
111.1Sfvdl *    notice, this list of conditions and the following disclaimer.
121.1Sfvdl * 2. Redistributions in binary form must reproduce the above copyright
131.1Sfvdl *    notice, this list of conditions and the following disclaimer in the
141.1Sfvdl *    documentation and/or other materials provided with the distribution.
151.3Sagc * 3. Neither the name of the University nor the names of its contributors
161.1Sfvdl *    may be used to endorse or promote products derived from this software
171.1Sfvdl *    without specific prior written permission.
181.1Sfvdl *
191.1Sfvdl * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
201.1Sfvdl * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211.1Sfvdl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
221.1Sfvdl * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
231.1Sfvdl * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241.1Sfvdl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
251.1Sfvdl * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
261.1Sfvdl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
271.1Sfvdl * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
281.1Sfvdl * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
291.1Sfvdl * SUCH DAMAGE.
301.1Sfvdl *
311.1Sfvdl *	@(#)signal.h	7.16 (Berkeley) 3/17/91
321.1Sfvdl */
331.1Sfvdl
341.1Sfvdl#ifndef _AMD64_SIGNAL_H_
351.1Sfvdl#define _AMD64_SIGNAL_H_
361.1Sfvdl
371.10Smrg#ifdef __x86_64__
381.10Smrg
391.2Sbjh21#include <sys/featuretest.h>
401.2Sbjh21
411.13Sthorpej#ifdef _KERNEL
421.13Sthorpej/* This is needed to support COMPAT_NETBSD32. */
431.13Sthorpej#define	__HAVE_STRUCT_SIGCONTEXT
441.13Sthorpej#endif /* _KERNEL */
451.13Sthorpej
461.1Sfvdltypedef int sig_atomic_t;
471.1Sfvdl
481.2Sbjh21#if defined(_NETBSD_SOURCE)
491.1Sfvdl/*
501.1Sfvdl * Get the "code" values
511.1Sfvdl */
521.1Sfvdl#include <machine/trap.h>
531.1Sfvdl#include <machine/mcontext.h>
541.1Sfvdl
551.9Spavel#ifdef _KERNEL_OPT
561.9Spavel#include "opt_compat_netbsd.h"
571.9Spavel#include "opt_compat_netbsd32.h"
581.9Spavel#endif
591.1Sfvdl
601.2Sbjh21#endif	/* _NETBSD_SOURCE */
611.10Smrg
621.10Smrg#else	/*	__x86_64__	*/
631.10Smrg
641.10Smrg#include <i386/signal.h>
651.10Smrg
661.10Smrg#endif	/*	__x86_64__	*/
671.10Smrg
681.1Sfvdl#endif	/* !_AMD64_SIGNAL_H_ */
69