summaryrefslogtreecommitdiff
path: root/include/libc-internal.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:24:26 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:24:26 +0000
commitdb782340c479b741bb7e05478342c9800f06e90f (patch)
treee4ac7a1fd6177f6d0dda8e60d231fbc70df2f186 /include/libc-internal.h
parentb3f0872f223b7cd3ce8f408ef0339659234d0558 (diff)
Add some needed prototypes and macros to allow transition of __XL and friends to hidden versions
Diffstat (limited to 'include/libc-internal.h')
-rw-r--r--include/libc-internal.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 469f5eba5..8e79b0c9d 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -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 @@ typedef __ssize_t ssize_t;
# 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 *__strncpy (char *__restrict __dest,
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;