Only define sig_atomic_t when _ANSI_SOURCE is defined.
This commit is contained in:
parent
b1ad0e3ed5
commit
d7a8b2964f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.3 1994/10/27 04:16:25 cgd Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.4 1995/01/10 19:01:00 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
|
||||
|
@ -40,6 +40,7 @@
|
|||
|
||||
typedef int sig_atomic_t;
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
/*
|
||||
* Get the "code" values
|
||||
*/
|
||||
|
@ -77,4 +78,5 @@ struct sigcontext {
|
|||
#define sc_pc sc_eip
|
||||
#define sc_ps sc_eflags
|
||||
|
||||
#endif /* _I386_SIGNAL_H_ */
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
#endif /* !_I386_SIGNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.3 1994/10/26 07:50:54 cgd Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.4 1995/01/10 19:01:31 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
|
||||
|
@ -34,11 +34,13 @@
|
|||
*
|
||||
* @(#)signal.h 7.16 (Berkeley) 3/17/91
|
||||
*/
|
||||
|
||||
#ifndef _M68K_SIGNAL_H_
|
||||
#define _M68K_SIGNAL_H_
|
||||
|
||||
typedef int sig_atomic_t;
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
/*
|
||||
* Get the "code" values
|
||||
*/
|
||||
|
@ -61,4 +63,5 @@ struct sigcontext {
|
|||
int sc_ps; /* psl to restore */
|
||||
};
|
||||
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
#endif /* !_M68K_SIGNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.4 1994/10/26 21:10:01 cgd Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.5 1995/01/10 19:01:40 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,6 +44,7 @@
|
|||
|
||||
typedef int sig_atomic_t;
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
/*
|
||||
* Information pushed on stack when a signal is delivered.
|
||||
* This is used by the kernel to restore state following
|
||||
|
@ -60,3 +61,5 @@ struct sigcontext {
|
|||
int sc_fpregs[33]; /* fp regs 0 to 31 and csr */
|
||||
int sc_fpc_eir; /* floating point exception instruction reg */
|
||||
};
|
||||
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.4 1994/10/26 08:24:42 cgd Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.5 1995/01/10 19:01:36 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
|
||||
|
@ -40,6 +40,7 @@
|
|||
|
||||
typedef int sig_atomic_t;
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
/*
|
||||
* Get the "code" values
|
||||
*/
|
||||
|
@ -63,4 +64,5 @@ struct sigcontext {
|
|||
int sc_reg[8]; /* The registers */
|
||||
};
|
||||
|
||||
#endif /* _MACHINE_SIGNAL_H_ */
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
#endif /* !_MACHINE_SIGNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.4 1994/10/26 21:10:01 cgd Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.5 1995/01/10 19:01:40 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,6 +44,7 @@
|
|||
|
||||
typedef int sig_atomic_t;
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
/*
|
||||
* Information pushed on stack when a signal is delivered.
|
||||
* This is used by the kernel to restore state following
|
||||
|
@ -60,3 +61,5 @@ struct sigcontext {
|
|||
int sc_fpregs[33]; /* fp regs 0 to 31 and csr */
|
||||
int sc_fpc_eir; /* floating point exception instruction reg */
|
||||
};
|
||||
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.2 1994/11/20 20:53:32 deraadt Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.3 1995/01/10 19:01:46 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,8 +44,15 @@
|
|||
* @(#)signal.h 8.1 (Berkeley) 6/11/93
|
||||
*/
|
||||
|
||||
#ifndef _SPARC_SIGNAL_H_
|
||||
#define _SPARC_SIGNAL_H_
|
||||
|
||||
#ifndef LOCORE
|
||||
typedef int sig_atomic_t;
|
||||
#endif
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
#ifndef LOCORE
|
||||
|
||||
/*
|
||||
* Information pushed on stack when a signal is delivered.
|
||||
|
@ -88,3 +95,6 @@ struct sigcontext {
|
|||
#define FPE_FLTUND_TRAP 0xcc /* underflow */
|
||||
#define FPE_FLTOPERR_TRAP 0xd0 /* operand error */
|
||||
#define FPE_FLTOVF_TRAP 0xd4 /* overflow */
|
||||
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
#endif /* !_SPARC_SIGNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.3 1994/11/25 19:09:00 ragge Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.4 1995/01/10 19:01:52 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
|
||||
|
@ -37,6 +37,12 @@
|
|||
|
||||
/* All bugs are subject to removal without further notice */
|
||||
|
||||
#ifndef _VAX_SIGNAL_H_
|
||||
#define _VAX_SIGNAL_H_
|
||||
|
||||
typedef int sig_atomic_t;
|
||||
|
||||
#ifndef _ANSI_SOURCE
|
||||
/*
|
||||
* Information pushed on stack when a signal is delivered.
|
||||
* This is used by the kernel to restore state following
|
||||
|
@ -53,3 +59,6 @@ struct sigcontext {
|
|||
int sc_pc; /* pc to restore */
|
||||
int sc_ps; /* psl to restore */
|
||||
};
|
||||
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
#endif /* !_VAX_SIGNAL_H_ */
|
||||
|
|
Loading…
Reference in New Issue