diff options
Diffstat (limited to 'signal')
-rw-r--r-- | signal/kill.c | 4 | ||||
-rw-r--r-- | signal/killpg.c | 4 | ||||
-rw-r--r-- | signal/raise.c | 3 | ||||
-rw-r--r-- | signal/sigaction.c | 5 | ||||
-rw-r--r-- | signal/sigaddset.c | 4 | ||||
-rw-r--r-- | signal/sigaltstack.c | 4 | ||||
-rw-r--r-- | signal/sigandset.c | 5 | ||||
-rw-r--r-- | signal/sigblock.c | 3 | ||||
-rw-r--r-- | signal/sigdelset.c | 4 | ||||
-rw-r--r-- | signal/sigempty.c | 3 | ||||
-rw-r--r-- | signal/sigfillset.c | 3 | ||||
-rw-r--r-- | signal/sighold.c | 3 | ||||
-rw-r--r-- | signal/sigignore.c | 3 | ||||
-rw-r--r-- | signal/sigintr.c | 4 | ||||
-rw-r--r-- | signal/sigisempty.c | 3 | ||||
-rw-r--r-- | signal/sigismem.c | 4 | ||||
-rw-r--r-- | signal/signal.c | 4 | ||||
-rw-r--r-- | signal/sigorset.c | 5 | ||||
-rw-r--r-- | signal/sigpause.c | 4 | ||||
-rw-r--r-- | signal/sigpending.c | 3 | ||||
-rw-r--r-- | signal/sigprocmask.c | 5 | ||||
-rw-r--r-- | signal/sigrelse.c | 3 | ||||
-rw-r--r-- | signal/sigreturn.c | 3 | ||||
-rw-r--r-- | signal/sigset.c | 4 | ||||
-rw-r--r-- | signal/sigsetmask.c | 3 | ||||
-rw-r--r-- | signal/sigstack.c | 4 | ||||
-rw-r--r-- | signal/sigsuspend.c | 3 | ||||
-rw-r--r-- | signal/sigvec.c | 3 | ||||
-rw-r--r-- | signal/sysv_signal.c | 4 |
29 files changed, 29 insertions, 78 deletions
diff --git a/signal/kill.c b/signal/kill.c index 6aa8cc7b8c..976d94ce44 100644 --- a/signal/kill.c +++ b/signal/kill.c @@ -23,9 +23,7 @@ send SIG to all processes in the current process's process group. If PID is < -1, send SIG to all processes in process group - PID. */ int -__kill (pid, sig) - int pid; - int sig; +__kill (int pid, int sig) { __set_errno (ENOSYS); return -1; diff --git a/signal/killpg.c b/signal/killpg.c index e4b7cf515f..9696e0cf70 100644 --- a/signal/killpg.c +++ b/signal/killpg.c @@ -23,9 +23,7 @@ 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) { __set_errno (ENOSYS); return -1; diff --git a/signal/raise.c b/signal/raise.c index d917af43fe..120526760f 100644 --- a/signal/raise.c +++ b/signal/raise.c @@ -20,8 +20,7 @@ /* Raise the signal SIG. */ int -raise (sig) - int sig; +raise (int sig) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigaction.c b/signal/sigaction.c index f73944e5a8..ba17ba90dd 100644 --- a/signal/sigaction.c +++ b/signal/sigaction.c @@ -22,10 +22,7 @@ /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ int -__sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { if (sig <= 0 || sig >= NSIG) { diff --git a/signal/sigaddset.c b/signal/sigaddset.c index 9f65da218e..7af087661c 100644 --- a/signal/sigaddset.c +++ b/signal/sigaddset.c @@ -19,9 +19,7 @@ /* Add SIGNO to SET. */ 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/signal/sigaltstack.c b/signal/sigaltstack.c index aaaf108a77..6713e6c4ec 100644 --- a/signal/sigaltstack.c +++ b/signal/sigaltstack.c @@ -21,9 +21,7 @@ /* Run signals handlers on the stack specified by SS (if not NULL). If OSS is not NULL, it is filled in with the old signal stack status. */ int -sigaltstack (ss, oss) - const struct sigaltstack *ss; - struct sigaltstack *oss; +sigaltstack (const struct sigaltstack *ss, struct sigaltstack *oss) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigandset.c b/signal/sigandset.c index f804ab7c98..35ebec630a 100644 --- a/signal/sigandset.c +++ b/signal/sigandset.c @@ -22,10 +22,7 @@ /* 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; +sigandset (sigset_t *dest, const sigset_t *left, const sigset_t *right) { if (dest == NULL || left == NULL || right == NULL) { diff --git a/signal/sigblock.c b/signal/sigblock.c index aff495b201..10375eac21 100644 --- a/signal/sigblock.c +++ b/signal/sigblock.c @@ -20,8 +20,7 @@ /* Block signals in MASK, returning the old mask. */ int -__sigblock (mask) - int mask; +__sigblock (int mask) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigdelset.c b/signal/sigdelset.c index 3546f2f578..2130351105 100644 --- a/signal/sigdelset.c +++ b/signal/sigdelset.c @@ -19,9 +19,7 @@ /* Add SIGNO to SET. */ int -sigdelset (set, signo) - sigset_t *set; - int signo; +sigdelset (sigset_t *set, int signo) { if (set == NULL || signo <= 0 || signo >= NSIG) { diff --git a/signal/sigempty.c b/signal/sigempty.c index 0e5b423672..fb1b5ade31 100644 --- a/signal/sigempty.c +++ b/signal/sigempty.c @@ -21,8 +21,7 @@ /* Clear all signals from SET. */ int -sigemptyset (set) - sigset_t *set; +sigemptyset (sigset_t *set) { if (set == NULL) { diff --git a/signal/sigfillset.c b/signal/sigfillset.c index cf55a11628..ec8dec98fc 100644 --- a/signal/sigfillset.c +++ b/signal/sigfillset.c @@ -21,8 +21,7 @@ /* Set all signals in SET. */ int -sigfillset (set) - sigset_t *set; +sigfillset (sigset_t *set) { if (set == NULL) { diff --git a/signal/sighold.c b/signal/sighold.c index 3dcf330f68..4fd796ac8e 100644 --- a/signal/sighold.c +++ b/signal/sighold.c @@ -22,8 +22,7 @@ #include <signal.h> int -sighold (sig) - int sig; +sighold (int sig) { sigset_t set; diff --git a/signal/sigignore.c b/signal/sigignore.c index 67af463c6c..9727fd118c 100644 --- a/signal/sigignore.c +++ b/signal/sigignore.c @@ -21,8 +21,7 @@ /* Set the disposition for SIG to SIG_IGN. */ int -sigignore (sig) - int sig; +sigignore (int sig) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigintr.c b/signal/sigintr.c index 8f274cbb05..b7122d7f29 100644 --- a/signal/sigintr.c +++ b/signal/sigintr.c @@ -22,9 +22,7 @@ (causing them to fail with EINTR); if INTERRUPT is zero, make system calls be restarted after signal SIG. */ int -siginterrupt (sig, interrupt) - int sig; - int interrupt; +siginterrupt (int sig, int interrupt) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigisempty.c b/signal/sigisempty.c index 3c60d7eb11..48223f9ef6 100644 --- a/signal/sigisempty.c +++ b/signal/sigisempty.c @@ -22,8 +22,7 @@ /* Test whether SET is empty. */ int -sigisemptyset (set) - const sigset_t *set; +sigisemptyset (const sigset_t *set) { if (set == NULL) { diff --git a/signal/sigismem.c b/signal/sigismem.c index 719522961f..4f45ed0df6 100644 --- a/signal/sigismem.c +++ b/signal/sigismem.c @@ -19,9 +19,7 @@ /* Return 1 if SIGNO is in SET, 0 if not. */ int -sigismember (set, signo) - const sigset_t *set; - int signo; +sigismember (const sigset_t *set, int signo) { if (set == NULL || signo <= 0 || signo >= NSIG) { diff --git a/signal/signal.c b/signal/signal.c index a249e74006..cfc434750c 100644 --- a/signal/signal.c +++ b/signal/signal.c @@ -22,9 +22,7 @@ /* Set the handler for the signal SIG to HANDLER, returning the old handler, or SIG_ERR on error. */ __sighandler_t -signal (sig, handler) - int sig; - __sighandler_t handler; +signal (int sig, __sighandler_t handler) { __set_errno (ENOSYS); return SIG_ERR; diff --git a/signal/sigorset.c b/signal/sigorset.c index f49d978f77..e49ad32d3d 100644 --- a/signal/sigorset.c +++ b/signal/sigorset.c @@ -22,10 +22,7 @@ /* 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; +sigorset (sigset_t *dest, const sigset_t *left, const sigset_t *right) { if (dest == NULL || left == NULL || right == NULL) { diff --git a/signal/sigpause.c b/signal/sigpause.c index 390329c248..64d069d402 100644 --- a/signal/sigpause.c +++ b/signal/sigpause.c @@ -21,9 +21,7 @@ #undef sigpause int -__sigpause (sig_or_mask, is_sig) - int sig_or_mask; - int is_sig; +__sigpause (int sig_or_mask, int is_sig) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigpending.c b/signal/sigpending.c index 104f6a38b3..679b0286ff 100644 --- a/signal/sigpending.c +++ b/signal/sigpending.c @@ -22,8 +22,7 @@ /* Store in SET all signals that are blocked and pending. */ int -sigpending (set) - sigset_t *set; +sigpending (sigset_t *set) { if (set == NULL) { diff --git a/signal/sigprocmask.c b/signal/sigprocmask.c index 33fb241ea5..e3e3c9b322 100644 --- a/signal/sigprocmask.c +++ b/signal/sigprocmask.c @@ -23,10 +23,7 @@ according to HOW, which may be SIG_BLOCK, SIG_UNBLOCK or SIG_SETMASK. If OSET is not NULL, store the old set of blocked signals in *OSET. */ int -__sigprocmask (how, set, oset) - int how; - const sigset_t *set; - sigset_t *oset; +__sigprocmask (int how, const sigset_t *set, sigset_t *oset) { switch (how) { diff --git a/signal/sigrelse.c b/signal/sigrelse.c index 56c535c9e7..27ad1a98a5 100644 --- a/signal/sigrelse.c +++ b/signal/sigrelse.c @@ -22,8 +22,7 @@ #include <signal.h> int -sigrelse (sig) - int sig; +sigrelse (int sig) { sigset_t set; diff --git a/signal/sigreturn.c b/signal/sigreturn.c index 88f223f98b..f283137288 100644 --- a/signal/sigreturn.c +++ b/signal/sigreturn.c @@ -19,8 +19,7 @@ #include <errno.h> int -__sigreturn (context) - struct sigcontext *context; +__sigreturn (struct sigcontext *context) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigset.c b/signal/sigset.c index 37c549e074..4f66be4b77 100644 --- a/signal/sigset.c +++ b/signal/sigset.c @@ -21,9 +21,7 @@ /* Set the disposition for SIG. */ __sighandler_t -sigset (sig, disp) - int sig; - __sighandler_t disp; +sigset (int sig, __sighandler_t disp) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigsetmask.c b/signal/sigsetmask.c index fc27bd41e1..3d8b485272 100644 --- a/signal/sigsetmask.c +++ b/signal/sigsetmask.c @@ -19,8 +19,7 @@ #include <signal.h> int -__sigsetmask (mask) - int mask; +__sigsetmask (int mask) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigstack.c b/signal/sigstack.c index 4704a56151..81fe21456b 100644 --- a/signal/sigstack.c +++ b/signal/sigstack.c @@ -21,9 +21,7 @@ /* Run signals handlers on the stack specified by SS (if not NULL). If OSS is not NULL, it is filled in with the old signal stack status. */ int -sigstack (ss, oss) - struct sigstack *ss; - struct sigstack *oss; +sigstack (struct sigstack *ss, struct sigstack *oss) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigsuspend.c b/signal/sigsuspend.c index cb4ece8c10..987104e015 100644 --- a/signal/sigsuspend.c +++ b/signal/sigsuspend.c @@ -22,8 +22,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -__sigsuspend (set) - const sigset_t *set; +__sigsuspend (const sigset_t *set) { __set_errno (ENOSYS); return -1; diff --git a/signal/sigvec.c b/signal/sigvec.c index 1f9395e654..83da1e3b6e 100644 --- a/signal/sigvec.c +++ b/signal/sigvec.c @@ -179,8 +179,7 @@ compat_symbol (libc, __sigvec, sigvec, GLIBC_2_0); # ifndef SA_RESETHAND static void -sigvec_wrapper_handler (sig) - int sig; +sigvec_wrapper_handler (int sig) { struct sigvec_wrapper_data *data; struct sigaction act; diff --git a/signal/sysv_signal.c b/signal/sysv_signal.c index 03126961b5..848212061f 100644 --- a/signal/sysv_signal.c +++ b/signal/sysv_signal.c @@ -21,9 +21,7 @@ /* 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; +__sysv_signal (int sig, __sighandler_t handler) { /* Check signal extents to protect __sigismember. */ if (handler == SIG_ERR || sig < 1 || sig >= NSIG) |