diff options
Diffstat (limited to 'libc/signal')
-rw-r--r-- | libc/signal/killpg.c | 4 | ||||
-rw-r--r-- | libc/signal/sigaddset.c | 4 | ||||
-rw-r--r-- | libc/signal/sigandset.c | 6 | ||||
-rw-r--r-- | libc/signal/sigempty.c | 4 | ||||
-rw-r--r-- | libc/signal/sighold.c | 4 | ||||
-rw-r--r-- | libc/signal/sigignore.c | 4 | ||||
-rw-r--r-- | libc/signal/sigintr.c | 5 | ||||
-rw-r--r-- | libc/signal/sigisempty.c | 4 | ||||
-rw-r--r-- | libc/signal/sigismem.c | 5 | ||||
-rw-r--r-- | libc/signal/sigorset.c | 6 | ||||
-rw-r--r-- | libc/signal/sigrelse.c | 4 | ||||
-rw-r--r-- | libc/signal/sigset.c | 5 | ||||
-rw-r--r-- | libc/signal/sysv_signal.c | 5 |
13 files changed, 13 insertions, 47 deletions
diff --git a/libc/signal/killpg.c b/libc/signal/killpg.c index 6de79a714..46b6e4b35 100644 --- a/libc/signal/killpg.c +++ b/libc/signal/killpg.c @@ -25,9 +25,7 @@ libc_hidden_proto(kill) If PGRP is zero, send SIG to all processes in the current process's process group. */ int -killpg (pgrp, sig) - __pid_t pgrp; - int sig; +killpg (__pid_t pgrp, int sig) { if (pgrp < 0) { diff --git a/libc/signal/sigaddset.c b/libc/signal/sigaddset.c index 83721772c..9840a56bf 100644 --- a/libc/signal/sigaddset.c +++ b/libc/signal/sigaddset.c @@ -21,9 +21,7 @@ /* Add SIGNO to SET. */ libc_hidden_proto(sigaddset) int -sigaddset (set, signo) - sigset_t *set; - int signo; +sigaddset (sigset_t *set, int signo) { if (set == NULL || signo <= 0 || signo >= NSIG) { diff --git a/libc/signal/sigandset.c b/libc/signal/sigandset.c index a25225bad..dcc37daba 100644 --- a/libc/signal/sigandset.c +++ b/libc/signal/sigandset.c @@ -22,11 +22,7 @@ #include <stddef.h> /* Combine sets LEFT and RIGHT by logical AND and place result in DEST. */ -int -sigandset (dest, left, right) - sigset_t *dest; - const sigset_t *left; - const sigset_t *right; +int sigandset (sigset_t *dest, const sigset_t *left, const sigset_t *right) { if (dest == NULL || left == NULL || right == NULL) { diff --git a/libc/signal/sigempty.c b/libc/signal/sigempty.c index a6136d057..7d8687bd1 100644 --- a/libc/signal/sigempty.c +++ b/libc/signal/sigempty.c @@ -24,9 +24,7 @@ /* Clear all signals from SET. */ libc_hidden_proto(sigemptyset) -int -sigemptyset (set) - sigset_t *set; +int sigemptyset (sigset_t *set) { if (set == NULL) { diff --git a/libc/signal/sighold.c b/libc/signal/sighold.c index 335af4a34..da723ac86 100644 --- a/libc/signal/sighold.c +++ b/libc/signal/sighold.c @@ -25,9 +25,7 @@ libc_hidden_proto(sigprocmask) libc_hidden_proto(sigaddset) -int -sighold (sig) - int sig; +int sighold (int sig) { sigset_t set; diff --git a/libc/signal/sigignore.c b/libc/signal/sigignore.c index c4d347f8d..17d93ce19 100644 --- a/libc/signal/sigignore.c +++ b/libc/signal/sigignore.c @@ -26,9 +26,7 @@ libc_hidden_proto(sigaction) -int -sigignore (sig) - int sig; +int sigignore (int sig) { struct sigaction act; diff --git a/libc/signal/sigintr.c b/libc/signal/sigintr.c index a977e22de..43136379f 100644 --- a/libc/signal/sigintr.c +++ b/libc/signal/sigintr.c @@ -29,10 +29,7 @@ libc_hidden_proto(sigaction) extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */ #endif -int -siginterrupt (sig, interrupt) - int sig; - int interrupt; +int siginterrupt (int sig, int interrupt) { #ifdef SA_RESTART struct sigaction action; diff --git a/libc/signal/sigisempty.c b/libc/signal/sigisempty.c index 22baa0038..a25bb473d 100644 --- a/libc/signal/sigisempty.c +++ b/libc/signal/sigisempty.c @@ -22,9 +22,7 @@ #include <stddef.h> /* Test whether SET is empty. */ -int -sigisemptyset (set) - const sigset_t *set; +int sigisemptyset (const sigset_t *set) { if (set == NULL) { diff --git a/libc/signal/sigismem.c b/libc/signal/sigismem.c index 6423a1a02..b546f626f 100644 --- a/libc/signal/sigismem.c +++ b/libc/signal/sigismem.c @@ -19,10 +19,7 @@ #include "sigsetops.h" /* Return 1 if SIGNO is in SET, 0 if not. */ -int -sigismember (set, signo) - const sigset_t *set; - int signo; +int sigismember (const sigset_t *set, int signo) { if (set == NULL || signo <= 0 || signo >= NSIG) { diff --git a/libc/signal/sigorset.c b/libc/signal/sigorset.c index 7d7bf863d..3588cc482 100644 --- a/libc/signal/sigorset.c +++ b/libc/signal/sigorset.c @@ -22,11 +22,7 @@ #include <stddef.h> /* Combine sets LEFT and RIGHT by logical OR and place result in DEST. */ -int -sigorset (dest, left, right) - sigset_t *dest; - const sigset_t *left; - const sigset_t *right; +int sigorset (sigset_t *dest, const sigset_t *left, const sigset_t *right) { if (dest == NULL || left == NULL || right == NULL) { diff --git a/libc/signal/sigrelse.c b/libc/signal/sigrelse.c index a1d5a8849..8532a88f3 100644 --- a/libc/signal/sigrelse.c +++ b/libc/signal/sigrelse.c @@ -25,9 +25,7 @@ libc_hidden_proto(sigprocmask) libc_hidden_proto(sigdelset) -int -sigrelse (sig) - int sig; +int sigrelse (int sig) { sigset_t set; diff --git a/libc/signal/sigset.c b/libc/signal/sigset.c index 5d8c0d0bd..db1fb7d74 100644 --- a/libc/signal/sigset.c +++ b/libc/signal/sigset.c @@ -26,10 +26,7 @@ libc_hidden_proto(sigaction) libc_hidden_proto(sigprocmask) /* Set the disposition for SIG. */ -__sighandler_t -sigset (sig, disp) - int sig; - __sighandler_t disp; +__sighandler_t sigset (int sig, __sighandler_t disp) { struct sigaction act, oact; sigset_t set; diff --git a/libc/signal/sysv_signal.c b/libc/signal/sysv_signal.c index 97857a250..6eebf201b 100644 --- a/libc/signal/sysv_signal.c +++ b/libc/signal/sysv_signal.c @@ -35,10 +35,7 @@ libc_hidden_proto(sigaction) /* Set the handler for the signal SIG to HANDLER, returning the old handler, or SIG_ERR on error. */ -__sighandler_t -__sysv_signal (sig, handler) - int sig; - __sighandler_t handler; +__sighandler_t __sysv_signal (int sig, __sighandler_t handler) { struct sigaction act, oact; |