summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/pthread/sigaction.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 07:27:02 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 07:27:02 +0000
commit4ace63889357f5ffc8b96a8a6144352e7ce56eec (patch)
tree21cae77af0719690b1255038635714a30e4f073d /libpthread/nptl/sysdeps/pthread/sigaction.c
parentf5faeff83458b4dc618ca83edd2dd33dbe63c15d (diff)
downloaduClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.bz2
uClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.xz
Big set of various patches to get the NPTL libraries to build and link.
Diffstat (limited to 'libpthread/nptl/sysdeps/pthread/sigaction.c')
-rw-r--r--libpthread/nptl/sysdeps/pthread/sigaction.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/pthread/sigaction.c b/libpthread/nptl/sysdeps/pthread/sigaction.c
index 4d36150a9..62f9daa3c 100644
--- a/libpthread/nptl/sysdeps/pthread/sigaction.c
+++ b/libpthread/nptl/sysdeps/pthread/sigaction.c
@@ -22,12 +22,21 @@
exact file anyway. */
#ifndef LIBC_SIGACTION
+#include <features.h>
+
+#ifdef __UCLIBC__
+#include <errno.h>
+#include <signal.h>
+#include <pthreadP.h>
+#else
#include <nptl/pthreadP.h>
+#endif
/* We use the libc implementation but we tell it to not allow
SIGCANCEL or SIGTIMER to be handled. */
# define LIBC_SIGACTION 1
+#ifndef __UCLIBC__
# include <nptl/sysdeps/pthread/sigaction.c>
int
@@ -35,6 +44,10 @@ __sigaction (sig, act, oact)
int sig;
const struct sigaction *act;
struct sigaction *oact;
+#else
+int
+__sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
+#endif
{
if (__builtin_expect (sig == SIGCANCEL || sig == SIGSETXID, 0))
{
@@ -42,10 +55,16 @@ __sigaction (sig, act, oact)
return -1;
}
+#ifdef __UCLIBC__
+ return sigaction (sig, act, oact);
+#else
return __libc_sigaction (sig, act, oact);
+#endif
}
libc_hidden_weak (__sigaction)
+#ifndef __UCLIBC__
weak_alias (__sigaction, sigaction)
+#endif
#else