diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-26 04:33:43 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-26 04:33:43 +0000 |
commit | 5e01789a9427a97032a19b93b126ca033da7aac8 (patch) | |
tree | 995848d439a70fd8af21b8e7f78ec008cc7dc8b1 /libc/signal/sigset.c | |
parent | 9921832fa13cef31006cfa69bc5574636c36ac0f (diff) | |
download | uClibc-alpine-5e01789a9427a97032a19b93b126ca033da7aac8.tar.bz2 uClibc-alpine-5e01789a9427a97032a19b93b126ca033da7aac8.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/signal/sigset.c')
-rw-r--r-- | libc/signal/sigset.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/signal/sigset.c b/libc/signal/sigset.c index 305cd96fb..5d8c0d0bd 100644 --- a/libc/signal/sigset.c +++ b/libc/signal/sigset.c @@ -16,15 +16,14 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define sigaction __sigaction - #include <errno.h> #define __need_NULL #include <stddef.h> -#define __USE_XOPEN_EXTENDED #include <signal.h> #include <string.h> /* For the real memset prototype. */ +libc_hidden_proto(sigaction) +libc_hidden_proto(sigprocmask) /* Set the disposition for SIG. */ __sighandler_t @@ -48,7 +47,7 @@ sigset (sig, disp) return SIG_ERR; /* Add the signal set to the current signal mask. */ - if (__sigprocmask (SIG_BLOCK, &set, NULL) < 0) + if (sigprocmask (SIG_BLOCK, &set, NULL) < 0) return SIG_ERR; return SIG_HOLD; @@ -78,7 +77,7 @@ sigset (sig, disp) return SIG_ERR; /* Remove the signal set from the current signal mask. */ - if (__sigprocmask (SIG_UNBLOCK, &set, NULL) < 0) + if (sigprocmask (SIG_UNBLOCK, &set, NULL) < 0) return SIG_ERR; return oact.sa_handler; |