Home
last modified time | relevance | path

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

1234567891011

/freebsd-13.1/usr.sbin/nscd/
H A Dlog.c64 char *ferror; in __log_err() local
66 ferror = NULL; in __log_err()
68 vasprintf(&ferror, error, ap); in __log_err()
70 assert(ferror != NULL); in __log_err()
72 printf("E%d from %s: %s\n", level, sender, ferror); in __log_err()
76 syslog(LOG_ERR, "nscd error (from %s): %s", sender, ferror); in __log_err()
78 free(ferror); in __log_err()
/freebsd-13.1/lib/libc/stdio/
H A DMakefile.inc9 feof.c ferror.c fflush.c fgetc.c fgetln.c fgetpos.c fgets.c fgetwc.c \
37 MAN+= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fgetwln.3 fgetws.3 \
47 MLINKS+=ferror.3 ferror_unlocked.3 \
48 ferror.3 clearerr.3 ferror.3 clearerr_unlocked.3 \
49 ferror.3 feof.3 ferror.3 feof_unlocked.3 \
50 ferror.3 fileno.3 ferror.3 fileno_unlocked.3
H A Dferror.c46 #undef ferror
50 ferror(FILE *fp) in ferror() function
/freebsd-13.1/contrib/nvi/ex/
H A Dex_mkexrc.c76 if (seq_save(sp, fp, "abbreviate ", SEQ_ABBREV) || ferror(fp)) in ex_mkexrc()
78 if (seq_save(sp, fp, "map ", SEQ_COMMAND) || ferror(fp)) in ex_mkexrc()
80 if (seq_save(sp, fp, "map! ", SEQ_INPUT) || ferror(fp)) in ex_mkexrc()
82 if (opts_save(sp, fp) || ferror(fp)) in ex_mkexrc()
/freebsd-13.1/lib/libc/tests/stdio/
H A Dgetdelim_test.c106 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
127 ATF_REQUIRE(ferror(stdout)); in ATF_TC_BODY()
143 ATF_REQUIRE(ferror(fp)); in ATF_TC_BODY()
168 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
196 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
220 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
/freebsd-13.1/usr.bin/tail/
H A Dforward.c120 if (ferror(fp)) { in forward()
132 if (ferror(fp)) { in forward()
151 if (ferror(fp)) { in forward()
170 if (ferror(fp)) { in forward()
185 if (ferror(fp)) { in forward()
258 if (ferror(file->fp)) { in show()
/freebsd-13.1/usr.bin/xstr/
H A Dxstr.c173 if (ferror(stdin)) in process()
226 if (ferror(stdout)) in process()
256 if (ferror(stdin)) in yankstr()
322 return ((feof(file) || ferror(file)) ? 0 : 1); in fgetNUL()
392 if (ferror(mesgwrit)) in flushsh()
446 if (ferror(strf)) { in xsdotc()
/freebsd-13.1/contrib/xz/src/common/
H A Dtuklib_exit.c30 const int ferror_err = ferror(stdout); in tuklib_exit()
51 const int ferror_err = ferror(stderr); in tuklib_exit()
/freebsd-13.1/contrib/diff/lib/
H A Dunlocked-io.h56 # undef ferror
57 # define ferror(x) ferror_unlocked (x) macro
59 # define ferror_unlocked(x) ferror (x)
/freebsd-13.1/bin/cat/
H A Dcat.c318 if (ferror(stdout)) in cook_cat()
322 if (ferror(stdout)) in cook_cat()
343 if (ferror(fp) && errno == EILSEQ) { in cook_cat()
375 if (ferror(fp)) { in cook_cat()
380 if (ferror(stdout)) in cook_cat()
/freebsd-13.1/usr.bin/comm/
H A Dcomm.c131 if (n1 < 0 && ferror(fp1)) in main()
139 if (n2 < 0 && ferror(fp2)) in main()
228 if (ferror(fp)) in show()
/freebsd-13.1/usr.bin/tr/
H A Dtr.c148 if (ferror(stdin)) in main()
166 if (ferror(stdin)) in main()
183 if (ferror(stdin)) in main()
341 if (ferror(stdin)) in main()
/freebsd-13.1/usr.bin/random/
H A Drandom.c181 if (ferror(stdout)) in main()
184 if (ferror(stdin)) in main()
/freebsd-13.1/contrib/ipfilter/tools/
H A Dlex_var.h27 if ( c == EOF && ferror( yyin ) ) \
33 && ferror( yyin ) ) \
/freebsd-13.1/usr.bin/mail/
H A Dquit.c225 if (ferror(obuf)) { in quit()
271 if (ferror(obuf)) in quit()
279 if (ferror(obuf)) { in quit()
370 if (ferror(obuf)) { in writeback()
482 if (ferror(obuf)) { in edstop()
H A Dsend.c180 if (ferror(obuf)) in sendmessage()
206 if (ferror(obuf)) in sendmessage()
483 if (ferror(fi)) { in infix()
489 if (ferror(nfo)) { in infix()
587 if (ferror(fo)) in savemail()
H A Dedit.c122 if (ferror(otf)) in edit1()
169 if (ferror(nf)) { in run_editor()
/freebsd-13.1/contrib/bzip2/
H A Dbzip2.c341 if (ferror(stream)) goto errhandler_io; in compressStream()
342 if (ferror(zStream)) goto errhandler_io; in compressStream()
354 if (ferror(stream)) goto errhandler_io; in compressStream()
365 if (ferror(zStream)) goto errhandler_io; in compressStream()
377 if (ferror(stream)) goto errhandler_io; in compressStream()
449 if (ferror(stream)) goto errhandler_io; in uncompressStream()
450 if (ferror(zStream)) goto errhandler_io; in uncompressStream()
483 if (ferror(zStream)) goto errhandler_io; in uncompressStream()
492 if (ferror(stream)) goto errhandler_io; in uncompressStream()
568 if (ferror(zStream)) goto errhandler_io; in testStream()
[all …]
/freebsd-13.1/sys/contrib/zstd/zlibWrapper/examples/
H A Dfitblk_original.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()
/freebsd-13.1/sys/contrib/openzfs/lib/libshare/os/freebsd/
H A Dnfs.c253 if (ferror(oldfp) != 0) { in nfs_copy_entries()
254 error = ferror(oldfp); in nfs_copy_entries()
263 if (error == 0 && ferror(newfp) != 0) { in nfs_copy_entries()
264 error = ferror(newfp); in nfs_copy_entries()
/freebsd-13.1/usr.bin/cmp/
H A Dspecial.c107 eof: if (ferror(fp1)) in c_special()
109 if (ferror(fp2)) in c_special()
/freebsd-13.1/contrib/libpcap/
H A Dsf-pcap.c193 if (ferror(fp)) { in pcap_check_header()
459 if (ferror(fp)) { in pcap_next_packet()
613 if (ferror(fp)) { in pcap_next_packet()
644 if (ferror(fp)) { in pcap_next_packet()
696 if (ferror(fp)) { in pcap_next_packet()
952 if (ferror(f)) { in pcap_dump_open_append()
1150 if (ferror((FILE *)p)) in pcap_dump_close()
/freebsd-13.1/contrib/flex/src/
H A Dfilter.c307 if (ferror (to_h)) in filter_tee_header()
317 if (ferror (to_c)) in filter_tee_header()
424 if (ferror (stdout)) in filter_fix_linedirs()
/freebsd-13.1/usr.bin/uuencode/
H A Duuencode.c136 if (ferror(output)) in main()
219 if (ferror(stdin)) in encode()
/freebsd-13.1/bin/ed/
H A Dio.c118 while (((c = getc(fp)) != EOF || (!feof(fp) && !ferror(fp))) && in get_stream_line()
127 else if (ferror(fp)) { in get_stream_line()
270 if (ferror(stdin)) { in get_tty_line()

1234567891011