summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-02-15 16:14:39 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-02-15 16:14:39 +0000
commitbd0ff62e4a6f434708d6fb3b1258dc5226a40595 (patch)
treeb348062788dc00ce1e676ab0d453b1d4a172c86c /include/stdio.h
parentc886fc910989953d808e71535e04406a4e07b49d (diff)
Fix stdin/stdout/stderr (that I broke) and add vdprintf prototype.
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 945e353a9..5e3982416 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -106,11 +106,14 @@ typedef struct __stdio_file FILE;
#undef __need_FOPEN_MAX
/* Standard streams (internal). */
-extern FILE _stdio_streams[3];
+extern FILE *_stdin;
+extern FILE *_stdout;
+extern FILE *_stderr;
+
/* C89/C99 say they're macros. Make them happy. */
-#define stdin (_stdio_streams)
-#define stdout (_stdio_streams+1)
-#define stderr (_stdio_streams+2)
+#define stdin _stdin
+#define stdout _stdout
+#define stderr _stderr
/* Remove file FILENAME. */
extern int remove __P ((__const char *__filename));
@@ -210,6 +213,10 @@ extern int printf __P ((__const char *__restrict __format, ...));
extern int sprintf __P ((char *__restrict __s,
__const char *__restrict __format, ...));
+/* Write formatted output to a file descriptor */
+extern int vdprintf __P((int fd, __const char *__restrict __format,
+ va_list __arg));
+
/* Write formatted output to a buffer S dynamically allocated by asprintf. */
extern int asprintf __P ((char **__restrict __s,
__const char *__restrict __format, ...));