Home
last modified time | relevance | path

Searched refs:fstatat (Results 1 – 25 of 48) sorted by relevance

12

/freebsd-13.1/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fstatat.c68 ATF_REQUIRE(fstatat(dfd, BASEFILE, &st1, 0) == 0); in ATF_TC_BODY()
91 ATF_REQUIRE(fstatat(AT_FDCWD, BASEFILE, &st, 0) == 0); in ATF_TC_BODY()
105 ATF_REQUIRE(fstatat(AT_FDCWD, FILEERR, &st, 0) == -1); in ATF_TC_BODY()
120 ATF_REQUIRE(fstatat(dfd, FILEERR, &st, 0) == -1); in ATF_TC_BODY()
141 ATF_REQUIRE(fstatat(dfd, BASEFILE, &st, 0) == -1); in ATF_TC_BODY()
159 ATF_REQUIRE(fstatat(-1, FILE, &st, 0) == -1); in ATF_TC_BODY()
177 ATF_REQUIRE(fstatat(dfd, BASELINK, &st, 0) == -1); in ATF_TC_BODY()
180 ATF_REQUIRE(fstatat(dfd, BASELINK, &st, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
H A Dt_o_search.c338 ATF_REQUIRE(fstatat(dfd, BASEFILE, &sb, 0) == 0); in ATF_TC_BODY()
/freebsd-13.1/usr.sbin/pw/
H A Drm_r.c68 if (fstatat(dirfd, e->d_name, &st, AT_SYMLINK_NOFOLLOW) != 0) in rm_r()
76 if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0) in rm_r()
H A Dpw_user.c100 if (fstatat(dfd, dir, &st, 0) != -1) { in mkdir_home_parents()
134 if (fstatat(dfd, dirs, &st, 0) == -1) { in mkdir_home_parents()
137 if (fstatat(dfd, dirs, &st, 0) == -1) { in mkdir_home_parents()
144 if (fstatat(dfd, dirs, &st, 0) == -1) { in mkdir_home_parents()
1019 fstatat(conf.rootfd, home + 1, &st, 0) != -1) { in pw_user_del()
1023 fstatat(conf.rootfd, home + 1, &st, 0) == -1 ? "" : "not " in pw_user_del()
1269 if (fstatat(conf.rootfd, walk, &st, 0) == -1) in pw_user_add()
1590 if (fstatat(conf.rootfd, walk, &st, 0) == -1) in pw_user_mod()
1731 if (fstatat(conf.rootfd, pwd->pw_dir, &st, 0) == -1) { in pw_user_mod()
H A Dcpdir.c80 if (fstatat(skelfd, p, &st, AT_SYMLINK_NOFOLLOW) == -1) in copymkdir()
/freebsd-13.1/contrib/lib9p/backend/
H A Dfs.c474 if (fstatat(ff->ff_dirfd, path, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_pdir()
532 if (fstatat(dirf->ff_dirfd, dirf->ff_name, st, in fs_nde()
1408 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imknod()
1449 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imkfifo()
1599 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_isymlink()
1772 if (fstatat(file->ff_dirfd, file->ff_name, &st, in fs_stat()
1831 if (fstatat(file->ff_dirfd, succ, &st, AT_SYMLINK_NOFOLLOW) < 0) in fs_walk()
2137 if (fstatat(file->ff_dirfd, file->ff_name, &st, in fs_statfs()
2328 if (fstatat(file->ff_dirfd, file->ff_name, &cst, in fs_rename()
2351 if (fstatat(f2ff->ff_dirfd, f2ff->ff_name, &npst, in fs_rename()
[all …]
/freebsd-13.1/lib/libc/sys/
H A Dfstatat.c38 fstatat(int fd, const char *path, struct stat *sb, int flag) in fstatat() function
H A DMakefile.inc42 SRCS+= fstat.c fstatat.c fstatfs.c getfsstat.c statfs.c
43 NOASM+= fstat.o fstatat.o fstatfs.o getfsstat.o statfs.o
491 stat.2 fstatat.2 \
/freebsd-13.1/contrib/pjdfstest/
H A Dconfigure.ac39 AC_CHECK_FUNC([fstatat],
40 [AC_DEFINE([HAVE_FSTATAT], [1], [Define if fstatat exists])])
/freebsd-13.1/tests/sys/file/
H A Dpath_test.c273 ATF_REQUIRE_MSG(fstatat(pathfd, "test", &sb, 0) == 0, in ATF_TC_BODY()
341 ATF_REQUIRE_MSG(fstatat(pathfd, "", &sb, AT_EMPTY_PATH) == 0, in ATF_TC_BODY()
396 ATF_REQUIRE_MSG(fstatat(pathfd, "", &sb, AT_EMPTY_PATH) == 0, in ATF_TC_BODY()
401 ATF_REQUIRE_MSG(fstatat(AT_FDCWD, "test", &sb2, 0) == 0, in ATF_TC_BODY()
771 ATF_REQUIRE_MSG(fstatat(fd[0], "", &sb, AT_EMPTY_PATH) == 0, in ATF_TC_BODY()
773 ATF_REQUIRE_ERRNO(EFAULT, fstatat(fd[0], NULL, &sb, in ATF_TC_BODY()
873 ATF_REQUIRE_MSG(fstatat(pathfd, "", &sb, AT_EMPTY_PATH) == 0, in ATF_TC_BODY()
/freebsd-13.1/contrib/openbsm/bin/auditdistd/
H A Dfstatat.h40 fstatat(int fd, const char *path, struct stat *buf, int flag) in fstatat() function
/freebsd-13.1/lib/libc/include/
H A Dcompat.h55 __sym_compat(fstatat, freebsd11_fstatat, FBSD_1.1);
/freebsd-13.1/usr.sbin/cron/cron/
H A Ddatabase.c88 ret = fstatat(dirfd(dir), dp->d_name, &st, 0);
139 if (fstatat(dirfd(dir), dp->d_name, &st, 0) == 0 &&
/freebsd-13.1/lib/libutil/
H A Dflopen.c84 if (fstatat(dirfd, path, &sb, 0) == -1) { in vflopenat()
/freebsd-13.1/tools/build/
H A Dutimensat.c78 if (fstatat(fd, path, &sb, flag) == -1) in utimensat()
/freebsd-13.1/libexec/rtld-elf/rtld-libc/
H A DMakefile.inc47 _libc_other_objects= sigsetjmp lstat stat fstat fstatat fstatfs syscall \
/freebsd-13.1/contrib/capsicum-test/
H A Dlinux.cc330 TEST(Linux, fstatat) { in TEST() argument
344 EXPECT_OK(fstatat(fd, "", &info, AT_EMPTY_PATH)); in TEST()
345 EXPECT_NOTCAPABLE(fstatat(cap_ro, "", &info, AT_EMPTY_PATH)); in TEST()
346 EXPECT_OK(fstatat(cap_rf, "", &info, AT_EMPTY_PATH)); in TEST()
361 EXPECT_OK(fstatat(dir, "cap_fstatat", &info, AT_EMPTY_PATH)); in TEST()
362 EXPECT_NOTCAPABLE(fstatat(dir_ro, "cap_fstatat", &info, AT_EMPTY_PATH)); in TEST()
363 EXPECT_OK(fstatat(dir_rf, "cap_fstatat", &info, AT_EMPTY_PATH)); in TEST()
H A Dcapmode.cc411 EXPECT_OK(fstatat(dfd, "testfile", &fs, 0)); in TEST()
475 EXPECT_CAPMODE(fstatat(AT_FDCWD, "testfile", &fs, 0)); in TEST()
/freebsd-13.1/lib/libc/gen/
H A Dgetcwd.c174 if (fstatat(_dirfd(dir), dp->d_name, &s, in getcwd()
H A Dfts.c904 if (fstatat(dfd, path, sbp, 0)) { in fts_stat()
906 if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) { in fts_stat()
914 } else if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) { in fts_stat()
/freebsd-13.1/sys/kern/
H A Dcapabilities.conf483 fstatat
/freebsd-13.1/sys/sys/
H A Dstat.h398 int fstatat(int, const char *, struct stat *, int);
/freebsd-13.1/usr.bin/write/
H A Dwrite.c281 if (fstatat(devfd, tty, &s, 0) < 0) { in term_chk()
/freebsd-13.1/usr.bin/touch/
H A Dtouch.c170 if (fstatat(AT_FDCWD, *argv, &sb, atflag) != 0) { in main()
/freebsd-13.1/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c336 ret = fstatat(dfd_cap, "cap_fstatat", &sb, 0); in try_file_ops()
337 CHECK_RESULT(fstatat, CAP_FSTAT | CAP_LOOKUP, ret == 0); in try_file_ops()

12