svn commit: branches/uClibc-nptl/libc: inet misc/internals stdio string

sjhill at uclibc.org sjhill at uclibc.org
Tue Dec 6 03:45:57 UTC 2005


Author: sjhill
Date: 2005-12-05 19:45:53 -0800 (Mon, 05 Dec 2005)
New Revision: 12682

Log:
More merging from trunk.


Modified:
   branches/uClibc-nptl/libc/inet/resolv.c
   branches/uClibc-nptl/libc/misc/internals/__uClibc_main.c
   branches/uClibc-nptl/libc/stdio/__fsetlocking.c
   branches/uClibc-nptl/libc/stdio/_stdio.h
   branches/uClibc-nptl/libc/stdio/_uintmaxtostr.c
   branches/uClibc-nptl/libc/stdio/fgetc.c
   branches/uClibc-nptl/libc/stdio/fgets.c
   branches/uClibc-nptl/libc/stdio/fputc.c
   branches/uClibc-nptl/libc/stdio/getdelim.c
   branches/uClibc-nptl/libc/stdio/getline.c
   branches/uClibc-nptl/libc/stdio/old_vfprintf.c
   branches/uClibc-nptl/libc/stdio/open_memstream.c
   branches/uClibc-nptl/libc/stdio/popen.c
   branches/uClibc-nptl/libc/stdio/puts.c
   branches/uClibc-nptl/libc/stdio/scanf.c
   branches/uClibc-nptl/libc/stdio/setbuf.c
   branches/uClibc-nptl/libc/stdio/setbuffer.c
   branches/uClibc-nptl/libc/stdio/setlinebuf.c
   branches/uClibc-nptl/libc/stdio/setvbuf.c
   branches/uClibc-nptl/libc/stdio/ungetc.c
   branches/uClibc-nptl/libc/stdio/vasprintf.c
   branches/uClibc-nptl/libc/stdio/vfprintf.c
   branches/uClibc-nptl/libc/string/wstring.c


Changeset:
Modified: branches/uClibc-nptl/libc/inet/resolv.c
===================================================================
--- branches/uClibc-nptl/libc/inet/resolv.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/inet/resolv.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -137,6 +137,7 @@
 #define strncat __strncat
 #define strstr __strstr
 #define random __random
+#define getservbyport __getservbyport
 
 #define __FORCE_GLIBC
 #include <features.h>
@@ -185,15 +186,13 @@
 extern int __searchdomains;
 extern char * __searchdomain[MAX_SEARCH];
 
+
 #ifdef __UCLIBC_HAS_THREADS__
-#include <pthread.h>
+# include <pthread.h>
 extern pthread_mutex_t __resolv_lock;
-# define BIGLOCK	__pthread_mutex_lock(&__resolv_lock)
-# define BIGUNLOCK	__pthread_mutex_unlock(&__resolv_lock);
-#else
-# define BIGLOCK
-# define BIGUNLOCK
 #endif
+#define BIGLOCK	__pthread_mutex_lock(&__resolv_lock)
+#define BIGUNLOCK	__pthread_mutex_unlock(&__resolv_lock)
 
 
 
@@ -272,10 +271,10 @@
 extern void __close_nameservers(void) attribute_hidden;
 extern int __dn_expand(const u_char *, const u_char *, const u_char *,
 	char *, int);
