diff options
| author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-09 16:47:01 +0000 |
|---|---|---|
| committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-09 16:47:01 +0000 |
| commit | 62a21af8006ab04282fdc354c5b4dc765f56d058 (patch) | |
| tree | 568761d58289238aa14cced3f0010809d4d28c00 /libc/signal | |
| parent | ef250238dc1572caf859c2b64652f9cdfb0d9e42 (diff) | |
| download | uClibc-alpine-62a21af8006ab04282fdc354c5b4dc765f56d058.tar.bz2 uClibc-alpine-62a21af8006ab04282fdc354c5b4dc765f56d058.tar.xz | |
BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/signal')
| -rw-r--r-- | libc/signal/killpg.c | 4 | ||||
| -rw-r--r-- | libc/signal/sigaction.c | 2 | ||||
| -rw-r--r-- | libc/signal/sigaddset.c | 4 | ||||
| -rw-r--r-- | libc/signal/sigandset.c | 6 | ||||
| -rw-r--r-- | libc/signal/sigempty.c | 6 | ||||
| -rw-r--r-- | libc/signal/sigfillset.c | 2 | ||||
| -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 |
15 files changed, 16 insertions, 50 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/sigaction.c b/libc/signal/sigaction.c index 14e3dc9c2..50ab640d5 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -23,7 +23,7 @@ #include <sys/syscall.h> -libc_hidden_proto(memcpy) +/* Experimentally off - libc_hidden_proto(memcpy) */ /* The difference here is that the sigaction structure used in the kernel is not the same as we use in the libc. Therefore we must 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 e642e9335..7d8687bd1 100644 --- a/libc/signal/sigempty.c +++ b/libc/signal/sigempty.c @@ -20,13 +20,11 @@ #include <signal.h> #include <string.h> -libc_hidden_proto(memset) +/* Experimentally off - libc_hidden_proto(memset) */ /* 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/sigfillset.c b/libc/signal/sigfillset.c index 83e47937d..96ab459dc 100644 --- a/libc/signal/sigfillset.c +++ b/libc/signal/sigfillset.c @@ -20,7 +20,7 @@ #include <signal.h> #include <string.h> -libc_hidden_proto(memset) +/* Experimentally off - libc_hidden_proto(memset) */ /* Set all signals in SET. */ libc_hidden_proto(sigfillset) 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; |
