--- Net2/sys/signal.h 2018/04/24 18:10:24 1.1.1.2 +++ Net2/sys/signal.h 2018/04/24 18:16:29 1.1.1.3 @@ -30,11 +30,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)signal.h 7.16 (Berkeley) 3/17/91 + * from: @(#)signal.h 7.16 (Berkeley) 3/17/91 + * signal.h,v 1.5 1993/06/16 22:15:06 jtc Exp */ -#ifndef _SIGNAL_H_ -#define _SIGNAL_H_ +#ifndef _SYS_SIGNAL_H_ +#define _SYS_SIGNAL_H_ #define NSIG 32 /* counting 0; could be 33 (mask is 1-32) */ @@ -95,6 +96,7 @@ typedef void (*sig_t) __P((int)); typedef void (*__sighandler_t) __P((int)); typedef unsigned int sigset_t; +typedef int sig_atomic_t; __BEGIN_DECLS int sigaddset __P((sigset_t *, int)); @@ -185,12 +187,11 @@ struct sigcontext { */ #define sigmask(m) (1 << ((m)-1)) -#define BADSIG ((__sighandler_t) -1) +#define SIG_ERR ((__sighandler_t) -1) #endif /* _POSIX_SOURCE */ #define SIG_DFL ((__sighandler_t) 0) #define SIG_IGN ((__sighandler_t) 1) -#define SIG_ERR ((__sighandler_t) -1) #ifndef KERNEL #include @@ -220,4 +221,5 @@ int sigvec __P((int, struct sigvec *, st __END_DECLS #endif /* !KERNEL */ -#endif /* !_SIGNAL_H_ */ + +#endif /* !_SYS_SIGNAL_H_ */