Lines Matching refs:FILE
97 FILE __sF[3] = {
103 FILE* stdin = &__sF[0];
104 FILE* stdout = &__sF[1];
105 FILE* stderr = &__sF[2];
109 static uint64_t __get_file_tag(FILE* fp) { in __get_file_tag()
126 explicit ScopedFileLock(FILE* fp) : fp_(fp) { in ScopedFileLock()
134 FILE* fp_;
138 char* data = new char[sizeof(glue) + ALIGNBYTES + n * sizeof(FILE) + n * sizeof(__sfileext)]; in moreglue()
142 FILE* p = reinterpret_cast<FILE*>(ALIGN(data + sizeof(*g))); in moreglue()
143 __sfileext* pext = reinterpret_cast<__sfileext*>(ALIGN(data + sizeof(*g)) + n * sizeof(FILE)); in moreglue()
156 static inline void free_fgetln_buffer(FILE* fp) { in free_fgetln_buffer()
166 FILE* __sfp(void) { in __sfp()
167 FILE *fp; in __sfp()
211 int _fwalk(int (*callback)(FILE*)) { in _fwalk() argument
214 FILE* fp = g->iobs; in _fwalk()
229 static FILE* __FILE_init(FILE* fp, int fd, int flags) { in __FILE_init()
247 FILE* fopen(const char* file, const char* mode) { in fopen()
257 FILE* fp = __FILE_init(__sfp(), fd, flags); in fopen()
271 FILE* fdopen(int fd, const char* mode) { in fdopen()
299 FILE* freopen(const char* file, const char* mode, FILE* fp) { in freopen()
406 static int __FILE_close(FILE* fp) { in __FILE_close()
442 int fclose(FILE* fp) { in fclose()
447 int fileno_unlocked(FILE* fp) { in fileno_unlocked()
457 int fileno(FILE* fp) { in fileno()
463 void clearerr_unlocked(FILE* fp) { in clearerr_unlocked()
468 void clearerr(FILE* fp) { in clearerr()
474 int feof_unlocked(FILE* fp) { in feof_unlocked()
479 int feof(FILE* fp) { in feof()
485 int ferror_unlocked(FILE* fp) { in ferror_unlocked()
490 int ferror(FILE* fp) { in ferror()
496 int __sflush(FILE* fp) { in __sflush()
521 int __sflush_locked(FILE* fp) { in __sflush_locked()
527 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sread()
532 FILE* fp = reinterpret_cast<FILE*>(cookie); in __swrite()
537 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sseek()
542 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sseek64()
547 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sclose()
551 static off64_t __seek_unlocked(FILE* fp, off64_t offset, int whence) { in __seek_unlocked()
568 static off64_t __ftello64_unlocked(FILE* fp) { in __ftello64_unlocked()
592 int __fseeko64(FILE* fp, off64_t offset, int whence, int off_t_bits) { in __fseeko64()
631 int fseeko(FILE* fp, off_t offset, int whence) { in fseeko()
638 int fseeko64(FILE* fp, off64_t offset, int whence) { in fseeko64()
643 int fsetpos(FILE* fp, const fpos_t* pos) { in fsetpos()
648 int fsetpos64(FILE* fp, const fpos64_t* pos) { in fsetpos64()
653 off_t ftello(FILE* fp) { in ftello()
665 off64_t ftello64(FILE* fp) { in ftello64()
671 int fgetpos(FILE* fp, fpos_t* pos) { in fgetpos()
677 int fgetpos64(FILE* fp, fpos64_t* pos) { in fgetpos64()
683 static FILE* __funopen(const void* cookie, in __funopen()
692 FILE* fp = __sfp(); in __funopen()
712 FILE* funopen(const void* cookie, in funopen()
717 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); in funopen()
724 FILE* funopen64(const void* cookie, in funopen64()
729 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); in funopen64()
748 int fprintf(FILE* fp, const char* fmt, ...) { in fprintf()
753 int fgetc(FILE* fp) { in fgetc()
758 int fgetc_unlocked(FILE* fp) { in fgetc_unlocked()
763 char* fgets(char* buf, int n, FILE* fp) { in fgets()
773 char* fgets_unlocked(char* buf, int n, FILE* fp) { in fgets_unlocked()
815 int fputc(int c, FILE* fp) { in fputc()
820 int fputc_unlocked(int c, FILE* fp) { in fputc_unlocked()
825 int fputs(const char* s, FILE* fp) { in fputs()
831 int fputs_unlocked(const char* s, FILE* fp) { in fputs_unlocked()
837 int fscanf(FILE* fp, const char* fmt, ...) { in fscanf()
842 int fwprintf(FILE* fp, const wchar_t* fmt, ...) { in fwprintf()
847 int fwscanf(FILE* fp, const wchar_t* fmt, ...) { in fwscanf()
852 int getc(FILE* fp) { in getc()
858 int getc_unlocked(FILE* fp) { in getc_unlocked()
871 ssize_t getline(char** buf, size_t* len, FILE* fp) { in getline()
876 wint_t getwc(FILE* fp) { in getwc()
894 int putc(int c, FILE* fp) { in putc()
900 int putc_unlocked(int c, FILE* fp) { in putc_unlocked()
928 wint_t putwc(wchar_t wc, FILE* fp) { in putwc()
943 void rewind(FILE* fp) { in rewind()
954 void setbuf(FILE* fp, char* buf) { in setbuf()
959 void setbuffer(FILE* fp, char* buf, int size) { in setbuffer()
964 int setlinebuf(FILE* fp) { in setlinebuf()
989 int vfprintf(FILE* fp, const char* fmt, va_list ap) { in vfprintf()
994 int vfscanf(FILE* fp, const char* fmt, va_list ap) { in vfscanf()
999 int vfwprintf(FILE* fp, const wchar_t* fmt, va_list ap) { in vfwprintf()
1004 int vfwscanf(FILE* fp, const wchar_t* fmt, va_list ap) { in vfwscanf()
1030 FILE f; in vsnprintf()
1067 int fflush(FILE* fp) { in fflush()
1073 int fflush_unlocked(FILE* fp) { in fflush_unlocked()
1082 size_t fread(void* buf, size_t size, size_t count, FILE* fp) { in fread()
1088 size_t fread_unlocked(void* buf, size_t size, size_t count, FILE* fp) { in fread_unlocked()
1145 size_t fwrite(const void* buf, size_t size, size_t count, FILE* fp) { in fwrite()
1151 size_t fwrite_unlocked(const void* buf, size_t size, size_t count, FILE* fp) { in fwrite_unlocked()
1173 static FILE* __popen_fail(int fds[2]) { in __popen_fail()
1180 FILE* popen(const char* cmd, const char* mode) { in popen()
1226 FILE* fp = fdopen(fds[parent], mode); in popen()
1235 int pclose(FILE* fp) { in pclose()