about summary refs log tree commit diff
path: root/stdio-common/snprintf.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-10-17 05:49:48 +0000
committerRoland McGrath <roland@gnu.org>1995-10-17 05:49:48 +0000
commitb3a59f408e7462fbd77289e8c3f50606044a585a (patch)
treecfd874921dda17cb953c2f4a44b533db0641639d /stdio-common/snprintf.c
parent0700dfa143cad61b491c6d596657ee69cd5b35bd (diff)
downloadglibc-b3a59f408e7462fbd77289e8c3f50606044a585a.tar.gz
glibc-b3a59f408e7462fbd77289e8c3f50606044a585a.tar.xz
glibc-b3a59f408e7462fbd77289e8c3f50606044a585a.zip
Tue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* stdio-common/psignal.c: Translate signal description strings.
	* string/strsignal.c: Likewise.
	* sysdeps/generic/_strerror.c (_strerror_internal): Translate
	error strings.
	* sysdeps/mach/_strerror.c: Likewise.

	* stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
	call __vsnprintf.
	(snprintf): Define as weak alias.
	* stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
	(vsnprintf): Define as weak alias.

	* libc-symbols.h [! ASSEMBLER] (_): New macro.
Diffstat (limited to 'stdio-common/snprintf.c')
-rw-r--r--stdio-common/snprintf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/stdio-common/snprintf.c b/stdio-common/snprintf.c
index 00b85f3175..a7a6e722ee 100644
--- a/stdio-common/snprintf.c
+++ b/stdio-common/snprintf.c
@@ -20,14 +20,14 @@ Cambridge, MA 02139, USA.  */
 #include <stdio.h>
 
 #ifdef USE_IN_LIBIO
-# define vsnprintf _IO_vsnprintf
+# define __vsnprintf _IO_vsnprintf
 #endif
 
 /* Write formatted output into S, according to the format
    string FORMAT, writing no more than MAXLEN characters.  */
 /* VARARGS3 */
 int
-snprintf (s, maxlen, format)
+__snprintf (s, maxlen, format)
       char *s;
       size_t maxlen;
       const char *format;
@@ -36,8 +36,9 @@ snprintf (s, maxlen, format)
   int done;
 
   va_start (arg, format);
-  done = vsnprintf (s, maxlen, format, arg);
+  done = __vsnprintf (s, maxlen, format, arg);
   va_end (arg);
 
   return done;
 }
+weak_alias (__snprintf, snprintf)