aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-11-30 04:49:04 +0000
committerRoland McGrath <roland@gnu.org>1995-11-30 04:49:04 +0000
commitb2518f55c0bce9b3f32551c2a0e4addcaeac7b0f (patch)
treec0d530cc474670cb87d95f404c577ca4e6a2a25a /stdio-common
parentb7843ea9ff56cd1e941abf9fab7c9c8c4e7dde69 (diff)
downloadglibc-b2518f55c0bce9b3f32551c2a0e4addcaeac7b0f.zip
glibc-b2518f55c0bce9b3f32551c2a0e4addcaeac7b0f.tar.gz
glibc-b2518f55c0bce9b3f32551c2a0e4addcaeac7b0f.tar.bz2
Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>cvs/libc-951130
* libio/vsnprintf.c (__vsnprintf): Define as alias. * libio/iovsscanf.c (__vsscanf): Define as alias. * asprintf.c: Remove libio adaptation code added by drepper. * dprintf.c: Likewise. * printf.c: Likewise. * scanf.c: Likewise. * snprintf.c: Likewise. * sprintf.c: Likewise. * sscanf.c: Likewise. * vprintf.c: Likewise. * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper function. (vfscanf): Define unconditionally. * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use zero for value. * misc/getpass.c: Write a newline after reading the unechoed password.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/asprintf.c4
-rw-r--r--stdio-common/dprintf.c4
-rw-r--r--stdio-common/printf.c4
-rw-r--r--stdio-common/scanf.c4
-rw-r--r--stdio-common/snprintf.c5
-rw-r--r--stdio-common/sprintf.c4
-rw-r--r--stdio-common/sscanf.c4
-rw-r--r--stdio-common/vfscanf.c10
-rw-r--r--stdio-common/vprintf.c4
9 files changed, 8 insertions, 35 deletions
diff --git a/stdio-common/asprintf.c b/stdio-common/asprintf.c
index dd9eec5..b5820fd 100644
--- a/stdio-common/asprintf.c
+++ b/stdio-common/asprintf.c
@@ -19,10 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# define vasprintf _IO_vasprintf
-#endif
-
/* Write formatted output from FORMAT to a string which is
allocated with malloc and stored in *STRING_PTR. */
/* VARARGS2 */
diff --git a/stdio-common/dprintf.c b/stdio-common/dprintf.c
index 611a603..5728c56 100644
--- a/stdio-common/dprintf.c
+++ b/stdio-common/dprintf.c
@@ -19,10 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# define vdprintf _IO_vdprintf
-#endif
-
/* Write formatted output to D, according to the format string FORMAT. */
/* VARARGS2 */
int
diff --git a/stdio-common/printf.c b/stdio-common/printf.c
index d8aa895..edb13da 100644
--- a/stdio-common/printf.c
+++ b/stdio-common/printf.c
@@ -19,10 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# define vprintf _IO_vprintf
-#endif
-
/* Write formatted output to stdout from the format string FORMAT. */
/* VARARGS1 */
int
diff --git a/stdio-common/scanf.c b/stdio-common/scanf.c
index cf43363..3c35fa3 100644
--- a/stdio-common/scanf.c
+++ b/stdio-common/scanf.c
@@ -19,10 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# define vscanf _IO_vscanf
-#endif
-
/* Read formatted input from stdin according to the format string FORMAT. */
/* VARARGS1 */
int
diff --git a/stdio-common/snprintf.c b/stdio-common/snprintf.c
index ca0b60a..e4f8e1e 100644
--- a/stdio-common/snprintf.c
+++ b/stdio-common/snprintf.c
@@ -19,11 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# include <libioP.h>
-# define __vsnprintf _IO_vsnprintf
-#endif
-
/* Write formatted output into S, according to the format
string FORMAT, writing no more than MAXLEN characters. */
/* VARARGS3 */
diff --git a/stdio-common/sprintf.c b/stdio-common/sprintf.c
index 9cfc89c..c1fb5b3 100644
--- a/stdio-common/sprintf.c
+++ b/stdio-common/sprintf.c
@@ -19,10 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# define vsprintf _IO_vsprintf
-#endif
-
/* Write formatted output into S, according to the format string FORMAT. */
/* VARARGS2 */
int
diff --git a/stdio-common/sscanf.c b/stdio-common/sscanf.c
index 794a3ce..d9c31bf 100644
--- a/stdio-common/sscanf.c
+++ b/stdio-common/sscanf.c
@@ -19,10 +19,6 @@ Cambridge, MA 02139, USA. */
#include <stdarg.h>
#include <stdio.h>
-#ifdef USE_IN_LIBIO
-# define __vsscanf _IO_vsscanf
-#endif
-
/* Read formatted input from S, according to the format string FORMAT. */
/* VARARGS2 */
int
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index a0bb632..b0e48df 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -724,6 +724,12 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
return ((c == EOF || ungetc (c, s)), done);
}
-#ifndef USE_IN_LIBIO
-weak_alias (__vfscanf, vfscanf)
+#ifdef USE_IN_LIBIO
+int
+__vfscanf (FILE *s, const char *format, va_list argptr)
+{
+ return _IO_vfscanf (s, format, argptr, NULL);
+}
#endif
+
+weak_alias (__vfscanf, vfscanf)
diff --git a/stdio-common/vprintf.c b/stdio-common/vprintf.c
index 77f1da4..e2da260 100644
--- a/stdio-common/vprintf.c
+++ b/stdio-common/vprintf.c
@@ -22,10 +22,6 @@ Cambridge, MA 02139, USA. */
#undef vprintf
-#ifdef USE_IN_LIBIO
-# define vfprintf _IO_vfprintf
-#endif
-
/* Write formatted output to stdout according to the
format string FORMAT, using the argument list in ARG. */
int