diff options
author | Elliott Hughes <enh@google.com> | 2014-05-22 01:24:30 -0700 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-05-22 11:27:06 +0100 |
commit | fcac8ff97f6b6cced6546e0096cadc1039b68b5e (patch) | |
tree | 06ea666f735a14951c3facd2cb986d8835798399 /libc/include/stdio.h | |
parent | b2b0f7e1ae0a0459b41a7732b84f58d62373e512 (diff) | |
download | android_bionic-fcac8ff97f6b6cced6546e0096cadc1039b68b5e.tar.gz android_bionic-fcac8ff97f6b6cced6546e0096cadc1039b68b5e.tar.bz2 android_bionic-fcac8ff97f6b6cced6546e0096cadc1039b68b5e.zip |
Switch to POSIX dprintf/vdprintf.
Bug: 11156955
Change-Id: I734bd02db514367ab119a48304aae9767958e367
Diffstat (limited to 'libc/include/stdio.h')
-rw-r--r-- | libc/include/stdio.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h index 470d37770..90f595c9e 100644 --- a/libc/include/stdio.h +++ b/libc/include/stdio.h @@ -250,6 +250,9 @@ int vfprintf(FILE * __restrict, const char * __restrict, __va_list) int vprintf(const char * __restrict, __va_list) __printflike(1, 0); +int dprintf(int, const char * __restrict, ...) __printflike(2, 3); +int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0); + #ifndef __AUDIT__ char* gets(char*) __warnattr("gets is very unsafe; consider using fgets"); int sprintf(char* __restrict, const char* __restrict, ...) @@ -359,21 +362,6 @@ __END_DECLS #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) #endif /* __BSD_VISIBLE */ -#ifdef _GNU_SOURCE -/* - * glibc defines dprintf(int, const char*, ...), which is poorly named - * and likely to conflict with locally defined debugging printfs - * fdprintf is a better name, and some programs that use fdprintf use a - * #define fdprintf dprintf for compatibility - */ -__BEGIN_DECLS -int fdprintf(int, const char*, ...) - __printflike(2, 3); -int vfdprintf(int, const char*, __va_list) - __printflike(2, 0); -__END_DECLS -#endif /* _GNU_SOURCE */ - #if defined(__BIONIC_FORTIFY) __BEGIN_DECLS |