svn commit: trunk/uClibc/libc: inet inet/rpc misc/assert misc/ftw misc/ etc...

psm at uclibc.org psm at uclibc.org
Wed Mar 22 15:49:38 UTC 2006


Author: psm
Date: 2006-03-22 07:49:22 -0800 (Wed, 22 Mar 2006)
New Revision: 14602

Log:
Mark some functions as GNU, provide missing hidden memmem, remove _ISOC99/XOPEN_SOURCE

Modified:
   trunk/uClibc/libc/inet/if_index.c
   trunk/uClibc/libc/inet/rpc/rcmd.c
   trunk/uClibc/libc/misc/assert/__assert.c
   trunk/uClibc/libc/misc/ftw/ftw.c
   trunk/uClibc/libc/misc/locale/locale.c
   trunk/uClibc/libc/misc/regex/regcomp.c
   trunk/uClibc/libc/misc/regex/regex.c
   trunk/uClibc/libc/misc/regex/regex_old.c
   trunk/uClibc/libc/misc/regex/regexec.c
   trunk/uClibc/libc/misc/time/time.c
   trunk/uClibc/libc/misc/wchar/wchar.c
   trunk/uClibc/libc/stdlib/ptsname.c
   trunk/uClibc/libc/string/basename.c
   trunk/uClibc/libc/string/generic/memmem.c
   trunk/uClibc/libc/string/generic/mempcpy.c
   trunk/uClibc/libc/string/generic/memrchr.c
   trunk/uClibc/libc/string/generic/rawmemchr.c
   trunk/uClibc/libc/string/generic/strchrnul.c
   trunk/uClibc/libc/string/generic/strnlen.c
   trunk/uClibc/libc/string/generic/strtok_r.c
   trunk/uClibc/libc/string/i386/strnlen.c
   trunk/uClibc/libc/string/memmem.c
   trunk/uClibc/libc/string/mempcpy.c
   trunk/uClibc/libc/string/memrchr.c
   trunk/uClibc/libc/string/rawmemchr.c
   trunk/uClibc/libc/string/strchrnul.c
   trunk/uClibc/libc/string/strnlen.c
   trunk/uClibc/libc/sysdeps/linux/common/setegid.c
   trunk/uClibc/libc/sysdeps/linux/common/seteuid.c
   trunk/uClibc/libc/unistd/exec.c


Changeset:
Modified: trunk/uClibc/libc/inet/if_index.c
===================================================================
--- trunk/uClibc/libc/inet/if_index.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/inet/if_index.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -35,11 +35,13 @@
 
 #include "netlinkaccess.h"
 
-libc_hidden_proto(strndup)
 libc_hidden_proto(strncpy)
 libc_hidden_proto(strdup)
 libc_hidden_proto(ioctl)
 libc_hidden_proto(close)
+#if __ASSUME_NETLINK_SUPPORT
+libc_hidden_proto(strndup)
+#endif
 
 extern int __opensock(void) attribute_hidden;
 

Modified: trunk/uClibc/libc/inet/rpc/rcmd.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/rcmd.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/inet/rpc/rcmd.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -94,7 +94,6 @@
 libc_hidden_proto(strcpy)
 libc_hidden_proto(strlen)
 libc_hidden_proto(strncmp)
-libc_hidden_proto(strnlen)
 libc_hidden_proto(memmove)
 libc_hidden_proto(getpid)
 libc_hidden_proto(socket)

Modified: trunk/uClibc/libc/misc/assert/__assert.c
===================================================================
--- trunk/uClibc/libc/misc/assert/__assert.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/assert/__assert.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -27,7 +27,6 @@
  * and is useful in debugging the stdio code.
  */
 
-#define _ISOC99_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>

Modified: trunk/uClibc/libc/misc/ftw/ftw.c
===================================================================
--- trunk/uClibc/libc/misc/ftw/ftw.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/ftw/ftw.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -22,7 +22,6 @@
 # include <config.h>
 #endif
 
-#define _XOPEN_SOURCE 500
 #include <features.h>
 #ifdef __UCLIBC__
 #undef _LIBC

Modified: trunk/uClibc/libc/misc/locale/locale.c
===================================================================
--- trunk/uClibc/libc/misc/locale/locale.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/locale/locale.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -60,7 +60,6 @@
 
 libc_hidden_proto(memcpy)
 libc_hidden_proto(memset)
-libc_hidden_proto(stpcpy)
 libc_hidden_proto(strtok_r)
 libc_hidden_proto(strlen)
 libc_hidden_proto(strcmp)
@@ -192,6 +191,7 @@
  */
 static char hr_locale[(MAX_LOCALE_CATEGORY_STR * LC_ALL) + MAX_LOCALE_STR];
 
