Home
last modified time | relevance | path

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

12345678910>>...21

/freebsd-13.1/lib/libutil/
H A Dkld.c43 struct kld_file_stat fstat; in kld_isloaded() local
49 fstat.version = sizeof(fstat); in kld_isloaded()
50 if (kldstat(fid, &fstat) != 0) in kld_isloaded()
53 if (strcmp(fstat.name, name) == 0) in kld_isloaded()
56 if ((ko = strstr(fstat.name, ".ko")) != NULL && in kld_isloaded()
57 strlen(name) == (size_t)(ko - fstat.name) && in kld_isloaded()
58 strncmp(fstat.name, name, ko - fstat.name) == 0) in kld_isloaded()
/freebsd-13.1/usr.bin/fstat/
H A DMakefile4 PROG= fstat
5 SRCS= fstat.c fuser.c main.c
6 LINKS= ${BINDIR}/fstat ${BINDIR}/fuser
9 MAN1= fuser.1 fstat.1
/freebsd-13.1/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-13.1/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-13.1/sys/contrib/openzfs/cmd/zgenhostid/
H A Dzgenhostid.c107 struct stat fstat; in main() local
108 if (force_fwrite == 0 && stat(path, &fstat) == 0 && in main()
109 S_ISREG(fstat.st_mode)) { in main()
/freebsd-13.1/bin/stty/
H A Dutil.c59 !fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) && in checkredirect()
/freebsd-13.1/lib/libc/sys/
H A Dfstat.c37 #undef fstat
38 __weak_reference(_fstat, fstat);
/freebsd-13.1/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-13.1/tests/sys/kern/pipe/
H A Dpipe_ino_test.c51 if (fstat(pipefd[0], &st1) == -1) in main()
53 if (fstat(pipefd[1], &st2) == -1) in main()
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dstat.h48 ret = fstat(fd, sb); in fstat64()
82 #define fstat64 fstat
/freebsd-13.1/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-13.1/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz_math.c309 raidz_impl_kstat_t *fstat = &raidz_impl_kstats[raidz_supp_impl_cnt]; in raidz_math_kstat_data() local
316 if (cstat == fstat) { in raidz_math_kstat_data()
320 int id = fstat->gen[i]; in raidz_math_kstat_data()
325 int id = fstat->rec[i]; in raidz_math_kstat_data()
401 raidz_impl_kstat_t *fstat = &raidz_impl_kstats[raidz_supp_impl_cnt]; in benchmark_raidz_impl() local
432 fstat->gen[fn] = impl; in benchmark_raidz_impl()
436 fstat->rec[fn] = impl; in benchmark_raidz_impl()
/freebsd-13.1/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-13.1/usr.bin/tail/
H A Dtail.c215 fstat(fileno(filep->fp), &filep->st)) { in main()
229 fstat(fileno(fp), &sb)) { in main()
246 if (fstat(fileno(stdin), &sb)) { in main()
/freebsd-13.1/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-13.1/tests/sys/fs/fusefs/
H A Dcopy_file_range.cc490 ASSERT_EQ(0, fstat(fd1, &sb1a)) << strerror(errno); in TEST_F()
491 ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno); in TEST_F()
496 ASSERT_EQ(0, fstat(fd1, &sb1b)) << strerror(errno); in TEST_F()
497 ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno); in TEST_F()
551 ASSERT_EQ(0, fstat(fd, &sb)) << strerror(errno); in TEST_F()
650 ASSERT_EQ(0, fstat(fd1, &sb1a)) << strerror(errno); in TEST_F()
651 ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno); in TEST_F()
656 ASSERT_EQ(0, fstat(fd1, &sb1b)) << strerror(errno); in TEST_F()
657 ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno); in TEST_F()
/freebsd-13.1/tests/sys/file/
H A Dftruncate_test.c99 if (fstat(fd, &sb) < 0) in main()
122 if (fstat(fd, &sb) < 0) in main()
/freebsd-13.1/contrib/opie/libopie/
H A Dlogwtmp.c139 if (fstat(fd, &buf) == 0) {
169 if (fstat(fdx, &buf) == 0) {
/freebsd-13.1/sys/xen/interface/io/
H A Dfsif.h151 struct fsif_stat_request fstat; member
171 struct fsif_stat_response fstat; member
/freebsd-13.1/lib/libc/tests/stdio/
H A Dmkostemp_test.c92 if (fstat(fd, &st2) == -1) { in test_one()
119 if (fstat(fd, &st2) == -1) in test_one()
/freebsd-13.1/usr.bin/truncate/
H A Dtruncate.c133 if (fstat(fd, &sb) == -1) { in main()
148 if (fstat(fd, &sb) == -1) { in main()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp140 int fstat(int fd, struct stat *buf) { STAT(fstat, fd, buf); } in fstat() function
151 int __fxstat(int version, int fd, struct stat *buf) { STAT(fstat, fd, buf); } in __fxstat()
/freebsd-13.1/bin/pax/
H A Dbuf_subs.c636 else if (fstat(ifd, &sb) < 0) in wr_rdfile()
682 if (fstat(ofd, &sb) == 0) { in rd_wrfile()
777 if (fstat(fd2, &sb) == 0) { in cp_file()
808 else if (fstat(fd1, &sb) < 0) in cp_file()
/freebsd-13.1/contrib/libevent/sample/
H A Dhttp-server.c54 #ifndef fstat
55 #define fstat _fstat macro
295 if (fstat(fd, &st)<0) { in send_document_cb()

12345678910>>...21