Home
last modified time | relevance | path

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

12345678910>>...15

/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dfgets.c34 char *content = fgets(str, 100, fptr); in fgets_0100()
61 char *content = fgets(str, 5, fptr); in fgets_0200()
87 char *content = fgets(str, 2, fptr); in fgets_0300()
113 char *content = fgets(str, 1, fptr); in fgets_0400()
139 char *content = fgets(str, 0, fptr); in fgets_0500()
165 char *content = fgets(str, 100, fptr); in fgets_0600()
/third_party/selinux/libselinux/src/
H A Dquery_user_context.c25 if (fgets(response, sizeof(response), stdin) == NULL) in context_menu()
51 if (fgets(response, sizeof(response), stdin) == NULL) in query_user_context()
85 if (fgets(newfield, newfieldlen, stdin) == NULL) in get_field()
133 if (fgets(response, sizeof(response), stdin) == NULL in manual_user_enter_context()
/third_party/ltp/lib/
H A Dtst_virt.c39 while (fgets(line, sizeof(line), cpuinfo) != NULL) { in is_kvm()
79 while (fgets(line, sizeof(line), sysinfo) != NULL) { in is_ibmz()
125 if (!fgets(virt_type, sizeof(virt_type), f)) in try_systemd_detect_virt()
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
H A Dreadppm.c89 fgets(ppmline, 256, infile); in readpng_init()
107 fgets(ppmline, 256, infile); in readpng_init()
112 fgets(ppmline, 256, infile); in readpng_init()
/third_party/ltp/testcases/kernel/security/tomoyo/
H A Dinclude.h107 if (fgets(value, len, fp)) in read_sysctl()
174 fgets(buffer, sizeof(buffer) - 10, fp)) { in clear_status()
240 if (!fp || !fgets(self_domain, sizeof(self_domain) - 1, fp) || in tomoyo_test_init()
287 while (fgets(buffer, sizeof(buffer) - 1, fp)) { in write_domain_policy()
325 while (fgets(buffer, sizeof(buffer) - 1, fp)) { in write_exception_policy()
359 fgets(buffer, sizeof(buffer) - 1, fp)) { in set_profile()
/third_party/musl/libc-test/src/regression/
H A Dfgets-eof.c0 // fgets must not modify the buffer on eof
16 ASSERT(fgets(s, sizeof s, f) == s); in main()
18 ASSERT(fgets(s, sizeof s, f) == 0); in main()
20 t_error("fgets modified the buffer after eof\n"); in main()
/third_party/cups-filters/cupsfilters/
H A Dimage-pnm.c65 if ((lineptr = fgets(line, sizeof(line), fp)) == NULL) in _cupsImageReadPNM()
81 lineptr = fgets(line, sizeof(line), fp); in _cupsImageReadPNM()
95 lineptr = fgets(line, sizeof(line), fp); in _cupsImageReadPNM()
113 lineptr = fgets(line, sizeof(line), fp); in _cupsImageReadPNM()
H A Dtestrgb.c117 while (fgets(line, sizeof(line), in) != NULL) in test_gray()
123 fgets(line, sizeof(line), in); in test_gray()
247 while (fgets(line, sizeof(line), in) != NULL) in test_rgb()
253 fgets(line, sizeof(line), in); in test_rgb()
H A Dtestcmyk.c103 while (fgets(line, sizeof(line), in) != NULL) in test_gray()
109 fgets(line, sizeof(line), in); in test_gray()
285 while (fgets(line, sizeof(line), in) != NULL) in test_rgb()
291 fgets(line, sizeof(line), in); in test_rgb()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dcpuinfo.c60 while (fgets(buf, sizeof(buf), fp) != NULL) { in get_cpu_baseinfo()
108 if (fgets(buf, sizeof(buf), fp) == NULL) { in online_cpumask()
152 if (fgets(buf, sizeof(buf), fp) == NULL) { in present_cpumask()
221 while (fgets(buf, sizeof(buf), fp) != NULL) { in get_sched_domains()
301 while (fgets(buf, sizeof(buf), fp) != NULL) { in get_num_cpusets()
H A Dmeminfo.c36 if (fgets(buf, sizeof(buf), fp) == NULL) { in online_memmask()
72 if (fgets(buf, sizeof(buf), fp) == NULL) { in present_memmask()
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dstdio.c175 * @tc.name : fgets
187 char *get = fgets(buf, sizeof(buf), fp); in stdio_dynamic_chk_005()
195 * @tc.name : fgets
207 char *get1 = fgets(buf, sizeof("hello"), fp); in stdio_dynamic_chk_006()
212 char *get2 = fgets(buf, sizeof(buf), fp); in stdio_dynamic_chk_006()
216 char *get3 = fgets(buf, sizeof(buf), fp); in stdio_dynamic_chk_006()
224 * @tc.name : fgets
248 fgets(buf, n, fp); in stdio_dynamic_chk_007()
/third_party/musl/porting/linux/user/src/stdio/
H A Dfgets.c6 char *fgets(char *restrict s, int n, FILE *restrict f) in fgets() function
50 weak_alias(fgets, fgets_unlocked);
/third_party/musl/src/stdio/
H A Dfgets.c8 char *fgets(char *restrict s, int n, FILE *restrict f) in fgets() function
54 weak_alias(fgets, fgets_unlocked);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dconfig.c30 while (fgets(buf, sizeof(buf), stream)) { in skip_line_end()
43 while (fgets(s, size, stream)) { in wpa_config_get_line()
/third_party/toybox/toys/net/
H A Dnetstat.c118 if(!fgets(toybuf, sizeof(toybuf), fp)) return; //skip header. in show_ip()
120 while (fgets(toybuf, sizeof(toybuf), fp)) { in show_ip()
192 if(!fgets(toybuf, sizeof(toybuf), fp)) return; //skip header. in show_unix_sockets()
194 while (fgets(toybuf, sizeof(toybuf), fp)) { in show_unix_sockets()
284 if(!fgets(toybuf, sizeof(toybuf), fp)) return; //skip header. in display_routes()
290 while (fgets(toybuf, sizeof(toybuf), fp)) { in display_routes()
/third_party/ltp/libs/libltpipc/
H A Dlibipc.c188 for (used_queues = -4; fgets(buff, BUFSIZE, f); used_queues++) ; in get_used_msgqueues()
211 if (!fgets(buff, BUFSIZE, f)) { in get_max_msgqueues()
/third_party/ltp/libs/libltpuinput/
H A Dtst_uinput.c79 while (fgets(line, sizeof(line), file)) { in get_input_field_value()
105 while (fgets(line, sizeof(line), file)) { in check_device()
/third_party/musl/porting/linux/user/include/fortify/
H A Dstdio.h78 char* fgets(char* const __DIAGNOSE_PASS_OBJECT_SIZE dest, int size, FILE* stream)
80 __DIAGNOSE_ERROR_IF(size < 0, "in call to 'fgets', size should not be less than 0") in __DIAGNOSE_ERROR_IF()
82 "in call to 'fgets', " SIZE_LARGER_THEN_DESTINATION_BUFFER) in __DIAGNOSE_ERROR_IF()
91 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(fgets)(dest, size, stream); in __DIAGNOSE_ERROR_IF()
/third_party/musl/porting/liteos_a/user/src/network/
H A Dether.c98 while (fgets(buf, BUFFER_SIZE, f)) { in ether_ntohost()
129 while (fgets(buf, BUFFER_SIZE, f)) { in ether_hostton()
/third_party/musl/src/network/
H A Dether.c106 while (fgets(buf, BUFFER_SIZE, f)) { in ether_ntohost()
141 while (fgets(buf, BUFFER_SIZE, f)) { in ether_hostton()
/third_party/ltp/testcases/kernel/mem/vma/
H A Dvma02.c119 while (fgets(buf, BUFSIZ, fp) != NULL) { in main()
132 while (fgets(buf, BUFSIZ, fp) != NULL) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsplice.c80 fgets(buf, sizeof(buf), f); in splice_0200()
113 fgets(buf2, sizeof(buf2), f); in splice_0200()
/third_party/musl/include/fortify/linux/
H A Dstdio.h78 char* fgets(char* const __DIAGNOSE_PASS_OBJECT_SIZE dest, int size, FILE* stream)
80 __DIAGNOSE_ERROR_IF(size < 0, "in call to 'fgets', size should not be less than 0") in __DIAGNOSE_ERROR_IF()
82 "in call to 'fgets', " SIZE_LARGER_THEN_DESTINATION_BUFFER) in __DIAGNOSE_ERROR_IF()
91 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(fgets)(dest, size, stream); in __DIAGNOSE_ERROR_IF()
/third_party/cups-filters/filter/
H A Dmupdftoraster.c73 rc = fgets(buf,sizeof(buf),fp); in parse_doc_type()
94 while (fgets(buf,sizeof(buf),fp) != 0) { in parse_pdf_header_options()
100 if (fgets(buf,sizeof(buf),fp) == 0) break; in parse_pdf_header_options()

Completed in 11 milliseconds

12345678910>>...15