+libc_hidden_proto(stpcpy)
 libc_hidden_proto(newlocale)
 
 static void update_hr_locale(const unsigned char *spec)
@@ -1082,6 +1082,7 @@
 /**********************************************************************/
 #ifdef L_newlocale
 
+libc_hidden_proto(stpcpy)
 libc_hidden_proto(newlocale)
 
 #ifdef __UCLIBC_MJN3_ONLY__

Modified: trunk/uClibc/libc/misc/regex/regcomp.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regcomp.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/regex/regcomp.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -532,7 +532,7 @@
     {
       if (BE (msg_size > errbuf_size, 0))
 	{
-#if defined HAVE_MEMPCPY || defined _LIBC
+#if (defined HAVE_MEMPCPY || defined _LIBC) && defined __USE_GNU
 	  *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
 #else
 	  memcpy (errbuf, msg, errbuf_size - 1);

Modified: trunk/uClibc/libc/misc/regex/regex.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regex.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/regex/regex.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -28,7 +28,9 @@
 #ifdef __UCLIBC__
 #undef _LIBC
 #define _REGEX_RE_COMP
-#define HAVE_MEMPCPY
+#ifdef __USE_GNU
+# define HAVE_MEMPCPY
+#endif
 #define HAVE_LANGINFO
 #define HAVE_LANGINFO_CODESET
 #include <stdbool.h>
@@ -83,8 +85,10 @@
 libc_hidden_proto(strncpy)
 libc_hidden_proto(getenv)
 libc_hidden_proto(strcasecmp)
+libc_hidden_proto(abort)
+#ifdef __USE_GNU
 libc_hidden_proto(mempcpy)
-libc_hidden_proto(abort)
+#endif
 
 #endif
 

Modified: trunk/uClibc/libc/misc/regex/regex_old.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regex_old.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/regex/regex_old.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -26,7 +26,9 @@
 #ifdef __UCLIBC__
 # undef _LIBC
 # define _REGEX_RE_COMP
-# define HAVE_MEMPCPY
+# ifdef __USE_GNU
+#  define HAVE_MEMPCPY
+# endif
 # define STDC_HEADERS
 # define RE_TRANSLATE_TYPE char *
 #endif
@@ -41,8 +43,10 @@
 libc_hidden_proto(strcmp)
 libc_hidden_proto(strlen)
 libc_hidden_proto(printf)
+libc_hidden_proto(abort)
+#ifdef __USE_GNU
 libc_hidden_proto(mempcpy)
-libc_hidden_proto(abort)
+#endif
 
 /* AIX requires this to be the first thing in the file. */
 #if defined _AIX && !defined REGEX_MALLOC
@@ -8281,7 +8285,7 @@
     {
       if (msg_size > errbuf_size)
         {
-#if defined HAVE_MEMPCPY || defined _LIBC
+#if (defined HAVE_MEMPCPY || defined _LIBC) && defined __USE_GNU
 	  *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
 #else
           memcpy (errbuf, msg, errbuf_size - 1);

Modified: trunk/uClibc/libc/misc/regex/regexec.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regexec.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/regex/regexec.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -385,7 +385,7 @@
 
 	if (BE (s == NULL, 0))
 	  return -2;
-#if defined _LIBC || defined __UCLIBC__
+#if (defined _LIBC || defined __UCLIBC__) && defined __USE_GNU
 	memcpy (__mempcpy (s, string1, length1), string2, length2);
 #else
 	memcpy (s, string1, length1);

Modified: trunk/uClibc/libc/misc/time/time.c
===================================================================
--- trunk/uClibc/libc/misc/time/time.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/time/time.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -164,7 +164,6 @@
 libc_hidden_proto(strcpy)
 libc_hidden_proto(strlen)
 libc_hidden_proto(strncpy)
-libc_hidden_proto(strnlen)
 /* libc_hidden_proto(sprintf) */
 libc_hidden_proto(open)
 libc_hidden_proto(read)
@@ -606,6 +605,8 @@
 
 #ifdef __UCLIBC_HAS_TM_EXTENSIONS__
 
+libc_hidden_proto(strnlen)
+
 struct ll_tzname_item;
 
 typedef struct ll_tzname_item {

Modified: trunk/uClibc/libc/misc/wchar/wchar.c
===================================================================
--- trunk/uClibc/libc/misc/wchar/wchar.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/misc/wchar/wchar.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -98,7 +98,6 @@
  * Manuel
  */
 
-#define _ISOC99_SOURCE
 #include <errno.h>
 #include <stddef.h>
 #include <limits.h>

Modified: trunk/uClibc/libc/stdlib/ptsname.c
===================================================================
--- trunk/uClibc/libc/stdlib/ptsname.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/stdlib/ptsname.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -17,7 +17,6 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#define _ISOC99_SOURCE
 #include <stdio.h>
 #include <errno.h>
 #include <paths.h>

Modified: trunk/uClibc/libc/string/basename.c
===================================================================
--- trunk/uClibc/libc/string/basename.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/basename.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,7 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
 libc_hidden_proto(basename)
 
 char *basename(const char *path)
@@ -25,3 +26,4 @@
 	return (char *) p;
 }
 libc_hidden_def(basename)
+#endif

Modified: trunk/uClibc/libc/string/generic/memmem.c
===================================================================
--- trunk/uClibc/libc/string/generic/memmem.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/memmem.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -19,6 +19,7 @@
 #include <string.h>
 #include <stddef.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(memmem)
 libc_hidden_proto(memcmp)
 
@@ -50,3 +51,4 @@
   return NULL;
 }
 libc_hidden_def(memmem)
+#endif

Modified: trunk/uClibc/libc/string/generic/mempcpy.c
===================================================================
--- trunk/uClibc/libc/string/generic/mempcpy.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/mempcpy.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,7 @@
 
 #include <string.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(mempcpy)
 libc_hidden_proto(memcpy)
 
@@ -16,3 +17,4 @@
   return (void *)(((char *)dstpp) + len);
 }
 libc_hidden_def(mempcpy)
+#endif

Modified: trunk/uClibc/libc/string/generic/memrchr.c
===================================================================
--- trunk/uClibc/libc/string/generic/memrchr.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/memrchr.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <limits.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(memrchr)
 libc_hidden_proto(abort)
 
@@ -174,3 +175,4 @@
   return 0;
 }
 libc_hidden_def(memrchr)
+#endif

Modified: trunk/uClibc/libc/string/generic/rawmemchr.c
===================================================================
--- trunk/uClibc/libc/string/generic/rawmemchr.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/rawmemchr.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <limits.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(rawmemchr)
 libc_hidden_proto(abort)
 
@@ -160,3 +161,4 @@
     }
 }
 libc_hidden_def(rawmemchr)
