Home
last modified time | relevance | path

Searched refs:fchmodat (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fchmodat.c68 ATF_REQUIRE(fchmodat(dfd, BASEFILE, 0600, 0) == 0); in ATF_TC_BODY()
91 ATF_REQUIRE(fchmodat(AT_FDCWD, BASEFILE, 0600, 0) == 0); in ATF_TC_BODY()
106 ATF_REQUIRE(fchmodat(AT_FDCWD, FILEERR, 0600, 0) == -1); in ATF_TC_BODY()
120 ATF_REQUIRE(fchmodat(dfd, FILEERR, 0600, 0) == -1); in ATF_TC_BODY()
140 ATF_REQUIRE(fchmodat(dfd, BASEFILE, 0600, 0) == -1); in ATF_TC_BODY()
157 ATF_REQUIRE(fchmodat(-1, FILE, 0600, 0) == -1); in ATF_TC_BODY()
175 ATF_REQUIRE(fchmodat(dfdlink, BASELINK, 0600, 0) == -1); in ATF_TC_BODY()
178 ATF_REQUIRE(fchmodat(dfdlink, BASELINK, 0600, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
/freebsd/cddl/usr.sbin/dwatch/libexec/
H A Dchmod5 # $Title: dwatch(8) module for [l]chmod(2), fchmodat(2), or similar entry $
10 # Print mode/path being passed to chmod(2), lchmod(2), fchmodat(2), or similar
19 syscall::fchmodat:entry )}
38 * NB: Based on probefunc ending in "at" (e.g., fchmodat(2))
H A DMakefile24 LINKS= ${LIBEXECDIR}/dwatch/chmod ${LIBEXECDIR}/dwatch/fchmodat
/freebsd/contrib/pjdfstest/
H A Dconfigure.ac35 AC_CHECK_FUNC([fchmodat],
36 [AC_DEFINE([HAVE_FCHMODAT], [1], [Define if fchmodat exists])])
H A Dpjdfstest.c966 rval = fchmodat(NUM(0), STR(1), (mode_t)NUM(2), in call_syscall()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-misc.h77 int fchmodat(int, const char *, mode_t, int);
H A Dbsd-misc.c207 fchmodat(int fd, const char *path, mode_t mode, int flag) in fchmodat() function
/freebsd/usr.sbin/pw/
H A Dcpdir.c63 if (fchmodat(rootfd, dir, mode & ~pumask, in copymkdir()
/freebsd/bin/chmod/
H A Dchmod.c191 if (fchmodat(AT_FDCWD, p->fts_accpath, newmode, atflag) == -1 in main()
/freebsd/contrib/llvm-project/libcxx/src/filesystem/
H A Dposix_compat.h382 inline int fchmodat(int /*fd*/, const wchar_t* path, int perms, int flag) { in fchmodat() function
462 using ::fchmodat;
H A Doperations.cpp766 if (detail::fchmodat(AT_FDCWD, p.c_str(), real_perms, flags) == -1) { in __permissions()
/freebsd/sys/sys/
H A Dstat.h377 int fchmodat(int, const char *, mode_t, int);
H A Dsyscall.mk340 fchmodat.o \
/freebsd/lib/libsys/
H A DSymbol.sys.map277 fchmodat;
H A DMakefile.sys414 chmod.2 fchmodat.2 \
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c316 ret = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0); in try_file_ops()
317 CHECK_RESULT(fchmodat, CAP_FCHMOD | CAP_LOOKUP, ret == 0); in try_file_ops()
/freebsd/tests/sys/capsicum/
H A Dcapmode.cc414 EXPECT_OK(fchmodat(dfd, "subdir", 0644, 0)); in TEST()
478 EXPECT_CAPMODE(fchmodat(AT_FDCWD, "subdir", 0644, 0)); in TEST()
H A Dcapability-fd.cc788 rc = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0); in TryDirOps()
/freebsd/contrib/lib9p/backend/
H A Dfs.c1407 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imknod()
1448 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imkfifo()
1543 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imksocket()
2075 if (fchmodat(file->ff_dirfd, file->ff_name, in fs_wstat()
2545 if (fchmodat(file->ff_dirfd, file->ff_name, in fs_setattr()
/freebsd/bin/cp/
H A Dutils.c377 fchmodat(to.dir, to.path, fs->st_mode, atflags)) { in setfile()
H A Dcp.c515 if (fchmodat(to.dir, path, mode & mask, 0) != 0) { in copy()
/freebsd/tests/sys/file/
H A Dpath_test.c411 ATF_REQUIRE_MSG(fchmodat(pathfd, "", 0600, AT_EMPTY_PATH) == 0, in ATF_TC_BODY()
444 fchmodat(pathfd, "", 0600, AT_EMPTY_PATH) == -1); in ATF_TC_BODY()
/freebsd/tests/sys/audit/
H A Dfile-attribute-modify.c348 ATF_REQUIRE_EQ(0, fchmodat(AT_FDCWD, path, mode, 0)); in ATF_TC_BODY()
370 ATF_REQUIRE_ERRNO(ENOENT, fchmodat(AT_FDCWD, errpath, mode, 0) == -1); in ATF_TC_BODY()
/freebsd/contrib/openbsm/etc/
H A Daudit_event506 43146:AUE_FCHMODAT:fchmodat(2):fm
/freebsd/crypto/openssh/
H A Dsftp-server.c1478 r = fchmodat(AT_FDCWD, name, in process_extended_lsetstat()

12