bin/cat/cat.c
313
if (ferror(stdout))
bin/cat/cat.c
317
if (ferror(stdout))
bin/cat/cat.c
338
if (ferror(fp) && errno == EILSEQ) {
bin/cat/cat.c
370
if (ferror(fp)) {
bin/cat/cat.c
375
if (ferror(stdout))
bin/ed/io.c
118
while (((c = getc(fp)) != EOF || (!feof(fp) && !ferror(fp))) &&
bin/ed/io.c
127
else if (ferror(fp)) {
bin/ed/io.c
270
if (ferror(stdin)) {
bin/pax/options.c
1488
get_line_error = ferror(f) ? GETLINE_FILE_CORRUPT : 0;
bin/setfacl/file.c
64
if (ferror(file) != 0) {
bin/sh/mknodes.c
245
if (ferror(hfile))
bin/sh/mknodes.c
263
if (ferror(cfile))
crypto/heimdal/appl/ftp/ftp/ftp.c
1109
if (ferror (fout))
crypto/heimdal/appl/ftp/ftp/ftp.c
1136
if (ferror (din)) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1141
if (ferror (fout))
crypto/heimdal/appl/ftp/ftp/ftp.c
825
if (ferror (dout))
crypto/heimdal/appl/ftp/ftp/ftp.c
840
if (ferror (fin))
crypto/heimdal/appl/ftp/ftp/ftp.c
842
if (ferror (dout)) {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
283
if (feof(cfile) || ferror(cfile))
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1361
if (ferror(instr))
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1363
if (ferror(outstr))
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1532
if (ferror(instr))
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1534
if (ferror(outstr))
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1577
if (ferror(stdout)){
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1583
if (ferror(fin)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2323
else if (ferror(dout) != 0)
crypto/heimdal/appl/login/read_string.c
93
if(!ferror(tty))
crypto/heimdal/appl/telnet/telnet/commands.c
2390
if (feof(stdin) || ferror(stdin)) {
crypto/heimdal/kadmin/util.c
595
if(ferror(stdin))
crypto/heimdal/lib/asn1/lex.c
956
if ( c == EOF && ferror( yyin ) ) \
crypto/heimdal/lib/asn1/lex.c
963
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
crypto/heimdal/lib/com_err/lex.c
633
if ( c == EOF && ferror( yyin ) ) \
crypto/heimdal/lib/com_err/lex.c
640
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
crypto/heimdal/lib/krb5/replay.c
231
if(ferror(f)){
crypto/heimdal/lib/roken/environment.c
119
if(ferror(F))
crypto/heimdal/lib/roken/getcap.c
744
if (ferror(pfp)) {
crypto/heimdal/lib/roken/getcap.c
803
if (ferror(pfp)) {
crypto/heimdal/lib/sl/slc-lex.c
612
if ( c == EOF && ferror( yyin ) ) \
crypto/heimdal/lib/sl/slc-lex.c
619
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
crypto/krb5/src/lib/krb5/ccache/cc_file.c
152
return ferror(fp) ? errno : KRB5_CC_END;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
273
if (ferror(ifp) && errno == EINTR) {
crypto/openssh/authfile.c
510
if (ferror(f)) {
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_misc.c
43
ASSERT_INT_EQ(ferror(out), 0);
crypto/openssh/ssh-keyscan.c
832
if (ferror(fp))
crypto/openssh/sshsig.c
1066
if (ferror(f) != 0) {
crypto/openssl/crypto/bio/bio_local.h
163
#define UP_ferror ferror
crypto/openssl/crypto/bio/bss_file.c
148
: ferror((FILE *)b->ptr))) {
crypto/openssl/crypto/rand/randfile.c
154
if (ferror(in) && errno == EINTR) {
crypto/openssl/crypto/ui/ui_openssl.c
342
if (ferror(tty_in))
crypto/openssl/demos/http3/ossl-nghttp3-demo.c
61
if (ferror(stdout))
crypto/openssl/ms/applink.c
78
return ferror(fp);
include/stdio.h
269
int ferror(FILE *);
include/stdio.h
507
#define ferror(p) (!__isthreaded ? __sferror(p) : (ferror)(p))
lib/libc/gen/getcap.c
664
hadreaderr = ferror(pfp);
lib/libc/gen/getcap.c
728
hadreaderr = ferror(pfp);
lib/libc/tests/gen/popen_test.c
105
bool input_error_1 = !(fgetc(fp) != EOF || !feof(fp) || !ferror(fp));
lib/libc/tests/gen/popen_test.c
171
ATF_CHECK_MSG(ferror(fp) && errno == EPIPE, "Expected EPIPE");
lib/libc/tests/stdio/getdelim_test.c
110
ATF_REQUIRE(!ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
131
ATF_REQUIRE(ferror(stdout));
lib/libc/tests/stdio/getdelim_test.c
147
ATF_REQUIRE(ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
172
ATF_REQUIRE(!ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
200
ATF_REQUIRE(!ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
224
ATF_REQUIRE(!ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
352
ATF_REQUIRE(ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
370
ATF_REQUIRE(ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
378
ATF_REQUIRE(!ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
386
ATF_REQUIRE(ferror(fp));
lib/libc/tests/stdio/getdelim_test.c
393
ATF_REQUIRE(!ferror(fp));
lib/libc/tests/stdio/open_memstream2_test.c
136
else if (!ferror(fp))
lib/libc/tests/stdio/open_wmemstream_test.c
136
else if (!ferror(fp))
lib/libcompat/4.3/rexec.c
99
if (feof(cfile) || ferror(cfile))
lib/libutil++/stringf.cc
39
if (ferror(fp.get()))
sbin/camcontrol/modeedit.c
580
if (ferror(pagedb))
sbin/camcontrol/modeedit.c
933
return (ferror(file)? -1: 0);
sbin/devfs/rule.c
284
if (ferror(stdin))
sbin/md5/md5.c
746
if (ferror(f)) {
sbin/recoverdisk/recoverdisk.c
345
if (ferror(file) || fdatasync(fileno(file)) || fclose(file))
sbin/restore/dirs.c
585
if (ferror(mf)) {
sbin/restore/dirs.c
604
if (ferror(mf)) {
sbin/restore/dirs.c
613
if (ferror(mf)) {
sbin/restore/symtab.c
506
if (ferror(fd)) {
sbin/restore/tape.c
332
if (yflag || ferror(terminal) || feof(terminal))
sbin/routed/trace.c
209
if (ferror(ftrace))
sbin/routed/trace.c
210
trace_off("tracing off: %s", strerror(ferror(ftrace)));
stand/ficl/fileaccess.c
292
pushIor(pVM, ferror(ff->f) == 0);
stand/ficl/fileaccess.c
317
error = ferror(ff->f);
stand/ficl/fileaccess.c
346
pushIor(pVM, ferror(ff->f) == 0);
stand/ficl/fileaccess.c
360
pushIor(pVM, ferror(ff->f) == 0);
stand/liblua/lstd.h
75
int ferror(FILE *stream);
tools/build/bootstrap-m4/inittokenizer.c
615
if ( c == EOF && ferror( yyin ) ) \
tools/build/bootstrap-m4/inittokenizer.c
622
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
tools/regression/gaithrstress/gaithrstress.c
161
if (ferror(fp) || fseek(fp, 0, SEEK_SET) != 0)
tools/tools/fixwhite/fixwhite.c
138
if (c == EOF && ferror(stdin)) {
usr.bin/asa/asa.c
140
if (ferror(stdout) != 0)
usr.bin/at/at.c
424
if (ferror(fp))
usr.bin/at/at.c
427
if (ferror(stdin))
usr.bin/bintrans/uuencode.c
240
if (ferror(stdin))
usr.bin/cmp/special.c
108
eof: if (ferror(fp1))
usr.bin/cmp/special.c
110
if (ferror(fp2))
usr.bin/col/col.c
326
if (ferror(stdin))
usr.bin/colrm/colrm.c
125
if (ferror(stream))
usr.bin/comm/comm.c
116
if (n1 < 0 && ferror(fp1))
usr.bin/comm/comm.c
124
if (n2 < 0 && ferror(fp2))
usr.bin/comm/comm.c
175
if (ferror(stdout) != 0 || fflush(stdout) != 0)
usr.bin/comm/comm.c
217
if (ferror(fp))
usr.bin/compress/compress.c
218
if (ferror(ifp) || fclose(ifp)) {
usr.bin/compress/compress.c
322
if (ferror(ifp) || fclose(ifp)) {
usr.bin/csplit/csplit.c
286
if (ferror(src))
usr.bin/csplit/csplit.c
329
if (ferror(ofp))
usr.bin/ctags/ctags.c
225
if (ferror(stdout) != 0 || fflush(stdout) != 0)
usr.bin/cut/cut.c
360
if (ferror(fp)) {
usr.bin/diff/diffreg.c
409
if (ferror(f1))
usr.bin/diff/diffreg.c
411
if (ferror(f2))
usr.bin/diff/diffreg.c
506
if ((i = fread(buf1, 1, sizeof(buf1), f1)) == 0 && ferror(f1))
usr.bin/diff/diffreg.c
508
if ((j = fread(buf2, 1, sizeof(buf2), f2)) == 0 && ferror(f2))
usr.bin/expand/expand.c
146
if (ferror(stdin)) {
usr.bin/factor/factor.c
137
if (ferror(stdin))
usr.bin/fetch/fetch.c
771
if (ferror(f) && errno == EINTR && !sigint)
usr.bin/fetch/fetch.c
780
if (ferror(of) && errno == EINTR && !sigint)
usr.bin/fetch/fetch.c
789
sigalrm = ferror(f) && errno == ETIMEDOUT;
usr.bin/fetch/fetch.c
827
if (ferror(f))
usr.bin/fetch/fetch.c
829
if (ferror(of))
usr.bin/fetch/fetch.c
831
if (ferror(f) || ferror(of))
usr.bin/finger/net.c
197
if (ferror(fp)) {
usr.bin/fmt/fmt.c
413
if (ferror(f)) {
usr.bin/fmt/fmt.c
529
if (ferror(stream)) {
usr.bin/fmt/fmt.c
710
if (ferror(stream)) {
usr.bin/grep/grep.c
296
if (ferror(f))
usr.bin/gzip/gzip.c
1542
error = ferror(in);
usr.bin/gzip/unlz.c
169
return ferror(rd->fp) ? -1 : 0;
usr.bin/gzip/unlz.c
437
while (!feof(lz->fin) && !ferror(lz->fin)) {
usr.bin/hexdump/display.c
282
if (ferror(stdin))
usr.bin/join/join.c
470
if (ferror(stdout))
usr.bin/join/join.c
506
if (ferror(stdout))
usr.bin/join/join.c
516
if (!ferror(stdout)) {
usr.bin/join/join.c
526
if (ferror(stdout))
usr.bin/lam/lam.c
216
if (ferror(ip->fp))
usr.bin/lastcomm/readrec.c
202
return (ferror(f) ? EOF : 0);
usr.bin/lastcomm/readrec.c
62
else if (ferror(f) || rv == 0)
usr.bin/lex/initscan.c
2118
if ( c == EOF && ferror( yyin ) ) \
usr.bin/lex/initscan.c
2125
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
usr.bin/locate/bigram/locate.bigram.c
86
if (!feof(stdin) || ferror(stdin))
usr.bin/locate/code/locate.code.c
125
if (!feof(fp) || ferror(fp))
usr.bin/locate/code/locate.code.c
221
if (fflush(stdout) != 0 || ferror(stdout))
usr.bin/login/login.c
883
if (ch != EOF || ferror(f)) {
usr.bin/m4/misc.c
423
if (ferror(f->file))
usr.bin/mail/cmd2.c
196
if (ferror(obuf))
usr.bin/mail/collect.c
524
if (ferror(of)) {
usr.bin/mail/edit.c
114
if (ferror(otf))
usr.bin/mail/edit.c
161
if (ferror(nf)) {
usr.bin/mail/fio.c
110
if (ferror(otf))
usr.bin/mail/fio.c
168
if (ferror(obuf))
usr.bin/mail/names.c
332
if (ferror(fout)) {
usr.bin/mail/names.c
393
if (ferror(fout)) {
usr.bin/mail/quit.c
217
if (ferror(obuf)) {
usr.bin/mail/quit.c
263
if (ferror(obuf))
usr.bin/mail/quit.c
271
if (ferror(obuf)) {
usr.bin/mail/quit.c
362
if (ferror(obuf)) {
usr.bin/mail/quit.c
474
if (ferror(obuf)) {
usr.bin/mail/send.c
172
if (ferror(obuf))
usr.bin/mail/send.c
198
if (ferror(obuf))
usr.bin/mail/send.c
477
if (ferror(fi)) {
usr.bin/mail/send.c
483
if (ferror(nfo)) {
usr.bin/mail/send.c
581
if (ferror(fo))
usr.bin/mail/tty.c
223
if (c == EOF && ferror(stdin)) {
usr.bin/mkstr/mkstr.c
319
return ((feof(file) || ferror(file)) ? 0 : 1);
usr.bin/msgs/msgs.c
361
if (feof(stdin) || ferror(stdin))
usr.bin/msgs/msgs.c
376
exit(ferror(stdin));
usr.bin/msgs/msgs.c
645
if (ferror(outf)) {
usr.bin/ncal/ncal.c
504
if (ferror(stdout) != 0 || fflush(stdout) != 0)
usr.bin/nl/nl.c
344
if (ferror(stdout))
usr.bin/nl/nl.c
350
if (ferror(stdin))
usr.bin/patch/inp.c
313
if (ferror(ifp))
usr.bin/patch/patch.c
1054
rv = ferror(ofp) == 0 && fclose(ofp) == 0;
usr.bin/patch/patch.c
355
if (ferror(ofp) || fclose(ofp)) {
usr.bin/patch/patch.c
447
if (ferror(rejfp) || fclose(rejfp)) {
usr.bin/patch/pch.c
117
if (ferror(pfp) || fclose(pfp))
usr.bin/primes/primes.c
172
if (ferror(stdin))
usr.bin/random/random.c
167
if (ferror(stdout))
usr.bin/random/random.c
170
if (ferror(stdin))
usr.bin/rev/rev.c
86
if (ferror(fp)) {
usr.bin/sdiff/edit.c
180
(ferror(file) || !feof(file))) {
usr.bin/sdiff/sdiff.c
472
if (ferror(f1)) {
usr.bin/sdiff/sdiff.c
476
if (ferror(f2)) {
usr.bin/sdiff/sdiff.c
695
if (ferror(file))
usr.bin/sed/process.c
575
if (ferror(outfile))
usr.bin/sed/process.c
656
if (ferror(outfile))
usr.bin/sort/sort.c
247
if (ferror(f))
usr.bin/split/split.c
313
if ((len == -1 && errno != 0) || ferror(infp))
usr.bin/tail/forward.c
114
if (ferror(fp)) {
usr.bin/tail/forward.c
126
if (ferror(fp)) {
usr.bin/tail/forward.c
145
if (ferror(fp)) {
usr.bin/tail/forward.c
164
if (ferror(fp)) {
usr.bin/tail/forward.c
179
if (ferror(fp)) {
usr.bin/tail/forward.c
252
if (ferror(file->fp)) {
usr.bin/tail/read.c
174
if (ferror(fp)) {
usr.bin/tail/read.c
81
if (ferror(fp)) {
usr.bin/tail/reverse.c
220
if (ferror(fp)) {
usr.bin/tr/tr.c
134
if (ferror(stdin))
usr.bin/tr/tr.c
152
if (ferror(stdin))
usr.bin/tr/tr.c
169
if (ferror(stdin))
usr.bin/tr/tr.c
361
if (ferror(stdin))
usr.bin/tsort/tsort.c
173
if (ferror(stdout) != 0 || fflush(stdout) != 0)
usr.bin/ul/ul.c
305
if (ferror(f))
usr.bin/unexpand/unexpand.c
185
if (ferror(stdin)) {
usr.bin/uniq/uniq.c
179
if (ferror(ifp))
usr.bin/uniq/uniq.c
237
if (ferror(ifp))
usr.bin/xstr/xstr.c
160
if (ferror(stdin))
usr.bin/xstr/xstr.c
213
if (ferror(stdout))
usr.bin/xstr/xstr.c
243
if (ferror(stdin))
usr.bin/xstr/xstr.c
309
return ((feof(file) || ferror(file)) ? 0 : 1);
usr.bin/xstr/xstr.c
379
if (ferror(mesgwrit))
usr.bin/xstr/xstr.c
433
if (ferror(strf)) {
usr.sbin/chkgrp/chkgrp.c
185
if (ferror(gf))
usr.sbin/ckdist/ckdist.c
210
if (ferror(fp))
usr.sbin/cron/crontab/crontab.c
533
if (ferror(tmp)) {
usr.sbin/crunch/crunchgen/crunchgen.c
339
if (ferror(cf)) {
usr.sbin/cxgbetool/cxgbetool.c
3821
if (ferror(stdin)) {
usr.sbin/kldxref/kldxref.c
406
if (ferror(fp) != 0) {
usr.sbin/lpr/pac/pac.c
300
if (ferror(acctf)) {
usr.sbin/makefs/cd9660/cd9660_write.c
354
if (ferror(fd)) {
usr.sbin/makefs/cd9660/cd9660_write.c
448
if (ferror(rf)) {
usr.sbin/makefs/cd9660/cd9660_write.c
456
if (ferror(fd)) {
usr.sbin/makefs/mtree.c
1087
error = ferror(fp) ? errno : -1;
usr.sbin/makefs/mtree.c
311
return (ferror(fp) ? errno : -1);
usr.sbin/makefs/mtree.c
326
return (ferror(fp) ? errno : -1);
usr.sbin/makefs/mtree.c
349
error = ferror(fp) ? errno : -1;
usr.sbin/newsyslog/newsyslog.c
2689
if (ferror(src))
usr.sbin/ngctl/main.c
255
if (ferror(fp))
usr.sbin/ngctl/main.c
565
if (ferror(fp))
usr.sbin/ngctl/write.c
95
if (ferror(fp))
usr.sbin/nscd/log.c
62
char *ferror;
usr.sbin/nscd/log.c
64
ferror = NULL;
usr.sbin/nscd/log.c
66
vasprintf(&ferror, error, ap);
usr.sbin/nscd/log.c
68
assert(ferror != NULL);
usr.sbin/nscd/log.c
70
printf("E%d from %s: %s\n", level, sender, ferror);
usr.sbin/nscd/log.c
74
syslog(LOG_ERR, "nscd error (from %s): %s", sender, ferror);
usr.sbin/nscd/log.c
76
free(ferror);
usr.sbin/nscd/nscd.c
688
if (ferror(pidfin) != 0)
usr.sbin/pciconf/pciconf.c
1166
if (ferror(db))
usr.sbin/pkg/pkg.c
324
if (ferror(remote))
usr.sbin/pkg/pkg.c
492
if (ferror(fp))
usr.sbin/pmcstat/pmcstat_log.c
289
if (feof(image->pi_addr2line) || ferror(image->pi_addr2line)) {
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c
663
if (ferror(fp) || fclose(fp) != 0)
usr.sbin/setfmac/setfmac.c
251
if (ferror(fp))
usr.sbin/spi/spi.c
635
if (err || ferror(stdin)) {
usr.sbin/traceroute/as.c
152
if(feof(asn->as_f) || ferror(asn->as_f)) {
usr.sbin/usbconfig/dump.c
431
if (ferror(db))