|
@@ -16,6 +16,7 @@ __BEGIN_DECLS
|
|
struct __STDIO_FILE {
|
|
struct __STDIO_FILE {
|
|
int fd;
|
|
int fd;
|
|
int eof;
|
|
int eof;
|
|
|
|
+ int error;
|
|
};
|
|
};
|
|
|
|
|
|
typedef struct __STDIO_FILE FILE;
|
|
typedef struct __STDIO_FILE FILE;
|
|
@@ -34,6 +35,7 @@ FILE* fopen(const char* pathname, const char* mode);
|
|
int fclose(FILE*);
|
|
int fclose(FILE*);
|
|
void rewind(FILE*);
|
|
void rewind(FILE*);
|
|
void clearerr(FILE*);
|
|
void clearerr(FILE*);
|
|
|
|
+int ferror(FILE*);
|
|
int feof(FILE*);
|
|
int feof(FILE*);
|
|
int fflush(FILE*);
|
|
int fflush(FILE*);
|
|
size_t fread(void* ptr, size_t size, size_t nmemb, FILE*);
|
|
size_t fread(void* ptr, size_t size, size_t nmemb, FILE*);
|
|
@@ -42,6 +44,9 @@ int fprintf(FILE*, const char* fmt, ...);
|
|
int printf(const char* fmt, ...);
|
|
int printf(const char* fmt, ...);
|
|
int sprintf(char* buffer, const char* fmt, ...);
|
|
int sprintf(char* buffer, const char* fmt, ...);
|
|
int putchar(int ch);
|
|
int putchar(int ch);
|
|
|
|
+int putc(int ch, FILE*);
|
|
|
|
+int puts(const char*);
|
|
|
|
+int fputs(const char*, FILE*);
|
|
void perror(const char*);
|
|
void perror(const char*);
|
|
int sscanf (const char* buf, const char* fmt, ...);
|
|
int sscanf (const char* buf, const char* fmt, ...);
|
|
int fscanf(FILE*, const char* fmt, ...);
|
|
int fscanf(FILE*, const char* fmt, ...);
|