software/libbase: more file decls in stdio
This commit is contained in:
parent
333179e1c5
commit
56e201fd5d
|
@ -21,6 +21,10 @@ int printf(const char *fmt, ...);
|
||||||
#define BUFSIZ 1024
|
#define BUFSIZ 1024
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef EOF
|
||||||
|
#define EOF -1
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef int FILE;
|
typedef int FILE;
|
||||||
|
|
||||||
extern FILE *stdin;
|
extern FILE *stdin;
|
||||||
|
@ -31,9 +35,14 @@ int fprintf(FILE *stream, const char *format, ...);
|
||||||
int fflush(FILE *stream);
|
int fflush(FILE *stream);
|
||||||
|
|
||||||
FILE *fopen(const char *path, const char *mode);
|
FILE *fopen(const char *path, const char *mode);
|
||||||
|
FILE *freopen(const char *path, const char *mode, FILE *stream);
|
||||||
char *fgets(char *s, int size, FILE *stream);
|
char *fgets(char *s, int size, FILE *stream);
|
||||||
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
|
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
|
||||||
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
|
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
|
||||||
|
int getc(FILE *stream);
|
||||||
|
int fputc(int c, FILE *stream);
|
||||||
|
int ferror(FILE *stream);
|
||||||
|
int feof(FILE *stream);
|
||||||
int fclose(FILE *fp);
|
int fclose(FILE *fp);
|
||||||
|
|
||||||
#endif /* __STDIO_H */
|
#endif /* __STDIO_H */
|
||||||
|
|
Loading…
Reference in New Issue