mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
* include/stdio.h: Add libc_hidden_proto for __vfprintf_chk. * debug/vfprintf_chk.c: Add libc_hidden_def.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2005-08-08 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
|
||||||
|
* include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
|
||||||
|
* debug/vfprintf_chk.c: Add libc_hidden_def.
|
||||||
|
|
||||||
2005-08-08 Roland McGrath <roland@redhat.com>
|
2005-08-08 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
|
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
|
||||||
|
@ -48,7 +48,8 @@ char *alloca ();
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#ifdef USE_IN_LIBIO
|
#ifdef _LIBC
|
||||||
|
# include <../libio/libioP.h>
|
||||||
# include <wchar.h>
|
# include <wchar.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1766,7 +1767,7 @@ __argp_error (const struct argp_state *state, const char *fmt, ...)
|
|||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
if (vasprintf (&buf, fmt, ap) < 0)
|
if (_IO_vasprintf (&buf, fmt, ap) < 0)
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
__fxprintf (stream, "%s: %s\n",
|
__fxprintf (stream, "%s: %s\n",
|
||||||
@ -1836,7 +1837,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
|
|||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
if (vasprintf (&buf, fmt, ap) < 0)
|
if (_IO_vasprintf (&buf, fmt, ap) < 0)
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
__fxprintf (stream, ": %s", buf);
|
__fxprintf (stream, ": %s", buf);
|
||||||
|
@ -128,6 +128,7 @@ libc_hidden_proto (open_memstream)
|
|||||||
libc_hidden_proto (__libc_fatal)
|
libc_hidden_proto (__libc_fatal)
|
||||||
libc_hidden_proto (__vsprintf_chk)
|
libc_hidden_proto (__vsprintf_chk)
|
||||||
libc_hidden_proto (__vsnprintf_chk)
|
libc_hidden_proto (__vsnprintf_chk)
|
||||||
|
libc_hidden_proto (__vfprintf_chk)
|
||||||
|
|
||||||
# if !defined NOT_IN_libc && defined SHARED && defined DO_VERSIONING \
|
# if !defined NOT_IN_libc && defined SHARED && defined DO_VERSIONING \
|
||||||
&& defined HAVE_VISIBILITY_ATTRIBUTE && !defined HAVE_BROKEN_ALIAS_ATTRIBUTE\
|
&& defined HAVE_VISIBILITY_ATTRIBUTE && !defined HAVE_BROKEN_ALIAS_ATTRIBUTE\
|
||||||
|
Reference in New Issue
Block a user