+#endif

Modified: trunk/uClibc/libc/string/generic/strchrnul.c
===================================================================
--- trunk/uClibc/libc/string/generic/strchrnul.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/strchrnul.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(strchrnul)
 libc_hidden_proto(abort)
 
@@ -165,3 +166,4 @@
   return NULL;
 }
 libc_hidden_def(strchrnul)
+#endif

Modified: trunk/uClibc/libc/string/generic/strnlen.c
===================================================================
--- trunk/uClibc/libc/string/generic/strnlen.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/strnlen.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(strnlen)
 libc_hidden_proto(abort)
 
@@ -160,3 +161,4 @@
   return char_ptr - str;
 }
 libc_hidden_def(strnlen)
+#endif

Modified: trunk/uClibc/libc/string/generic/strtok_r.c
===================================================================
--- trunk/uClibc/libc/string/generic/strtok_r.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/generic/strtok_r.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -22,7 +22,13 @@
 libc_hidden_proto(strtok_r)
 libc_hidden_proto(strspn)
 libc_hidden_proto(strpbrk)
+#ifdef __USE_GNU
+# define __rawmemchr rawmemchr
 libc_hidden_proto(rawmemchr)
+#else
+# define __rawmemchr strchr
+libc_hidden_proto(strchr)
+#endif
 
 /* Parse S into tokens separated by characters in DELIM.
    If S is NULL, the saved pointer in SAVE_PTR is used as
@@ -54,7 +60,7 @@
   s = strpbrk (token, delim);
   if (s == NULL)
     /* This token finishes the string.  */
-    *save_ptr = rawmemchr (token, '\0');
+    *save_ptr = __rawmemchr (token, '\0');
   else
     {
       /* Terminate the token and make *SAVE_PTR point past it.  */

Modified: trunk/uClibc/libc/string/i386/strnlen.c
===================================================================
--- trunk/uClibc/libc/string/i386/strnlen.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/i386/strnlen.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -32,6 +32,7 @@
 
 #include <string.h>
 
+#ifdef __USE_GNU
 libc_hidden_proto(strnlen)
 size_t strnlen(const char *s, size_t count)
 {
@@ -52,3 +53,4 @@
     return __res;
 }
 libc_hidden_def(strnlen)
+#endif

Modified: trunk/uClibc/libc/string/memmem.c
===================================================================
--- trunk/uClibc/libc/string/memmem.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/memmem.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,8 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
+libc_hidden_proto(memmem)
 void *memmem(const void *haystack, size_t haystacklen,
 		     const void *needle, size_t needlelen)
 {
@@ -36,3 +38,5 @@
 
 	return NULL;
 }
+libc_hidden_def(memmem)
+#endif

Modified: trunk/uClibc/libc/string/mempcpy.c
===================================================================
--- trunk/uClibc/libc/string/mempcpy.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/mempcpy.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,8 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
+
 #ifdef WANT_WIDE
 # define Wmempcpy wmempcpy
 #else
@@ -35,3 +37,4 @@
 }
 
 libc_hidden_def(Wmempcpy)
