Home
last modified time | relevance | path

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

12

/freebsd-12.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()
/freebsd-12.1/usr.sbin/pw/
H A Drm_r.c64 if (fstatat(dirfd, e->d_name, &st, AT_SYMLINK_NOFOLLOW) != 0) in rm_r()
72 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-12.1/contrib/pjdfstest/
H A Dconfigure.ac39 AC_CHECK_FUNC([fstatat],
40 [AC_DEFINE([HAVE_FSTATAT], [1], [Define if fstatat exists])])
/freebsd-12.1/lib/libc/sys/
H A Dfstatat.c39 fstatat(int fd, const char *path, struct stat *sb, int flag) in fstatat() 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
478 stat.2 fstatat.2 \
/freebsd-12.1/contrib/openbsm/bin/auditdistd/
H A Dfstatat.h40 fstatat(int fd, const char *path, struct stat *buf, int flag) in fstatat() function
H A Dtrail.c164 if (fstatat(dfd, filename, &sb, AT_SYMLINK_NOFOLLOW) == -1) { in trail_type()
H A Dreceiver.c621 if (fstatat(adhost->adh_trail_dirfd, adhost->adh_trail_name, in receiver_connect()
/freebsd-12.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-12.1/lib/libc/include/
H A Dcompat.h55 __sym_compat(fstatat, freebsd11_fstatat, FBSD_1.1);
/freebsd-12.1/lib/libutil/
H A Dflopen.c84 if (fstatat(dirfd, path, &sb, 0) == -1) { in vflopenat()
/freebsd-12.1/tools/build/
H A Dutimensat.c78 if (fstatat(fd, path, &sb, flag) == -1) in utimensat()
/freebsd-12.1/sys/kern/
H A Dcapabilities.conf460 fstatat
/freebsd-12.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-12.1/sys/sys/
H A Dstat.h394 int fstatat(int, const char *, struct stat *, int);
H A Dsyscall.mk396 fstatat.o \
/freebsd-12.1/usr.bin/write/
H A Dwrite.c281 if (fstatat(devfd, tty, &s, 0) < 0) { in term_chk()
/freebsd-12.1/usr.bin/touch/
H A Dtouch.c170 if (fstatat(AT_FDCWD, *argv, &sb, atflag) != 0) { in main()
/freebsd-12.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()
/freebsd-12.1/tests/sys/audit/
H A Dfile-attribute-access.c205 ATF_REQUIRE_EQ(0, fstatat(AT_FDCWD, path, &statbuff, in ATF_TC_BODY()
227 ATF_REQUIRE_EQ(-1, fstatat(AT_FDCWD, path, &statbuff, in ATF_TC_BODY()
/freebsd-12.1/contrib/openbsm/
H A Dconfigure.ac103 …c4random_buf bzero cap_enter clock_gettime closefrom faccessat fdopendir fstatat ftruncate getresg…
/freebsd-12.1/contrib/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc699 INTERCEPTOR(int, fstatat, int fd, char *pathname, void *buf, int flags) { in INTERCEPTOR() argument
701 int res = REAL(fstatat)(fd, pathname, buf, flags); in INTERCEPTOR()
705 # define MSAN_INTERCEPT_FSTATAT INTERCEPT_FUNCTION(fstatat)

12