bin/cat/cat.c
253
if (fstat(fd, &st) == -1) {
bin/cat/cat.c
297
if (fstat(wfd, &sbuf) == 0 && sbuf.st_blksize > 0 &&
bin/cp/utils.c
283
if (fstat(to_fd, &to_stat)) {
bin/csh/csh.c
795
if (fstat(unit, &stb) < 0) {
bin/dd/dd.c
105
.op_fstat = fstat,
bin/dd/dd_hostops.c
47
.op_fstat = fstat,
bin/ksh/history.c
274
n = fstat(shf_fileno(shf), &statb) < 0 ? 128
bin/ksh/history.c
982
if (fstat(histfd, &statb) >= 0)
bin/ksh/io.c
213
return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
bin/ksh/main.c
323
if (fstat(0, &s_stdin) >= 0 && S_ISCHR(s_stdin.st_mode) &&
bin/pax/ar_io.c
211
if (fstat(arfd, &arsb) < 0) {
bin/pax/ar_io.c
400
if (can_unlnk && (fstat(arfd, &arsb) == 0) && (S_ISREG(arsb.st_mode)) &&
bin/pax/buf_subs.c
626
if (Mflag && (fstat(ifd, &origsb) < 0))
bin/pax/buf_subs.c
653
else if (fstat(ifd, &sb) < 0)
bin/pax/buf_subs.c
701
else if (fstat(ofd, &sb) == 0) {
bin/pax/buf_subs.c
808
if (Mflag && (fstat(fd1, &origsb) < 0)) {
bin/pax/buf_subs.c
817
if (fstat(fd2, &sb) == 0) {
bin/pax/buf_subs.c
851
} else if (fstat(fd1, &sb) < 0) {
bin/pax/dumptar.c
116
if (fstat(fd, &st) == -1)
bin/pax/file_subs.c
1181
else if (fstat(fd, &sb) < 0)
bin/rcp/rcp.c
347
if (fstat(fd, &stb)) {
bin/rcp/util.c
155
if (fstat(fd, &stb) < 0) {
bin/rm/rm.c
409
if (fstat(fd, &sb2)) {
bin/sh/histedit.c
447
if (fstat(fd, &statb) == -1) {
bin/sh/input.c
505
if (fstat(fd, &sb) == 0 && S_ISREG(sb.st_mode) &&
bin/sh/redir.c
415
} else if (fstat(f, &sb) == -1) {
common/dist/zlib/test/minigzip.c
345
if (fstat(ifd, &sb) < 0) return Z_ERRNO;
common/lib/libc/cdb/cdbr.c
132
if (fstat(fd, &sb) == -1) {
common/lib/libprop/prop_intern.c
1009
if (fstat(fd, &sb) == -1) {
dist/pf/sbin/pfctl/pfctl.c
1491
if (fstat(fileno(fp), &st)) {
dist/pf/sbin/pflogd/pflogd.c
342
if (fstat(fileno(fp), &st) == -1) {
distrib/utils/libhack/opendir.c
66
if (fstat(fd, &sb) || !S_ISDIR(sb.st_mode)) {
games/boggle/boggle/word.c
143
if (fstat(fileno(fp), &statb) < 0) {
games/hack/hack.unix.c
218
if (fstat(fd, &buf)) {
games/hack/hack.unix.c
236
if (fstat(fd, &buf))
games/hangman/setup.c
75
fstat(fileno(Dict), &sbuf);
games/larn/diag.c
229
if (fstat(io_outfd, &statbuf) < 0)
games/larn/diag.c
313
fstat(io_infd, &filetimes);
games/larn/scores.c
772
if (fstat(io_infd, &stbuf) < 0) {
games/mille/save.c
160
if (fstat(inf, &sbuf) < 0) { /* get file stats */
games/monop/execute.c
371
if (fstat(fileno(inf), &sbuf) < 0) {
games/phantasia/main.c
341
if (fstat(fileno(Energyvoidfp), &sb) == -1)
games/tetris/scores.c
120
if (fstat(sd, &st) < 0) {
lib/libc/citrus/citrus_mmap.c
67
if (fstat(fd, &st) == -1) {
lib/libc/compat/sys/compat_stat.c
45
__warn_references(fstat,
lib/libc/compat/sys/compat_stat.c
59
__strong_alias(fstat, __compat_fstat)
lib/libc/compat/time/compat_localtime.c
89
int fstat(int, struct stat *) __RENAME(__fstat50);
lib/libc/db/db/dbfile.c
109
if (sb && fstat(fd, sb) == -1)
lib/libc/db/db/dbfile.c
66
if (sb && fstat(fd, sb) == -1)
lib/libc/db/mpool/mpool.c
87
if (fstat(fd, &sb))
lib/libc/db/recno/rec_open.c
151
if (fstat(rfd, &sb))
lib/libc/gen/fts.c
1225
if (fstat(fd, &sb) == -1)
lib/libc/gen/nlist_aout.c
111
N_BADMAG(exec) || fstat(fd, &st) < 0)
lib/libc/gen/nlist_coff.c
103
if (fstat(fd, &st) < 0)
lib/libc/gen/nlist_ecoff.c
88
if (fstat(fd, &st) < 0)
lib/libc/gen/nlist_elf32.c
110
if (fstat(fd, &st) < 0)
lib/libc/gen/opendir.c
99
if (fstat(fd, &sb) == -1)
lib/libc/gen/scandir.c
68
if (fstat(fd, &stb) == -1)
lib/libc/gen/ttyname.c
80
if (fstat(fd, &sb))
lib/libc/gen/ttyslot.c
91
if (fstat(cnt, &st) == -1)
lib/libc/gen/utmp.c
66
if (fstat(fileno(ut), &st) == -1)
lib/libc/gen/utmpx.c
134
if (fstat(fileno(fp), &st) == -1)
lib/libc/hash/hashhl.c
102
if (fstat(fd, &sb) == -1) {
lib/libc/net/rcmd.c
718
else if (fstat(fileno(hostf), &sbuf) < 0)
lib/libc/nls/catopen.c
170
if (fstat(fd, &st) != 0) {
lib/libc/resolv/res_init.c
514
if (fstat(statp->_u._ext.ext->resfd, &st) != -1)
lib/libc/stdio/fdopen.c
97
if (fstat(fd, &st) == -1) {
lib/libc/stdio/fseeko.c
159
__sfileno(fp) == -1 || fstat(__sfileno(fp), &st) ||
lib/libc/stdio/fseeko.c
175
if (fstat(__sfileno(fp), &st))
lib/libc/stdio/makebuf.c
168
if (__sfileno(fp) == -1 || fstat(__sfileno(fp), &st) < 0) {
lib/libc/time/localtime.c
72
# define stat(name, st) fstat(0, st)
lib/libc/time/localtime.c
943
if (!st->st_ctime && fstat(fd, st) < 0) {
lib/libcompat/4.3/ruserpass.c
171
fstat(fileno(cfile), &stb) >= 0 &&
lib/libcompat/4.3/ruserpass.c
184
if (fstat(fileno(cfile), &stb) >= 0
lib/libkvm/kvm.c
357
if (fstat(kd->pmfd, &st) < 0) {
lib/libkvm/kvm_vax.c
88
if (fstat(kd->pmfd, &st) < 0)
lib/libnpf/npf.c
1235
if (fstat(fd, &sb) == -1) {
lib/libnpf/npf.c
272
if (fstat(fd, &st) == -1) {
lib/libossaudio/oss3_mixer.c
270
if (fstat(fd, &sb) < 0)
lib/libossaudio/oss4_mixer.c
97
fstat(fd, &tmpstat);
lib/libpam/modules/pam_nologin/pam_nologin.c
130
if (fstat(fd, &st) < 0) {
lib/libpuffs/framebuf.c
810
if (fstat(fd, &st) == -1)
lib/libquota/quota_oldfiles.c
734
if (fstat(qh->qh_userfile, &st) < 0) {
lib/libquota/quota_oldfiles.c
742
if (fstat(qh->qh_groupfile, &st) < 0) {
lib/librmt/rmtlib.c
801
return fstat(fildes, buf);
lib/librt/shm.c
79
if (fstat(fd, &st) == -1)
lib/libskey/skeylogin.c
489
&& fstat(fd, &sb) == 0 &&
lib/libukfs/ukfs.c
459
if (fstat(devfd, &sb) == -1) {
lib/libutil/logwtmp.c
66
if (fstat(fd, &buf) == 0) {
libexec/atrun/atrun.c
212
if (fstat(fd_in, &buf) == -1)
libexec/atrun/atrun.c
283
if (fstat(fd_out, &buf) == -1)
libexec/ftpd/cmds.c
477
if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
libexec/ftpd/conf.c
910
if (fstat(fd, &sb) == -1)
libexec/ftpd/ftpd.c
1755
&& (fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode))) {
libexec/ftpd/ftpd.c
1813
(fstat(stderrfd, &sb) == 0) && sb.st_size > 0 &&
libexec/ftpd/ftpd.c
2424
else if (fstat(filefd, &st) != -1)
libexec/ftpd/logwtmp.c
126
if (fstat(fdx, &buf) == 0) {
libexec/ftpd/logwtmp.c
94
if (fstat(fd, &buf) == 0) {
libexec/httpd/bozohttpd.c
1217
if (fstat(mapfile, &st) == -1) {
libexec/httpd/bozohttpd.c
1866
if (fstat(fd, &sb) < 0) {
libexec/identd/identd.c
904
if (fstat(fd, &sb) < 0 || !S_ISREG(sb.st_mode)) {
libexec/ld.elf_so/load.c
149
if (fstat(fd, &sb) == -1) {
libexec/ld.elf_so/paths.c
362
if (fstat(fd, &st) == -1) {
libexec/lfs_cleanerd/coalesce.c
136
fstat(fs->clfs_ifilefd, &st);
libexec/lfs_cleanerd/lfs_cleanerd.c
689
if (fstat(fs->clfs_ifilefd, &st) < 0) {
libexec/mail.local/mail.local.c
253
if (fstat(mbfd, &nsb) == -1) {
libexec/makewhatis/makewhatis.c
383
if (fstat(outfd, &st_before) == -1)
libexec/utmp_update/utmp_update.c
139
if (fstat(fd, &st) == -1)
regress/sys/kern/getcwd/old_getcwd.c
169
if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
regress/sys/kern/unfdpass/unfdpass.c
285
fstat(files[i], &st);
sbin/blkdiscard/blkdiscard.c
188
if (size == 0 && fstat(fd, &sb) != -1) {
sbin/disklabel/main.c
684
if (!Fflag && fstat(f, &sb) == 0 && S_ISREG(sb.st_mode))
sbin/dkctl/dkctl.c
456
if (fstat(fd, &sb) == -1)
sbin/dump/snapshot.c
128
if (fstat(fd, &sb) < 0)
sbin/fdisk/fdisk.c
1065
if ((bfd = open(boot_path, O_RDONLY)) < 0 || fstat(bfd, &st) == -1) {
sbin/fdisk/fdisk.c
2609
if (fstat(fd, &st) == -1) {
sbin/fsck_v7fs/fsck_v7fs.c
157
if (fstat(fd, &st)) {
sbin/gpt/biosboot.c
124
if ((bfd = open(bp, O_RDONLY)) < 0 || fstat(bfd, &st) == -1) {
sbin/gpt/gpt.c
528
if (fstat(gpt->fd, &gpt->sb) == -1) {
sbin/ldconfig/ldconfig.c
531
if (fstat(fd, &st) == -1) {
sbin/mount_portal/puffs_portal.c
589
if (fstat(portn->fd, &st) == -1)
sbin/mount_umap/mount_umap.c
156
if (fstat(fileno(fp), &statbuf))
sbin/mount_umap/mount_umap.c
204
if (fstat(fileno(gfp), &statbuf))
sbin/newfs/newfs.c
501
if (fstat(fsi, &sb) == -1)
sbin/newfs/newfs.c
510
if (fsi < 0 || fstat(fsi, &sb) == -1)
sbin/newfs_ext2fs/newfs_ext2fs.c
248
if (fstat(fsi, &sb) == -1)
sbin/newfs_ext2fs/newfs_ext2fs.c
256
if (fsi < 0 || fstat(fsi, &sb) == -1)
sbin/newfs_lfs/newfs.c
309
if (fstat(fsi, &st) < 0)
sbin/newfs_msdos/mkfs_msdos.c
298
fstat(fd, &sb)) {
sbin/newfs_msdos/mkfs_msdos.c
471
if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) {
sbin/newfs_msdos/mkfs_msdos.c
878
if (fstat(fd, &st) == -1) {
sbin/newfs_sysvbfs/newfs_sysvbfs.c
99
if (fstat(fd, &st) != 0) {
sbin/newfs_udf/udf_core.c
3366
if (fstat(dev_fd, &dev_fd_stat) != 0) {
sbin/newfs_udf/udf_core.c
3389
if (fstat(dev_fd, &dev_fd_stat) != 0) {
sbin/newfs_v7fs/newfs_v7fs.c
133
if (fstat(fd, &st) != 0) {
sbin/nvmectl/firmware.c
87
if (fstat(fd, &sb) < 0)
sbin/raidctl/prog_ops.h
54
#define prog_fstat fstat
sbin/raidctl/raidctl.c
151
if (fstat(fd, &st) == -1)
sbin/raidctl/raidctl_hostops.c
46
.op_fstat = fstat,
sbin/rcorder/rcorder.c
421
if (fstat(fileno(fp), &st) == -1) {
sbin/resize_ffs/resize_ffs.c
180
fstat(fd, &stb);
sbin/resize_ffs/resize_ffs.c
189
fstat(fd, &stb);
sbin/resize_ffs/resize_ffs.c
2133
if (fstat(fd, &st) != -1 && S_ISREG(st.st_mode))
sbin/restore/symtab.c
562
if (fstat(fd, &stbuf) < 0) {
sbin/routed/parms.c
188
if (0 > fstat(fileno(fp), &sb)) {
sbin/tunefs/tunefs.c
490
if (fstat(fd, &st0) == -1) {
share/examples/refuse/fanoutfs/fanoutfs.c
173
(void) fstat(fdfrom, &st);
sys/arch/alpha/stand/common/bootxx.c
102
if (fd == -1 || (fstat(fd, &sb) == -1)) {
sys/arch/alpha/stand/mkbootimage/mkbootimage.c
105
if (fstat(infd, &insb) == -1)
sys/arch/alpha/stand/setnetbootinfo/setnetbootinfo.c
171
if (fstat(fd, &sb) == -1)
sys/arch/amiga/stand/bootblock/bootxx_ffs/main.c
102
if (fstat(io, &sb))
sys/arch/atari/stand/binpatch/binpatch.c
215
if (fstat(fd, &sb) == -1)
sys/arch/atari/stand/edahdi/edahdi.c
128
if (fstat(fd, &st) < 0)
sys/arch/evbmips/stand/sbmips/common/bootxx.c
99
if (fd == -1 || (fstat(fd, &sb) == -1)) {
sys/arch/hp300/stand/inst/inst.c
594
if (fstat(sfd, &st) < 0) {
sys/arch/hp300/stand/mkboot/mkboot.c
237
fstat(fd, &statb);
sys/arch/i386/stand/bootxx/boot1.c
125
if (fd == -1 || fstat(fd, &sb) == -1)
sys/arch/i386/stand/lib/exec.c
697
err = fstat(fd, &st);
sys/arch/ia64/stand/common/ls.c
169
if (fstat(fd, &sb) < 0) {
sys/arch/ia64/stand/efi/libefi/efifs_ls.c
139
|| fstat(fd, &sb) < 0
sys/arch/ia64/stand/efi/libefi/efifs_ls.c
164
if (fstat(fd, &sb) < 0) {
sys/arch/landisk/stand/bootxx/boot1.c
104
if (fd == -1 || fstat(fd, &sb) == -1)
sys/arch/macppc/stand/installboot/installboot.c
117
if (fstat(params->s1fd, ¶ms->s1stat) == -1)
sys/arch/macppc/stand/installboot/installboot.c
84
if (fstat(params->fsfd, ¶ms->fsstat) == -1)
sys/arch/mipsco/stand/installboot/installboot.c
175
if (fstat(fd, &bootstrapsb) == -1)
sys/arch/mvme68k/stand/installboot/installboot.c
273
if (fstat(fd, &statbuf) != 0)
sys/arch/pmax/stand/smallnet/setnetimage/setnetimage.c
108
if (fstat(ofd, &osb) == -1)
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
145
fstat(fd, f_stat);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
198
fstat(raw_fd, &raw_stat);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
317
fstat(elf_fd, &elf_stat);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
482
fstat(elf_fd, &elf_stat);
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
713
fstat(elf_fd, &elf_stat);
sys/arch/prep/stand/installboot/installboot.c
90
if (fstat(fd, &st) != 0) {
sys/arch/sandpoint/stand/altboot/main.c
537
if (fstat(fd, &st) == -1 || st.st_size == -1) {
sys/arch/sbmips/stand/common/bootxx.c
99
if (fd == -1 || (fstat(fd, &sb) == -1)) {
sys/arch/sgimips/stand/sgivol/sgivol.c
218
if (fstat(fd, &st) == -1)
sys/arch/usermode/usermode/thunk.c
519
error = fstat(fd, &st);
sys/dev/ic/aic79xx.c
6013
uint8_t fstat;
sys/dev/ic/aic79xx.c
6134
for (i = 20, fstat = FLX_FSTAT_BUSY;
sys/dev/ic/aic79xx.c
6135
(fstat & FLX_FSTAT_BUSY) != 0 && i; i--) {
sys/dev/ic/aic79xx.c
6136
error = ahd_read_flexport(ahd, FLXADDR_FLEXSTAT, &fstat);
sys/dev/microcode/tools/bin2blob.c
84
if (fstat(STDIN_FILENO, &sb) < 0)
sys/lib/libsa/bootcfg.c
123
err = fstat(fd, &st);
sys/lib/libsa/ls.c
103
|| fstat(fd, &sb) < 0
sys/lib/libsa/ls.c
129
if (fstat(fd, &sb) < 0) {
sys/lib/libsa/stand.h
276
int fstat(int, struct stat *);
sys/lib/libsa/stat.c
44
rv = fstat(fd, sb);
sys/rump/librump/rumpkern/rump_syscalls.c
4477
__weak_alias(fstat,rump___sysimpl_fstat30);
sys/rump/librump/rumpkern/rump_syscalls.c
5517
__weak_alias(fstat,rump___sysimpl_fstat50);
sys/stand/efiboot/exec.c
71
if (fstat(fd, &st) < 0) {
sys/stand/ls.c
67
if (fstat(fd, &st) == -1) {
sys/sys/stat.h
248
int fstat(int, struct stat *) __RENAME(__fstat50);
tests/include/t_paths.c
173
if (fstat(fd, &st) == -1) {
tests/kernel/t_memfd_create.c
159
RL(fstat(fd, &st));
tests/kernel/t_memfd_create.c
165
RL(fstat(fd, &st));
tests/kernel/t_memfd_create.c
171
RL(fstat(fd, &st));
tests/kernel/t_memfd_create.c
263
RL(fstat(fd, &st));
tests/lib/libc/db/h_db.c
718
if ((fd = open(name, O_RDONLY, 0)) == -1 || fstat(fd, &sb) == -1)
tests/lib/libc/gen/posix_spawn/h_fileactions.c
84
if (fstat(fileno(stdout), &sb0) != 0) {
tests/lib/libc/gen/posix_spawn/h_fileactions.c
89
if (fstat(7, &sb1) != 0) {
tests/lib/libc/stdlib/t_mktemp.c
132
ATF_REQUIRE(fstat(fd, &sa) == 0);
tests/lib/libc/stdlib/t_mktemp.c
159
ATF_REQUIRE(fstat(fd, &sa) == 0);
tests/lib/libc/stdlib/t_mktemp.c
214
ATF_REQUIRE(fstat(fd, &sa) == 0);
tests/lib/libc/stdlib/t_mktemp.c
251
ATF_REQUIRE(fstat(fd, &sa) == 0);
tests/lib/libc/sys/t_dup.c
90
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/lib/libc/sys/t_dup.c
91
ATF_REQUIRE(fstat(fd1, &st1) == 0);
tests/lib/libc/sys/t_mincore.c
181
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/lib/libc/sys/t_stat.c
169
ATF_REQUIRE_ERRNO(EBADF, fstat(-1, &st) == -1);
tests/lib/libc/sys/t_stat.c
260
ATF_REQUIRE(fstat(fd, &sa) == 0);
tests/lib/libc/sys/t_stat.c
300
ATF_REQUIRE(fstat(fd, &sa) == 0);
tests/lib/libc/sys/t_stat.c
302
ATF_REQUIRE(fstat(fd, &sb) == 0);
tests/lib/libc/sys/t_stat.c
359
if (fstat(fd, &st) != 0 || errno != 0)
tests/lib/libc/sys/t_timerfd.c
569
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/lib/libc/sys/t_truncate.c
127
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/lib/libc/sys/t_truncate.c
67
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/lib/libc/ttyio/t_ptm.c
139
REQUIRE_ERRNO(fstat(fdm, &stm), -1);
tests/lib/libc/ttyio/t_ptm.c
153
REQUIRE_ERRNO(fstat(fds, &sts), -1);
tests/lib/libc/ttyio/t_ptm.c
73
REQUIRE_ERRNO(fstat(fdm, &stm), -1);
tests/lib/libc/ttyio/t_ptm.c
86
REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1);
tests/lib/libc/ttyio/t_ptm.c
91
REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1);
tests/lib/librumpclient/t_fd.c
83
ATF_REQUIRE_ERRNO(EBADF, fstat(0, &sb) == -1);
tests/lib/librumpclient/t_fd.c
84
ATF_REQUIRE_ERRNO(EBADF, fstat(1, &sb) == -1);
tests/lib/librumpclient/t_fd.c
85
ATF_REQUIRE_ERRNO(EBADF, fstat(2, &sb) == -1);
tests/net/net/t_unix.c
184
if (fstat(fd, &st) == -1)
usr.bin/audio/play/play.c
335
if (fstat(fd, &sb) < 0)
usr.bin/calendar/calendar.c
516
if (fstat(fd, &st) == -1) {
usr.bin/calendar/calendar.c
573
if (fstat(fileno(fp), &sbuf) == -1 || sbuf.st_size == 0)
usr.bin/chpass/edit.c
158
if (fstat(fd, &sb))
usr.bin/cmp/cmp.c
140
if (fstat(fd1, &sb1))
usr.bin/cmp/cmp.c
145
if (fstat(fd2, &sb2))
usr.bin/config/main.c
1638
if (yyin == NULL || fstat(fileno(yyin), &st) == -1)
usr.bin/config/main.c
1709
if (fstat(fileno(cf), &st) == -1)
usr.bin/config/main.c
1834
if (fstat(kfd, &st) == -1)
usr.bin/crunch/crunchide/exec_aout.c
110
if(fstat(inf, &infstat) == -1) {
usr.bin/crunch/crunchide/exec_aout.c
86
if(fstat(inf, &infstat) == -1)
usr.bin/crunch/crunchide/exec_coff.c
67
if (fstat(fd, &sb) == -1)
usr.bin/crunch/crunchide/exec_ecoff.c
65
if (fstat(fd, &sb) == -1)
usr.bin/crunch/crunchide/exec_elf32.c
139
if (fstat(fd, &sb) == -1)
usr.bin/cvslatest/cvslatest.c
135
if (fstat(fileno(fp), &sb) == 0) {
usr.bin/dc/dc.c
100
if (fstat(fileno(file), &st) == -1)
usr.bin/diff/diff.c
333
fstat(STDIN_FILENO, &stb1);
usr.bin/diff/diff.c
343
fstat(STDIN_FILENO, &stb2);
usr.bin/diff/diffreg.c
309
fstat(fileno(f1), &stb1) == -1) {
usr.bin/diff/diffreg.c
332
fstat(fileno(f2), &stb2) == -1) {
usr.bin/extattr/getextattr.c
298
if (fstat(fd, &st) != 0)
usr.bin/fincore/fincore.c
127
if (fstat(fd, &st)) {
usr.bin/finger/lprint.c
339
if ((fd = open(tbuf, O_RDONLY)) < 0 || fstat(fd, &sb) ||
usr.bin/ftp/fetch.c
1515
if (fstat(fetch_fileno(fin), &sb) == 0) {
usr.bin/ftp/ftp.c
1087
if (fstat(fileno(fout), &st) != -1 && !S_ISREG(st.st_mode)) {
usr.bin/ftp/ftp.c
773
if (fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) {
usr.bin/ftp/ruserpass.c
160
fstat(fileno(cfile), &stb) >= 0 &&
usr.bin/ftp/ruserpass.c
172
if (fstat(fileno(cfile), &stb) >= 0
usr.bin/gzip/gzip.c
1339
if (fstat(in, &isb) != 0) {
usr.bin/gzip/gzip.c
1405
if (fstat(out, &osb) != 0) {
usr.bin/gzip/gzip.c
1461
if (fstat(fd, &isb) != 0) {
usr.bin/gzip/gzip.c
1728
if (fstat(ofd, &osb) != 0) {
usr.bin/gzip/gzip.c
1859
if (fstat(fd, &isb) < 0) {
usr.bin/gzip/gzip.c
1983
ret = fstat(STDIN_FILENO, &sb);
usr.bin/gzip/unxz.c
255
fstat(src_fd, &st);
usr.bin/hexdump/display.c
366
if (fstat(fileno(stdin), &sb))
usr.bin/last/want.c
129
if (fstat(wfd, &stb) == -1)
usr.bin/lastcomm/lastcomm.c
103
if ((fp = fopen(acctfile, "r")) == NULL || fstat(fileno(fp), &sb))
usr.bin/ldd/ldd_elfxx.c
101
fstat(fd, &st) < 0) {
usr.bin/locate/locate/locate.c
118
if (fstat(fileno(fp), &st) == -1)
usr.bin/look/look.c
142
if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
usr.bin/mail/edit.c
100
if (fstat(fileno(nf), &statb) < 0)
usr.bin/mail/fio.c
395
if (fstat(fileno(iob), &sbuf) < 0)
usr.bin/mail/lex.c
110
if (fstat(fd, &sb) != -1)
usr.bin/mail/lex.c
225
if (fstat(fileno(ibuf), &stb) < 0) {
usr.bin/mail/mime_attach.c
353
(filename == NULL && fstat(0, &sb) == 0)) {
usr.bin/mail/mime_attach.c
732
if (fstat(fd, &sb) == -1) {
usr.bin/mail/quit.c
322
if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) {
usr.bin/make/meta.c
829
if (fstat(fileno(fp), &fs) == 0) {
usr.bin/make/parse.c
354
bufSize = fstat(fd, &st) == 0 && S_ISREG(st.st_mode) &&
usr.bin/mkubootimage/mkubootimage.c
308
error = fstat(kernel_fd, &st);
usr.bin/mkubootimage/mkubootimage.c
379
error = fstat(kernel_fd, &st);
usr.bin/mkubootimage/mkubootimage.c
415
error = fstat(kernel_fd, &st);
usr.bin/patch/pch.c
123
fstat(fileno(pfp), &filestat);
usr.bin/pmap/main.c
367
if (fstat(fd, &st) == -1) {
usr.bin/pr/pr.c
1389
if (fstat(fileno(inf), &statbuf) < 0) {
usr.bin/progress/progress.c
138
if (!zflag && !lflag && (fstat(fd, &statb) == 0)) {
usr.bin/rdist/docmd.c
552
if (fstat(fd, &stb) < 0) {
usr.bin/rdist/expand.c
314
if (fstat(dirp->dd_fd, &stb) < 0)
usr.bin/rump_allserver/rump_allserver.c
446
if (fstat(fd, &sb) == -1)
usr.bin/rwall/rwall.c
199
if (fstat(fd, &sbuf) == -1)
usr.bin/script/script.c
450
if (fstat(fileno(fp), &pst) == -1)
usr.bin/sdiff/sdiff.c
108
if (fstat(ifd, &sb) == -1)
usr.bin/shlock/shlock.c
235
if (st != NULL && fstat(fd, st) == -1) {
usr.bin/shmif_dumpbus/shmif_dumpbus.c
160
if (fstat(fd, &sb) == -1)
usr.bin/shmif_pcapin/shmif_pcapin.c
153
if (fstat(fd, &sb) == -1)
usr.bin/spell/spellprog/spellprog.c
358
if (wlists[i].fd == -1 || fstat(wlists[i].fd, &sb) != 0)
usr.bin/split/split.c
296
if (fstat(ifd, &sb) == -1) {
usr.bin/stat/stat.c
334
rc = fstat(STDIN_FILENO, &st);
usr.bin/tail/tail.c
186
fstat(fileno(fp), &sb)) {
usr.bin/tail/tail.c
206
if (fstat(fileno(stdin), &sb)) {
usr.bin/tftp/tftp.c
242
if (fstat(fd, &sbuf) == 0) {
usr.bin/touch/touch.c
189
if (fd == -1 || fstat(fd, &sb) || close(fd)) {
usr.bin/unifdef/unifdef.c
346
if (fstat(fileno(input), &isb) != 0)
usr.bin/uuencode/uuencode.c
92
if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb))
usr.bin/vgrind/vfontedpr.c
308
fstat(fileno(stdin), &stbuf);
usr.bin/vndcompress/vndcompress.c
461
if (fstat(S->image_fd, &st) == -1)
usr.bin/wall/wall.c
263
if (fstat(fd, &sbuf) == -1)
usr.bin/wc/wc.c
238
if (fstat(fd, &sb)) {
usr.bin/write/term_chk.c
84
if (fstat(fd, &s) == -1)
usr.bin/xinstall/xinstall.c
782
if (fstat(to_fd, &to_sb) != 0)
usr.sbin/acpitools/acpidump/acpi_user.c
244
if (fstat(acpi_mem_fd, &sb) == -1)
usr.sbin/acpitools/amldb/amldb.c
90
if (fstat(fd, &sb) == -1) {
usr.sbin/bootp/common/readfile.c
363
if (fstat(fileno(fp), &st) < 0) {
usr.sbin/crash/crash.c
400
if (fstat(fd, &sb) == -1) {
usr.sbin/fssconfig/fssconfig_hostops.c
50
.op_fstat = fstat,
usr.sbin/fssconfig/prog_ops.h
67
#define prog_fstat fstat
usr.sbin/fstyp/fstyp.c
172
error = fstat(fd, &sb);
usr.sbin/installboot/arch/alpha.c
269
if (fstat(params->fsfd, &filesyssb) == -1) {
usr.sbin/installboot/arch/amiga.c
89
if (fstat(params->s1fd, &bootstrapsb) == -1) {
usr.sbin/installboot/arch/hppa.c
159
if (fstat(params->s1fd, &bootstrapsb) == -1) {
usr.sbin/installboot/arch/vax.c
195
if (fstat(params->s1fd, &bootstrapsb) == -1) {
usr.sbin/installboot/arch/vax.c
233
if (fstat(params->fsfd, &filesyssb) == -1) {
usr.sbin/installboot/arch/x68k.c
141
if (fstat(params->s1fd, &bootstrapsb) == -1) {
usr.sbin/installboot/evboards.c
1742
if (fstat(ifd, &sb) < 0) {
usr.sbin/installboot/installboot.c
286
if (fstat(params->fsfd, ¶ms->fsstat) == -1)
usr.sbin/installboot/installboot.c
309
if (fstat(params->s1fd, ¶ms->s1stat) == -1)
usr.sbin/kvm_mkdb/nlist_coff.c
110
if (fstat(fd, &st) < 0) {
usr.sbin/kvm_mkdb/nlist_ecoff.c
107
if (fstat(fd, &st) < 0) {
usr.sbin/kvm_mkdb/nlist_elf32.c
131
if (fstat(fd, &st) < 0) {
usr.sbin/ldpd/conffile.c
128
if (confh == -1 || fstat(confh, &fs) == -1 ||
usr.sbin/lpr/common_source/common.c
249
if (fstat(dirp->dd_fd, &stbuf) < 0)
usr.sbin/lpr/lpc/cmds.c
774
(void)fstat(fd, &stbuf);
usr.sbin/lpr/lpd/printjob.c
259
if (fstat(lfd, &stb) == 0) {
usr.sbin/lpr/lpd/printjob.c
557
if (S_ISLNK(stb.st_mode) && fstat(fi, &stb) == 0 &&
usr.sbin/lpr/lpd/printjob.c
924
if (S_ISLNK(stb.st_mode) && fstat(f, &stb) == 0 &&
usr.sbin/mdsetimage/mdsetimage.c
133
if (fstat(kfd, &ksb) == -1)
usr.sbin/mdsetimage/mdsetimage.c
166
if (fstat(fsfd, &fssb) == -1)
usr.sbin/memswitch/memswitch.c
346
if (fstat(fd, &st) < 0)
usr.sbin/mmcformat/uscsi_subr.c
255
if (fstat(disc->fhandle, &stat) < 0) {
usr.sbin/mmcformat/uscsi_subr.c
88
if (fstat(disc->fhandle, &dstat) < 0) {
usr.sbin/mscdlabel/main.c
99
res = fstat(fd, &st);
usr.sbin/ndbootd/ndbootd.c
659
if (fstat(boot1_fd, &stat_buffer) < 0) {
usr.sbin/ndbootd/ndbootd.c
699
if (fstat(boot2_fd, &stat_buffer) < 0) {
usr.sbin/npf/npfctl/npfctl.c
313
if (fstat(fd, &sb) == -1) {
usr.sbin/npf/npfd/npfd_log.c
139
if (fstat(fileno(fp), &st) == -1)
usr.sbin/npf/npftest/npftest.c
104
if (fstat(fd, &sb) == -1) {
usr.sbin/npf/npftest/npftest.c
160
if (fstat(fd, &sb) == -1) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
362
if (fstat(fileno(fp), &st) == -1)
usr.sbin/rpc.lockd/lockd_lock.c
531
if (fstat(fl->fd, &st) < 0) {
usr.sbin/rwhod/rwhod.c
333
if (fstat(whod, &st) < 0 || st.st_size > cc)
usr.sbin/sysinst/arch/i386/md.c
850
if (fstat(fd, &st) < 0 || st.st_size != sizeof *mbrs) {
usr.sbin/syslogd/syslogd.c
4006
if (!fstat(f->f_file, &sb) && S_ISFIFO(sb.st_mode)) {
usr.sbin/user/user.c
1335
(void)fstat(fileno(from), &st);
usr.sbin/user/user.c
394
(void)fstat(fileno(from), &st);
usr.sbin/user/user.c
459
(void)fstat(fileno(from), &st);
usr.sbin/user/user.c
582
(void)fstat(fileno(from), &st);
usr.sbin/videomode/videomode.c
98
if (fstat(0, &stb) == -1)
usr.sbin/wsfontload/wsfontload.c
238
if ((ffd != 0) && (fstat(ffd, &st) == 0)) {