Lines Matching refs:FILE
29 /* just define FILE as a non-empty type. The value of the pointer gives
30 * the FD: FILE=~fd for fd>=0 or NULL for fd<0. This way positive FILE
34 typedef struct FILE {
36 } FILE;
38 static __attribute__((unused)) FILE* const stdin = (FILE*)(intptr_t)~STDIN_FILENO;
39 static __attribute__((unused)) FILE* const stdout = (FILE*)(intptr_t)~STDOUT_FILENO;
40 static __attribute__((unused)) FILE* const stderr = (FILE*)(intptr_t)~STDERR_FILENO;
42 /* provides a FILE* equivalent of fd. The mode is ignored. */
44 FILE *fdopen(int fd, const char *mode __attribute__((unused)))
50 return (FILE*)(intptr_t)~fd;
55 int fileno(FILE *stream)
68 int fflush(FILE *stream)
84 int fclose(FILE *stream)
104 int fgetc(FILE* stream)
125 int fputc(int c, FILE* stream)
147 int _fwrite(const void *buf, size_t size, FILE *stream)
163 size_t fwrite(const void *s, size_t size, size_t nmemb, FILE *stream)
176 int fputs(const char *s, FILE *stream)
192 char *fgets(char *s, int size, FILE *stream)
217 int vfprintf(FILE *stream, const char *fmt, va_list args)
329 int fprintf(FILE *stream, const char *fmt, ...)
359 int setvbuf(FILE *stream __attribute__((unused)),