Searched refs:fchmod (Results 26 - 50 of 72) sorted by relevance

123

/freebsd-11-stable/contrib/atf/atf-c/
H A Dutils.c191 ATF_REQUIRE_MSG(fchmod(output, sb.st_mode) != -1,
/freebsd-11-stable/bin/mv/
H A Dmv.c325 if (fchmod(to_fd, sbp->st_mode))
/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Dmakeshell.c203 fchmod(STDOUT_FILENO, 0755);
/freebsd-11-stable/tools/regression/priv/
H A Dmain.c416 if (fchmod(fd, mode) < 0)
/freebsd-11-stable/usr.bin/sed/
H A Dmain.c428 fchmod(fileno(outfile), sb.st_mode & ALLPERMS);
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dfile.c351 (void)fchmod(fd, mode);
/freebsd-11-stable/bin/cp/
H A Dutils.c390 if (fdval ? fchmod(fd, fs->st_mode) :
/freebsd-11-stable/usr.bin/mail/
H A Dquit.c246 (void)fchmod(fileno(obuf), 0600);
/freebsd-11-stable/sbin/ldconfig/
H A Dldconfig.c501 fchmod(fd, 0444);
/freebsd-11-stable/usr.sbin/cron/crontab/
H A Dcrontab.c591 if (fchmod(fileno(tmp), 0600) < OK)
/freebsd-11-stable/tests/sys/audit/
H A Dfile-attribute-modify.c250 "fchmod(2) call");
256 snprintf(extregex, sizeof(extregex), "fchmod.*%d.*return,success", pid);
258 /* File needs to exist to call fchmod(2) */
261 ATF_REQUIRE_EQ(0, fchmod(filedesc, mode));
276 "fchmod(2) call");
281 const char *regex = "fchmod.*return,failure : Bad file descriptor";
284 ATF_REQUIRE_EQ(-1, fchmod(-1, mode));
/freebsd-11-stable/lib/libc/sys/
H A DMakefile.inc344 MLINKS+=chmod.2 fchmod.2 \
/freebsd-11-stable/crypto/openssh/
H A Dscp.c1167 if (fchmod(ofd, omode)) {
1178 if (fchmod(ofd, omode & ~mask)) {
/freebsd-11-stable/usr.sbin/lpr/lpd/
H A Dprintjob.c248 if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE) < 0)
249 syslog(LOG_ERR, "%s: fchmod(%s): %m", pp->printer,
259 if ((i = fchmod(tempfd, 0664)) == -1) {
260 syslog(LOG_ERR, "%s: fchmod(%s): %m", pp->printer,
302 if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE)
305 "%s: fchmod(%s): %m",
/freebsd-11-stable/contrib/nvi/common/
H A Drecover.c156 (void)fchmod(fd, S_IRWXU);
/freebsd-11-stable/contrib/openbsm/libauditd/
H A Dauditd_lib.c853 if (fchown(fd, -1, gid) < 0 || fchmod(fd, S_IRUSR | S_IRGRP) < 0) {
/freebsd-11-stable/usr.bin/at/
H A Dat.c437 if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) < 0)
/freebsd-11-stable/usr.sbin/kldxref/
H A Dkldxref.c605 fchmod(fd, 0644); /* nothing secret in the file */
/freebsd-11-stable/contrib/wpa/src/common/
H A Dwpa_ctrl.c149 fchmod(ctrl->s, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
/freebsd-11-stable/contrib/xz/src/xz/
H A Dfile_io.c390 if (fchmod(pair->dest_fd, mode))
681 // for them, but calls fchown() after fchmod(),
/freebsd-11-stable/contrib/elftoolchain/elfcopy/
H A Dmain.c563 if (fchmod(*fd, 0644) == -1)
564 err(EXIT_FAILURE, "fchmod %s failed", tmpf);
814 if (strcmp(dst, "/dev/null") && fchmod(ofd, sb.st_mode) == -1)
815 err(EXIT_FAILURE, "fchmod %s failed", dst);
/freebsd-11-stable/usr.bin/gzip/
H A Dgzip.c1120 (void)fchmod(fd, DEFFILEMODE & ~mask);
1135 if (fchmod(fd, sb.st_mode) < 0)
1136 maybe_warn("couldn't fchmod: %s", file);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc745 if (::fchmod(FD, Permissions))
/freebsd-11-stable/contrib/pjdfstest/
H A Dpjdfstest.c176 { "fchmod", ACTION_FCHMOD, { TYPE_DESCRIPTOR, TYPE_NUMBER, TYPE_NONE } },
820 rval = fchmod(NUM(0), (mode_t)NUM(1));
/freebsd-11-stable/gnu/usr.bin/rcs/ci/
H A Dci.c42 * (fixwork): Fall back on chmod if fchmod fails, since it might be ENOSYS.
1184 : fchmod(Ifileno(workptr), newworkmode) == 0 ? 0

Completed in 318 milliseconds

123