bin/cat/cat.c
407
if (fstat(wfd, &sbuf))
bin/cp/cp.c
414
if (fstat(to.dir, &created_root_stat) != 0) {
bin/cp/utils.c
114
fstat(from_fd, &sb) != 0) {
bin/cp/utils.c
350
if (fdval ? fstat(fd, &ts) :
bin/dd/dd.c
316
if (fstat(io->fd, &sb) == -1)
bin/mv/mv.c
330
if (fstat(to_fd, &tsb) == 0) {
bin/pax/ar_io.c
157
if (fstat(arfd, &arsb) < 0) {
bin/pax/ar_io.c
323
if (can_unlnk && (fstat(arfd, &arsb) == 0) && (S_ISREG(arsb.st_mode)) &&
bin/pax/buf_subs.c
628
else if (fstat(ifd, &sb) < 0)
bin/pax/buf_subs.c
674
if (fstat(ofd, &sb) == 0) {
bin/pax/buf_subs.c
769
if (fstat(fd2, &sb) == 0) {
bin/pax/buf_subs.c
800
else if (fstat(fd1, &sb) < 0)
bin/pax/file_subs.c
928
else if (fstat(fd, &sb) < 0)
bin/sh/redir.c
194
if (fstat(f, &sb) != -1 && S_ISREG(sb.st_mode)) {
bin/stty/util.c
53
!fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) &&
crypto/heimdal/appl/ftp/ftp/ftp.c
1029
fstat (fileno (fout), &st) >= 0 ? &st : NULL);
crypto/heimdal/appl/ftp/ftp/ftp.c
604
if (fstat (fileno (from), &st) == 0 && S_ISREG (st.st_mode)) {
crypto/heimdal/appl/ftp/ftp/ftp.c
642
fstat (fileno (from), &st) >= 0 ? &st : NULL);
crypto/heimdal/appl/ftp/ftp/ftp.c
734
if (fstat (fileno (fin), &st) < 0 || !S_ISREG(st.st_mode)) {
crypto/heimdal/appl/ftp/ftp/ruserpass.c
176
fstat(fileno(cfile), &stb) >= 0 &&
crypto/heimdal/appl/ftp/ftp/ruserpass.c
187
if (fstat(fileno(cfile), &stb) >= 0
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3511
if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1458
if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1033
if(fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1379
if(fstat(in, &st) == 0 && S_ISREG(st.st_mode)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1406
fstat(filefd, &st) >= 0 ? &st : NULL);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1466
fstat(fileno(outstr), &st) >= 0 ? &st : NULL);
crypto/heimdal/appl/rcp/rcp.c
291
if (fstat(fd, &stb)) {
crypto/heimdal/appl/rcp/util.c
154
if (fstat(fd, &stb) < 0) {
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1496
fstat(f, &statbf);
crypto/heimdal/kdc/pkinit.c
1510
ret = fstat(fd, &sb);
crypto/heimdal/lib/asn1/asn1_print.c
302
if (fstat (fd, &sb) < 0)
crypto/heimdal/lib/krb5/fcache.c
1058
ret = fstat(fd, &sb);
crypto/heimdal/lib/krb5/fcache.c
276
ret = fstat (fd, &sb2);
crypto/heimdal/lib/krb5/kuserok.c
142
if(fstat(fd, &st2) < 0) {
crypto/heimdal/lib/krb5/kuserok.c
62
if (fstat(fileno(f), &st) != 0) {
crypto/heimdal/lib/krb5/test_store.c
207
if (fstat(fd, &sb) != 0)
crypto/heimdal/lib/krb5/test_store.c
214
if (fstat(fd, &sb) != 0)
crypto/heimdal/lib/roken/dumpdata.c
70
if (fstat(fd, &sb) != 0){
crypto/heimdal/lib/roken/getusershell.c
153
if (fstat(fileno(fp), &statb) == -1) {
crypto/heimdal/lib/roken/iruserok.c
266
else if (fstat(fileno(hostf), &sbuf) < 0)
crypto/krb5/src/appl/gss-sample/gss-client.c
340
if (fstat(fd, &stat_buf) < 0) {
crypto/krb5/src/clients/ksu/authorization.c
52
if (fstat(fileno(fp), &sbuf)) {
crypto/krb5/src/kprop/kprop.c
365
if (fstat(fd, &stbuf)) {
crypto/krb5/src/kprop/kpropd.c
260
if (fstat(0, &st) == -1) {
crypto/krb5/src/kprop/kproplog.c
414
if (fstat(fd, &st) < 0) {
crypto/krb5/src/lib/crypto/krb/prng.c
82
if (fstat(fd, &sb) == -1 || S_ISREG(sb.st_mode))
crypto/krb5/src/lib/kadm5/srv/pwqual_dict.c
120
if (fstat(fd, &sb) == -1) {
crypto/krb5/src/lib/krb5/ccache/cc_file.c
134
if (fstat(fileno(fp), &sb) == -1)
crypto/krb5/src/lib/krb5/ccache/cc_file.c
580
st = fstat(fd, &buf);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
617
st = fstat(fd, &buf);
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
128
if (fstat(fileno(fp), &sbuf)) {
crypto/krb5/src/lib/krb5/rcache/rc_dfl.c
111
if (fstat(fd, &statbuf) < 0 || statbuf.st_uid != euid) {
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
575
if (fstat(dbc->db_lf_file, &st) < 0)
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
591
if (fstat(dbc->db_lf_file, &st) != 0)
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
633
if (fstat(fd, &statb) == -1)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_open.c
218
if (fstat(t->bt_fd, &sb))
crypto/krb5/src/plugins/kdb/db2/libdb2/mpool/mpool.c
71
if (fstat(fd, &sb))
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
152
if (fstat(rfd, &sb))
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
768
fstat(fd, &sb))
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
440
if (fstat(fd, &st) == -1)
crypto/krb5/src/plugins/pwqual/test/main.c
65
if (fstat(fd, &sb) == -1) {
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
92
if (fstat(fd, &st) == -1)
crypto/openssh/loginrec.c
1095
if (fstat(fd, &buf) == 0)
crypto/openssh/loginrec.c
1189
if (fstat(fd, &st) != 0) {
crypto/openssh/loginrec.c
1268
if (fstat(fd, &buf) == 0)
crypto/openssh/loginrec.c
1354
if (fstat(fd, &st) != 0) {
crypto/openssh/loginrec.c
1728
if (fstat(fd, &fst) < 0) {
crypto/openssh/misc.c
2324
if (fstat(fd, &st) == -1) {
crypto/openssh/misc.c
3094
if (fstat(fd, &st) != 0) {
crypto/openssh/openbsd-compat/getcwd.c
150
if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
crypto/openssh/readconf.c
2582
if (fstat(fileno(f), &sb) == -1)
crypto/openssh/scp.c
1415
if (fstat(fd, &stb) == -1) {
crypto/openssh/scp.c
2234
if (fstat(fd, &stb) == -1) {
crypto/openssh/servconf.c
2809
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)
crypto/openssl/apps/lib/apps.c
1685
if (fstat(fileno(dbfp), &dbst) == -1) {
crypto/openssl/apps/s_server.c
3643
if (fstat(fd, &st) < 0) {
crypto/openssl/crypto/rand/randfile.c
112
if (fstat(fileno(in), &sb) < 0) {
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
519
&& fstat(rd->fd, &st) != -1
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
543
if (fstat(rd->fd, &st) != -1) {
lib/lib80211/lib80211_regdomain.c
634
if (fstat(fd, &sb) < 0) {
lib/libc/db/test/dbtest.c
679
fstat(fd, &sb))
lib/libc/gen/gen-compat.h
75
fstat, FBSD_1.0);
lib/libc/include/compat.h
52
__sym_compat(fstat, freebsd11_fstat, FBSD_1.0);
lib/libc/tests/stdio/mkostemp_test.c
116
if (fstat(fd, &st2) == -1)
lib/libc/tests/stdio/mkostemp_test.c
89
if (fstat(fd, &st2) == -1) {
lib/libc/tests/sys/sendfile_test.c
269
ATF_REQUIRE_EQ_MSG(0, fstat(fd, &st),
lib/libcompat/4.3/rexec.c
195
fstat(fileno(cfile), &stb) >= 0 &&
lib/libcompat/4.3/rexec.c
207
if (fstat(fileno(cfile), &stb) >= 0
lib/libkvm/kvm.c
144
if (fstat(kd->pmfd, &st) < 0) {
lib/libpam/modules/pam_nologin/pam_nologin.c
106
if (fstat(fd, &st) == 0) {
lib/libpmc/pmu-events/json.c
59
err = fstat(fd, &st);
lib/libsecureboot/readfile.c
65
fstat(fd, &st);
lib/libsecureboot/tests/tvo.c
170
fstat(fd, &st);
lib/libsecureboot/veopen.c
206
if (fstat(fd, &st) == 0)
lib/libsecureboot/veopen.c
423
if (fstat(fd, &st) == 0)
lib/libsecureboot/verify_file.c
471
if (fstat(fd, stp) < 0 || !S_ISREG(stp->st_mode))
lib/libutil++/tests/pidfile_test.cc
23
ATF_REQUIRE(fstat(pidfile_fileno(pfh), &sb) == 0);
lib/libutil++/tests/pidfile_test.cc
31
ATF_REQUIRE(fstat(pf.fileno(), &sb) == 0);
lib/libutil/flopen.c
87
if (fstat(fd, &fsb) == -1) {
lib/libutil/gr_util.c
111
if (fstat(lockfd, &st) == -1)
lib/libutil/kld.c
41
struct kld_file_stat fstat;
lib/libutil/kld.c
47
fstat.version = sizeof(fstat);
lib/libutil/kld.c
48
if (kldstat(fid, &fstat) != 0)
lib/libutil/kld.c
51
if (strcmp(fstat.name, name) == 0)
lib/libutil/kld.c
54
if ((ko = strstr(fstat.name, ".ko")) != NULL &&
lib/libutil/kld.c
55
strlen(name) == (size_t)(ko - fstat.name) &&
lib/libutil/kld.c
56
strncmp(fstat.name, name, ko - fstat.name) == 0)
lib/libutil/pidfile.c
197
if (fstat(fd, &sb) == -1) {
lib/libutil/pidfile.c
68
if (fstat(pfh->pf_fd, &sb) == -1)
lib/libutil/pw_util.c
190
if (fstat(lockfd, &st) == -1)
lib/libveriexec/veriexec_check.c
50
if (fstat(fd, &st) < 0)
libexec/atrun/atrun.c
204
if (fstat(fd_in, &buf) == -1)
libexec/atrun/atrun.c
262
fstat(fd_out, &buf);
libexec/bootpd/readfile.c
355
if (fstat(fileno(fp), &st) < 0) {
libexec/rtld-elf/libmap.c
118
if (fstat(fd, &st) == -1) {
libexec/rtld-elf/rtld.c
2182
if (fstat(fd, &hint_stat) == -1) {
libexec/rtld-elf/rtld.c
2894
if (fstat(fd, &sb) == -1) {
libexec/rtld-elf/rtld.c
623
if (fstat(fd, &st) == -1) {
sbin/bsdlabel/bsdlabel.c
336
fstat(fd, &st);
sbin/bsdlabel/bsdlabel.c
432
if (fstat(f, &sb) != 0)
sbin/camcontrol/camcontrol.c
7059
if (fstat(fd, &sb) < 0) {
sbin/camcontrol/fwdownload.c
583
if (fstat(fd, &stbuf) < 0) {
sbin/devmatch/devmatch.c
85
if (fstat(fd, &sb) != 0)
sbin/dump/main.c
389
if (fstat(diskfd, &sb) != 0)
sbin/dump/main.c
401
if (fstat(diskfd, &sb) != 0)
sbin/dump/tape.c
355
if (fstat(tapefd, &sb) == 0 && S_ISFIFO(sb.st_mode)) {
sbin/fdisk/fdisk.c
522
fstat(fdesc, &sb) == -1)
sbin/ggate/shared/ggate.c
137
if (fstat(fd, &sb) == -1)
sbin/ggate/shared/ggate.c
158
if (fstat(fd, &sb) == -1)
sbin/hastd/hastd.c
191
if (fstat(fd, &sb) == 0) {
sbin/hastd/subr.c
95
if (fstat(res->hr_localfd, &sb) == -1) {
sbin/init/init.c
646
error = fstat(fd, &sb);
sbin/ipf/iplang/iplang_y.y
799
if (fstat(fd, &sb) == -1) {
sbin/ipf/ipmon/ipmon.c
1736
if (fstat(l->fd, &sb) == -1) {
sbin/ldconfig/elfhints.c
208
if (fstat(fd, &s) == -1)
sbin/mdconfig/mdconfig.c
477
if (fstat(fd, &sb) == -1)
sbin/mksnap_ffs/mksnap_ffs.c
179
if (fstat(fd, &stbuf) != 0)
sbin/mount_fusefs/mount_fusefs.c
358
if (fstat(fd, &sbuf) == -1)
sbin/newfs/newfs.c
330
if (fstat(disk.d_fd, &st) < 0)
sbin/newfs_msdos/mkfs_msdos.c
290
if (fstat(fd, &sb)) {
sbin/newfs_msdos/mkfs_msdos.c
445
if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) {
sbin/newfs_msdos/mkfs_msdos.c
910
if (fstat(fd, &st))
sbin/nvmecontrol/firmware.c
126
if (fstat(fd, &sb) < 0)
sbin/pfctl/parse.y
7583
if (fstat(fd, &st)) {
sbin/pfctl/pfctl.c
2842
if (fstat(fileno(fp), &st)) {
sbin/rcorder/rcorder.c
487
if (fstat(fileno(fp), &st) == -1) {
sbin/recoverdisk/recoverdisk.c
535
error = fstat(read_fd, &sb);
sbin/restore/symtab.c
543
if (fstat(fd, &stbuf) < 0) {
sbin/routed/parms.c
174
if (0 > fstat(fileno(fp), &sb)) {
sbin/swapon/swapon.c
716
if (fstat(fd, &sb) < 0)
share/examples/ipfilter/l4check/l4check.c
463
if (fstat(fd, &sb) == -1) {
share/examples/scsi_target/scsi_target.c
237
if (fstat(file_fd, &st) < 0)
stand/common/ls.c
189
if (fstat(fd, &sb) < 0) {
stand/efi/loader/main.c
1913
if (fstat(fd, &st) < -1) {
stand/ficl/fileaccess.c
192
if (fstat(fileno(f), &statbuf) != 0)
stand/ficl/loader.c
491
if (fstat(fd, &sb) < 0)
stand/ficl/loader.c
623
if (fstat(fd, &sb) == -1)
stand/i386/loader/chain.c
104
if (fstat(fd, &st) == -1) {
stand/kboot/kboot/arch/aarch64/load_addr.c
27
if (fstat(fd, &sb) < 0)
stand/liblua/lstd.c
74
if (fstat(fd, &st) != 0) {
stand/libsa/bzipfs.c
178
if (fstat(rawfd, &sb) < 0) {
stand/libsa/bzipfs.c
356
if ((result = fstat(bzf->bzf_rawfd, sb)) == 0)
stand/libsa/gzipfs.c
187
if (fstat(rawfd, &sb) < 0) {
stand/libsa/gzipfs.c
332
if ((result = fstat(zf->zf_rawfd, sb)) == 0)
stand/libsa/splitfs.c
127
if (fstat(conffd, &sb) < 0) {
stand/libsa/splitfs.c
308
if ((result = fstat(sf->curfd, sb)) == 0)
stand/libsa/stat.c
42
rv = fstat(fd, sb);
stand/userboot/test/test.c
148
if (fstat(dir_fd, &tf->tf_stat) < 0) {
stand/userboot/test/test.c
415
if (fstat(disk_fd[unit], &sb) == 0)
sys/amd64/linux32/linux32_dummy_machdep.c
44
UNIMPLEMENTED(fstat);
sys/dev/aic7xxx/aic79xx.c
6237
uint8_t fstat;
sys/dev/aic7xxx/aic79xx.c
6404
for (i = 20, fstat = FLX_FSTAT_BUSY;
sys/dev/aic7xxx/aic79xx.c
6405
(fstat & FLX_FSTAT_BUSY) != 0 && i; i--) {
sys/dev/aic7xxx/aic79xx.c
6406
error = ahd_read_flexport(ahd, FLXADDR_FLEXSTAT, &fstat);
sys/i386/linux/linux_dummy_machdep.c
50
UNIMPLEMENTED(fstat);
sys/kern/init_sysent.c
131
{ compat(AS(ofstat_args),fstat), .sy_auevent = AUE_FSTAT, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 62 = old fstat */
sys/kern/init_sysent.c
258
{ compat11(AS(freebsd11_fstat_args),fstat), .sy_auevent = AUE_FSTAT, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 189 = freebsd11 fstat */
sys/sys/stat.h
382
int fstat(int, struct stat *);
tests/sys/aio/aio_test.c
1518
ATF_REQUIRE(fstat(fd, &sb) == 0);
tests/sys/audit/file-attribute-access.c
157
ATF_REQUIRE_EQ(0, fstat(filedesc, &statbuff));
tests/sys/audit/file-attribute-access.c
183
ATF_REQUIRE_ERRNO(EBADF, fstat(-1, &statbuff) == -1);
tests/sys/capsicum/capability-fd.cc
1280
EXPECT_OK(fstat(fd, &info));
tests/sys/capsicum/capability-fd.cc
539
CHECK_RIGHT_RESULT(fstat(cap_fd, &sb), rights, CAP_FSTAT);
tests/sys/capsicum/capmode.cc
121
EXPECT_OK(fstat(fd_file_, &sb));
tests/sys/capsicum/fexecve.cc
121
EXPECT_OK(fstat(fd, &data));
tests/sys/capsicum/fexecve.cc
138
EXPECT_OK(fstat(fd, &data));
tests/sys/capsicum/linux.cc
1083
FAIL_SYSCALL(fstat, ENOEXEC),
tests/sys/capsicum/linux.cc
1101
EXPECT_SYSCALL_FAIL(ENOEXEC, fstat(fd, &buf));
tests/sys/capsicum/procdesc.cc
182
EXPECT_OK(fstat(pd, &stat));
tests/sys/capsicum/procdesc.cc
811
EXPECT_OK(fstat(pd_, &stat));
tests/sys/capsicum/procdesc.cc
819
EXPECT_OK(fstat(pd_, &stat));
tests/sys/capsicum/smoketest.c
48
rc = fstat(cap_fd, &buf);
tests/sys/cddl/zfs/tests/exec/mmap_exec.c
56
if (fstat(fd, &statbuf) < 0) {
tests/sys/fifo/fifo_misc.c
262
if (fstat(writer_fd, &sb) != 0) {
tests/sys/fifo/fifo_misc.c
301
if (fstat(writer_fd, &sb) != 0) {
tests/sys/file/closefrom_test.c
260
ATF_REQUIRE_ERRNO(EBADF, fstat(i, &sb) == -1);
tests/sys/file/fspacectl_test.c
171
if (fstat(fd, &statbuf) == -1)
tests/sys/file/fspacectl_test.c
52
if (fstat(fd, &statbuf) == -1)
tests/sys/file/ftruncate_test.c
120
if (fstat(fd, &sb) < 0)
tests/sys/file/ftruncate_test.c
97
if (fstat(fd, &sb) < 0)
tests/sys/file/path_test.c
1007
ATF_REQUIRE_MSG(fstat(pathfd, &sb) == 0, FMT_ERR("fstat"));
tests/sys/file/path_test.c
128
ATF_REQUIRE_MSG(fstat(pathfd, &sb) == 0, FMT_ERR("fstat"));
tests/sys/file/path_test.c
999
ATF_REQUIRE_MSG(fstat(pathfd, &sb) == 0, FMT_ERR("fstat"));
tests/sys/fs/fusefs/copy_file_range.cc
621
ASSERT_EQ(0, fstat(fd1, &sb1a)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
622
ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
627
ASSERT_EQ(0, fstat(fd1, &sb1b)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
628
ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
682
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
784
ASSERT_EQ(0, fstat(fd1, &sb1a)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
785
ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
790
ASSERT_EQ(0, fstat(fd1, &sb1b)) << strerror(errno);
tests/sys/fs/fusefs/copy_file_range.cc
791
ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
1003
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
1033
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
1586
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
1612
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
536
ASSERT_EQ(0, fstat(fd_out, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
538
ASSERT_EQ(0, fstat(fd_in, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
580
ASSERT_EQ(0, fstat(fd_out, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
582
ASSERT_EQ(0, fstat(fd_in, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
866
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
900
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/fallocate.cc
382
ASSERT_EQ(0, fstat(fd, &sb0)) << strerror(errno);
tests/sys/fs/fusefs/fallocate.cc
393
EXPECT_EQ(0, fstat(fd, &sb1));
tests/sys/fs/fusefs/fallocate.cc
717
ASSERT_EQ(0, fstat(fd, &sb0)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1109
ASSERT_EQ(0, fstat(fd, &sb1));
tests/sys/fs/fusefs/read.cc
1114
ASSERT_EQ(0, fstat(fd, &sb2));
tests/sys/fs/fusefs/read.cc
1147
ASSERT_EQ(0, fstat(fd, &sb1));
tests/sys/fs/fusefs/read.cc
1152
ASSERT_EQ(0, fstat(fd, &sb2));
tests/sys/fs/fusefs/read.cc
1255
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
400
ASSERT_EQ(0, fstat(fd, &sb));
tests/sys/fs/fusefs/read.cc
564
ASSERT_EQ(0, fstat(fd, &sb1));
tests/sys/fs/fusefs/read.cc
570
ASSERT_EQ(0, fstat(fd, &sb2));
tests/sys/fs/fusefs/read.cc
600
ASSERT_EQ(0, fstat(fd, &sb1));
tests/sys/fs/fusefs/read.cc
606
ASSERT_EQ(0, fstat(fd, &sb2));
tests/sys/fs/fusefs/read.cc
659
ASSERT_EQ(0, fstat(fd, &sb));
tests/sys/fs/fusefs/read.cc
746
ASSERT_EQ(0, fstat(fd, &sb));
tests/sys/fs/fusefs/read.cc
891
ASSERT_EQ(0, fstat(fd, &sb));
tests/sys/fs/fusefs/read.cc
924
ASSERT_EQ(0, fstat(fd, &sb));
tests/sys/fs/fusefs/unlink.cc
81
ASSERT_EQ(0, fstat(fd1, &sb_old)) << strerror(errno);
tests/sys/fs/fusefs/unlink.cc
83
ASSERT_EQ(0, fstat(fd1, &sb_new)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1398
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1527
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1659
ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
456
fstat(fd, &sb);
tests/sys/fs/fusefs/write.cc
820
ASSERT_EQ(0, fstat(fd, &sb0)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
825
ASSERT_EQ(0, fstat(fd, &sb1)) << strerror(errno);
tests/sys/kern/copy_file_range.c
132
ATF_REQUIRE(fstat(fd1, &sb) == 0);
tests/sys/kern/copy_file_range.c
176
ATF_REQUIRE(fstat(fd1, &sb1) == 0);
tests/sys/kern/copy_file_range.c
177
ATF_REQUIRE(fstat(fd2, &sb2) == 0);
tests/sys/kern/copy_file_range.c
186
ATF_REQUIRE(fstat(fd1, &sb1) == 0);
tests/sys/kern/copy_file_range.c
187
ATF_REQUIRE(fstat(fd2, &sb2) == 0);
tests/sys/kern/copy_file_range.c
209
ATF_REQUIRE(fstat(fd2, &sb) == 0);
tests/sys/kern/copy_file_range.c
66
ATF_REQUIRE(fstat(fd1, &st1) == 0);
tests/sys/kern/copy_file_range.c
67
ATF_REQUIRE(fstat(fd2, &st2) == 0);
tests/sys/kern/kern_descrip_test.c
63
ATF_REQUIRE(fstat(fd1, &sb1) != -1);
tests/sys/kern/kern_descrip_test.c
64
ATF_REQUIRE(fstat(fd2, &sb2) != -1);
tests/sys/kern/pipe/pipe_fstat_bug_test.c
141
fstat(desc[0], &status);
tests/sys/kern/pipe/pipe_ino_test.c
50
if (fstat(pipefd[0], &st1) == -1)
tests/sys/kern/pipe/pipe_ino_test.c
52
if (fstat(pipefd[1], &st2) == -1)
tests/sys/kern/unix_passfd_test.c
108
ATF_REQUIRE_MSG(fstat(fd, sb) == 0,
tests/sys/kqueue/libkqueue/proc.c
43
if (fstat(kqfd, &s) != -1)
tests/sys/posixshm/memfd_test.c
50
ATF_REQUIRE(fstat(fd, &sb) == 0);
tests/sys/posixshm/memfd_test.c
60
ATF_REQUIRE(fstat(fd, &sb) == 0);
tests/sys/posixshm/posixshm_test.c
1028
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1035
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1042
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1072
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1077
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1082
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1181
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
1189
ATF_REQUIRE(fstat(fd, &st) == 0);
tests/sys/posixshm/posixshm_test.c
294
if (fstat(fd, &statbuf) == -1)
tests/sys/posixshm/posixshm_test.c
707
ATF_REQUIRE_MSG(fstat(fd, &sb) != -1,
tests/sys/posixshm/posixshm_test.c
715
ATF_REQUIRE_MSG(fstat(fd, &sb) != -1,
tests/sys/posixshm/posixshm_test.c
761
if (fstat(fd, &sb) < 0)
tests/sys/posixshm/posixshm_test.c
782
if (fstat(fd, &sb) < 0)
tests/sys/posixshm/posixshm_test.c
804
if (fstat(fd, &sb) < 0)
tests/sys/posixshm/posixshm_test.c
848
if (fstat(fd, &sb) < 0)
tools/build/futimens.c
72
if (fstat(fd, &sb) == -1)
tools/build/libc-bootstrap/namespace.h
40
#define _fstat(a, b) fstat(a, b)
tools/regression/aio/aiop/aiop.c
177
if (fstat(fd, &sb) < 0)
tools/regression/fsx/fsx.c
402
if (fstat(fd, &statbuf)) {
tools/regression/fsx/fsx.c
424
fstat(fd, &statbuf);
tools/regression/geom/ConfCmp/ConfCmp.c
192
fstat(fd, &st);
tools/regression/geom/MdLoad/MdLoad.c
218
fstat(fd, &st);
tools/regression/security/cap_test/cap_test_capabilities.c
327
ret = fstat(fd_cap, &sb);
tools/regression/security/cap_test/cap_test_capabilities.c
328
CHECK_RESULT(fstat, CAP_FSTAT, ret == 0);
tools/regression/security/cap_test/cap_test_capmode.c
114
CHECK_SYSCALL_SUCCEEDS(fstat, fd_file, &sb);
tools/regression/security/cap_test/cap_test_pdfork.c
84
REQUIRE(fstat(pd, &stat));
tools/regression/security/open_to_operation/open_to_operation.c
414
if (fstat(fd, &sb) == 0)
tools/regression/security/open_to_operation/open_to_operation.c
495
if (fstat(fd, &sb) < 0) {
tools/regression/sockets/fstat/fstat.c
50
if (fstat(sock, &sb) < 0)
tools/regression/sockets/sendfile/sendfile.c
282
if (fstat(file_fd, &st) < 0)
tools/regression/sockets/sendfile/sendfile.c
323
if (fstat(file_fd, &sb) == 0)
tools/test/stress2/testcases/mmap/mmap.c
115
if (fstat(fdin, &statbuf) < 0)
tools/test/stress2/tools/flip.c
120
if (fstat(fd, &st) == -1)
tools/test/stress2/tools/lsholes.c
56
if (fstat(fd, &st))
tools/tools/ath/athdecode/main.c
71
if (fstat(fd, &sb) < 0)
tools/tools/net80211/wesside/wesside/wesside.c
2169
if(fstat(tapfd, &st) == -1) {
tools/tools/nvmf/nvmfd/devices.c
114
if (fstat(fd, &sb) == -1)
tools/tools/syscall_timing/syscall_timing.c
746
if (fstat(shmfd, &sb) < 0)
tools/tools/syscall_timing/syscall_timing.c
750
(void)fstat(shmfd, &sb);
tools/tools/zfsboottest/zfsboottest.c
62
if (fstat(fd, &sb) != 0)
usr.bin/ar/acpyacc.y
332
if (fstat(ifd, &sb) < 0) {
usr.bin/ar/write.c
113
if (fstat(obj->fd, &sb) < 0) {
usr.bin/bintrans/uuencode.c
120
if (!freopen(*argv, "r", stdin) || fstat(fileno(stdin), &sb))
usr.bin/calendar/io.c
690
if (fstat(fileno(fp), &sbuf) || !sbuf.st_size)
usr.bin/chpass/edit.c
205
fstat(fileno(fp), &sb) == -1) {
usr.bin/cmp/cmp.c
220
if (fstat(fd1, &sb1)) {
usr.bin/cmp/cmp.c
229
if (fstat(fd2, &sb2)) {
usr.bin/ctags/ctags.c
169
if (fstat(fileno(oldf), &sb) != 0 ||
usr.bin/diff/diff.c
430
fstat(STDIN_FILENO, &stb1);
usr.bin/diff/diff.c
440
fstat(STDIN_FILENO, &stb2);
usr.bin/diff/diffdir.c
74
fstat(fd, &sb) != 0)
usr.bin/diff/diffreg.c
334
fstat(fileno(f1), &stb1) == -1) {
usr.bin/diff/diffreg.c
357
fstat(fileno(f2), &stb2) == -1) {
usr.bin/diff/diffreg_new.c
315
if (fstat(fileno(f), st) == -1)
usr.bin/dpv/dpv.c
124
if (fstat(out, &sb) != 0) {
usr.bin/dtc/input_buffer.cc
109
if (fstat(fd, &sb))
usr.bin/dtc/input_buffer.cc
1307
if (fstat(source, &st) == 0 && S_ISDIR(st.st_mode))
usr.bin/elfdump/elfdump.c
583
fstat(fd, &sb) < 0)
usr.bin/fetch/fetch.c
669
if (fstat(fileno(of), &nsb) == -1) {
usr.bin/finger/lprint.c
297
if ((fd = open(tbuf, O_RDONLY)) < 0 || fstat(fd, &sb) ||
usr.bin/gprof/elf.c
75
if (fstat(fd, &s) == -1)
usr.bin/grep/file.c
187
if (fstat(f->fd, &st) == -1 || !S_ISREG(st.st_mode))
usr.bin/grep/grep.c
283
if ((fstat(fileno(f), &st) == -1) || (S_ISDIR(st.st_mode))) {
usr.bin/gzip/gzip.c
1272
if (fstat(in, &isb) != 0) {
usr.bin/gzip/gzip.c
1278
if (fstat(in, &isb) != 0) {
usr.bin/gzip/gzip.c
1340
if (fstat(out, &osb) != 0) {
usr.bin/gzip/gzip.c
1392
if (fstat(fd, &isb) != 0) {
usr.bin/gzip/gzip.c
1659
if (fstat(ofd, &osb) != 0) {
usr.bin/gzip/gzip.c
1762
if (fstat(STDIN_FILENO, &isb) < 0) {
usr.bin/gzip/gzip.c
1870
ret = fstat(STDIN_FILENO, &sb);
usr.bin/gzip/unxz.c
261
if (fstat(src_fd, &st) != 0) {
usr.bin/hexdump/display.c
392
if (fstat(fileno(stdin), &sb))
usr.bin/ktrace/ktrace.c
139
if (fstat(fd, &sb) != 0 || sb.st_uid != getuid())
usr.bin/ktrdump/ktrdump.c
211
if (fstat(in, &sb) == -1)
usr.bin/look/look.c
136
if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
usr.bin/mail/edit.c
157
if (fstat(fileno(nf), &statb) < 0)
usr.bin/mail/fio.c
304
if (fstat(fileno(iob), &sbuf) < 0)
usr.bin/mail/lex.c
80
if (fstat(fileno(ibuf), &stb) < 0) {
usr.bin/mail/quit.c
102
if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) {
usr.bin/mkimg/image.c
500
if (fstat(fd, &sb) == -1 || !S_ISREG(sb.st_mode))
usr.bin/mkimg/scheme.c
126
if (fstat(fd, &sb) == -1)
usr.bin/mkuzip/mkuz_insize.c
48
if (fstat(cfp->fdr, &sb) != 0) {
usr.bin/patch/pch.c
124
if (fstat(fileno(pfp), &filestat))
usr.bin/posixmqcontrol/posixmqcontrol.c
478
int result = fstat(fd, &status);
usr.bin/posixmqcontrol/posixmqcontrol.c
589
result = fstat(fd, &status);
usr.bin/posixshmcontrol/posixshmcontrol.c
314
error = fstat(fd, &st);
usr.bin/posixshmcontrol/posixshmcontrol.c
415
error = fstat(fd, &st);
usr.bin/pr/pr.c
1370
if (fstat(fileno(inf), &statbuf) < 0) {
usr.bin/rwall/rwall.c
163
if (fstat(fd, &sbuf))
usr.bin/script/script.c
563
if (fstat(fileno(fp), &pst) == -1)
usr.bin/sdiff/sdiff.c
159
if (fstat(ifd, &sb) == -1)
usr.bin/sdiotool/sdiotool.c
432
if (fstat(fd, &sb) < 0)
usr.bin/sort/file.c
618
if (fstat(fd, &stat_buf) < 0) {
usr.bin/sort/sort.c
930
if (fstat(rsfd, &fsb) != 0)
usr.bin/split/split.c
328
if (fstat(ifd, &sb) == -1) {
usr.bin/stat/stat.c
1128
if (fstat(fd, &sb) < 0)
usr.bin/stat/stat.c
361
rc = fstat(STDIN_FILENO, &st);
usr.bin/tail/forward.c
350
fstat(fileno(file->fp), &file->st)
usr.bin/tail/forward.c
363
fstat(fileno(ftmp), &sb2) == -1) {
usr.bin/tail/tail.c
214
fstat(fileno(filep->fp), &filep->st)) {
usr.bin/tail/tail.c
228
fstat(fileno(fp), &sb)) {
usr.bin/tail/tail.c
245
if (fstat(fileno(stdin), &sb)) {
usr.bin/tftp/main.c
479
if (fstat(fd, &sb) < 0) {
usr.bin/tftp/main.c
507
if (fstat(fd, &sb) < 0) {
usr.bin/touch/touch.c
166
if (fd < 0 || fstat(fd, &sb) < 0) {
usr.bin/truncate/truncate.c
163
if (fstat(fd, &sb) == -1) {
usr.bin/truncate/truncate.c
178
if (fstat(fd, &sb) == -1) {
usr.bin/vgrind/vfontedpr.c
293
fstat(fileno(stdin), &stbuf);
usr.bin/wall/wall.c
272
if (fstat(fd, &sbuf))
usr.bin/wc/wc.c
231
if (fstat(fd, &sb)) {
usr.bin/xinstall/xinstall.c
1003
if (fstat(to_fd, &to_sb) == -1) {
usr.bin/xinstall/xinstall.c
909
if (fstat(temp_fd, &temp_sb)) {
usr.sbin/acpi/acpidb/acpidb.c
395
if (fstat(fd, &sb) == -1) {
usr.sbin/acpi/acpidump/acpi_user.c
209
if (fstat(acpi_mem_fd, &sb) == -1)
usr.sbin/bhyve/aarch64/bhyverun_machdep.c
221
if (fstat(fd, &sb) != 0)
usr.sbin/bhyve/acpi.c
370
if (fstat(fd, &sb) < 0)
usr.sbin/bhyve/block_if.c
559
if (fstat(fd, &sbuf) < 0) {
usr.sbin/bhyve/block_if.c
686
if (fstat(fd, &sb) != 0)
usr.sbin/bhyve/block_if.c
727
if (fstat(bc->bc_fd, &sb) != 0) {
usr.sbin/bhyve/bootrom.c
231
if (fstat(fd, &sbuf) < 0) {
usr.sbin/bhyve/bootrom.c
249
if (fstat(varfd, &sbuf) < 0) {
usr.sbin/bhyve/gdb.c
1827
if (fstat(fd, &sb) < 0) {
usr.sbin/bhyve/pci_passthru.c
846
if (fstat(fd, &sbuf) < 0) {
usr.sbin/bhyve/qemu_fwcfg.c
602
if (fstat(fd, &sb) < 0) {
usr.sbin/bhyve/riscv/bhyverun_machdep.c
219
if (fstat(fd, &sb) != 0)
usr.sbin/bhyve/snapshot.c
209
err = fstat(rstate->vmmem_fd, &sb);
usr.sbin/bhyve/snapshot.c
242
err = fstat(rstate->kdata_fd, &sb);
usr.sbin/bhyveload/bhyveload.c
191
if (fstat(fd, &sb) < 0) {
usr.sbin/bhyveload/bhyveload.c
366
if (fstat(disk_fd[unit], &sb) != 0)
usr.sbin/bluetooth/ath3kfw/ath3k_fw.c
57
if (fstat(fd, &sb) != 0) {
usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c
59
if (fstat(fd, &sb) != 0) {
usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c
178
if (fstat(fd, &sb) != 0) {
usr.sbin/btxld/btxld.c
330
if (fstat(fd, &sb))
usr.sbin/camdd/camdd.c
1063
retval = fstat(fd, &file_dev->sb);
usr.sbin/ckdist/ckdist.c
295
else if (fstat(fd, &sb))
usr.sbin/config/main.cc
601
if (!changed && fstat(from_fd, &from_sb) < 0)
usr.sbin/config/main.cc
604
if (!changed && fstat(to_fd, &to_sb) < 0)
usr.sbin/config/main.cc
736
error = fstat(r, &st);
usr.sbin/cpucontrol/cpucontrol.c
382
rc = fstat(fwfd, &st);
usr.sbin/cron/cron/database.c
260
if (fstat(crontab_fd, statbuf) < OK) {
usr.sbin/cron/crontab/crontab.c
353
if (fstat(t, &fsbuf) < 0) {
usr.sbin/crunch/crunchide/exec_elf32.c
166
if (fstat(fd, &sb) == -1)
usr.sbin/cxgbetool/cxgbetool.c
2193
if (fstat(fd, &st) < 0) {
usr.sbin/diskinfo/diskinfo.c
159
error = fstat(fd, &sb);
usr.sbin/fifolog/lib/fifolog_create.c
68
i = fstat(fd, &st);
usr.sbin/fifolog/lib/fifolog_int.c
72
i = fstat(f->fd, &st);
usr.sbin/fstyp/fstyp.c
186
error = fstat(fd, &sb);
usr.sbin/inetd/builtins.c
624
if (fakeid_fd == -1 || fstat(fakeid_fd, &sb) == -1 ||
usr.sbin/lpr/common_source/common.c
126
if (fstat(dirfd(dirp), &stbuf) < 0)
usr.sbin/lpr/lpc/cmds.c
1099
(void) fstat(fd, &stbuf);
usr.sbin/lpr/lpd/printjob.c
1018
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 &&
usr.sbin/lpr/lpd/printjob.c
1113
statrc = fstat(tfd, &stb); /* to find size of tfile */
usr.sbin/lpr/lpd/printjob.c
282
if (fstat(lfd, &stb) == 0) {
usr.sbin/lpr/lpd/printjob.c
628
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 &&
usr.sbin/mfiutil/mfi_flash.c
112
if (fstat(flash, &sb) < 0) {
usr.sbin/mlx5tool/mlx5tool.c
161
error = fstat(fd, &st);
usr.sbin/nfsd/nfsd.c
1135
ret = fstat(stable_fd, &st);
usr.sbin/nfsd/nfsd.c
1149
ret = fstat(backup_fd, &backup_st);
usr.sbin/ppp/ether.c
683
if (fstat(p->fd, &st) != -1 && (st.st_mode & S_IFSOCK)) {
usr.sbin/ppp/exec.c
384
if (fstat(p->fd, &st) != -1 && (st.st_mode & S_IFIFO)) {
usr.sbin/ppp/ipcp.c
194
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
285
if (fstat(p->fd, &st) != -1 && (st.st_mode & S_IFSOCK)) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
180
if (fstat(fileno(fp), &st) < 0)
usr.sbin/rwhod/rwhod.c
430
if (fstat(whod, &st) < 0 || st.st_size > cc)
usr.sbin/trim/trim.c
183
if (fstat(fd, &sb) < 0)
usr.sbin/uathload/uathload.c
162
if (fstat(fw, &sb) < 0)
usr.sbin/uefisign/child.c
61
error = fstat(fd, &sb);
usr.sbin/uhsoctl/uhsoctl.c
495
i = fstat(fd, &sb);
usr.sbin/vidcontrol/vidcontrol.c
366
if (fstat(fileno(file), &sb) == 0)
usr.sbin/ypldap/parse.y
662
if (fstat(fd, &st)) {