aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
Diffstat (limited to 'signal')
-rw-r--r--signal/kill.c4
-rw-r--r--signal/killpg.c4
-rw-r--r--signal/raise.c3
-rw-r--r--signal/sigaction.c5
-rw-r--r--signal/sigaddset.c4
-rw-r--r--signal/sigaltstack.c4
-rw-r--r--signal/sigandset.c5
-rw-r--r--signal/sigblock.c3
-rw-r--r--signal/sigdelset.c4
-rw-r--r--signal/sigempty.c3
-rw-r--r--signal/sigfillset.c3
-rw-r--r--signal/sighold.c3
-rw-r--r--signal/sigignore.c3
-rw-r--r--signal/sigintr.c4
-rw-r--r--signal/sigisempty.c3
-rw-r--r--signal/sigismem.c4
-rw-r--r--signal/signal.c4
-rw-r--r--signal/sigorset.c5
-rw-r--r--signal/sigpause.c4
-rw-r--r--signal/sigpending.c3
-rw-r--r--signal/sigprocmask.c5
-rw-r--r--signal/sigrelse.c3
-rw-r--r--signal/sigreturn.c3
-rw-r--r--signal/sigset.c4
-rw-r--r--signal/sigsetmask.c3
-rw-r--r--signal/sigstack.c4
-rw-r--r--signal/sigsuspend.c3
-rw-r--r--signal/sigvec.c3
-rw-r--r--signal/sysv_signal.c4
29 files changed, 29 insertions, 78 deletions
diff --git a/signal/kill.c b/signal/kill.c
index 6aa8cc7..976d94c 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 e4b7cf5..9696e0c 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 d917af4..1205267 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 f73944e..ba17ba9 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 9f65da2..7af0876 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 aaaf108..6713e6c 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 f804ab7..35ebec6 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 aff495b..10375ea 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 3546f2f..2130351 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 0e5b423..fb1b5ad 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 cf55a11..ec8dec9 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 3dcf330..4fd796a 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 67af463..9727fd1 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 8f274cb..b7122d7 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 3c60d7e..48223f9 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 7195229..4f45ed0 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 a249e74..cfc4347 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 f49d978..e49ad32 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 390329c..64d069d 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 104f6a3..679b028 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 33fb241..e3e3c9b 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 56c535c..27ad1a9 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 88f223f..f283137 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 37c549e..4f66be4 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 fc27bd4..3d8b485 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 4704a56..81fe214 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 cb4ece8..987104e 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 1f9395e..83da1e3 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 0312696..8482120 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)