From 3ab0557e5a3a81b5202334142326dd2e5edc5d28 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 13 Feb 2002 09:47:04 +0000 Subject: A number of naming updates in preparation for adding in proper threading. Most of this is from Stefan Soucek, with additions and changes as needed from me. --- libc/signal/sigaction.c | 8 +++++--- libc/signal/sigset.c | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libc/signal') diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index cf58edf39..80cd68798 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -119,7 +119,7 @@ extern int __rt_sigaction (int, const struct kernel_sigaction *__unbounded, /* 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 (int sig, const struct sigaction *act, struct sigaction *oact) +int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { int result; struct kernel_sigaction kact, koact; @@ -148,7 +148,7 @@ int sigaction (int sig, const struct sigaction *act, struct sigaction *oact) } return result; } - +weak_alias(__libc_sigaction, sigaction) @@ -160,7 +160,7 @@ extern int __sigaction (int, const struct old_kernel_sigaction *__unbounded, /* 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 (int sig, const struct sigaction *act, struct sigaction *oact) +int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { struct old_kernel_sigaction k_sigact, k_osigact; int result; @@ -187,4 +187,6 @@ int sigaction (int sig, const struct sigaction *act, struct sigaction *oact) return result; } +weak_alias(__libc_sigaction, sigaction) + #endif diff --git a/libc/signal/sigset.c b/libc/signal/sigset.c index a5afa17f3..e0cda7b9f 100644 --- a/libc/signal/sigset.c +++ b/libc/signal/sigset.c @@ -41,7 +41,7 @@ __sighandler_t sigset (int sig, __sighandler_t 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; -- cgit v1.2.3