Home
last modified time | relevance | path

Searched refs:ferror (Results 1 - 25 of 201) sorted by relevance

123456789

/third_party/musl/src/stdio/
H A Dferror.c6 #undef ferror macro
8 int ferror(FILE *f) in ferror() function
19 weak_alias(ferror, ferror_unlocked);
20 weak_alias(ferror, _IO_ferror_unlocked);
H A Dfgetws.c21 if (ferror(f)) p = s; in fgetws()
/third_party/zlib/examples/
H A Dzpipe.c55 if (ferror(source)) { in def()
70 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { in def()
113 if (ferror(source)) { in inf()
136 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { in inf()
156 if (ferror(stdin)) in zerr()
158 if (ferror(stdout)) in zerr()
H A Dfitblk.c81 if (ferror(in)) in partcompress()
166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
H A Dzran.c154 if (strm.avail_in < sizeof(buf) && ferror(in)) { in deflate_index_build()
363 return ferror(in) ? Z_ERRNO : Z_BUF_ERROR; in deflate_index_extract()
393 if (strm.avail_in < CHUNK && ferror(in)) { in deflate_index_extract()
425 return ferror(in) ? Z_ERRNO : Z_BUF_ERROR; in deflate_index_extract()
436 if (strm.avail_in < CHUNK && ferror(in)) { in deflate_index_extract()
H A Dgznorm.c13 #include <stdio.h> // fread, fwrite, putc, fflush, ferror, fprintf,
449 if (ferror(in) || ferror(out)) in gzip_normalize()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A D__fseterr.c28 EXPECT_FALSE("__fseterr_0100", ferror(fp)); in __fseterr_0100()
30 EXPECT_TRUE("__fseterr_0100", ferror(fp)); in __fseterr_0100()
32 EXPECT_FALSE("__fseterr_0100", ferror(fp)); in __fseterr_0100()
H A Dclearerr.c26 if (ferror(stdin)) { in clearerr_0100()
29 EXPECT_EQ("clearerr_0100", ferror(stdin), 0); in clearerr_0100()
/third_party/musl/libc-test/src/regression/
H A Drewind-clear-error.c18 if (n != 0 || !ferror(stdin)) in main()
19 t_error("fread(stdin) should have failed, got %d ferror %d feof %d\n", in main()
20 n, ferror(stdin), feof(stdin)); in main()
25 if (ferror(stdin)) in main()
26 t_error("rewind failed to clear ferror\n"); in main()
H A Dfgetwc-buffering.c37 A(ferror(stdin)==0); in main()
/third_party/skia/third_party/externals/libpng/contrib/libtests/
H A Dtimepng.c207 if (ferror(fp)) in perform_one_test()
249 if (ferror(stdout)) in perform_one_test()
285 if (ferror(ip)) in add_one_file()
301 if (ferror(fp)) in add_one_file()
312 * file. This must happen after the ferror check above to avoid clearing in add_one_file()
561 if (ferror(stdin)) in main()
575 if (fflush(fp) && !ferror(fp) && fclose(fp)) in main()
585 ok = !ferror(stdout); in main()
/third_party/node/test/wasi/c/
H A Dstdin.c7 return ferror(stdin); in main()
10 return ferror(stdout); in main()
/third_party/ltp/testcases/lib/
H A Dtst_hexdump.c23 return ret != EOF || ferror(stdin); in decode_hex()
33 return val != EOF || ferror(stdin); in encode_hex()
/third_party/eudev/src/shared/
H A Dfileio.c40 if (ferror(f)) in write_string_stream()
71 if (ferror(f)) in read_one_line_file()
125 if (ferror(f)) in read_full_stream()
/third_party/skia/third_party/externals/brotli/research/
H A Dbrotli_decoder.c72 if (ferror(ctx.fin)) break; in main()
75 if (ferror(ctx.fout)) break; in main()
87 if ((result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) || ferror(ctx.fout)) { in main()
/third_party/cups-filters/cupsfilters/
H A Dimage-sun.c127 if (fread(cmap[0], 1, ras_maplength / 3, fp) == 0 && ferror(fp)) in _cupsImageReadSunRaster()
129 if (fread(cmap[1], 1, ras_maplength / 3, fp) == 0 && ferror(fp)) in _cupsImageReadSunRaster()
131 if (fread(cmap[2], 1, ras_maplength / 3, fp) == 0 && ferror(fp)) in _cupsImageReadSunRaster()
194 if (fread(p, scanwidth, 1, fp) == 0 && ferror(fp)) in _cupsImageReadSunRaster()
H A Dimage-pnm.c200 if (fread(out, (img->xsize + 7) / 8, 1, fp) == 0 && ferror(fp)) in _cupsImageReadPNM()
222 if (fread(in, img->xsize, 1, fp) == 0 && ferror(fp)) in _cupsImageReadPNM()
227 if (fread(in, img->xsize, 3, fp) == 0 && ferror(fp)) in _cupsImageReadPNM()
/third_party/pulseaudio/src/pulsecore/
H A Ddatabase-simple.c123 if (ferror(f)) in read_uint()
153 if (ferror(f)) in read_data()
214 if (ferror(f)) { in fill_data()
421 if (ferror(f)) in write_uint()
437 if (ferror(f) || items != 1) in write_data()
/third_party/musl/src/passwd/
H A Dgetgr_a.c83 rv = ferror(f) ? errno : EIO; in __getgr_a()
109 rv = ferror(f) ? errno : EIO; in __getgr_a()
/third_party/tzdata/
H A Ddate.c183 if (ferror(stdout) || ferror(stderr)) { in display()
/third_party/lzma/CPP/Common/
H A DStdInStream.h39 bool Error() const throw() { return (ferror(_stream) != 0); } in Error()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/stdio_gtest/
H A Dstdio_ferror_test.cpp12 * @tc.desc: Ensure that the ferror() function correctly detects any errors that occurred during file operations.
19 EXPECT_EQ(0, ferror(file)); in HWTEST_F()
/third_party/node/deps/cares/src/lib/
H A Dares__read_line.c59 return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF; in ares__read_line()
/third_party/ffmpeg/ffbuild/
H A Dbin2c.c70 if (ferror(input) || !feof(input)) in main()
/third_party/musl/src/time/
H A Dgetdate.c40 if (ferror(f)) getdate_err = 5; in getdate()

Completed in 9 milliseconds

123456789