| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | stream-note.c | 99 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() 104 …fread(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() 128 …fread(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() 143 …fread(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 D | stream-error.c | 66 int Ret = fread(Buf, 1, 10, F); in error_fread() 73 …fread(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 D | std-c-library-functions-arg-constraints.c | 191 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 D | std-c-library-functions-lookup.cpp | 14 size_t fread(void *, size_t, size_t, FILE *); 17 size_t fread(void *, size_t, size_t, MyFile *);
|
| H A D | weak-dependencies.c | 10 size_t fread(void *restrict, size_t, size_t, FILE *restrict) __attribute__((nonnull(1))); 14 …fread(p, sizeof(int), 5, F); // expected-warning{{Null pointer passed to 1st parameter expecting '… in f()
|
| H A D | std-c-library-functions-arg-weakdeps.c | 45 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 D | std-c-library-functions.c | 109 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 D | std-c-library-functions-lookup.c | 13 size_t fread(void *restrict, size_t, size_t, FILE *restrict);
|
| /llvm-project-15.0.7/libc/test/src/stdio/ |
| H A D | fileop_test.cpp | 33 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 D | fprintf_test.cpp | 47 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 D | fopencookie_test.cpp | 105 __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 D | CMakeLists.txt | 18 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 D | create-empty-corefile.cpp | 153 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 D | addrfuncstr.ll | 13 @_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 D | feof_fileno_ferror.cpp | 20 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 D | create-empty-corefile.cpp | 201 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 D | fopencookie.cpp | 56 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 D | libcalls-fno-builtin.c | 42 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 D | CMakeLists.txt | 148 fread 150 fread.cpp 152 fread.h
|
| H A D | fread.h | 16 size_t fread(void *__restrict buffer, size_t size, size_t nmemb,
|
| H A D | fread.cpp | 16 LLVM_LIBC_FUNCTION(size_t, fread,
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | attr-bounded.c | 12 size_t fread(void *, size_t, size_t, FILE *)
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/ |
| H A D | fread_fwrite.cpp | 11 fread(buf, sizeof(buf), 2, f); // BOOM in test_fread()
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | fread_fwrite.cpp | 11 unsigned read = fread(&c, sizeof(c), 1, f); in test_fread()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/Linux/ |
| H A D | user_fopen.cpp | 27 fread(&buf, 1, 1, f); in main()
|