summaryrefslogtreecommitdiff
path: root/libc/signal/sigaction.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-13 09:47:04 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-13 09:47:04 +0000
commit3ab0557e5a3a81b5202334142326dd2e5edc5d28 (patch)
treefbc4cb8ae1dd73c49fdf4f898d0fb329e8551164 /libc/signal/sigaction.c
parent80e6061ac5deca193759b979d34906bfc9b857ef (diff)
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.
Diffstat (limited to 'libc/signal/sigaction.c')
-rw-r--r--libc/signal/sigaction.c8
1 files changed, 5 insertions, 3 deletions
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