fchmod
fchmod(to_fd, fs->st_mode & RETAINBITS & ~myumask)) {
if (fd >= 0 ? fchmod(fd, fs->st_mode) :
if (fd >= 0 ? fchmod(fd, fs->st_mode) :
(void) fchmod(to_fd, sbp->st_mode & ~(S_ISUID|S_ISGID));
if (fchmod(to_fd, sbp->st_mode))
if (fchmod(fd, mode) == -1)
PROTO_NORMAL(fchmod);
if (fchmod(fileno(fp), S_IRUSR|S_IWUSR) == -1)
if (fchmod(fd, 0444) == -1) {
if (must_set_mode && fchmod((tokendb->fd)(tokendb), 0640))
ATF_REQUIRE(fchmod(fd, perm[i]) == 0);
if (fchmod(fd, 0) != -1)
if (fchmod(fd, 0644) == -1)
if (fchmod(fd, 0644) == -1) {
if (fchmod(fd, 0644) == -1)
(void) fchmod(fileno(qfo), MODE);
(void)fchmod(ofile, mode);
fchmod(fd, sb.st_mode | S_ISTXT);
fchmod(fd, sb.st_mode | S_ISTXT);
if (fchmod(fd, sb.st_mode) == -1)
fchmod(fd, sb.st_mode | S_ISTXT);
if (fchmod(fd, sb.st_mode) == -1)
fchmod(fd, sb.st_mode | S_ISTXT);
if (fchmod(fd, sb.st_mode) == -1)
if (fchmod(fd, st.st_mode) == -1)
fchmod(fd, sb.st_mode | S_ISTXT);
if (f->f_ops->fchmod == NULL) {
if ((errno = (f->f_ops->fchmod)(f, m)))
int (*fchmod)(struct open_file *f, mode_t);
if (fchmod(fd, st.st_mode) == -1)
fchmod(fd, sb.st_mode | S_ISTXT);
int fchmod(int, mode_t);
if (fchmod(fileno(fp), S_IRUSR | S_IWUSR | S_IXUSR) == -1)
fchmod(fd, DEFFILEMODE & ~mask);
if (fchmod(fd, fs->st_mode))
if (fchmod(fd, mode) == -1)
if (fchmod(cf->fd, mode) == -1)
if (fchmod(fd, fmode) == -1)
if (fchmod(fd, fmode) == -1)
if (fchmod(cf->fd, 0644) == -1)
if (fchmod(cf->fd, 0644) == -1)
(void)fchmod(fd, 0666);
if (fchmod(fd, rfp->rf_mode) == -1) {
if (fchmod(fd, 0600) == -1)
(void) fchmod(fileno(f), 0600);
if (readonly && fchmod(t, 0400) == -1) {
fchmod(fileno(obuf), 0600);
fchmod(fd, bp->b_fi.fi_mode & 07777);
(void) fchmod(to, (sb.st_mode & 0777));
if (fchmod(ofd, orig.st_mode) == -1)
if (fchmod(fileno(dst), perm))
if (fchmod(fd, ent->permissions))
if (fchmod(fd, mode) == -1)
if (fchmod(fd, mode) == -1)
if (fchmod(fileno(dst), perm)) {
status = fchmod(fd, mode);
if (fchmod(fd, mode) == -1) {
(void)fchmod(fd, sb.st_mode & ALLPERMS);
fchmod(fileno(skey.keyfile), S_IRUSR | S_IWUSR) != 0)
if (fchmod(fd, sb.st_mode & ACCESSPERMS) == -1)
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(fd, mode & (S_IRWXU|S_IRWXG|S_IRWXO));
fchmod(wfd, S_IRUSR | S_IWUSR) < 0) {
fchmod(fd, S_IRUSR | S_IWUSR) == -1) {
if ((fd = mkstemp(path)) == -1 || fchmod(fd, perms) == -1) {
if (fchmod(to_fd, mode)) {
if (fchmod(fd, 0444) == -1) {
fchmod(fd, 0600);
(void)fchmod(fd, 0640);
if (fchmod(fd, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) == -1) {
if (fchmod(dfd, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) == -1) {
if (fchmod(fileno(lp->lp_lock), st.st_mode) == -1)
(void)fchmod(fd, mode);
if (fchmod(lfd, stb.st_mode & 0777) < 0)
if (fchmod(lfd, stb.st_mode & 0777) < 0)
|| fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
fchmod(ttyfd, tty_mode);
else if (fchmod(edp->fd(edp), PERM_SECURE|S_IRGRP) != 0)
(void)fchmod(fileno(fp), S_IRUSR|S_IWUSR);
(void) fchmod(fd, 0644);
(void)fchmod(fd, 0644);
if (fchmod(db->fd(db), sb.st_mode) == -1 ||
if (fchmod(fd, S_IRUSR|S_IWUSR) == -1)
if (fchmod(fd, 0600) == -1) {
if ((wmode & O_CREAT) && fchmod(fd, 0666) == -1) {
(void) fchmod(fileno(to), st.st_mode & 0777);
if (fchmod(vm->vm_tty, 0666) == -1)
if (fchmod(fd, 0644) == -1)