Home
last modified time | relevance | path

Searched refs:FILE (Results 1 – 25 of 99) sorted by relevance

1234

/bionic/libc/include/
Dstdio.h59 typedef struct __sFILE FILE; typedef
62 extern FILE* stdin __INTRODUCED_IN(23);
63 extern FILE* stdout __INTRODUCED_IN(23);
64 extern FILE* stderr __INTRODUCED_IN(23);
72 extern FILE __sF[] __REMOVED_IN(23);
106 void clearerr(FILE* __fp);
107 int fclose(FILE* __fp);
108 int feof(FILE* __fp);
109 int ferror(FILE* __fp);
110 int fflush(FILE* __fp);
[all …]
Dstdio_ext.h47 size_t __fbufsize(FILE* __fp) __INTRODUCED_IN(23);
55 int __freadable(FILE* __fp) __INTRODUCED_IN(23);
63 int __freading(FILE* __fp) __INTRODUCED_IN(28);
71 int __fwritable(FILE* __fp) __INTRODUCED_IN(23);
79 int __fwriting(FILE* __fp) __INTRODUCED_IN(28);
87 int __flbf(FILE* __fp) __INTRODUCED_IN(23);
95 void __fpurge(FILE* __fp) __INTRODUCED_IN(23);
103 size_t __fpending(FILE* __fp) __INTRODUCED_IN(23);
119 void __fseterr(FILE* __fp) __INTRODUCED_IN(28);
136 int __fsetlocking(FILE* __fp, int __type) __INTRODUCED_IN(23);
Dmntent.h60 int endmntent(FILE* __fp) __INTRODUCED_IN(21);
61 struct mntent* getmntent(FILE* __fp);
62 struct mntent* getmntent_r(FILE* __fp, struct mntent* __entry, char* __buf, int __size) __INTRODUCE…
63 FILE* setmntent(const char* __filename, const char* __type) __INTRODUCED_IN(21);
Dwchar.h47 int fwprintf(FILE* __fp, const wchar_t* __fmt, ...);
48 int fwscanf(FILE* __fp, const wchar_t* __fmt, ...);
49 wint_t fgetwc(FILE* __fp);
50 wchar_t* fgetws(wchar_t* __buf, int __size, FILE* __fp);
51 wint_t fputwc(wchar_t __wc, FILE* __fp);
52 int fputws(const wchar_t* __s, FILE* __fp);
53 int fwide(FILE* __fp, int __mode);
54 wint_t getwc(FILE* __fp);
61 wint_t putwc(wchar_t __wc, FILE* __fp);
65 wint_t ungetwc(wint_t __wc, FILE* __fp);
[all …]
/bionic/tests/headers/posix/
Dstdio_h.c34 TYPE(FILE*); in stdio_h()
73 FILE* fp; in stdio_h()
78 FUNCTION(clearerr, void (*f)(FILE*)); in stdio_h()
81 FUNCTION(fclose, int (*f)(FILE*)); in stdio_h()
82 FUNCTION(fdopen, FILE* (*f)(int, const char*)); in stdio_h()
83 FUNCTION(feof, int (*f)(FILE*)); in stdio_h()
84 FUNCTION(ferror, int (*f)(FILE*)); in stdio_h()
85 FUNCTION(fflush, int (*f)(FILE*)); in stdio_h()
86 FUNCTION(fgetc, int (*f)(FILE*)); in stdio_h()
87 FUNCTION(fgetpos, int (*f)(FILE*, fpos_t*)); in stdio_h()
[all …]
Dwchar_h.c34 TYPE(FILE*); in wchar_h()
49 FUNCTION(fgetwc, wint_t (*f)(FILE*)); in wchar_h()
50 FUNCTION(fgetws, wchar_t* (*f)(wchar_t*, int, FILE*)); in wchar_h()
51 FUNCTION(fputwc, wint_t (*f)(wchar_t, FILE*)); in wchar_h()
52 FUNCTION(fputws, int (*f)(const wchar_t*, FILE*)); in wchar_h()
53 FUNCTION(fwide, int (*f)(FILE*, int)); in wchar_h()
54 FUNCTION(fwprintf, int (*f)(FILE*, const wchar_t*, ...)); in wchar_h()
55 FUNCTION(fwscanf, int (*f)(FILE*, const wchar_t*, ...)); in wchar_h()
56 FUNCTION(getwc, wint_t (*f)(FILE*)); in wchar_h()
63 FUNCTION(open_wmemstream, FILE* (*f)(wchar_t**, size_t*)); in wchar_h()
[all …]
/bionic/libc/stdio/
Dstdio_ext.cpp38 size_t __fbufsize(FILE* fp) { in __fbufsize()
42 int __freading(FILE* fp) { in __freading()
46 int __fwriting(FILE* fp) { in __fwriting()
50 int __freadable(FILE* fp) { in __freadable()
54 int __fwritable(FILE* fp) { in __fwritable()
58 int __flbf(FILE* fp) { in __flbf()
62 void __fpurge(FILE* fp) { in __fpurge()
66 size_t __fpending(FILE* fp) { in __fpending()
75 void __fseterr(FILE* fp) { in __fseterr()
79 int __fsetlocking(FILE* fp, int type) { in __fsetlocking()
Dlocal.h186 __LIBC32_LEGACY_PUBLIC__ int __srget(FILE*);
187 __LIBC32_LEGACY_PUBLIC__ int __swbuf(int, FILE*);
188 __LIBC32_LEGACY_PUBLIC__ int __srefill(FILE*);
191 __LIBC32_LEGACY_PUBLIC__ int __swsetup(FILE*);
195 __LIBC32_LEGACY_PUBLIC__ FILE* __sfp(void);
196 __LIBC32_LEGACY_PUBLIC__ void __smakebuf(FILE*);
199 __LIBC32_LEGACY_PUBLIC__ int __sflush(FILE*);
204 __LIBC32_LEGACY_PUBLIC__ int _fwalk(int (*)(FILE*));
207 int __sflush_locked(FILE*);
208 int __swhatbuf(FILE*, size_t*, int*);
[all …]
Dstdio.cpp97 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()
[all …]
Drefill.c40 lflush(FILE *fp) in lflush()
52 __srefill(FILE *fp) in __srefill()
/bionic/libc/bionic/
Dtmpfile.cpp45 static FILE* __fd_to_fp(int fd) { in __fd_to_fp()
46 FILE* fp = fdopen(fd, "w+"); in __fd_to_fp()
54 static FILE* __tmpfile_dir_legacy(const char* tmp_dir) { in __tmpfile_dir_legacy()
82 static FILE* __tmpfile_dir(const char* tmp_dir) { in __tmpfile_dir()
88 FILE* tmpfile() { in tmpfile()
94 FILE* fp = __tmpfile_dir("/data/local/tmp"); in tmpfile()
Dflockfile.cpp38 void flockfile(FILE* fp) { in flockfile()
44 int ftrylockfile(FILE* fp) { in ftrylockfile()
54 void funlockfile(FILE* fp) { in funlockfile()
Dmntent.cpp34 mntent* getmntent(FILE* fp) { in getmntent()
39 mntent* getmntent_r(FILE* fp, struct mntent* e, char* buf, int buf_len) { in getmntent_r()
66 FILE* setmntent(const char* path, const char* mode) { in setmntent()
70 int endmntent(FILE* fp) { in endmntent()
Dscudo.h44 int scudo_malloc_info(int, FILE*);
64 int scudo_svelte_malloc_info(int, FILE*);
/bionic/tests/
Dstdio_ext_test.cpp37 FILE* fp = fopen("/proc/version", "r"); in TEST()
57 FILE* fp = fopen("/proc/version", "r"); in TEST()
70 FILE* fp = fopen("/dev/null", "w"); in TEST()
82 FILE* fp = tmpfile(); in TEST()
104 FILE* fp = fopen("/dev/null", "w"); in TEST()
120 FILE* fp; in TEST()
150 FILE* fp; in TEST()
198 FILE* fp = fopen("/dev/null", "w"); in TEST()
211 FILE* fp = fopen("/proc/version", "r"); in TEST()
Dstdio_test.cpp63 FILE* fp; in SetFileTo()
70 FILE* fp; in AssertFileIs()
80 static void AssertFileIs(FILE* fp, const char* expected, bool is_fmemopen = false) { in AssertFileIs()
108 FILE* fp = fopen("/dev/null", "w"); in TEST()
117 FILE* fp = tmpfile(); in TEST()
136 FILE* fp = tmpfile64(); in TEST()
148 FILE* tfile = fdopen(tf.fd, "r"); in TEST()
156 FILE* fp = tmpfile(); in TEST()
191 FILE* fp = tmpfile(); in TEST()
210 FILE* fp = fopen("/proc", "r"); in TEST()
[all …]
/bionic/libc/include/bits/fortify/
Dstdio.h33 char* __fgets_chk(char*, int, FILE*, size_t) __INTRODUCED_IN(17);
34 size_t __fread_chk(void*, size_t, size_t, FILE*, size_t) __INTRODUCED_IN(24);
35 size_t __fwrite_chk(const void*, size_t, size_t, FILE*, size_t) __INTRODUCED_IN(24);
87 size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) in fread()
104 size_t fwrite(const void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) in fwrite()
122 char* fgets(char* const __pass_object_size dest, int size, FILE* stream) in fgets()
/bionic/libc/dns/include/
Dhostent.h43 void sethostent_r(FILE **);
44 struct hostent *netbsd_gethostent_r(FILE *, struct hostent *, char *, size_t, int *);
45 void endhostent_r(FILE **);
Dresolv_private.h328 void fp_nquery(const u_char *, int, FILE *);
329 void fp_query(const u_char *, FILE *);
445 const u_char * p_cdnname(const u_char *, const u_char *, int, FILE *);
446 const u_char * p_cdname(const u_char *, const u_char *, FILE *);
449 const u_char * p_fqname(const u_char *, const u_char *, FILE *);
461 void fp_resstat(const res_state, FILE *);
462 __LIBC_HIDDEN__ void res_pquery(const res_state, const u_char *, int, FILE *);
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dungetwc.c38 __ungetwc(wint_t wc, FILE *fp) in __ungetwc()
69 ungetwc(wint_t wc, FILE *fp) in ungetwc()
Dfgetwc.c38 __fgetwc_unlock(FILE *fp) in __fgetwc_unlock()
81 fgetwc(FILE *fp) in fgetwc()
Dfputwc.c40 __fputwc_unlock(wchar_t wc, FILE *fp) in __fputwc_unlock()
78 fputwc(wchar_t wc, FILE *fp) in fputwc()
Dungetc.c39 static int __submore(FILE *);
47 __submore(FILE *fp) in __submore()
79 ungetc(int c, FILE *fp) in ungetc()
Dmakebuf.c49 __smakebuf(FILE *fp) in __smakebuf()
80 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty) in __swhatbuf()
/bionic/benchmarks/
Dstdio_benchmark.cpp32 FILE* fp = fopen(tf.path, "we"); in FillFile()
41 FILE* fp = fopen("/dev/zero", "r+e"); in ReadWriteTest()
85 FILE* fp = fopen(tf.path, "re"); in FopenFgetlnFclose()
110 FILE* fp = fopen(tf.path, "re"); in FopenFgetsFclose()
132 FILE* fp = fopen(tf.path, "re"); in FopenGetlineFclose()
156 FILE* fp = fopen("/dev/zero", "re"); in FopenFgetcFclose()

1234