Home
last modified time | relevance | path

Searched refs:fread (Results 1 – 25 of 72) sorted by relevance

123

/llvm-project-15.0.7/clang/test/Analysis/
H A Dstream-note.c99 fread(Buf, 1, 1, F); in check_eof_notes_feof_after_feof()
102 fread(Buf, 1, 1, F); // expected-note {{Assuming stream reaches end-of-file here}} in check_eof_notes_feof_after_feof()
104fread(Buf, 1, 1, F); // expected-warning {{Read function called when stream is in EOF state. Funct… in check_eof_notes_feof_after_feof()
118 fread(Buf, 1, 1, F); in check_eof_notes_feof_after_no_feof()
126 fread(Buf, 1, 1, F); // expected-note {{Assuming stream reaches end-of-file here}} in check_eof_notes_feof_after_no_feof()
128fread(Buf, 1, 1, F); // expected-warning {{Read function called when stream is in EOF state. Funct… in check_eof_notes_feof_after_no_feof()
140 int RRet = fread(Buf, 1, 1, F); // expected-note {{Assuming stream reaches end-of-file here}} in check_eof_notes_feof_or_no_error()
143fread(Buf, 1, 1, F); // expected-warning {{Read function called when stream is in EOF state. Funct… in check_eof_notes_feof_or_no_error()
H A Dstream-error.c66 int Ret = fread(Buf, 1, 10, F); in error_fread()
73fread(Buf, 1, 10, F); // expected-warning {{Read function called when stream is in EOF s… in error_fread()
79 fread(Buf, 1, 10, F); // expected-warning {{might be 'indeterminate'}} in error_fread()
83 Ret = fread(Buf, 1, 10, F); // expected-warning {{Stream might be already closed}} in error_fread()
106 fread(0, 1, 0, F); in freadwrite_zerosize()
107 fread(0, 0, 1, F); in freadwrite_zerosize()
113 fread(0, 1, 0, F); // expected-warning {{Read function called when stream is in EOF state}} in freadwrite_zerosize_eofstate()
114 fread(0, 0, 1, F); // expected-warning {{Read function called when stream is in EOF state}} in freadwrite_zerosize_eofstate()
214 if (fread(Buf, 1, 10, F) < 10) { in error_indeterminate_feof1()
228 if (fread(Buf, 1, 10, F) < 10) { in error_indeterminate_feof2()
H A Dstd-c-library-functions-arg-constraints.c191 size_t fread(void *restrict, size_t, size_t, FILE *restrict);
193 fread(0, sizeof(int), 10, fp); // \ in test_notnull_concrete()
201 fread(buf, sizeof(int), 10, fp); in test_notnull_symbolic()
211 fread(buf, sizeof(int), 10, fp); // \ in test_notnull_symbolic2()
229 fread(wbuf, size, nitems, file); // \ in ARR38_C_F()
H A Dstd-c-library-functions-lookup.cpp14 size_t fread(void *, size_t, size_t, FILE *);
17 size_t fread(void *, size_t, size_t, MyFile *);
H A Dweak-dependencies.c10 size_t fread(void *restrict, size_t, size_t, FILE *restrict) __attribute__((nonnull(1)));
14fread(p, sizeof(int), 5, F); // expected-warning{{Null pointer passed to 1st parameter expecting '… in f()
H A Dstd-c-library-functions-arg-weakdeps.c45 size_t fread(void *restrict, size_t, size_t, FILE *restrict) __attribute__((nonnull(1)));
57 fread(p, sizeof(int), 5, F); // \ in test_notnull_arg()
H A Dstd-c-library-functions.c109 size_t fread(void *restrict, size_t, size_t, FILE *restrict);
116 size_t y = fread(buf, sizeof(int), 10, fp); in test_fread_fwrite()
128 …(void)fread(ptr, sz, nmem, fp); // expected-warning {{1st function call argument is an uninitializ… in test_fread_uninitialized()
H A Dstd-c-library-functions-lookup.c13 size_t fread(void *restrict, size_t, size_t, FILE *restrict);
/llvm-project-15.0.7/libc/test/src/stdio/
H A Dfileop_test.cpp33 ASSERT_EQ(__llvm_libc::fread(read_data, 1, sizeof(CONTENT), file), size_t(0)); in TEST()
49 ASSERT_EQ(__llvm_libc::fread(data, 1, READ_SIZE - 1, file), READ_SIZE - 1); in TEST()
52 ASSERT_EQ(__llvm_libc::fread(data, 1, READ_SIZE - 1, file), READ_SIZE - 1); in TEST()
55 ASSERT_EQ(__llvm_libc::fread(data, 1, READ_SIZE - 1, file), READ_SIZE - 1); in TEST()
60 __llvm_libc::fread(read_data, 1, sizeof(CONTENT), file)); in TEST()
89 ASSERT_EQ(__llvm_libc::fread(data, 1, sizeof(CONTENT), file), in TEST()
H A Dfprintf_test.cpp47 ASSERT_EQ(__llvm_libc::fread(data, 1, sizeof(simple) - 1, file), in TEST()
51 ASSERT_EQ(__llvm_libc::fread(data, 1, sizeof(numbers) - 1, file), in TEST()
55 ASSERT_EQ(__llvm_libc::fread( in TEST()
H A Dfopencookie_test.cpp105 __llvm_libc::fread(read_data, 1, sizeof(CONTENT), f)); in TEST()
110 __llvm_libc::fread(read_data, 1, sizeof(CONTENT), f)); in TEST()
148 ASSERT_EQ(size_t(0), __llvm_libc::fread(read_data, 1, sizeof(WRITE_DATA), f)); in TEST()
177 ASSERT_EQ(__llvm_libc::fread(read_data, 1, READ_SIZE, f), size_t(0)); in TEST()
209 ASSERT_EQ(READ_SIZE, __llvm_libc::fread(read_data, 1, READ_SIZE, f)); in TEST()
242 ASSERT_EQ(__llvm_libc::fread(read_data, 1, sizeof(read_data), f), in TEST()
H A DCMakeLists.txt18 libc.src.stdio.fread
59 libc.src.stdio.fread
97 libc.src.stdio.fread
/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/kern-ver-str/
H A Dcreate-empty-corefile.cpp153 if (::fread (magic, 1, 4, f) != 4) in get_uuid_from_binary()
173 if (::fread (&mh, 1, sizeof (mh), f) != sizeof (mh)) in get_uuid_from_binary()
192 if (::fread (&mh, 1, sizeof (mh), f) != sizeof (mh)) in get_uuid_from_binary()
216 ::fread (&cmd, sizeof (uint32_t), 1, f); in get_uuid_from_binary()
217 ::fread (&cmdsize, sizeof (uint32_t), 1, f); in get_uuid_from_binary()
222 if (::fread (&uuidcmd, 1, sizeof (uuidcmd), f) != sizeof (uuidcmd)) in get_uuid_from_binary()
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Daddrfuncstr.ll13 @_ZL1y = internal constant %struct.x { i64 (i8*, i64, i64, %struct._IO_FILE*)* @fread }, align 8
21 declare i64 @fread(i8*, i64, i64, %struct._IO_FILE*) #1
24 ; CHECK: .quad fread
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dfeof_fileno_ferror.cpp20 while (fread(buf, 1, sizeof buf, fp) != 0) {} in main()
35 assert(fread(buf, 1, sizeof buf, fp) == 0); in main()
/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/firmware-corefile/
H A Dcreate-empty-corefile.cpp201 if (::fread(magic, 1, 4, f) != 4) { in get_uuid_from_binary()
219 if (::fread(&mh, 1, sizeof(mh), f) != sizeof(mh)) { in get_uuid_from_binary()
237 if (::fread(&mh, 1, sizeof(mh), f) != sizeof(mh)) { in get_uuid_from_binary()
263 ::fread(&cmd, sizeof(uint32_t), 1, f); in get_uuid_from_binary()
264 ::fread(&cmdsize, sizeof(uint32_t), 1, f); in get_uuid_from_binary()
268 if (::fread(&uuidcmd, 1, sizeof(uuidcmd), f) != sizeof(uuidcmd)) { in get_uuid_from_binary()
/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Dfopencookie.cpp56 fread(buf, 50, 1, f); in main()
62 fread(buf, 50, 1, f); in main()
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dlibcalls-fno-builtin.c42 size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
151 size_t y = fread(buf, sizeof(int), 10, fp); in t25()
/llvm-project-15.0.7/libc/src/stdio/
H A DCMakeLists.txt148 fread
150 fread.cpp
152 fread.h
H A Dfread.h16 size_t fread(void *__restrict buffer, size_t size, size_t nmemb,
H A Dfread.cpp16 LLVM_LIBC_FUNCTION(size_t, fread,
/llvm-project-15.0.7/clang/test/Sema/
H A Dattr-bounded.c12 size_t fread(void *, size_t, size_t, FILE *)
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dfread_fwrite.cpp11 fread(buf, sizeof(buf), 2, f); // BOOM in test_fread()
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Dfread_fwrite.cpp11 unsigned read = fread(&c, sizeof(c), 1, f); in test_fread()
/llvm-project-15.0.7/compiler-rt/test/tsan/Linux/
H A Duser_fopen.cpp27 fread(&buf, 1, 1, f); in main()

123