Lines Matching defs:FILE
28 /* just define FILE as a non-empty type. The value of the pointer gives
29 * the FD: FILE=~fd for fd>=0 or NULL for fd<0. This way positive FILE
33 typedef struct FILE {
35 } FILE;
37 static __attribute__((unused)) FILE* const stdin = (FILE*)(intptr_t)~STDIN_FILENO;
38 static __attribute__((unused)) FILE* const stdout = (FILE*)(intptr_t)~STDOUT_FILENO;
39 static __attribute__((unused)) FILE* const stderr = (FILE*)(intptr_t)~STDERR_FILENO;
41 /* provides a FILE* equivalent of fd. The mode is ignored. */
43 FILE *fdopen(int fd, const char *mode __attribute__((unused)))
49 return (FILE*)(intptr_t)~fd;
54 int fileno(FILE *stream)
67 int fflush(FILE *stream)
83 int fclose(FILE *stream)
103 int fgetc(FILE* stream)
124 int fputc(int c, FILE* stream)
146 int _fwrite(const void *buf, size_t size, FILE *stream)
162 size_t fwrite(const void *s, size_t size, size_t nmemb, FILE *stream)
175 int fputs(const char *s, FILE *stream)
191 char *fgets(char *s, int size, FILE *stream)
216 int vfprintf(FILE *stream, const char *fmt, va_list args)
328 int fprintf(FILE *stream, const char *fmt, ...)
358 int setvbuf(FILE *stream __attribute__((unused)),