Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgets.c46 fgets(char *buf, int n, FILE *fp) __overloadable in fgets() function
106 DEF_STRONG(fgets);
/bionic/tests/
Dfortify_compilation_test.cpp173 fgets(buf, -1, stdin); in test_fgets()
178 fgets(buf, 6, stdin); in test_fgets()
Dfcntl_test.cpp202 ASSERT_TRUE(fgets(buf, sizeof(buf), fp) != NULL); in TEST()
211 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != NULL); in TEST()
237 ASSERT_TRUE(fgets(buf1, sizeof(buf1), fp1) != NULL); in TEST()
243 ASSERT_TRUE(fgets(buf2, sizeof(buf2), fp2) != NULL); in TEST()
Dstdio_ext_test.cpp43 fgets(buf, sizeof(buf), fp); in TEST()
95 char* s = fgets(buf, sizeof(buf), fp); in TEST()
Dutils.h75 while (fgets(line, sizeof(line), fp) != nullptr) { in parse_maps()
Dstdio_test.cpp52 ASSERT_EQ(line, fgets(line, sizeof(line), fp)); in AssertFileIs()
58 ASSERT_EQ(line, fgets(line, sizeof(line), fp)); in AssertFileIs()
63 ASSERT_EQ(nullptr, fgets(line, sizeof(line), fp)) << "junk at end of file: " << line; in AssertFileIs()
710 char* s = fgets(buf, sizeof(buf), fp); in TEST()
Dgtest_main.cpp285 while (fgets(buf, sizeof(buf), fp) != NULL) { in EnumerateTests()
/bionic/libc/include/
Dstdio.h124 char *fgets(char * __restrict, int, FILE * __restrict) __overloadable
125 __RENAME_CLANG(fgets);
384 char *fgets(char* __restrict dest, int size, FILE* stream) __overloadable
389 char *fgets(char* dest, int size, FILE* stream) __overloadable
395 char *fgets(char* __restrict const __pass_object_size dest, in fgets() function
400 return __call_bypassing_fortify(fgets)(dest, size, stream); in fgets()
413 char* __fgets_real(char*, int, FILE*) __RENAME(fgets);
489 char *fgets(char* dest, int size, FILE* stream) { in fgets() function
/bionic/libc/bionic/
Dpthread_attr.cpp125 if (fgets(line, sizeof(line), fp) == nullptr) { in __get_main_stack_startstack()
170 while (fgets(line, sizeof(line), fp) != NULL) { in __pthread_attr_getstack_main_thread()
Dmntent.cpp41 while (fgets(buf, buf_len, fp) != NULL) { in getmntent_r()
Dfortify.cpp105 return fgets(dst, supplied_size, stream); in __fgets_chk()
/bionic/benchmarks/
Dstdio_benchmark.cpp75 if (fgets(buf, sizeof(buf), fp) == nullptr) abort(); in FopenFgetsFclose()
/bionic/libc/malloc_debug/
DMapData.cpp120 while (fgets(buffer.data(), buffer.size(), fp) != nullptr) { in ReadMaps()
/bionic/libc/dns/resolv/
Dres_init.c295 while (fgets(buf, sizeof(buf), fp) != NULL) { in __res_vinit()
/bionic/libc/tools/
Dposix-2013.txt260 fgets
/bionic/libc/dns/net/
Dgethnamaddr.c995 if (!fgets(p, line_buf_size, hf)) { in netbsd_gethostent_r()
Dgetaddrinfo.c2061 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf))) in _gethtent()
/bionic/libc/
Dlibc.mips64.map285 fgets;
Dlibc.x86_64.map285 fgets;
Dlibc.arm64.map285 fgets;
Dlibc.mips.map353 fgets;
Dlibc.x86.map351 fgets;
Dlibc.arm.map355 fgets;
Dlibc.map.txt357 fgets;
DAndroid.bp437 "upstream-openbsd/lib/libc/stdio/fgets.c",