Home
last modified time | relevance | path

Searched refs:fopen (Results 1 – 25 of 1313) sorted by relevance

12345678910>>...53

/third_party/musl/Benchmark/musl/
Dlibc_stdio.cpp65 FILE *fp = fopen("/dev/zero", "r"); in Bm_function_Fopen_read()
82 FILE *fp = fopen("/dev/zero", "w"); in Bm_function_Fopen_write()
99 FILE *fp = fopen("/dev/zero", "a"); in Bm_function_Fopen_append()
116 FILE *fp = fopen("/dev/zero", "r+"); in Bm_function_Fopen_rplus()
133 FILE *fp = fopen("/dev/zero", "w+"); in Bm_function_Fopen_wplus()
150 FILE *fp = fopen("/dev/zero", "a+"); in Bm_function_Fopen_append_plus()
167 FILE *fp = fopen("/dev/zero", "rb"); in Bm_function_Fopen_rb()
184 FILE *fp = fopen("/dev/zero", "wb"); in Bm_function_Fopen_wb()
201 FILE *fp = fopen("/dev/zero", "ab"); in Bm_function_Fopen_ab()
218 FILE *fp = fopen("/dev/zero", "rb+"); in Bm_function_Fopen_rb_plus()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
Dfopen.c42 FILE *fptr = fopen("tempory_test.txt", "w"); in fopen_0100()
50 fptr = fopen("tempory_test.txt", "r"); in fopen_0100()
81 FILE *fptr = fopen("tempory_test1.txt", "r"); in fopen_0200()
95 FILE *fptr = fopen("tempory_test3.txt", "w"); in fopen_0300()
125 FILE *fptr = fopen("tempory_test2.txt", "w"); in fopen_0400()
161 FILE *fptr = fopen("tempory_test5.txt", "w"); in fopen_0500()
170 fptr = fopen("tempory_test5.txt", "a"); in fopen_0500()
184 fptr = fopen("tempory_test5.txt", "r"); in fopen_0500()
211 FILE *fptr = fopen("tempory_test6.txt", "w"); in fopen_0600()
239 FILE *fptr = fopen("./tempory_test.txt", "b"); in fopen_0700()
[all …]
D__freading.c30 FILE *fp = fopen(path, "w"); in __freading_0100()
33 FILE *ffp = fopen(path, "r"); in __freading_0100()
49 FILE *fp = fopen(path, "w"); in __freading_0200()
52 FILE *ffp = fopen(path, "r"); in __freading_0200()
70 FILE *fp = fopen(path, "w"); in __freading_0300()
Dfseeko.c30 FILE *fp = fopen(path, "w+"); in fseeko_0100()
60 FILE *fp = fopen(path, "w+"); in fseeko_0200()
90 FILE *fp = fopen(path, "w+"); in fseeko_0300()
126 FILE *fp = fopen(path, "w+"); in fseeko_0400()
156 FILE *fp = fopen(path, "w+"); in fseeko_0500()
182 FILE *fp = fopen(path, "w+"); in fseeko_0600()
Dfgets.c30 FILE *fptr = fopen(ptr, "wr+"); in fgets_0100()
57 FILE *fptr = fopen(ptr, "wr+"); in fgets_0200()
83 FILE *fptr = fopen(ptr, "wr+"); in fgets_0300()
109 FILE *fptr = fopen(ptr, "wr+"); in fgets_0400()
135 FILE *fptr = fopen(ptr, "wr+"); in fgets_0500()
161 FILE *fptr = fopen(ptr, "wr+"); in fgets_0600()
Dfputs.c27 FILE *fptr = fopen(path, "w+"); in fputs_0100()
43 FILE *fptr = fopen(path, "w+"); in fputs_0200()
59 FILE *p = fopen(path, "w"); in fputs_0300()
61 p = fopen(path, "r"); in fputs_0300()
Dfread.c36 FILE *fptr = fopen(ptr, "w+"); in fread_0100()
61 FILE *fptr = fopen(ptr, "w+"); in fread_0200()
86 FILE *fptr = fopen(ptr, "w+"); in fread_0300()
108 FILE *fptr = fopen(ptr, "w+"); in fread_0400()
144 FILE *fStatus = fopen(buf, "rb"); in fread_0500()
D__fpending.c30 FILE *fp = fopen(path, "w"); in __fpending_0100()
51 FILE *fp = fopen(path, "w"); in __fpending_0200()
72 FILE *fp = fopen(path, "w"); in __fpending_0300()
78 FILE *ffp = fopen(path, "r"); in __fpending_0300()
Dfputwc.c38 FILE *fp = fopen("file.txt", "w+"); in fputwc_0100()
51 FILE *ffp = fopen("file.txt", "r"); in fputwc_0100()
73 FILE *fp = fopen("file.txt", "w+"); in fputwc_0200()
85 FILE *ffp = fopen("file.txt", "r"); in fputwc_0200()
/third_party/ltp/testcases/kernel/fs/stream/
Dstream05.c76 if ((stream = fopen(tempfile, "a+")) == NULL) { in main()
84 if ((stream = fopen(tempfile, "r+")) == NULL) { in main()
135 if ((stream = fopen(tempfile, "r+")) == NULL) { in main()
182 if ((stream = fopen(tempfile, "rb")) == NULL) { in main()
189 if ((stream = fopen(tempfile, "wb")) == NULL) { in main()
196 if ((stream = fopen(tempfile, "ab")) == NULL) { in main()
203 if ((stream = fopen(tempfile, "rb+")) == NULL) { in main()
210 if ((stream = fopen(tempfile, "wb+")) == NULL) { in main()
217 if ((stream = fopen(tempfile, "ab+")) == NULL) { in main()
/third_party/curl/
Dbackport-after-CVE-2022-32207-to-fix-build-error-when-user-don-t-use-glibc.patch4 Subject: [PATCH] fopen: add Curl_fopen() for better overwriting of files
10 lib/fopen.c | 19 +++++++++++++------
11 lib/fopen.h | 2 ++
52 diff --git a/lib/fopen.c b/lib/fopen.c
54 --- a/lib/fopen.c
55 +++ b/lib/fopen.c
97 diff --git a/lib/fopen.h b/lib/fopen.h
99 --- a/lib/fopen.h
100 +++ b/lib/fopen.h
Dbackport-CVE-2022-32207.patch4 Subject: [PATCH 1/3] fopen: add Curl_fopen() for better overwriting of files
9 lib/fopen.c | 106 +++++++++++++++++++++++++++++++++++++++++++++++
10 lib/fopen.h | 28 +++++++++++++
12 create mode 100644 lib/fopen.c
13 create mode 100644 lib/fopen.h
23 + fopen.c \
31 + fopen.h \
45 +#include "fopen.h"
62 - out = fopen(tempstore, FOPEN_WRITETEXT);
81 Index: curl-7.81.0/lib/fopen.c
[all …]
/third_party/ltp/testcases/kernel/security/tomoyo/
Dinclude.h89 FILE *fp = fopen(path, "w"); in write_sysctl()
100 FILE *fp = fopen(path, "r"); in read_sysctl()
163 FILE *fp = fopen(proc_policy_profile, "r"); in clear_status()
211 profile_fp = fopen(proc_policy_profile, "w"); in tomoyo_test_init()
217 domain_fp = fopen(proc_policy_domain_policy, "w"); in tomoyo_test_init()
224 exception_fp = fopen(proc_policy_exception_policy, "w"); in tomoyo_test_init()
238 FILE *fp = fopen(proc_policy_self_domain, "r"); in tomoyo_test_init()
275 FILE *fp = fopen(proc_policy_domain_policy, "r"); in write_domain_policy()
314 FILE *fp = fopen(proc_policy_exception_policy, "r"); in write_exception_policy()
349 FILE *fp = fopen(proc_policy_profile, "r"); in set_profile()
Dtomoyo_policy_memory_test.c46 FILE *fp = fopen("/sys/kernel/security/tomoyo/meminfo", "r"); in get_meminfo()
53 FILE *fp = fopen(policy_file, "r"); in check_policy_common()
187 FILE *fp = fopen(policy_file, "w"); in domain_policy_test()
219 FILE *fp = fopen(policy_file, "w"); in domain_policy_test()
297 FILE *fp = fopen(policy_file, "w"); in exception_policy_test()
328 FILE *fp = fopen(policy_file, "w"); in exception_policy_test()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Daccess.c34 FILE *fptr = fopen(ptr, "w"); in access_0100()
54 FILE *fptr = fopen(ptr, "w"); in access_0200()
102 FILE *fptr = fopen(ptr, "w"); in access_0500()
121 FILE *fptr = fopen(ptr, "w"); in access_0600()
140 FILE *fptr = fopen(ptr, "w"); in access_0700()
160 FILE *fptr = fopen(ptr, "w"); in access_0800()
/third_party/lz4/examples/
DblockStreaming_ringBuffer.c155 { FILE* const inpFp = fopen(inpFilename, "rb"); in main()
156 FILE* const outFp = fopen(lz4Filename, "wb"); in main()
165 { FILE* const inpFp = fopen(lz4Filename, "rb"); in main()
166 FILE* const outFp = fopen(decFilename, "wb"); in main()
175 { FILE* const inpFp = fopen(inpFilename, "rb"); in main()
176 FILE* const decFp = fopen(decFilename, "rb"); in main()
DfileCompress.c174 { FILE* const inpFp = fopen(inpFilename, "rb"); in main()
175 FILE* const outFp = fopen(lz4Filename, "wb"); in main()
197 FILE* const inpFp = fopen(lz4Filename, "rb"); in main()
198 FILE* const outFp = fopen(decFilename, "wb"); in main()
215 { FILE* const inpFp = fopen(inpFilename, "rb"); in main()
216 FILE* const decFp = fopen(decFilename, "rb"); in main()
DblockStreaming_doubleBuffer.c160 FILE* inpFp = fopen(inpFilename, "rb"); in main()
161 FILE* outFp = fopen(lz4Filename, "wb"); in main()
173 FILE* inpFp = fopen(lz4Filename, "rb"); in main()
174 FILE* outFp = fopen(decFilename, "wb"); in main()
186 FILE* inpFp = fopen(inpFilename, "rb"); in main()
187 FILE* decFp = fopen(decFilename, "rb"); in main()
DblockStreaming_lineByLine.c175 FILE* inpFp = fopen(inpFilename, "rb"); in main()
176 FILE* outFp = fopen(lz4Filename, "wb"); in main()
186 FILE* inpFp = fopen(lz4Filename, "rb"); in main()
187 FILE* outFp = fopen(decFilename, "wb"); in main()
197 FILE* inpFp = fopen(inpFilename, "rb"); in main()
198 FILE* decFp = fopen(decFilename, "rb"); in main()
DHCStreaming_ringBuffer.c191 { FILE* const inpFp = fopen(inpFilename, "rb"); in main()
192 FILE* const outFp = fopen(lz4Filename, "wb"); in main()
201 { FILE* const inpFp = fopen(lz4Filename, "rb"); in main()
202 FILE* const outFp = fopen(decFilename, "wb"); in main()
211 { FILE* const inpFp = fopen(inpFilename, "rb"); in main()
212 FILE* const decFp = fopen(decFilename, "rb"); in main()
DdictionaryRandomAccess.c230 FILE* dictFp = fopen(dictFilename, "rb"); in main()
237 FILE* inpFp = fopen(inpFilename, "rb"); in main()
238 FILE* outFp = fopen(lz4Filename, "wb"); in main()
250 FILE* inpFp = fopen(lz4Filename, "rb"); in main()
251 FILE* outFp = fopen(decFilename, "wb"); in main()
263 FILE* inpFp = fopen(inpFilename, "rb"); in main()
264 FILE* decFp = fopen(decFilename, "rb"); in main()
/third_party/musl/libc-test/src/functionalext/supplement/process/
Dfork.c39 fp = fopen("test1.txt", "w+"); in fork_0100()
43 fp = fopen("test2.txt", "w+"); in fork_0100()
48 FILE *fp1 = fopen("test1.txt", "r"); in fork_0100()
49 FILE *fp2 = fopen("test2.txt", "r"); in fork_0100()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dforkpty.c40 fp = fopen("test1.txt", "w+"); in forkpty_0100()
44 fp = fopen("test2.txt", "w+"); in forkpty_0100()
49 FILE *fp1 = fopen("test1.txt", "r"); in forkpty_0100()
50 FILE *fp2 = fopen("test2.txt", "r"); in forkpty_0100()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmmap.c40 FILE *fptr = fopen(ptr, "w+"); in mmap_0100()
77 FILE *fptr = fopen(ptr, "w+"); in mmap_0200()
131 FILE *fptr = fopen(ptr, "w+"); in mmap_0400()
168 FILE *fptr = fopen(ptr, "w+"); in mmap_0500()
206 FILE *fptr = fopen(ptr, "w+"); in mmap_0600()
241 FILE *fptr = fopen(ptr, "w+"); in mmap_0700()
277 FILE *fptr = fopen(ptr, "w+"); in mmap_0800()
308 FILE *fptr = fopen(ptr, "w+"); in mmap_0900()
340 FILE *fptr = fopen(ptr, "w+"); in mmap_1000()
376 FILE *fptr = fopen(ptr, "w+"); in mmap_1100()
/third_party/cups-filters/cupsfilters/
Dtestrgb.c116 in = fopen("image.pgm", "rb"); in test_gray()
138 out[i] = fopen(filename, "wb"); in test_gray()
144 comp = fopen(filename, "wb"); in test_gray()
246 in = fopen("image.ppm", "rb"); in test_rgb()
268 out[i] = fopen(filename, "wb"); in test_rgb()
274 comp = fopen(filename, "wb"); in test_rgb()

12345678910>>...53