Home
last modified time | relevance | path

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

1234567891011

/freebsd-14.2/usr.sbin/nscd/
H A Dlog.c62 char *ferror; in __log_err() local
64 ferror = NULL; in __log_err()
66 vasprintf(&ferror, error, ap); in __log_err()
68 assert(ferror != NULL); in __log_err()
70 printf("E%d from %s: %s\n", level, sender, ferror); in __log_err()
74 syslog(LOG_ERR, "nscd error (from %s): %s", sender, ferror); in __log_err()
76 free(ferror); in __log_err()
/freebsd-14.2/lib/libc/stdio/
H A DMakefile.inc8 feof.c ferror.c fflush.c fgetc.c fgetln.c fgetpos.c fgets.c fgetwc.c \
36 MAN+= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fgetwln.3 fgetws.3 \
46 MLINKS+=ferror.3 ferror_unlocked.3 \
47 ferror.3 clearerr.3 ferror.3 clearerr_unlocked.3 \
48 ferror.3 feof.3 ferror.3 feof_unlocked.3 \
49 ferror.3 fileno.3 ferror.3 fileno_unlocked.3
H A Dferror.c43 #undef ferror
47 ferror(FILE *fp) in ferror() function
/freebsd-14.2/lib/libc/tests/stdio/
H A Dgetdelim_test.c110 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
131 ATF_REQUIRE(ferror(stdout)); in ATF_TC_BODY()
147 ATF_REQUIRE(ferror(fp)); in ATF_TC_BODY()
172 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
200 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
224 ATF_REQUIRE(!ferror(fp)); in ATF_TC_BODY()
352 ATF_REQUIRE(ferror(fp)); in _nonblock_eagain()
370 ATF_REQUIRE(ferror(fp)); in _nonblock_eagain()
378 ATF_REQUIRE(!ferror(fp)); in _nonblock_eagain()
386 ATF_REQUIRE(ferror(fp)); in _nonblock_eagain()
[all …]
/freebsd-14.2/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-14.2/usr.bin/xstr/
H A Dxstr.c170 if (ferror(stdin)) in process()
223 if (ferror(stdout)) in process()
253 if (ferror(stdin)) in yankstr()
319 return ((feof(file) || ferror(file)) ? 0 : 1); in fgetNUL()
389 if (ferror(mesgwrit)) in flushsh()
443 if (ferror(strf)) { in xsdotc()
/freebsd-14.2/usr.bin/tail/
H A Dforward.c117 if (ferror(fp)) { in forward()
129 if (ferror(fp)) { in forward()
148 if (ferror(fp)) { in forward()
167 if (ferror(fp)) { in forward()
182 if (ferror(fp)) { in forward()
255 if (ferror(file->fp)) { in show()
/freebsd-14.2/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-14.2/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-14.2/sys/contrib/openzfs/lib/libshare/
H A Dnfs.c211 if (ferror(oldfp) != 0) in nfs_process_exports()
212 error = ferror(oldfp); in nfs_process_exports()
245 if (error == SA_OK && ferror(newfp) != 0) in nfs_copy_entries()
246 error = ferror(newfp); in nfs_copy_entries()
/freebsd-14.2/bin/cat/
H A Dcat.c327 if (ferror(stdout)) in cook_cat()
331 if (ferror(stdout)) in cook_cat()
352 if (ferror(fp) && errno == EILSEQ) { in cook_cat()
384 if (ferror(fp)) { in cook_cat()
389 if (ferror(stdout)) in cook_cat()
/freebsd-14.2/stand/liblua/
H A Dlstd.h63 #define ferror lua_loader_ferror macro
75 int ferror(FILE *stream);
/freebsd-14.2/usr.bin/comm/
H A Dcomm.c129 if (n1 < 0 && ferror(fp1)) in main()
137 if (n2 < 0 && ferror(fp2)) in main()
226 if (ferror(fp)) in show()
/freebsd-14.2/contrib/libpcap/
H A Dsf-pcap.c259 if (ferror(fp)) { in pcap_check_header()
535 if (ferror(fp)) { in pcap_next_packet()
689 if (ferror(fp)) { in pcap_next_packet()
720 if (ferror(fp)) { in pcap_next_packet()
772 if (ferror(fp)) { in pcap_next_packet()
842 if (ferror(f)) in pcap_dump()
1069 if (ferror(f)) { in pcap_dump_open_append()
1267 if (ferror((FILE *)p)) in pcap_dump_close()
/freebsd-14.2/usr.bin/tr/
H A Dtr.c145 if (ferror(stdin)) in main()
163 if (ferror(stdin)) in main()
180 if (ferror(stdin)) in main()
338 if (ferror(stdin)) in main()
/freebsd-14.2/usr.bin/random/
H A Drandom.c179 if (ferror(stdout)) in main()
182 if (ferror(stdin)) in main()
/freebsd-14.2/usr.bin/mail/
H A Dquit.c223 if (ferror(obuf)) { in quit()
269 if (ferror(obuf)) in quit()
277 if (ferror(obuf)) { in quit()
368 if (ferror(obuf)) { in writeback()
480 if (ferror(obuf)) { in edstop()
H A Dsend.c178 if (ferror(obuf)) in sendmessage()
204 if (ferror(obuf)) in sendmessage()
481 if (ferror(fi)) { in infix()
487 if (ferror(nfo)) { in infix()
585 if (ferror(fo)) in savemail()
H A Dedit.c120 if (ferror(otf)) in edit1()
167 if (ferror(nf)) { in run_editor()
/freebsd-14.2/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-14.2/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-14.2/usr.bin/cmp/
H A Dspecial.c115 eof: if (ferror(fp1)) in c_special()
117 if (ferror(fp2)) in c_special()
/freebsd-14.2/usr.bin/locate/code/
H A Dlocate.code.c137 if (!feof(fp) || ferror(fp)) in main()
233 if (fflush(stdout) != 0 || ferror(stdout)) in main()
/freebsd-14.2/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-14.2/bin/ed/
H A Dio.c116 while (((c = getc(fp)) != EOF || (!feof(fp) && !ferror(fp))) && in get_stream_line()
125 else if (ferror(fp)) { in get_stream_line()
268 if (ferror(stdin)) { in get_tty_line()

1234567891011