+#endif

Modified: trunk/uClibc/libc/string/memrchr.c
===================================================================
--- trunk/uClibc/libc/string/memrchr.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/memrchr.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,8 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
+
 libc_hidden_proto(memrchr)
 
 void *memrchr(const void *s, int c, size_t n)
@@ -33,3 +35,4 @@
 #undef np
 
 libc_hidden_def(memrchr)
+#endif

Modified: trunk/uClibc/libc/string/rawmemchr.c
===================================================================
--- trunk/uClibc/libc/string/rawmemchr.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/rawmemchr.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,8 +7,8 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
 libc_hidden_proto(rawmemchr)
-
 void *rawmemchr(const void *s, int c)
 {
 	register const unsigned char *r = s;
@@ -18,3 +18,4 @@
 	return (void *) r;	/* silence the warning */
 }
 libc_hidden_def(rawmemchr)
+#endif

Modified: trunk/uClibc/libc/string/strchrnul.c
===================================================================
--- trunk/uClibc/libc/string/strchrnul.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/strchrnul.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,8 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
+
 #ifdef WANT_WIDE
 # define Wstrchrnul wcschrnul
 #else
@@ -22,3 +24,4 @@
 	return (Wchar *) s;
 }
 libc_hidden_def(Wstrchrnul)
+#endif

Modified: trunk/uClibc/libc/string/strnlen.c
===================================================================
--- trunk/uClibc/libc/string/strnlen.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/string/strnlen.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -7,6 +7,8 @@
 
 #include "_string.h"
 
+#ifdef __USE_GNU
+
 #ifdef WANT_WIDE
 # define Wstrnlen wcsnlen
 #else
@@ -35,3 +37,4 @@
 #undef maxp
 
 libc_hidden_def(Wstrnlen)
+#endif

Modified: trunk/uClibc/libc/sysdeps/linux/common/setegid.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/setegid.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/sysdeps/linux/common/setegid.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -11,7 +11,7 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 
-#if defined __NR_setresgid || defined __NR_setresgid32
+#if (defined __NR_setresgid || defined __NR_setresgid32) && defined __USE_GNU
 libc_hidden_proto(setresgid)
 #endif
 libc_hidden_proto(setregid)
@@ -26,7 +26,7 @@
 	return -1;
     }
 
-#if defined __NR_setresgid || defined __NR_setresgid32
+#if (defined __NR_setresgid || defined __NR_setresgid32) && defined __USE_GNU
     result = setresgid(-1, gid, -1);
     if (result == -1 && errno == ENOSYS)
 	/* Will also set the saved group ID if egid != gid,

Modified: trunk/uClibc/libc/sysdeps/linux/common/seteuid.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/seteuid.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/sysdeps/linux/common/seteuid.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -13,7 +13,7 @@
 
 libc_hidden_proto(seteuid)
 
-#if defined __NR_setresuid || defined __NR_setresuid32
+#if (defined __NR_setresuid || defined __NR_setresuid32) && defined __USE_GNU
 libc_hidden_proto(setresuid)
 #endif
 libc_hidden_proto(setreuid)
@@ -28,7 +28,7 @@
 	return -1;
     }
 
-#if defined __NR_setresuid || defined __NR_setresuid32
+#if (defined __NR_setresuid || defined __NR_setresuid32) && defined __USE_GNU
     result = setresuid(-1, uid, -1);
     if (result == -1 && errno == ENOSYS)
 	/* Will also set the saved user ID if euid != uid,

Modified: trunk/uClibc/libc/unistd/exec.c
===================================================================
--- trunk/uClibc/libc/unistd/exec.c	2006-03-22 15:43:28 UTC (rev 14601)
+++ trunk/uClibc/libc/unistd/exec.c	2006-03-22 15:49:22 UTC (rev 14602)
@@ -45,7 +45,6 @@
 libc_hidden_proto(memcpy)
 libc_hidden_proto(strchr)
 libc_hidden_proto(strlen)
-libc_hidden_proto(strchrnul)
 libc_hidden_proto(execve)
 libc_hidden_proto(mmap)
 libc_hidden_proto(munmap)
@@ -220,6 +219,8 @@
 /**********************************************************************/
 #ifdef L_execvp
 
+libc_hidden_proto(strchrnul)
+
 /* Use a default path that matches glibc behavior, since SUSv3 says
  * this is implementation-defined.  The default is current working dir,
  * /bin, and then /usr/bin. */




More information about the uClibc-cvs mailing list