diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-29 01:35:58 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-29 01:35:58 +0000 |
commit | b4e08f7c875bf610591588fdbf03fce361356fea (patch) | |
tree | 6feac63dff9ff894b1dffe0222b63b648ae836a5 | |
parent | 7da5bb96ac94cf4977ebe0b429bd94c969722f8c (diff) |
Prototypes in sigvec/sigaction and for SIG_{IGN,DFL,ERR}
-rw-r--r-- | sys/sys/signal.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h index 9aa03a8f33d..bd63119b179 100644 --- a/sys/sys/signal.h +++ b/sys/sys/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.4 1996/09/20 07:27:52 deraadt Exp $ */ +/* $OpenBSD: signal.h,v 1.5 1996/10/29 01:35:57 tholo Exp $ */ /* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */ /* @@ -98,19 +98,13 @@ #define SIGUSR1 30 /* user defined signal 1 */ #define SIGUSR2 31 /* user defined signal 2 */ -#if defined(_ANSI_SOURCE) || defined(__cplusplus) || defined(_KERNEL) /* * Language spec sez we must list exactly one parameter, even though we * actually supply three. Ugh! */ -#define SIG_DFL (void (*)(int))0 -#define SIG_IGN (void (*)(int))1 -#define SIG_ERR (void (*)(int))-1 -#else -#define SIG_DFL (void (*)())0 -#define SIG_IGN (void (*)())1 -#define SIG_ERR (void (*)())-1 -#endif +#define SIG_DFL (void (*)__P((int)))0 +#define SIG_IGN (void (*)__P((int)))1 +#define SIG_ERR (void (*)__P((int)))-1 #ifndef _ANSI_SOURCE typedef unsigned int sigset_t; @@ -119,12 +113,7 @@ typedef unsigned int sigset_t; * Signal vector "template" used in sigaction call. */ struct sigaction { - void (*sa_handler) /* signal handler */ -#ifdef _KERNEL - __P((int)); -#else - __P(()); -#endif + void (*sa_handler) __P((int)); /* signal handler */ sigset_t sa_mask; /* signal mask to apply */ int sa_flags; /* see signal options below */ }; @@ -170,12 +159,7 @@ struct sigaltstack { * Signal vector "template" used in sigvec call. */ struct sigvec { - void (*sv_handler) /* signal handler */ -#ifdef _KERNEL - __P((int)); -#else - __P(()); -#endif + void (*sv_handler) __P((int)); /* signal handler */ int sv_mask; /* signal mask to apply */ int sv_flags; /* see signal options below */ }; |