-extern int __libc_ns_name_uncompress(const u_char *, const u_char *,
+extern int __ns_name_uncompress_internal(const u_char *, const u_char *,
 		const u_char *, char *, size_t) attribute_hidden;
-extern int __libc_ns_name_ntop(const u_char *, char *, size_t) attribute_hidden;
-extern int __libc_ns_name_unpack(const u_char *, const u_char *, const u_char *,
+extern int __ns_name_ntop_internal(const u_char *, char *, size_t) attribute_hidden;
+extern int __ns_name_unpack_internal(const u_char *, const u_char *, const u_char *,
                u_char *, size_t) attribute_hidden;
 
 
@@ -658,15 +657,12 @@
 #endif
 
 #if defined(L_dnslookup) || defined(L_gethostent)
-
 #ifdef __UCLIBC_HAS_THREADS__
+# include <pthread.h>
 static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
-# define LOCK	__pthread_mutex_lock(&mylock)
-# define UNLOCK	__pthread_mutex_unlock(&mylock);
-#else
-# define LOCK
-# define UNLOCK
 #endif
+#define LOCK	__pthread_mutex_lock(&mylock)
+#define UNLOCK	__pthread_mutex_unlock(&mylock)
 #endif
 
 #ifdef L_dnslookup
@@ -980,6 +976,7 @@
 int __searchdomains;
 char * __searchdomain[MAX_SEARCH];
 #ifdef __UCLIBC_HAS_THREADS__
+# include <pthread.h>
 pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER;
 #endif
 
@@ -2399,7 +2396,7 @@
 int __dn_expand(const u_char *msg, const u_char *eom, const u_char *src,
           char *dst, int dstsiz)
 {
-	int n = __libc_ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz);
+	int n = __ns_name_uncompress_internal(msg, eom, src, dst, (size_t)dstsiz);
 
 	if (n > 0 && dst[0] == '.')
 		dst[0] = '\0';
@@ -2451,19 +2448,19 @@
  * note:
  *      Root domain returns as "." not "".
  */
-int attribute_hidden __libc_ns_name_uncompress(const u_char *msg, const u_char *eom,
+int attribute_hidden __ns_name_uncompress_internal(const u_char *msg, const u_char *eom,
 		const u_char *src, char *dst, size_t dstsiz)
 {
 	u_char tmp[NS_MAXCDNAME];
 	int n;
 
-	if ((n = __libc_ns_name_unpack(msg, eom, src, tmp, sizeof tmp)) == -1)
+	if ((n = __ns_name_unpack_internal(msg, eom, src, tmp, sizeof tmp)) == -1)
 		return (-1);
-	if (__libc_ns_name_ntop(tmp, dst, dstsiz) == -1)
+	if (__ns_name_ntop_internal(tmp, dst, dstsiz) == -1)
 		return (-1);
 	return (n);
 }
-strong_alias(__libc_ns_name_uncompress,__ns_name_uncompress)
+strong_alias(__ns_name_uncompress_internal,__ns_name_uncompress)
 
 
 /*
@@ -2475,7 +2472,7 @@
  *      The root is returned as "."
  *      All other domains are returned in non absolute form
  */
-int attribute_hidden __libc_ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) {
+int attribute_hidden __ns_name_ntop_internal(const u_char *src, char *dst, size_t dstsiz) {
 	const u_char *cp;
 	char *dn, *eom;
 	u_char c;
@@ -2544,7 +2541,7 @@
 	*dn++ = '\0';
         return (dn - dst);
 }
-strong_alias(__libc_ns_name_ntop,__ns_name_ntop)
+strong_alias(__ns_name_ntop_internal,__ns_name_ntop)
 
 /*
  * ns_name_unpack(msg, eom, src, dst, dstsiz)
@@ -2552,7 +2549,7 @@
  * return:
  *      -1 if it fails, or consumed octets if it succeeds.
  */
-int attribute_hidden __libc_ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src,
+int attribute_hidden __ns_name_unpack_internal(const u_char *msg, const u_char *eom, const u_char *src,
                u_char *dst, size_t dstsiz)
 {
 	const u_char *srcp, *dstlim;
@@ -2619,5 +2616,5 @@
 		len = srcp - src;
 	return (len);
 }
-strong_alias(__libc_ns_name_unpack,__ns_name_unpack)
+strong_alias(__ns_name_unpack_internal,__ns_name_unpack)
 #endif /* L_ns_name */

Modified: branches/uClibc-nptl/libc/misc/internals/__uClibc_main.c
===================================================================
--- branches/uClibc-nptl/libc/misc/internals/__uClibc_main.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/misc/internals/__uClibc_main.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -1,7 +1,9 @@
 /*
- * Manuel Novoa III           Feb 2001
- * Erik Andersen              2002-2004
+ * Copyright (C) Feb 2001 Manuel Novoa III
+ * Copyright (C) 2000-2005 Erik Andersen <andersen at uclibc.org>
  *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
  * __uClibc_main is the routine to be called by all the arch-specific
  * versions of crt1.S in uClibc.
  *
@@ -11,6 +13,11 @@
  * avoided in the static library case.
  */
 
+#define getgid __getgid
+#define getuid __getuid
+#define getegid __getegid
+#define geteuid __geteuid
+
 #define	_ERRNO_H
 #include <features.h>
 #include <unistd.h>
@@ -75,8 +82,9 @@
 #endif
 
 extern int __libc_fcntl(int fd, int cmd, ...);
-extern int __libc_open(const char *file, int flags, ...);
 
+#ifdef __ARCH_HAS_MMU__
+
 static void __check_one_fd(int fd, int mode)
 {
     /* Check if the specified fd is already open */
@@ -84,7 +92,7 @@
     {
 	/* The descriptor is probably not open, so try to use /dev/null */
 	struct stat st;
-	int nullfd = __libc_open(_PATH_DEVNULL, mode);
+	int nullfd = __open(_PATH_DEVNULL, mode);
 	/* /dev/null is major=1 minor=3.  Make absolutely certain
 	 * that is in fact the device that we have opened and not
 	 * some other wierd file... */
@@ -114,6 +122,7 @@
     }
     return 1;
 }
+#endif
 
 /* __uClibc_init completely initialize uClibc so it is ready to use.
  *
@@ -222,12 +231,12 @@
     while (*aux_dat) {
 	ElfW(auxv_t) *auxv_entry = (ElfW(auxv_t) *) aux_dat;
 	if (auxv_entry->a_type <= AT_EGID) {
-	    memcpy(&(auxvt[auxv_entry->a_type]), auxv_entry, sizeof(ElfW(auxv_t)));
+	    __memcpy(&(auxvt[auxv_entry->a_type]), auxv_entry, sizeof(ElfW(auxv_t)));
 	}
 	aux_dat += 2;
     }
 
-#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+#if !defined(SHARED) && defined(__UCLIBC_HAS_THREADS_NATIVE__)
     {
 	extern void _dl_aux_init (ElfW(auxv_t) *av);
 

Modified: branches/uClibc-nptl/libc/stdio/__fsetlocking.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/__fsetlocking.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/__fsetlocking.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -15,7 +15,7 @@
  *   glibc treats invalid locking_mode args as FSETLOCKING_INTERNAL.
  */
 
-int attribute_hidden __libc_fsetlocking(FILE *stream, int locking_mode)
+int attribute_hidden __fsetlocking_internal(FILE *stream, int locking_mode)
 {
 #ifdef __UCLIBC_HAS_THREADS__
 	int current = 1 + (stream->__user_locking & 1);
@@ -44,4 +44,4 @@
 #endif
 }
 
-strong_alias(__libc_fsetlocking,__fsetlocking)
+strong_alias(__fsetlocking_internal,__fsetlocking)

Modified: branches/uClibc-nptl/libc/stdio/_stdio.h
===================================================================
--- branches/uClibc-nptl/libc/stdio/_stdio.h	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/_stdio.h	2005-12-06 03:45:53 UTC (rev 12682)
@@ -273,6 +273,8 @@
 extern int __stdio_trans2r_o(FILE *__restrict stream, int oflag) attribute_hidden;
 extern int __stdio_trans2w_o(FILE *__restrict stream, int oflag) attribute_hidden;
 
+extern int __setvbuf (FILE *__restrict __stream, char *__restrict __buf,
+		    int __modes, size_t __n) __THROW attribute_hidden;
 /**********************************************************************/
 #ifdef __STDIO_BUFFERS
 
@@ -371,7 +373,7 @@
 extern size_t __fread_unlocked(void *__restrict ptr, size_t size,
 						size_t nmemb, FILE *__restrict stream) attribute_hidden;
 
-extern int __libc_fputc_unlocked(int c, FILE *stream) attribute_hidden;
+extern int __fputc_unlocked_internal(int c, FILE *stream) attribute_hidden;
 
 extern int __fflush_unlocked(FILE *stream) attribute_hidden;
 
@@ -381,7 +383,7 @@
 extern int __feof_unlocked(FILE *stream);
 extern int __ferror_unlocked(FILE *stream);
 
-extern int __libc_fgetc_unlocked(FILE *stream) attribute_hidden;
+extern int __fgetc_unlocked_internal(FILE *stream) attribute_hidden;
 extern char *__fgets_unlocked(char *__restrict s, int n,
 					FILE * __restrict stream) attribute_hidden;
 

Modified: branches/uClibc-nptl/libc/stdio/_uintmaxtostr.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/_uintmaxtostr.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/_uintmaxtostr.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -17,7 +17,7 @@
 #define INTERNAL_DIV_MOD
 #endif
 
-char attribute_hidden *__libc__uintmaxtostr(register char * __restrict bufend, uintmax_t uval,
+char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_t uval,
 					int base, __UIM_CASE alphacase)
 {
     int negative;
@@ -149,4 +149,3 @@
 
     return bufend;
 }
-strong_alias(__libc__uintmaxtostr,_uintmaxtostr)

Modified: branches/uClibc-nptl/libc/stdio/fgetc.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/fgetc.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/fgetc.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -14,7 +14,7 @@
 
 #ifdef __DO_UNLOCKED
 
-int attribute_hidden __libc_fgetc_unlocked(FILE *stream)
+int attribute_hidden __fgetc_unlocked_internal(FILE *stream)
 {
 	__STDIO_STREAM_VALIDATE(stream);
 
@@ -69,12 +69,12 @@
 	return EOF;
 }
 
-strong_alias(__libc_fgetc_unlocked,__fgetc_unlocked)
-weak_alias(__fgetc_unlocked,fgetc_unlocked)
-weak_alias(__fgetc_unlocked,getc_unlocked)
+strong_alias(__fgetc_unlocked_internal,__fgetc_unlocked)
+weak_alias(__fgetc_unlocked_internal,fgetc_unlocked)
+weak_alias(__fgetc_unlocked_internal,getc_unlocked)
 #ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fgetc_unlocked,fgetc)
-weak_alias(__fgetc_unlocked,getc)
+weak_alias(__fgetc_unlocked_internal,fgetc)
+weak_alias(__fgetc_unlocked_internal,getc)
 #endif
 
 #elif defined __UCLIBC_HAS_THREADS__

Modified: branches/uClibc-nptl/libc/stdio/fgets.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/fgets.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/fgets.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -5,8 +5,6 @@
  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
-#define __fgetc_unlocked __libc_fgetc_unlocked
-
 #include "_stdio.h"
 
 #ifdef __DO_UNLOCKED
@@ -36,7 +34,7 @@
 				break;
 			}
 		} else {
-			if ((c = __fgetc_unlocked(stream)) == EOF) {
+			if ((c = __fgetc_unlocked_internal(stream)) == EOF) {
 				if (__FERROR_UNLOCKED(stream)) {
 					goto ERROR;
 				}

Modified: branches/uClibc-nptl/libc/stdio/fputc.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/fputc.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/fputc.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -14,7 +14,7 @@
 
 #ifdef __DO_UNLOCKED
 
-int attribute_hidden __libc_fputc_unlocked(int c, register FILE *stream)
+int attribute_hidden __fputc_unlocked_internal(int c, register FILE *stream)
 {
 	__STDIO_STREAM_VALIDATE(stream);
 
@@ -69,12 +69,12 @@
 	return EOF;
 }
 
-strong_alias(__libc_fputc_unlocked,__fputc_unlocked)
-weak_alias(__fputc_unlocked,fputc_unlocked)
-weak_alias(__fputc_unlocked,putc_unlocked)
+strong_alias(__fputc_unlocked_internal,__fputc_unlocked)
+weak_alias(__fputc_unlocked_internal,fputc_unlocked)
+weak_alias(__fputc_unlocked_internal,putc_unlocked)
 #ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fputc_unlocked,fputc)
-weak_alias(__fputc_unlocked,putc)
+weak_alias(__fputc_unlocked_internal,fputc)
+weak_alias(__fputc_unlocked_internal,putc)
 #endif
 
 #elif defined __UCLIBC_HAS_THREADS__

Modified: branches/uClibc-nptl/libc/stdio/getdelim.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/getdelim.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/getdelim.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -20,7 +20,7 @@
 
 #define GETDELIM_GROWBY		64
 
-ssize_t attribute_hidden __libc_getdelim(char **__restrict lineptr, size_t *__restrict n,
+ssize_t attribute_hidden __getdelim(char **__restrict lineptr, size_t *__restrict n,
 				   int delimiter, register FILE *__restrict stream)
 {
 	register char *buf;
@@ -74,5 +74,4 @@
 	return pos;
 }
 
-strong_alias(__libc_getdelim,__getdelim)
-weak_alias(__getdelim,getdelim)
+strong_alias(__getdelim,getdelim)

Modified: branches/uClibc-nptl/libc/stdio/getline.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/getline.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/getline.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -5,12 +5,13 @@
  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
-#define __getdelim __libc_getdelim
+#define getdelim __getdelim
 
 #include "_stdio.h"
 
-ssize_t getline(char **__restrict lineptr, size_t *__restrict n,
+ssize_t attribute_hidden __getline(char **__restrict lineptr, size_t *__restrict n,
 				FILE *__restrict stream)
 {
-	return __getdelim(lineptr, n, '\n', stream);
+	return getdelim(lineptr, n, '\n', stream);
 }
+strong_alias(__getline,getline)

Modified: branches/uClibc-nptl/libc/stdio/old_vfprintf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/old_vfprintf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/old_vfprintf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -127,7 +127,6 @@
 
 /**************************************************************************/
 
-#define _uintmaxtostr __libc__uintmaxtostr
 #define strnlen __strnlen
 
 #define _ISOC99_SOURCE			/* for ULLONG primarily... */

Modified: branches/uClibc-nptl/libc/stdio/open_memstream.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/open_memstream.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/open_memstream.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -124,7 +124,7 @@
  * (ie replace the FILE buffer with the cookie buffer and update FILE bufstart,
  * etc. whenever we seek). */
 
-FILE *open_memstream(char **__restrict bufloc, size_t *__restrict sizeloc)
+FILE attribute_hidden *__open_memstream(char **__restrict bufloc, size_t *__restrict sizeloc)
 {
 	register __oms_cookie *cookie;
 	register FILE *fp;
@@ -160,3 +160,4 @@
 
 	return NULL;
 }
+strong_alias(__open_memstream,open_memstream)

Modified: branches/uClibc-nptl/libc/stdio/popen.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/popen.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/popen.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -14,6 +14,8 @@
  *   Fix failure exit code for failed execve().
  */
 
+#define waitpid __waitpid
+#define execl __execl
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -30,14 +32,11 @@
 #endif
 
 #ifdef __UCLIBC_HAS_THREADS__
-#include <pthread.h>
+# include <pthread.h>
 static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
-# define LOCK			__pthread_mutex_lock(&mylock)
-# define UNLOCK			__pthread_mutex_unlock(&mylock);
-#else
-# define LOCK			((void) 0)
-# define UNLOCK			((void) 0)
-#endif      
+#endif
+#define LOCK			__pthread_mutex_lock(&mylock)
+#define UNLOCK			__pthread_mutex_unlock(&mylock)
 
 #ifndef VFORK_LOCK
 # define VFORK_LOCK		LOCK

Modified: branches/uClibc-nptl/libc/stdio/puts.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/puts.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/puts.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -5,8 +5,6 @@
  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
-#define __fputc_unlocked __libc_fputc_unlocked
-
 #include "_stdio.h"
 
 int puts(register const char * __restrict s)
@@ -24,7 +22,7 @@
 	/* Note: Nonportable as fputs need only return nonnegative on success. */
 	if ((n = __fputs_unlocked(s, stream)) != EOF) {
 		++n;
-		if (__fputc_unlocked('\n', stream) == EOF) {
+		if (__fputc_unlocked_internal('\n', stream) == EOF) {
 			n = EOF;
 		}
 	}

Modified: branches/uClibc-nptl/libc/stdio/scanf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/scanf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/scanf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -46,6 +46,7 @@
 #define wcslen __wcslen
 #define mbsrtowcs __mbsrtowcs
 #define mbrtowc __mbrtowc
+#define ungetc __ungetc
 
 #define _ISOC99_SOURCE			/* for LLONG_MAX primarily... */
 #define _GNU_SOURCE

Modified: branches/uClibc-nptl/libc/stdio/setbuf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/setbuf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/setbuf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -10,6 +10,6 @@
 void setbuf(FILE * __restrict stream, register char * __restrict buf)
 {
 #ifdef __STDIO_BUFFERS
-	setvbuf(stream, buf, ((buf != NULL) ? _IOFBF : _IONBF), BUFSIZ);
+	__setvbuf(stream, buf, ((buf != NULL) ? _IOFBF : _IONBF), BUFSIZ);
 #endif
 }

Modified: branches/uClibc-nptl/libc/stdio/setbuffer.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/setbuffer.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/setbuffer.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -16,6 +16,6 @@
 			   size_t size)
 {
 #ifdef __STDIO_BUFFERS
-	setvbuf(stream, buf, (buf ? _IOFBF : _IONBF), size);
+	__setvbuf(stream, buf, (buf ? _IOFBF : _IONBF), size);
 #endif
 }

Modified: branches/uClibc-nptl/libc/stdio/setlinebuf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/setlinebuf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/setlinebuf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -15,6 +15,6 @@
 void setlinebuf(FILE * __restrict stream)
 {
 #ifdef __STDIO_BUFFERS
-	setvbuf(stream, NULL, _IOLBF, (size_t) 0);
+	__setvbuf(stream, NULL, _IOLBF, (size_t) 0);
 #endif
 }

Modified: branches/uClibc-nptl/libc/stdio/setvbuf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/setvbuf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/setvbuf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -14,7 +14,7 @@
 #error Assumption violated for buffering mode flags
 #endif
 
-int setvbuf(register FILE * __restrict stream, register char * __restrict buf,
+int attribute_hidden __setvbuf(register FILE * __restrict stream, register char * __restrict buf,
 			int mode, size_t size)
 {
 #ifdef __STDIO_BUFFERS
@@ -104,3 +104,4 @@
 
 #endif
 }
+strong_alias(__setvbuf,setvbuf)

Modified: branches/uClibc-nptl/libc/stdio/ungetc.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/ungetc.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/ungetc.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -24,7 +24,7 @@
  *     (See section 7.19.6.2 of the C9X rationale -- WG14/N897.)
  */
 
-int ungetc(int c, register FILE *stream)
+int attribute_hidden __ungetc(int c, register FILE *stream)
 {
 	__STDIO_AUTO_THREADLOCK_VAR;
 
@@ -75,3 +75,4 @@
 
 	return c;
 }
+strong_alias(__ungetc,ungetc)

Modified: branches/uClibc-nptl/libc/stdio/vasprintf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/vasprintf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/vasprintf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -5,6 +5,8 @@
  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
+#define open_memstream __open_memstream
+
 #include "_stdio.h"
 #include <stdarg.h>
 #include <bits/uClibc_va_copy.h>

Modified: branches/uClibc-nptl/libc/stdio/vfprintf.c
===================================================================
--- branches/uClibc-nptl/libc/stdio/vfprintf.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/stdio/vfprintf.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -88,7 +88,6 @@
  *   treats this as an error.
  */
 
-#define _uintmaxtostr __libc__uintmaxtostr
 #define strnlen __strnlen
 #define wcslen __wcslen
 #define wcsnlen __wcsnlen

Modified: branches/uClibc-nptl/libc/string/wstring.c
===================================================================
--- branches/uClibc-nptl/libc/string/wstring.c	2005-12-06 03:33:06 UTC (rev 12681)
+++ branches/uClibc-nptl/libc/string/wstring.c	2005-12-06 03:45:53 UTC (rev 12682)
@@ -26,8 +26,6 @@
  *  mapping of signal strings (alpha, mips, hppa, sparc).
  */
 
-#define _uintmaxtostr __libc__uintmaxtostr
-
 #define _GNU_SOURCE
 #include <features.h>
 #include <string.h>




More information about the uClibc-cvs mailing list