mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
BZ#13775: Fix vdprintf/dprintf ldbl-compat decl feature test conditional.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
2012-02-27 Roland McGrath <roland@hack.frob.com>
|
2012-02-27 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
[BZ #13775]
|
||||||
|
* libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
|
||||||
|
[__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
|
||||||
|
* libio/stdio.h (vdprintf, dprintf): Remove comment about these not
|
||||||
|
being in POSIX, because they are in 1003.1-2008.
|
||||||
|
|
||||||
* rt/tst-aio.c: Include <fcntl.h>.
|
* rt/tst-aio.c: Include <fcntl.h>.
|
||||||
* rt/tst-aio7.c: Likewise.
|
* rt/tst-aio7.c: Likewise.
|
||||||
* rt/tst-aio64.c: Likewise.
|
* rt/tst-aio64.c: Likewise.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* -mlong-double-64 compatibility mode for stdio functions.
|
/* -mlong-double-64 compatibility mode for stdio functions.
|
||||||
Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
|
Copyright (C) 2006-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -62,9 +62,12 @@ __LDBL_REDIR_DECL (vscanf)
|
|||||||
__END_NAMESPACE_C99
|
__END_NAMESPACE_C99
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __USE_GNU
|
#ifdef __USE_XOPEN2K8
|
||||||
__LDBL_REDIR_DECL (vdprintf)
|
__LDBL_REDIR_DECL (vdprintf)
|
||||||
__LDBL_REDIR_DECL (dprintf)
|
__LDBL_REDIR_DECL (dprintf)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
__LDBL_REDIR_DECL (vasprintf)
|
__LDBL_REDIR_DECL (vasprintf)
|
||||||
__LDBL_REDIR_DECL (__asprintf)
|
__LDBL_REDIR_DECL (__asprintf)
|
||||||
__LDBL_REDIR_DECL (asprintf)
|
__LDBL_REDIR_DECL (asprintf)
|
||||||
|
@ -408,12 +408,7 @@ extern int asprintf (char **__restrict __ptr,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __USE_XOPEN2K8
|
#ifdef __USE_XOPEN2K8
|
||||||
/* Write formatted output to a file descriptor.
|
/* Write formatted output to a file descriptor. */
|
||||||
|
|
||||||
These functions are not part of POSIX and therefore no official
|
|
||||||
cancellation point. But due to similarity with an POSIX interface
|
|
||||||
or due to the implementation they are cancellation points and
|
|
||||||
therefore not marked with __THROW. */
|
|
||||||
extern int vdprintf (int __fd, const char *__restrict __fmt,
|
extern int vdprintf (int __fd, const char *__restrict __fmt,
|
||||||
_G_va_list __arg)
|
_G_va_list __arg)
|
||||||
__attribute__ ((__format__ (__printf__, 2, 0)));
|
__attribute__ ((__format__ (__printf__, 2, 0)));
|
||||||
|
Reference in New Issue
Block a user