Home
last modified time | relevance | path

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

1234567891011

/third_party/musl/src/stdio/
Dferror.c3 #undef ferror
5 int ferror(FILE *f) in ferror() function
13 weak_alias(ferror, ferror_unlocked);
14 weak_alias(ferror, _IO_ferror_unlocked);
Dfgetws.c21 if (ferror(f)) p = s; in fgetws()
/third_party/zlib/examples/
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()
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()
Dzran.c165 if (ferror(in)) { in deflate_index_build()
282 ret = ferror(in) ? Z_ERRNO : Z_DATA_ERROR; in deflate_index_extract()
315 if (ferror(in)) { in deflate_index_extract()
359 if (ferror(in)) { in deflate_index_extract()
Dgznorm.c449 if (ferror(in) || ferror(out)) in gzip_normalize()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
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()
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/
Drewind-clear-error.c18 if (n != 0 || !ferror(stdin)) in main()
20 n, ferror(stdin), feof(stdin)); in main()
25 if (ferror(stdin)) in main()
Dfgetwc-buffering.c37 A(ferror(stdin)==0); in main()
/third_party/skia/third_party/externals/libpng/contrib/libtests/
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()
561 if (ferror(stdin)) in main()
575 if (fflush(fp) && !ferror(fp) && fclose(fp)) in main()
585 ok = !ferror(stdout); in main()
/third_party/flutter/skia/third_party/externals/libpng/contrib/libtests/
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()
561 if (ferror(stdin)) in main()
575 if (fflush(fp) && !ferror(fp) && fclose(fp)) in main()
585 ok = !ferror(stdout); in main()
/third_party/skia/third_party/externals/brotli/research/
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/node/test/wasi/c/
Dstdin.c7 return ferror(stdin); in main()
10 return ferror(stdout); in main()
/third_party/ltp/testcases/lib/
Dtst_hexdump.c23 return ret != EOF || ferror(stdin); in decode_hex()
33 return val != EOF || ferror(stdin); in encode_hex()
/third_party/cups-filters/cupsfilters/
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()
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/
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/tzdata/
Ddate.c188 if (ferror(stdout) || ferror(stderr)) { in display()
/third_party/musl/src/passwd/
Dgetgr_a.c83 rv = ferror(f) ? errno : EIO; in __getgr_a()
109 rv = ferror(f) ? errno : EIO; in __getgr_a()
/third_party/lz4/examples/
DframeCompress.c38 if (ferror(f)) /* note : ferror() must follow fwrite */ in safe_fwrite()
220 if (readSize == 0 || ferror(f_in)) { in decompress_file_internal()
283 if (readSize == 0 || ferror(f_in)) { in decompress_file_allocDst()
/third_party/lz4/programs/
Dlz4io.c471 if (ferror(finput)) END_PROCESS(24, "Error while reading %s ", input_filename); in LZ4IO_compressFilename_Legacy()
701 if (ferror(srcFile)) END_PROCESS(40, "Error reading %s ", srcFileName); in LZ4IO_compressFilename_extRess()
747 if (ferror(srcFile)) END_PROCESS(47, "Error reading %s ", srcFileName); in LZ4IO_compressFilename_extRess()
999 if (ferror(finput)) END_PROCESS(55, "Read error : ferror"); in LZ4IO_decodeLegacyStream()
1129 if (ferror(srcFile)) END_PROCESS(67, "Read error"); in LZ4IO_decompressLZ4F()
1163 if (ferror(finput)) END_PROCESS(51, "Read Error"); in LZ4IO_passThrough()
1597 … if (!readBytes || ferror(finput)) END_PROCESS(71, "Error reading %s", input_filename); in LZ4IO_getCompressedFileInfo()
1604 … if (!readBytes || ferror(finput)) END_PROCESS(72, "Error reading %s", input_filename); in LZ4IO_getCompressedFileInfo()
/third_party/flutter/skia/third_party/externals/wuffs/example/crc32/
Dcrc32.cc73 } else if (ferror(stdin)) { in main()
/third_party/musl/src/time/
Dgetdate.c40 if (ferror(f)) getdate_err = 5; in getdate()
/third_party/skia/third_party/externals/brotli/c/fuzz/
Drun_decode_fuzzer.c31 if (ferror(f)) { in main()

1234567891011