svn commit: trunk/uClibc/include

psm at uclibc.org psm at uclibc.org
Tue Dec 6 14:25:02 UTC 2005


Author: psm
Date: 2005-12-06 06:24:26 -0800 (Tue, 06 Dec 2005)
New Revision: 12694

Log:
Add some needed prototypes and macros to allow transition of __XL and friends to hidden versions

Modified:
   trunk/uClibc/include/libc-internal.h


Changeset:
Modified: trunk/uClibc/include/libc-internal.h
===================================================================
--- trunk/uClibc/include/libc-internal.h	2005-12-06 14:22:40 UTC (rev 12693)
+++ trunk/uClibc/include/libc-internal.h	2005-12-06 14:24:26 UTC (rev 12694)
@@ -120,6 +120,16 @@
 #ifndef __ASSEMBLER__
 # ifdef IS_IN_libc
 
+#  define __UC(N) __ ## N
+#  define __UC_ALIAS(N) strong_alias( __ ## N , N )
+#  if defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_DO_XLOCALE
+#   define __UCXL(N) __ ## N ## _l
+#   define __UCXL_ALIAS(N) strong_alias ( __ ## N ## _l , N ## _l )
+#  else
+#   define __UCXL(N) __UC(N)
+#   define __UCXL_ALIAS(N) __UC_ALIAS(N)
+#  endif
+
 #  include <bits/types.h>
 
 #  ifndef __ssize_t_defined
@@ -132,6 +142,9 @@
 
 #  include <bits/sigset.h>
 
+/* sources are built w/ _GNU_SOURCE, this gets undefined */
+extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen);
+
 /* prototypes for internal use, please keep these in sync w/ updated headers */
 /* #include <fcntl.h> */
 extern int __open(__const char *__file, int __oflag, ...) attribute_hidden;
@@ -151,6 +164,8 @@
 extern char *__strchr (__const char *__s, int __c) attribute_hidden;
 extern int __strncmp (__const char *__s1, __const char *__s2, size_t __n) attribute_hidden;
 extern char *__strdup (__const char *__s) attribute_hidden;
+extern int __strcasecmp (__const char *__s1, __const char *__s2) attribute_hidden;
+extern int __strncasecmp (__const char *__s1, __const char *__s2, size_t __n) attribute_hidden;
 
 /* #include <unistd.h> */
 extern ssize_t __read(int __fd, void *__buf, size_t __nbytes) attribute_hidden;




More information about the uClibc-cvs mailing list