Home
last modified time | relevance | path

Searched refs:fstat (Results 1 – 25 of 614) sorted by relevance

12345678910>>...25

/freebsd/lib/libutil/
H A Dkld.c41 struct kld_file_stat fstat; in kld_isloaded() local
47 fstat.version = sizeof(fstat); in kld_isloaded()
48 if (kldstat(fid, &fstat) != 0) in kld_isloaded()
51 if (strcmp(fstat.name, name) == 0) in kld_isloaded()
54 if ((ko = strstr(fstat.name, ".ko")) != NULL && in kld_isloaded()
55 strlen(name) == (size_t)(ko - fstat.name) && in kld_isloaded()
56 strncmp(fstat.name, name, ko - fstat.name) == 0) in kld_isloaded()
/freebsd/tools/test/stress2/misc/
H A Dfstat.sh41 sed '1,/^EOF/d' < $odir/$0 > $dir/fstat.c
42 mycc -o fstat -Wall -Wextra -O0 -g fstat.c || exit 1
43 rm -f fstat.c
56 $dir/fstat
60 [ -f fstat.core -a $s -eq 0 ] &&
61 { ls -l fstat.core; mv fstat.core $dir; s=1; }
68 { echo FATAL; fstat -mf $mntpoint; exit 1; }
71 rm -rf $dir/fstat
H A Dtmpfs22.sh98 if (fstat(fd, &st1) == -1)
105 if (fstat(fd, &st2) == -1)
/freebsd/usr.bin/fstat/
H A DMakefile2 PROG= fstat
3 SRCS= fstat.c fuser.c main.c
4 LINKS= ${BINDIR}/fstat ${BINDIR}/fuser
7 MAN1= fuser.1 fstat.1
/freebsd/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c73 REQUIRE_ERRNO(fstat(fdm, &stm), -1); in ATF_TC_BODY()
86 REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1); in ATF_TC_BODY()
91 REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1); in ATF_TC_BODY()
139 REQUIRE_ERRNO(fstat(fdm, &stm), -1); in ATF_TC_BODY()
153 REQUIRE_ERRNO(fstat(fds, &sts), -1); in ATF_TC_BODY()
/freebsd/contrib/pjdfstest/tests/chmod/
H A D12.t22 expect 0777 -u 65534 -g 65534 open ${n0} O_WRONLY : write 0 x : fstat 0 mode
28 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
34 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
/freebsd/sys/contrib/openzfs/cmd/
H A Dzgenhostid.c106 struct stat fstat; in main() local
107 if (force_fwrite == 0 && stat(path, &fstat) == 0 && in main()
108 S_ISREG(fstat.st_mode)) { in main()
/freebsd/bin/stty/
H A Dutil.c51 !fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) && in checkredirect()
/freebsd/contrib/netbsd-tests/lib/librumpclient/
H A Dt_fd.c83 ATF_REQUIRE_ERRNO(EBADF, fstat(0, &sb) == -1); in ATF_TC_BODY()
84 ATF_REQUIRE_ERRNO(EBADF, fstat(1, &sb) == -1); in ATF_TC_BODY()
85 ATF_REQUIRE_ERRNO(EBADF, fstat(2, &sb) == -1); in ATF_TC_BODY()
/freebsd/tests/sys/kern/pipe/
H A Dpipe_ino_test.c50 if (fstat(pipefd[0], &st1) == -1) in main()
52 if (fstat(pipefd[1], &st2) == -1) in main()
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dstat.h48 ret = fstat(fd, sb); in fstat64()
86 #define fstat64 fstat
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_stat.c169 ATF_REQUIRE_ERRNO(EBADF, fstat(-1, &st) == -1); in ATF_TC_BODY()
260 ATF_REQUIRE(fstat(fd, &sa) == 0); in ATF_TC_BODY()
300 ATF_REQUIRE(fstat(fd, &sa) == 0); in ATF_TC_BODY()
302 ATF_REQUIRE(fstat(fd, &sb) == 0); in ATF_TC_BODY()
359 if (fstat(fd, &st) != 0 || errno != 0) in ATF_TC_BODY()
H A Dt_truncate.c67 ATF_REQUIRE(fstat(fd, &st) == 0); in ATF_TC_BODY()
127 ATF_REQUIRE(fstat(fd, &st) == 0); in ATF_TC_BODY()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz_math.c306 raidz_impl_kstat_t *fstat = &raidz_impl_kstats[raidz_supp_impl_cnt]; in raidz_math_kstat_data() local
313 if (cstat == fstat) { in raidz_math_kstat_data()
318 int id = fstat->gen[i]; in raidz_math_kstat_data()
323 int id = fstat->rec[i]; in raidz_math_kstat_data()
399 raidz_impl_kstat_t *fstat = &raidz_impl_kstats[raidz_supp_impl_cnt]; in benchmark_raidz_impl() local
430 fstat->gen[fn] = impl; in benchmark_raidz_impl()
434 fstat->rec[fn] = impl; in benchmark_raidz_impl()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_stat_mode.c70 if (fstat(fd, &fst) == -1) in test_stat_mode()
90 if (fstat(fd, &fst) == -1) in test_stat_mode()
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dh_fileactions.c95 if (fstat(fileno(stdout), &sb0) != 0) { in main()
100 if (fstat(lowfd + 4, &sb1) != 0) { in main()
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_wrappers.c225 if (fstat(STDIN_FILENO, &st) != 0) { in audit_set_terminal_port()
746 audit_get_fsize(au_fstat_t *fstat, size_t sz) in audit_get_fsize() argument
749 if (sizeof(*fstat) != sz) { in audit_get_fsize()
754 return (auditon(A_GETFSIZE, fstat, sz)); in audit_get_fsize()
758 audit_set_fsize(au_fstat_t *fstat, size_t sz) in audit_set_fsize() argument
761 if (sizeof(*fstat) != sz) { in audit_set_fsize()
766 return (auditon(A_SETFSIZE, fstat, sz)); in audit_set_fsize()
/freebsd/usr.bin/tail/
H A Dtail.c212 fstat(fileno(filep->fp), &filep->st)) { in main()
226 fstat(fileno(fp), &sb)) { in main()
243 if (fstat(fileno(stdin), &sb)) { in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dclone_mmap_cached.c107 if (fstat(sfd, &sb) == -1) { in main()
115 if (fstat(dfd, &sb) == -1) { in main()
/freebsd/tests/sys/file/
H A Dftruncate_test.c97 if (fstat(fd, &sb) < 0) in main()
120 if (fstat(fd, &sb) < 0) in main()
/freebsd/sys/contrib/xen/io/
H A Dfsif.h151 struct fsif_stat_request fstat; member
171 struct fsif_stat_response fstat; member
/freebsd/lib/libc/tests/stdio/
H A Dmkostemp_test.c89 if (fstat(fd, &st2) == -1) { in test_one()
116 if (fstat(fd, &st2) == -1) in test_one()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp141 int fstat(int fd, struct stat *buf) { STAT(fstat, fd, buf); } in fstat() function
152 int __fxstat(int version, int fd, struct stat *buf) { STAT(fstat, fd, buf); } in __fxstat()
/freebsd/bin/pax/
H A Dbuf_subs.c628 else if (fstat(ifd, &sb) < 0) in wr_rdfile()
674 if (fstat(ofd, &sb) == 0) { in rd_wrfile()
769 if (fstat(fd2, &sb) == 0) { in cp_file()
800 else if (fstat(fd1, &sb) < 0) in cp_file()
/freebsd/tests/sys/fs/fusefs/
H A Dcopy_file_range.cc621 ASSERT_EQ(0, fstat(fd1, &sb1a)) << strerror(errno); in TEST_F()
622 ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno); in TEST_F()
627 ASSERT_EQ(0, fstat(fd1, &sb1b)) << strerror(errno); in TEST_F()
628 ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno); in TEST_F()
682 ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno); in TEST_F()
784 ASSERT_EQ(0, fstat(fd1, &sb1a)) << strerror(errno); in TEST_F()
785 ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno); in TEST_F()
790 ASSERT_EQ(0, fstat(fd1, &sb1b)) << strerror(errno); in TEST_F()
791 ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno); in TEST_F()

12345678910>>...25