Lines Matching defs:FILE
35 /* just define FILE as a non-empty type. The value of the pointer gives
36 * the FD: FILE=~fd for fd>=0 or NULL for fd<0. This way positive FILE
40 typedef struct FILE {
42 } FILE;
44 static __attribute__((unused)) FILE* const stdin = (FILE*)(intptr_t)~STDIN_FILENO;
45 static __attribute__((unused)) FILE* const stdout = (FILE*)(intptr_t)~STDOUT_FILENO;
46 static __attribute__((unused)) FILE* const stderr = (FILE*)(intptr_t)~STDERR_FILENO;
48 /* provides a FILE* equivalent of fd. The mode is ignored. */
50 FILE *fdopen(int fd, const char *mode __attribute__((unused)))
56 return (FILE*)(intptr_t)~fd;
60 FILE *fopen(const char *pathname, const char *mode)
87 int fileno(FILE *stream)
100 int fflush(FILE *stream)
116 int fclose(FILE *stream)
136 int fgetc(FILE* stream)
157 int fputc(int c, FILE* stream)
179 int _fwrite(const void *buf, size_t size, FILE *stream)
195 size_t fwrite(const void *s, size_t size, size_t nmemb, FILE *stream)
211 int _fread(void *buf, size_t size, FILE *stream)
227 size_t fread(void *s, size_t size, size_t nmemb, FILE *stream)
240 int fputs(const char *s, FILE *stream)
256 char *fgets(char *s, int size, FILE *stream)
277 int fseek(FILE *stream, long offset, int whence)
437 return _fwrite(buf, size, (FILE *)state);
441 int vfprintf(FILE *stream, const char *fmt, va_list args)
453 int fprintf(FILE *stream, const char *fmt, ...)
479 FILE *stream;
664 int setvbuf(FILE *stream __attribute__((unused)),