summaryrefslogtreecommitdiffstats
path: root/libc/include/stdio.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-01-13 17:48:34 -0800
committerColin Cross <ccross@android.com>2010-01-15 16:52:35 -0800
commitfc10b24accd082fb33c8f92ff8b92481c22fe3dc (patch)
treeedadb43992d3ff9334ff7e1f257f13073d25ebd6 /libc/include/stdio.h
parent8c59d96e243ba1a05d7d9ab7a14d1a00e20bad4a (diff)
downloadbionic-fc10b24accd082fb33c8f92ff8b92481c22fe3dc.zip
bionic-fc10b24accd082fb33c8f92ff8b92481c22fe3dc.tar.gz
bionic-fc10b24accd082fb33c8f92ff8b92481c22fe3dc.tar.bz2
Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell
Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
Diffstat (limited to 'libc/include/stdio.h')
-rw-r--r--libc/include/stdio.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index 791b260..f0e103e 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -437,4 +437,15 @@ static __inline int __sputc(int _c, FILE *_p) {
#define getchar_unlocked() getc_unlocked(stdin)
#define putchar_unlocked(c) putc_unlocked(c, stdout)
+#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
+ */
+int fdprintf(int, const char*, ...);
+int vfdprintf(int, const char*, __va_list);
+#endif /* _GNU_SOURCE */
+
#endif /* _STDIO_H_ */