Searched refs:fstatat (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-13-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fstatat.c46 #define FILE "dir/fstatat"
47 #define BASEFILE "fstatat"
55 atf_tc_set_md_var(tc, "descr", "See that fstatat works with fd");
68 ATF_REQUIRE(fstatat(dfd, BASEFILE, &st1, 0) == 0);
79 "See that fstatat works with fd as AT_FDCWD");
91 ATF_REQUIRE(fstatat(AT_FDCWD, BASEFILE, &st, 0) == 0);
98 "See that fstatat fails with fd as AT_FDCWD and bad path");
105 ATF_REQUIRE(fstatat(AT_FDCWD, FILEERR, &st, 0) == -1);
111 atf_tc_set_md_var(tc, "descr", "See that fstatat fail with bad path");
120 ATF_REQUIRE(fstatat(df
[all...]
H A Dt_o_search.c197 atf_tc_set_md_var(tc, "descr", "See that root fstatat honours O_SEARCH");
227 atf_tc_set_md_var(tc, "descr", "See that fstatat honours O_SEARCH");
338 ATF_REQUIRE(fstatat(dfd, BASEFILE, &sb, 0) == 0);
/freebsd-13-stable/lib/libc/sys/
H A Dfstatat.c38 fstatat(int fd, const char *path, struct stat *sb, int flag) function
H A DMakefile.inc39 SRCS+= fstat.c fstatat.c fstatfs.c getfsstat.c statfs.c
40 NOASM+= fstat.o fstatat.o fstatfs.o getfsstat.o statfs.o
486 stat.2 fstatat.2 \
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/
H A Dfstatat.h40 fstatat(int fd, const char *path, struct stat *buf, int flag) function
/freebsd-13-stable/usr.sbin/pw/
H A Drm_r.c68 if (fstatat(dirfd, e->d_name, &st, AT_SYMLINK_NOFOLLOW) != 0)
76 if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0)
H A Dcpdir.c80 if (fstatat(skelfd, p, &st, AT_SYMLINK_NOFOLLOW) == -1)
H A Dpw_user.c100 if (fstatat(dfd, dir, &st, 0) != -1) {
134 if (fstatat(dfd, dirs, &st, 0) == -1) {
137 if (fstatat(dfd, dirs, &st, 0) == -1) {
144 if (fstatat(dfd, dirs, &st, 0) == -1) {
1019 fstatat(conf.rootfd, home + 1, &st, 0) != -1) {
1023 fstatat(conf.rootfd, home + 1, &st, 0) == -1 ? "" : "not "
1269 if (fstatat(conf.rootfd, walk, &st, 0) == -1)
1590 if (fstatat(conf.rootfd, walk, &st, 0) == -1)
1731 if (fstatat(conf.rootfd, pwd->pw_dir, &st, 0) == -1) {
/freebsd-13-stable/lib/libc/include/
H A Dcompat.h55 __sym_compat(fstatat, freebsd11_fstatat, FBSD_1.1);
/freebsd-13-stable/lib/libutil/
H A Dflopen.c84 if (fstatat(dirfd, path, &sb, 0) == -1) {
/freebsd-13-stable/tools/build/
H A Dutimensat.c78 if (fstatat(fd, path, &sb, flag) == -1)
/freebsd-13-stable/contrib/lib9p/backend/
H A Dfs.c474 if (fstatat(ff->ff_dirfd, path, st, AT_SYMLINK_NOFOLLOW) != 0)
532 if (fstatat(dirf->ff_dirfd, dirf->ff_name, st,
1229 if (fstatat(file->ff_dirfd, name, &first, AT_SYMLINK_NOFOLLOW) != 0)
1408 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0)
1449 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0)
1544 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0)
1599 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0)
1634 * have lstatat (or fstatat with AT_SYMLINK_NOFOLLOW), but not
1641 return (fstatat(dirfd(file->ff_dir), name, st, AT_SYMLINK_NOFOLLOW));
1741 if (fstatat(fil
[all...]
/freebsd-13-stable/libexec/rtld-elf/rtld-libc/
H A DMakefile.inc47 _libc_other_objects= sigsetjmp lstat stat fstat fstatat fstatfs syscall \
/freebsd-13-stable/sys/kern/
H A Dcapabilities.conf483 fstatat
/freebsd-13-stable/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-stable/lib/libc/gen/
H A Dgetcwd.c174 if (fstatat(_dirfd(dir), dp->d_name, &s,
H A Dfts.c904 if (fstatat(dfd, path, sbp, 0)) {
906 if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) {
914 } else if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) {
/freebsd-13-stable/sys/sys/
H A Dsyscall.mk396 fstatat.o \
H A Dstat.h398 int fstatat(int, const char *, struct stat *, int);
/freebsd-13-stable/usr.bin/write/
H A Dwrite.c281 if (fstatat(devfd, tty, &s, 0) < 0) {
/freebsd-13-stable/usr.bin/touch/
H A Dtouch.c170 if (fstatat(AT_FDCWD, *argv, &sb, atflag) != 0) {
/freebsd-13-stable/tests/sys/file/
H A Dpath_test.c273 ATF_REQUIRE_MSG(fstatat(pathfd, "test", &sb, 0) == 0,
274 FMT_ERR("fstatat"));
341 ATF_REQUIRE_MSG(fstatat(pathfd, "", &sb, AT_EMPTY_PATH) == 0,
342 FMT_ERR("fstatat"));
396 ATF_REQUIRE_MSG(fstatat(pathfd, "", &sb, AT_EMPTY_PATH) == 0,
397 FMT_ERR("fstatat"));
401 ATF_REQUIRE_MSG(fstatat(AT_FDCWD, "test", &sb2, 0) == 0,
402 FMT_ERR("fstatat"));
/freebsd-13-stable/contrib/capsicum-test/
H A Dlinux.cc330 TEST(Linux, fstatat) {
344 EXPECT_OK(fstatat(fd, "", &info, AT_EMPTY_PATH));
345 EXPECT_NOTCAPABLE(fstatat(cap_ro, "", &info, AT_EMPTY_PATH));
346 EXPECT_OK(fstatat(cap_rf, "", &info, AT_EMPTY_PATH));
361 EXPECT_OK(fstatat(dir, "cap_fstatat", &info, AT_EMPTY_PATH));
362 EXPECT_NOTCAPABLE(fstatat(dir_ro, "cap_fstatat", &info, AT_EMPTY_PATH));
363 EXPECT_OK(fstatat(dir_rf, "cap_fstatat", &info, AT_EMPTY_PATH));
/freebsd-13-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c336 ret = fstatat(dfd_cap, "cap_fstatat", &sb, 0);
337 CHECK_RESULT(fstatat, CAP_FSTAT | CAP_LOOKUP, ret == 0);
/freebsd-13-stable/bin/sh/
H A Dhistedit.c582 if (fstatat(dfd, entry->d_name, &statb, 0) == -1)

Completed in 288 milliseconds

12