[uClibc-cvs] svn commit: branches/uClibc-nptl/libpthread/nptl: sysdeps/unix/sysv/linux

sjhill at uclibc.org sjhill at uclibc.org
Fri Jun 3 03:02:36 UTC 2005


Author: sjhill
Date: 2005-06-02 21:02:36 -0600 (Thu, 02 Jun 2005)
New Revision: 10460

Log:
Change system call names from glibc to uClibc.


Modified:
   branches/uClibc-nptl/libpthread/nptl/init.c
   branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h


Changeset:
Modified: branches/uClibc-nptl/libpthread/nptl/init.c
===================================================================
--- branches/uClibc-nptl/libpthread/nptl/init.c	2005-06-03 02:54:54 UTC (rev 10459)
+++ branches/uClibc-nptl/libpthread/nptl/init.c	2005-06-03 03:02:36 UTC (rev 10460)
@@ -264,13 +264,21 @@
   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 @@
   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;
     }
 

Modified: branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h
===================================================================
--- branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h	2005-06-03 02:54:54 UTC (rev 10459)
+++ branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h	2005-06-03 03:02:36 UTC (rev 10460)
@@ -34,7 +34,11 @@
   size_t reslen = sizeof (buf);
 
   /* Try reading the number using `sysctl' first.  */
+#ifdef __UCLIBC__
   if (sysctl ((int *) sysctl_args,
+#else
+  if (__sysctl ((int *) sysctl_args,
+#endif
 		sizeof (sysctl_args) / sizeof (sysctl_args[0]),
 		buf, &reslen, NULL, 0) < 0)
     {




More information about the uClibc-cvs mailing list