Home
last modified time | relevance | path

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

12345

/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/include/
Dstdio.h59 typedef struct __sFILE FILE; typedef
62 extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
64 extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
72 extern FILE __sF[] __REMOVED_IN(23, "Use stdin/stdout/stderr");
106 void clearerr(FILE* _Nonnull __fp);
107 int fclose(FILE* _Nonnull __fp);
108 __wur int feof(FILE* _Nonnull __fp);
109 __wur int ferror(FILE* _Nonnull __fp);
110 int fflush(FILE* _Nullable __fp);
[all …]
Dstdio_ext.h47 size_t __fbufsize(FILE* _Nonnull __fp) __INTRODUCED_IN(23);
55 int __freadable(FILE* _Nonnull __fp) __INTRODUCED_IN(23);
63 int __freading(FILE* _Nonnull __fp) __INTRODUCED_IN(28);
71 int __fwritable(FILE* _Nonnull __fp) __INTRODUCED_IN(23);
79 int __fwriting(FILE* _Nonnull __fp) __INTRODUCED_IN(28);
87 int __flbf(FILE* _Nonnull __fp) __INTRODUCED_IN(23);
95 void __fpurge(FILE* _Nonnull __fp) __INTRODUCED_IN(23);
103 size_t __fpending(FILE* _Nonnull __fp) __INTRODUCED_IN(23);
111 size_t __freadahead(FILE* _Nonnull __fp) __INTRODUCED_IN(34);
127 void __fseterr(FILE* _Nonnull __fp) __INTRODUCED_IN(28);
[all …]
Dmntent.h60 int endmntent(FILE* _Nullable __fp);
61 struct mntent* _Nullable getmntent(FILE* _Nonnull __fp);
62 struct mntent* _Nullable getmntent_r(FILE* _Nonnull __fp, struct mntent* _Nonnull __entry, char* _N…
63 FILE* _Nullable setmntent(const char* _Nonnull __filename, const char* _Nonnull __type);
Dwchar.h48 int fwprintf(FILE* _Nonnull __fp, const wchar_t* _Nonnull __fmt, ...);
49 int fwscanf(FILE* _Nonnull __fp, const wchar_t* _Nonnull __fmt, ...);
50 wint_t fgetwc(FILE* _Nonnull __fp);
51 wchar_t* _Nullable fgetws(wchar_t* _Nonnull __buf, int __size, FILE* _Nonnull __fp);
52 wint_t fputwc(wchar_t __wc, FILE* _Nonnull __fp);
53 int fputws(const wchar_t* _Nonnull __s, FILE* _Nonnull __fp);
54 int fwide(FILE* _Nonnull __fp, int __mode);
55 wint_t getwc(FILE* _Nonnull __fp);
63 wint_t putwc(wchar_t __wc, FILE* _Nonnull __fp);
67 wint_t ungetwc(wint_t __wc, FILE* _Nonnull __fp);
[all …]
/bionic/libc/stdio/
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 …]
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()
70 size_t __freadahead(FILE* fp) { in __freadahead()
81 void __fseterr(FILE* fp) { in __fseterr()
[all …]
Dlocal.h185 __LIBC32_LEGACY_PUBLIC__ int __srget(FILE*);
186 __LIBC32_LEGACY_PUBLIC__ int __swbuf(int, FILE*);
187 __LIBC32_LEGACY_PUBLIC__ int __srefill(FILE*);
190 __LIBC32_LEGACY_PUBLIC__ int __swsetup(FILE*);
194 __LIBC32_LEGACY_PUBLIC__ FILE* __sfp(void);
195 __LIBC32_LEGACY_PUBLIC__ void __smakebuf(FILE*);
198 __LIBC32_LEGACY_PUBLIC__ int __sflush(FILE*);
203 __LIBC32_LEGACY_PUBLIC__ int _fwalk(int (*)(FILE*));
206 int __sflush_locked(FILE*);
207 int __swhatbuf(FILE*, size_t*, int*);
[all …]
Drefill.c40 lflush(FILE *fp) in lflush()
52 __srefill(FILE *fp) in __srefill()
/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()
85 FILE* fp = tmpfile(); in TEST()
100 FILE* fp = tmpfile(); in TEST()
122 FILE* fp = fopen("/dev/null", "w"); in TEST()
138 FILE* fp; in TEST()
168 FILE* fp; in TEST()
216 FILE* fp = fopen("/dev/null", "w"); in TEST()
229 FILE* fp = fopen("/proc/version", "r"); in TEST()
Dstdio_test.cpp66 FILE* fp; in SetFileTo()
73 FILE* fp; in AssertFileIs()
83 static void AssertFileIs(FILE* fp, const char* expected, bool is_fmemopen = false) { in AssertFileIs()
133 FILE* fp = fopen("/dev/null", "w"); in TEST()
144 FILE* fp = tmpfile(); in TEST()
163 FILE* fp = tmpfile64(); in TEST()
172 FILE* fp = tmpfile(); in TEST()
191 FILE* tfile = fdopen(tf.fd, "r"); in TEST()
199 FILE* fp = tmpfile(); in TEST()
236 FILE* fp = tmpfile(); in TEST()
[all …]
/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()
57 static FILE* __tmpfile_dir_legacy(const char* tmp_dir) { in __tmpfile_dir_legacy()
92 FILE* tmpfile() { in tmpfile()
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/libc/include/bits/fortify/
Dstdio.h33 char* _Nullable __fgets_chk(char* _Nonnull, int, FILE* _Nonnull, size_t);
34 size_t __fread_chk(void* _Nonnull, size_t, size_t, FILE* _Nonnull, size_t) __INTRODUCED_IN(24);
35 size_t __fwrite_chk(const void* _Nonnull, size_t, size_t, FILE* _Nonnull, size_t) __INTRODUCED_IN(2…
89 size_t fread(void* const _Nonnull __pass_object_size0 buf, size_t size, size_t count, FILE* _Nonnul… in fread()
106 size_t fwrite(const void* const _Nonnull __pass_object_size0 buf, size_t size, size_t count, FILE* … in fwrite()
124 char* _Nullable fgets(char* const _Nonnull __pass_object_size dest, int size, FILE* _Nonnull 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()
Dungetc.c39 static int __submore(FILE *);
47 __submore(FILE *fp) in __submore()
79 ungetc(int c, FILE *fp) in ungetc()
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()
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()
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp61 int hooks_malloc_info(int options, FILE* fp);
74 bool hooks_write_malloc_leak_info(FILE*);
179 int hooks_malloc_info(int options, FILE* fp) { in hooks_malloc_info()
226 bool hooks_write_malloc_leak_info(FILE*) { in hooks_write_malloc_leak_info() argument

12345