From db782340c479b741bb7e05478342c9800f06e90f Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 6 Dec 2005 14:24:26 +0000 Subject: Add some needed prototypes and macros to allow transition of __XL and friends to hidden versions --- include/libc-internal.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/libc-internal.h') 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 # ifndef __ssize_t_defined @@ -132,6 +142,9 @@ typedef __ssize_t ssize_t; # include +/* 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 */ 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 */ extern ssize_t __read(int __fd, void *__buf, size_t __nbytes) attribute_hidden; -- cgit v1.2.3