summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-24 22:40:48 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-24 22:40:48 +0000
commit8f1cfc6f18b5dd84b302e4b82bb37123db4cf4d3 (patch)
treee5e2b1fd1bf19fd2159b724e927f2b3bb8fa251b /libc/stdio/stdio.c
parenta13db8a7072fcaf6457c1b92e4d1957992b3adbe (diff)
Add the __fopen prototype, since I pulled it from stdio.h
Diffstat (limited to 'libc/stdio/stdio.c')
-rw-r--r--libc/stdio/stdio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c
index d2932e555..ad2135247 100644
--- a/libc/stdio/stdio.c
+++ b/libc/stdio/stdio.c
@@ -51,6 +51,10 @@
extern off_t _uClibc_fwrite(const unsigned char *buf, off_t bytes, FILE *fp);
extern off_t _uClibc_fread(unsigned char *buf, off_t bytes, FILE *fp);
+/* Used internally to actually open files */
+extern FILE *__fopen __P((__const char *__restrict __filename, int __fd,
+ FILE *__restrict __stream, __const char *__restrict __mode));
+
/* Note: This def of READING is ok since 1st ungetc puts in buf. */
#define READING(fp) (fp->bufstart < fp->bufread)
#define WRITING(fp) (fp->bufwrite > fp->bufstart)