OSDN Git Service

Add the __fopen prototype, since I pulled it from stdio.h
authorEric Andersen <andersen@codepoet.org>
Fri, 24 Aug 2001 22:40:48 +0000 (22:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 24 Aug 2001 22:40:48 +0000 (22:40 -0000)
libc/stdio/stdio.c

index d2932e5..ad21352 100644 (file)
 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)