bin/cat/cat.c
250
if (fstat(STDOUT_FILENO, &ost))
bin/cat/cat.c
258
if (fstat(rfd, &rst))
bin/cp/utils.c
295
if (fdval ? fstat(fd, &ts) :
bin/cpdup/md5.c
271
if (fstat(fd, &st) < 0) {
bin/dd/dd.c
267
if (fstat(io->fd, &sb) == -1)
bin/pax/ar_io.c
159
if (fstat(arfd, &arsb) < 0) {
bin/pax/ar_io.c
325
if (can_unlnk && (fstat(arfd, &arsb) == 0) && (S_ISREG(arsb.st_mode)) &&
bin/pax/buf_subs.c
630
else if (fstat(ifd, &sb) < 0)
bin/pax/buf_subs.c
676
if (fstat(ofd, &sb) == 0) {
bin/pax/buf_subs.c
771
if (fstat(fd2, &sb) == 0) {
bin/pax/buf_subs.c
802
else if (fstat(fd1, &sb) < 0)
bin/pax/file_subs.c
958
else if (fstat(fd, &sb) < 0)
bin/sh/redir.c
207
if (fstat(f, &sb) != -1 && S_ISREG(sb.st_mode)) {
bin/stty/util.c
57
!fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) &&
crypto/libressl/tls/tls_client.c
175
if (fstat(sfd, &sb) == -1) {
crypto/libressl/tls/tls_config.c
56
if (fstat(fd, &st) != 0) {
crypto/libressl/tls/tls_config.c
713
if (fstat(session_fd, &sb) == -1) {
crypto/libressl/tls/tls_util.c
169
if (fstat(fd, &st) != 0)
crypto/openssh/auth-rhosts.c
70
if (fstat(fd, &st) == -1) {
crypto/openssh/auth2-pubkeyfile.c
461
if (fstat(fd, &st) == -1) {
crypto/openssh/auth2.c
115
if (fstat(fd, &st) == -1) {
crypto/openssh/authfile.c
94
if (fstat(fd, &st) == -1)
crypto/openssh/loginrec.c
1103
if (fstat(fd, &buf) == 0)
crypto/openssh/loginrec.c
1197
if (fstat(fd, &st) != 0) {
crypto/openssh/loginrec.c
1276
if (fstat(fd, &buf) == 0)
crypto/openssh/loginrec.c
1362
if (fstat(fd, &st) != 0) {
crypto/openssh/loginrec.c
1681
if (fstat(fd, &fst) < 0) {
crypto/openssh/misc.c
2303
if (fstat(fd, &st) == -1) {
crypto/openssh/misc.c
3070
if (fstat(fd, &st) != 0) {
crypto/openssh/readconf.c
2462
if (fstat(fileno(f), &sb) == -1)
crypto/openssh/scp.c
1414
if (fstat(fd, &stb) == -1) {
crypto/openssh/scp.c
2233
if (fstat(fd, &stb) == -1) {
crypto/openssh/servconf.c
2721
if (fstat(fileno(f), &st) == 0 && st.st_size > 0 &&
crypto/openssh/sftp-client.c
1657
if (fstat(local_fd, &st) == -1) {
crypto/openssh/sftp-client.c
2058
if (fstat(local_fd, &sb) == -1) {
crypto/openssh/sftp-server.c
949
r = fstat(fd, &st);
crypto/openssh/sshbuf-io.c
44
if (fstat(fd, &st) == -1)
games/boggle/boggle/word.c
131
if (fstat(fileno(fp), &statb) < 0) {
games/hack/hack.unix.c
213
if (fstat(fd, &buf)) {
games/hack/hack.unix.c
231
if (fstat(fd, &buf))
games/hangman/setup.c
75
fstat(fileno(Dict), &sbuf);
games/larn/diag.c
224
if (fstat(io_outfd, &statbuf) < 0)
games/larn/diag.c
309
fstat(io_infd, &filetimes);
games/larn/scores.c
710
if (fstat(io_infd, &stbuf) < 0) {
games/mille/save.c
153
if (fstat(inf, &sbuf) < 0) { /* get file stats */
games/monop/execute.c
364
if (fstat(fileno(inf), &sbuf) < 0) {
lib/libc/db/test/dbtest.c
657
fstat(fd, &sb))
lib/libcompat/4.3/rexec.c
202
fstat(fileno(cfile), &stb) >= 0 &&
lib/libcompat/4.3/rexec.c
216
if (fstat(fileno(cfile), &stb) >= 0
lib/libdmsg/crypto.c
481
fstat(fd, &st) < 0 || /* something wrong */
lib/libdmsg/msg.c
154
if (fstat(sock_fd, &st) < 0)
lib/libevtr/evtr.c
1864
if (fstat(fd, &st))
lib/libexecinfo/private_libelf.h
2862
if (fstat(fd, &sb) < 0) {
lib/libkvm/kvm.c
183
if (fstat(kd->pmfd, &st) < 0) {
lib/libpam/modules/pam_nologin/pam_nologin.c
108
if (fstat(fd, &st) == 0) {
lib/librt/aio.c
222
if (fstat(fildes, &sb)) {
lib/libutil/flopen.c
81
if (fstat(fd, &fsb) == -1) {
lib/libutil/gr_util.c
111
if (fstat(lockfd, &st) == -1)
lib/libutil/pidfile.c
155
if (fstat(fd, &sb) == -1) {
lib/libutil/pidfile.c
61
if (fstat(pfh->pf_fd, &sb) == -1)
lib/libutil/pw_util.c
190
if (fstat(lockfd, &st) == -1)
libexec/atrun/atrun.c
197
if (fstat(fd_in, &buf) == -1)
libexec/atrun/atrun.c
255
fstat(fd_out, &buf);
libexec/bootpd/readfile.c
366
if (fstat(fileno(fp), &st) < 0) {
libexec/dma/spool.c
100
if (fstat(fd, &st) != 0)
libexec/ftpd/ftpcmd.y
1627
if (fstat(fileno(fin), &stbuf) < 0) {
libexec/ftpd/ftpd.c
1646
if (fstat(fileno(fin), &st) < 0) {
libexec/ftpd/site_md5.c
55
if (fstat(fd, &st) < 0) {
libexec/rtld-elf/libmap.c
126
if (fstat(fd, &st) == -1) {
libexec/rtld-elf/rtld.c
2193
if (fstat(fd, &sb) == -1) {
libexec/utmp_update/utmp_update.c
129
if (fstat(fd, &st) == -1)
sbin/devfsctl/devfsctl.c
572
if (fstat(fileno(fd), &sb) != 0) {
sbin/disklabel32/disklabel.c
598
if (fstat(b, &sb) != 0)
sbin/disklabel32/disklabel.c
608
if (fstat(b, &sb) != 0)
sbin/disklabel64/disklabel64.c
1484
} else if (fstat(f, &st) == 0) {
sbin/disklabel64/disklabel64.c
615
if (fstat(fd, &st) < 0)
sbin/disklabel64/disklabel64.c
625
if (fstat(fd, &st) < 0)
sbin/dump/main.c
339
if (fstat(diskfd, &sb) != 0)
sbin/dump/tape.c
345
if (fstat(tapefd, &sb) == 0 && S_ISFIFO(sb.st_mode)) {
sbin/fdisk/fdisk.c
506
fstat(boot_fd, &sb) == -1)
sbin/fdisk/fdisk.c
854
if (p_flag && fstat(fd, &st) == 0 && st.st_size) {
sbin/gpt/gpt.c
612
if (fstat(fd, &sb) == -1)
sbin/growfs/growfs.c
2019
if (fstat(fsi, &st) < 0)
sbin/hammer/cmd_config.c
158
if (fstat(fd, &st) < 0) {
sbin/hammer/cycle.c
46
if (fstat(fd, &st) < 0) {
sbin/hammer/ondisk.c
120
if (fstat(volume->fd, &st1) != 0) {
sbin/hammer/ondisk.c
132
if (fstat(scan->fd, &st2) != 0) {
sbin/hammer/ondisk.c
245
if (fstat(volume->fd, &st) < 0) {
sbin/hammer2/cmd_service.c
630
if (fstat(fileno(fp), &st) < 0) {
sbin/hammer2/ondisk.c
216
if (fstat(fd, &st) == -1)
sbin/hammer2/ondisk.c
307
if (fstat(vol->fd, &st[i]) != 0)
sbin/hammer2/subs.c
324
if (fstat(fd, &st) < 0)
sbin/ifconfig/regdomain.c
637
if (fstat(fd, &sb) < 0) {
sbin/jscan/jfile.c
189
if (fstat(fd, &st) == 0 && st.st_size == 0)
sbin/jscan/jfile.c
590
if (jf->jf_write_fd < 0 || fstat(jf->jf_write_fd, &st) != 0) {
sbin/jscan/jscan.c
219
if (fstat(0, &st) < 0 || !S_ISREG(st.st_mode)) {
sbin/ldconfig/elfhints.c
203
if (fstat(fd, &s) == -1)
sbin/md5/md5.c
215
if (fstat(fd, &st) == -1) {
sbin/mount_fuse/mount_fusefs.c
167
if (fstat(fd, &st) == -1)
sbin/mountctl/mountctl.c
486
fstat(fd, &st1) == 0 && S_ISREG(st1.st_mode) &&
sbin/newfs/newfs.c
490
if (fstat(fsi, &st) < 0)
sbin/newfs_msdos/mkfs_msdos.c
285
if (fstat(fd, &sb)) {
sbin/newfs_msdos/mkfs_msdos.c
437
if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) {
sbin/newfs_msdos/mkfs_msdos.c
897
if (fstat(fd, &st))
sbin/rcorder/rcorder.c
460
if (fstat(fileno(fp), &st) == -1) {
sbin/restore/symtab.c
544
if (fstat(fd, &stbuf) < 0) {
sbin/routed/parms.c
173
if (0 > fstat(fileno(fp), &sb)) {
share/examples/scsi_target/scsi_target.c
200
if (fstat(file_fd, &st) < 0)
stand/boot/common/ls.c
161
if (fstat(fd, &sb) < 0) {
stand/boot/pc32/btxld/btxld.c
316
if (fstat(fd, &sb))
stand/lib/bzipfs.c
167
if (fstat(rawfd, &sb) < 0) {
stand/lib/bzipfs.c
292
if ((result = fstat(bzf->bzf_rawfd, sb)) == 0)
stand/lib/gzipfs.c
196
if (fstat(rawfd, &sb) < 0) {
stand/lib/gzipfs.c
327
if ((result = fstat(zf->zf_rawfd, sb)) == 0)
stand/lib/splitfs.c
106
if (fstat(conffd, &sb) < 0) {
stand/lib/splitfs.c
287
if ((result = fstat(sf->curfd, sb)) == 0)
stand/lib/stat.c
45
rv = fstat(fd, sb);
sys/dev/virtual/vkernel/cdrom/vcd.c
130
if (fstat(sc->fd, &st) < 0 || st.st_size == 0)
sys/dev/virtual/vkernel/cdrom/vcd.c
89
if (dsk->fd < 0 || fstat(dsk->fd, &st) < 0)
sys/dev/virtual/vkernel/disk/vdisk.c
102
if (dsk->fd < 0 || fstat(dsk->fd, &st) < 0)
sys/dev/virtual/vkernel/disk/vdisk.c
188
if (fstat(sc->fd, &st) < 0)
sys/libprop/prop_object.c
922
if (fstat(fd, &sb) == -1) {
sys/platform/vkernel64/platform/init.c
1084
if (fstat(tap_fd, &st) < 0) {
sys/platform/vkernel64/platform/init.c
1145
if (fstat(net_fd, &st) == 0)
sys/platform/vkernel64/platform/init.c
874
if (fd < 0 || fstat(fd, &st) < 0) {
sys/sys/stat.h
297
int fstat(int, struct stat *);
sys/sys/sysunion.h
251
struct fstat_args fstat;
test/debug/fdpassing.c
41
if (fstat(fd, &st) < 0)
test/debug/umtx.c
85
if (fstat(fd, &st) < 0) {
test/nvmm/demo/toyvirt/elf.c
107
if (fstat(fd, &st) == -1)
test/stress/fsstress/global.h
77
#define fstat64 fstat
test/stress/fsx/fsx.c
417
if (fstat(fd, &statbuf)) {
test/stress/fsx/fsx.c
439
fstat(fd, &statbuf);
test/stress/stress2/testcases/mmap/mmap.c
90
if (fstat(fdin, &statbuf) < 0)
test/stress/tuxload.c
186
if ((fstat(fd[i], &st[i])) == -1) {
test/sysperf/lockmgr2.c
35
fstat(fd, &st);
test/sysperf/lockmgr2.c
55
fstat(fd, &st);
test/sysperf/lockmgr3.c
34
fstat(fd, &st);
test/sysperf/lockmgr3.c
35
fstat(fd, &st);
test/sysperf/lockmgr3.c
36
fstat(fd, &st);
test/sysperf/lockmgr3.c
37
fstat(fd, &st);
test/sysperf/lockmgr3.c
55
fstat(fd, &st);
test/sysperf/lockmgr3.c
56
fstat(fd, &st);
test/sysperf/lockmgr3.c
57
fstat(fd, &st);
test/sysperf/lockmgr3.c
58
fstat(fd, &st);
tools/multimedia/cxm/extract_fw/cxm_extract_fw.c
136
if (fstat(fd, &statbuf) < 0) {
tools/tools/ath/athdecode/main.c
71
if (fstat(fd, &sb) < 0)
usr.bin/chpass/edit.c
202
fstat(fileno(fp), &sb) == -1) {
usr.bin/cmp/cmp.c
154
if (fstat(fd1, &sb1)) {
usr.bin/cmp/cmp.c
163
if (fstat(fd2, &sb2)) {
usr.bin/crunch/crunchide/exec_elf64.c
148
if (fstat(fd, &sb) == -1)
usr.bin/dc/dc.c
93
if (fstat(fileno(file), &st) == -1)
usr.bin/diff/diff.c
238
fstat(STDIN_FILENO, &stb1);
usr.bin/diff/diff.c
243
fstat(STDIN_FILENO, &stb2);
usr.bin/diff/diffreg.c
317
fstat(fileno(f1), &stb1) == -1) {
usr.bin/diff/diffreg.c
338
fstat(fileno(f2), &stb2) == -1) {
usr.bin/dsynth/build.c
2839
strerror(errno), fstat(fdlog, &st));
usr.bin/dsynth/dsynth.c
549
if (fstat(lkfd, &st) < 0 || st.st_size == 0)
usr.bin/dsynth/dsynth.c
565
if (fstat(lkfd, &st) < 0 || st.st_size == 0)
usr.bin/fetch/fetch.c
679
if (fstat(fileno(of), &nsb) == -1) {
usr.bin/finger/lprint.c
297
if ((fd = open(tbuf, O_RDONLY)) < 0 || fstat(fd, &sb) ||
usr.bin/gzip/gzip.c
1191
if (fstat(in, &isb) == 0) {
usr.bin/gzip/gzip.c
1248
if (fstat(out, &osb) != 0) {
usr.bin/gzip/gzip.c
1372
if (fstat(fd, &isb) != 0)
usr.bin/gzip/gzip.c
1515
if (fstat(ofd, &osb) != 0) {
usr.bin/gzip/gzip.c
1606
if (fstat(STDIN_FILENO, &isb) < 0) {
usr.bin/gzip/gzip.c
1688
ret = fstat(STDIN_FILENO, &sb);
usr.bin/hexdump/display.c
336
if (fstat(fileno(stdin), &sb))
usr.bin/ktrace/ktrace.c
131
if (fstat(fd, &sb) != 0 || sb.st_uid != getuid())
usr.bin/last/last.c
336
if ((wfd = open(file, O_RDONLY, 0)) < 0 || fstat(wfd, &stb) == -1)
usr.bin/lastcomm/lastcomm.c
123
fstat(fileno(fp), &sb))
usr.bin/locate/locate/locate.c
277
fstat(fd, &sb) == -1)
usr.bin/look/look.c
138
if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
usr.bin/mail/edit.c
155
if (fstat(fileno(nf), &statb) < 0)
usr.bin/mail/fio.c
303
if (fstat(fileno(iob), &sbuf) < 0)
usr.bin/mail/lex.c
82
if (fstat(fileno(ibuf), &stb) < 0) {
usr.bin/mail/quit.c
107
if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) {
usr.bin/monitor/monitor.c
169
if (VerboseOpt && fstat(kev->ident, &st) == 0 &&
usr.bin/patch/pch.c
125
if (fstat(fileno(pfp), &filestat))
usr.bin/pr/pr.c
1342
if (fstat(fileno(inf), &statbuf) < 0) {
usr.bin/rwall/rwall.c
173
if (fstat(fd, &sbuf))
usr.bin/script/script.c
397
if (fstat(fileno(fp), &pst) == -1)
usr.bin/sdiff/sdiff.c
159
if (fstat(ifd, &sb) == -1)
usr.bin/sort/file.c
640
if (fstat(fd, &stat_buf) < 0) {
usr.bin/sort/sort.c
968
if (fstat(fileno(fp), &st) < 0) {
usr.bin/stat/stat.c
332
rc = fstat(STDIN_FILENO, &st);
usr.bin/tail/forward.c
355
fstat(fileno(file->fp), &file->st)
usr.bin/tail/forward.c
368
fstat(fileno(ftmp), &sb2) == -1) {
usr.bin/tail/tail.c
164
fstat(fileno(filep->fp), &filep->st) == -1) {
usr.bin/tail/tail.c
180
fstat(fileno(fp), &sb) == -1) {
usr.bin/tail/tail.c
200
if (fstat(fileno(stdin), &sb)) {
usr.bin/tcopy/tcopy.c
319
if(fstat(fd, &sp))
usr.bin/touch/touch.c
166
if (fd == -1 || fstat(fd, &sb) || close(fd)) {
usr.bin/truncate/truncate.c
115
if (fstat(fd, &sb) == -1) {
usr.bin/undo/undo.c
576
fstat(fd, &st);
usr.bin/uuencode/uuencode.c
93
if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb))
usr.bin/wall/wall.c
268
if (fstat(fd, &sbuf))
usr.bin/wc/wc.c
230
if (fstat(fd, &sb)) {
usr.bin/xinstall/xinstall.c
711
if (fstat(temp_fd, &temp_sb)) {
usr.bin/xinstall/xinstall.c
789
if (fstat(to_fd, &to_sb) == -1) {
usr.sbin/burncd/burncd.c
305
if (fstat(file, &sb) < 0)
usr.sbin/ckdist/ckdist.c
236
if (fstat(fd, &st) < 0) {
usr.sbin/ckdist/ckdist.c
348
else if (fstat(fd, &sb))
usr.sbin/clog/clog.c
142
if (fstat(fd,&sb)==-1) {
usr.sbin/config/main.c
450
if (!changed && fstat(from_fd, &from_sb) < 0)
usr.sbin/config/main.c
453
if (!changed && fstat(to_fd, &to_sb) < 0)
usr.sbin/cpucontrol/amd.c
123
error = fstat(fd, &st);
usr.sbin/cpucontrol/amd10h.c
155
error = fstat(fd, &st);
usr.sbin/cpucontrol/intel.c
152
error = fstat(fd, &st);
usr.sbin/cpucontrol/via.c
145
error = fstat(fd, &st);
usr.sbin/cron/cron/database.c
203
if (fstat(crontab_fd, statbuf) < OK) {
usr.sbin/cron/crontab/crontab.c
366
if (fstat(t, &fsbuf) < 0) {
usr.sbin/fstyp/fstyp.c
163
error = fstat(fd, &sb);
usr.sbin/inetd/builtins.c
610
if (fakeid_fd == -1 || fstat(fakeid_fd, &sb) == -1 ||
usr.sbin/lpr/common_source/common.c
115
if (fstat(dirfd(dirp), &stbuf) < 0)
usr.sbin/lpr/lpc/cmds.c
1077
fstat(fd, &stbuf);
usr.sbin/lpr/lpd/printjob.c
1091
statrc = fstat(tfd, &stb); /* to find size of tfile */
usr.sbin/lpr/lpd/printjob.c
267
if (fstat(lfd, &stb) == 0) {
usr.sbin/lpr/lpd/printjob.c
609
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 &&
usr.sbin/lpr/lpd/printjob.c
996
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 &&
usr.sbin/makefs/hammer2/hammer2_ioctl.c
1298
} else if (fstat(hmp->devvp->fs->fd, &st) == 0) {
usr.sbin/makefs/hammer2/hammer2_ondisk.c
268
} else if (fstat(vol->dev->devvp->fs->fd, &st) == 0) {
usr.sbin/mfiutil/mfi_flash.c
112
if (fstat(flash, &sb) < 0) {
usr.sbin/moused/moused.c
850
struct kld_file_stat fstat;
usr.sbin/moused/moused.c
857
fstat.version = sizeof(fstat);
usr.sbin/moused/moused.c
858
if (kldstat(fileid, &fstat) < 0)
usr.sbin/moused/moused.c
860
if (strncmp(fstat.name, "uhub/ums", 8) == 0) {
usr.sbin/mtree/hash.c
90
if (fstat(fd, &st) < 0) {
usr.sbin/pfctl/parse.y
5699
if (fstat(fd, &st)) {
usr.sbin/pfctl/pfctl.c
1524
if (fstat(fileno(fp), &st)) {
usr.sbin/pflogd/pflogd.c
325
if (fstat(fileno(fp), &st) == -1) {
usr.sbin/ppp/ether.c
677
if (fstat(p->fd, &st) != -1 && (st.st_mode & S_IFSOCK)) {
usr.sbin/ppp/ipcp.c
192
if (fstat(fd, &st) == 0) {
usr.sbin/ppp/tcp.c
173
if (fstat(p->fd, &st) != -1 && (st.st_mode & S_IFSOCK)) {
usr.sbin/ppp/udp.c
286
if (fstat(p->fd, &st) != -1 && (st.st_mode & S_IFSOCK)) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
186
if (fstat(fileno(fp), &st) < 0)
usr.sbin/rpc.lockd/lockd_lock.c
429
if (fstat(fl->fd, &st) < 0) {
usr.sbin/rwhod/rwhod.c
381
if (fstat(whod, &st) < 0 || st.st_size > cc)
usr.sbin/uefisign/child.c
61
error = fstat(fd, &sb);
usr.sbin/vidcontrol/vidcontrol.c
341
if (fstat(fileno(file), &sb) == 0)
usr.sbin/vknetd/vknetd.c
220
if (fstat(tap_fd, &st) < 0) {
usr.sbin/vnconfig/vnconfig.c
379
if (fd >= 0 && fstat(fd, &st) == 0 && S_ISREG(st.st_mode)) {