fchmod
if (fdval ? fchmod(fd, fs->st_mode) :
if (fchmod(to_fd, sbp->st_mode))
if (fchmod(ofd, omode))
if (fchmod(ofd, omode & ~mask))
st = fchmod(fd, S_IRUSR | S_IWUSR);
fchmod(fd, S_IRUSR | S_IWUSR);
fchmod(fd, 0600);
if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) {
ret = fchmod(fd, mode);
if (fchmod(ofd, omode)) {
if (fchmod(ofd, omode & ~mask)) {
if (preserve_flag && fchmod(local_fd, mode) == -1)
r = fchmod(fd, a.perm & 07777);
(void)fchmod(fd, 0644);
(void)fchmod(fd, sb.st_mode & 0644);
fchmod(qf->fd, 0640);
fchmod(newqf->fd, 0640);
if (fchmod(fd, 0444) == -1)
if (fchmod(fd, S_IRUSR | S_IRGRP) != 0)
(void) fchmod(ofile, mode);
int fchmod(int, mode_t);
ATF_REQUIRE_EQ(0, fchmod(filedesc, mode));
ATF_REQUIRE_ERRNO(EBADF, fchmod(-1, mode) == -1);
int rc = fchmod(fd, 0666);
CHECK_RIGHT_RESULT(fchmod(cap_fd, 0644), rights, CAP_FCHMOD);
FAIL_SYSCALL(fchmod, ENOMEM),
EXPECT_SYSCALL_FAIL(ENOMEM, fchmod(fd, 0644));
if (fchmod(reader_fd, 0666) != 0) {
ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0666) == -1);
ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0500) == -1);
ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0500) == -1);
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
TEST_F(Setattr, fchmod)
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno);
error = fchmod(fd, 0600);
ATF_TC_WITHOUT_HEAD(fchmod);
ATF_TC_BODY(fchmod, tc)
error = fchmod(sd, 0600 | S_ISUID);
error = fchmod(sd, 0766);
error = fchmod(sd, 0666);
ATF_TP_ADD_TC(tp, fchmod);
if (fchmod(fd, mode) < 0)
ret = fchmod(fd_cap, 0644);
CHECK_RESULT(fchmod, CAP_FCHMOD, ret == 0);
if (fchmod(fd, setmode) == 0)
if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) < 0)
(void)fchmod(fd, DEFFILEMODE & ~mask);
if (fchmod(fd, sb.st_mode) < 0)
if (fchmod(fileno(f), 0644) < 0) {
if (readonly && fchmod(t, 0400) == -1) {
(void)fchmod(fileno(obuf), 0600);
result = fchmod(fd, q_creation.mode);
fchmod(fileno(outfile), sb.st_mode & ALLPERMS);
if (fchmod(to_fd,
(void)fchmod(fd, mode);
if (fchmod(fileno(tmp), 0600) < OK)
fchmod(fd, 0644); /* nothing secret in the file */
if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE) < 0)
if ((i = fchmod(tempfd, 0664)) == -1) {
if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE)
failed = fchmod(fd, ent->permissions);
(void)fchmod(fileno(fp), S_IRUSR|S_IWUSR);
if (ai->ai_family == AF_LOCAL && fchmod(s, mode) < 0) {