summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/init.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-06-03 03:02:36 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-06-03 03:02:36 +0000
commitb3ea07c04ccdf2f1ed0d11891e1a9372449952f4 (patch)
tree56b18f8414753032c784791860285cc9844dd111 /libpthread/nptl/init.c
parentf0ba32c5ad9e870986656e7cedce4ce270b2d67f (diff)
downloaduClibc-alpine-b3ea07c04ccdf2f1ed0d11891e1a9372449952f4.tar.bz2
uClibc-alpine-b3ea07c04ccdf2f1ed0d11891e1a9372449952f4.tar.xz
Change system call names from glibc to uClibc.
Diffstat (limited to 'libpthread/nptl/init.c')
-rw-r--r--libpthread/nptl/init.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpthread/nptl/init.c b/libpthread/nptl/init.c
index 4c0a69d17..003dd7bbf 100644
--- a/libpthread/nptl/init.c
+++ b/libpthread/nptl/init.c
@@ -264,13 +264,21 @@ __pthread_initialize_minimal_internal (void)
sa.sa_flags = SA_SIGINFO;
__sigemptyset (&sa.sa_mask);
+#ifdef __UCLIBC__
(void) sigaction (SIGCANCEL, &sa, NULL);
+#else
+ (void) __libc_sigaction (SIGCANCEL, &sa, NULL);
+#endif
/* Install the handle to change the threads' uid/gid. */
sa.sa_sigaction = sighandler_setxid;
sa.sa_flags = SA_SIGINFO | SA_RESTART;
+#ifdef __UCLIBC__
(void) sigaction (SIGSETXID, &sa, NULL);
+#else
+ (void) __libc_sigaction (SIGSETXID, &sa, NULL);
+#endif
/* The parent process might have left the signals blocked. Just in
case, unblock it. We reuse the signal mask in the sigaction
@@ -296,7 +304,11 @@ __pthread_initialize_minimal_internal (void)
else
{
/* Round the resource limit up to page size. */
+#ifdef __UCLIBC__
const uintptr_t pagesz = sysconf (_SC_PAGESIZE);
+#else
+ const uintptr_t pagesz = __sysconf (_SC_PAGESIZE);
+#endif
__default_stacksize = (limit.rlim_cur + pagesz - 1) & -pagesz;
}