fchmodat
if (fchmodat(AT_FDCWD, p->fts_accpath, newmode, atflag) == -1
if (fchmodat(to.dir, path, mode & mask, 0) != 0) {
fchmodat(to.dir, to.path, fs->st_mode, atflags)) {
int fchmodat(int, const char *, mode_t, int);
r = fchmodat(AT_FDCWD, name,
int fchmodat(int, const char *, mode_t, int);
ATF_REQUIRE_EQ(0, fchmodat(AT_FDCWD, path, mode, 0));
ATF_REQUIRE_ERRNO(ENOENT, fchmodat(AT_FDCWD, errpath, mode, 0) == -1);
rc = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0);
EXPECT_OK(fchmodat(dfd, "subdir", 0644, 0));
EXPECT_CAPMODE(fchmodat(AT_FDCWD, "subdir", 0644, 0));
ATF_REQUIRE_MSG(fchmodat(pathfd, "", 0600, AT_EMPTY_PATH) == 0,
fchmodat(pathfd, "", 0600, AT_EMPTY_PATH) == -1);
ret = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0);
CHECK_RESULT(fchmodat, CAP_FCHMOD | CAP_LOOKUP, ret == 0);
if (fchmodat(rootfd, dir, mode & ~pumask,