Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpututline.c42 while (fread(&u, sizeof(struct utmp), 1, f) == 1) in pututline()
Dfortify.cpp108 return fread(buf, size, count, stream); in __fread_chk()
111 return fread(buf, size, count, stream); in __fread_chk()
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dutmp.c75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1) in getutent()
/bionic/tests/
Dfortify_filecheck_diagnostics_test.cpp237 fread(buf, 2, (size_t)-1, stdin); in test_fread_overflow()
244 fread(buf, 1, 5, stdin); in test_fread_too_big()
Dstdio_test.cpp1664 ASSERT_EQ(8U, fread(buf2, 1, sizeof(buf2), fp)); in TEST()
1687 ASSERT_EQ(4U, fread(buf2, 1, sizeof(buf2), fp)); in TEST()
1958 ASSERT_EQ(1U, fread(buf, 64*1024, 1, fp)); in TEST()
1982 ASSERT_EQ(2U, fread(buf1, 4, 4, fp)); in TEST()
1991 ASSERT_EQ(2U, fread(buf2, 4, 4096, fp)); in TEST()
2002 ASSERT_EQ(0U, fread(&buf[0], n, 1, fp)); in test_fread_from_write_only_stream()
2026 ASSERT_EQ(0U, fread(&buf[0], 1, buf.size(), fp)); in test_fwrite_after_fread()
2035 ASSERT_EQ(2U, fread(&buf[0], 1, buf.size(), fp)); in test_fwrite_after_fread()
2070 ASSERT_EQ(100U, fread(buffer, 1, 100, fp)); in TEST()
2076 ASSERT_EQ(8192U, fread(buffer, 1, 8192, fp)); in TEST()
[all …]
Dfortify_test.cpp654 ASSERT_FORTIFY(fread(buf, 1, ct, fp)); in TEST_F()
/bionic/libc/include/bits/fortify/
Dstdio.h95 size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) in fread() function
104 return __call_bypassing_fortify(fread)(buf, size, count, stream); in fread()
/bionic/libc/dns/net/
Dgethnamaddr.c573 if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) return NULL; in android_read_hostent()
579 fread(&size, 1, sizeof(size), proxy); in android_read_hostent()
584 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL; in android_read_hostent()
594 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
602 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL; in android_read_hostent()
612 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
630 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL; in android_read_hostent()
633 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL; in android_read_hostent()
640 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL; in android_read_hostent()
649 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
Dgetaddrinfo.c396 if (fread(&tmp, sizeof(tmp), 1, fp) != 1) { in readBE32()
450 if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) { in android_getaddrinfo_proxy()
457 fread(buf, 1, sizeof(buf), proxy); in android_getaddrinfo_proxy()
510 if (fread(ai->ai_addr, addr_len, 1, proxy) != 1) { in android_getaddrinfo_proxy()
522 if (fread(ai->ai_canonname, name_len, 1, proxy) != 1) { in android_getaddrinfo_proxy()
/bionic/benchmarks/
Dstdio_benchmark.cpp61 ReadWriteTest(state, fread, true); in BM_stdio_fread()
71 ReadWriteTest(state, fread, false); in BM_stdio_fread_unbuffered()
/bionic/tests/headers/posix/
Dstdio_h.c96 FUNCTION(fread, size_t (*f)(void*, size_t, size_t, FILE*)); in stdio_h()
/bionic/libc/include/
Dstdio.h116 size_t fread(void* __buf, size_t __size, size_t __count, FILE* __fp);
/bionic/libc/stdio/
Dvfscanf.cpp405 size_t r = fread(p, 1, width, fp); in __svfscanf()
Dstdio.cpp1089 size_t fread(void* buf, size_t size, size_t count, FILE* fp) { in fread() function
/bionic/libc/tools/
Dposix-2013.txt292 fread
/bionic/docs/
Dstatus.md117 * more FORTIFY support functions (`fread`/`fwrite`/`getcwd`/`pwrite`/`write`)
/bionic/libc/dns/resolv/
Dres_cache.c1537 fread(buf, fileLen, 1, fp); in _dump_answer()
/bionic/tools/versioner/platforms/
Dlibc.map.txt378 fread;
/bionic/libc/
Dlibc.map.txt378 fread;