fchmod
int fchmod(int, mode_t);
if (fchmod(fd, S_IRUSR|S_IWUSR|S_IRGRP|S_IWUSR|S_IROTH) == ERR) {
if (fchmod(ofile, mode) < 0 && !complained_chmod) {
fchmod(Cn, Dev_mode);
fchmod(Cn, M_DEVICEMODE);
(void) fchmod(fd, S_IRUSR | S_IRGRP | S_IROTH);
if (fchmod(fd, tty_mode) != 0) {
|| fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
(void) fchmod(ofd, mode);
if (fchmod(tfd, (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == -1) {
if (fchmod(dirfd, G_p->g_mode) != 0) {
if (fchmod(dirfd, newmode) == -1) {
if (fchmod(dirfd, parentstat.st_mode) == -1) {
error = fchmod(Ofile, new_mask);
(void) fchmod(1, S_IRUSR|S_IWUSR);
if (fchmod(fd, CONFIGPERM) == -1)
if (fchmod(dcp->dc_conf_fd, DC_PERM) == -1)
(void) fchmod(fileno(rmtabf),
(void) fchmod(fileno(status_fp), 0644);
if (fchmod(fileno(f), 0644) < 0 ||
(void) fchmod(uncompfd, statbuf.st_mode);
(void) fchmod(compfd, statbuf.st_mode);
if (fchmod(cfd, 0644) == -1)
if (fchmod(tfd, 0644) == -1)
if (fchmod(fi, s.st_mode|S_ISGID) < 0)
(void) fchmod(fi, s.st_mode);
if (fchmod(fi, s.st_mode) < 0)
(void) fchmod(newfd, buf.st_mode);
(void) fchmod(newfd, 0644);
if (fchmod(targetdirfd, attrdir.st_mode) == -1) {
if (fchmod(targattrfd, mode) != 0) {
(void) fchmod(fd, st.st_mode);
if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
if (fchmod(fd, sbuf.st_mode) != 0 ||
if (fchmod(fd, sbuf.st_mode) != 0 ||
if (fchmod(fd, sbuf.st_mode) != 0 ||
if (fchmod(fd, sbuf.st_mode) != 0 ||
error = fchmod(fd_ptemp, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
error = fchmod(fd_stemp, S_IRUSR);
error = fchmod(fd_uatemp,
if (fchmod(fd, 0644) == 0 && write(fd, &rs, sizeof (rs)) ==
(void) fchmod(fd, CONFIGPERM);
(fchmod(fileno(outfile), sb.st_mode & 07777) != 0))
(void) fchmod(sm_io_getinfo(f, SM_IO_WHAT_FD, NULL),
(void) fchmod(mbfd, 0660);
(void) fchmod(tfd, sbuf.st_mode);
(void) fchmod(fd, mode); /* force mode regardless of umask() */
(void) fchmod(lock_fd, 0644); /* force perms. */
if (fchmod(fd, a_mode) < 0) {
(void) fchmod(door,
(void) fchmod(pidfd, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
if (fchmod(dirfd, stbuf.st_mode) != 0) {
(void) fchmod(ofile, stbuf.st_mode & MODEMASK);
if (fchmod(dirfd, newmode) == -1) {
if (fchmod(dirfd, parentstat.st_mode) == -1) {
if (fchmod(fileno(fp), S_IRWXU|S_IRGRP|S_IROTH))
if (fchmod(fileno(sfp), S_IRWXU|S_IRGRP|S_IROTH))
(void) fchmod(fd, 0444);
(void) fchmod(0, 0620);
(void) fchmod(0, 0620);
(void) fchmod(fd, 0620);
if (fchmod(fd, access_mode) != 0)
if (fchmod(fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
if (fchmod(copy_fd,
if (fchmod(copy_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
if (fchmod(tmp_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
if (fchmod(tmp_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
if (fchmod(copy_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
reti = fchmod(((krb5_fcc_data *) id->data)->file, S_IREAD | S_IWRITE);
fchmod(ret, S_IRUSR | S_IWUSR);
if (fchmod(fd, (mode_t)mode)) {
if (fchmod(fd, perm) != 0 ||
fchmod(fd, perm) != 0 ||
(void) fchmod(fileno(fp), sbuf.st_mode & 0777);
(void) fchmod(fileno(fp), sbuf.st_mode & 0777);
if (fchmod(fd, 0400) == -1)
(void) fchmod(fda, DA_DBMODE);
(void) fchmod(fdm, DA_DBMODE);
if (fchmod(fd, mode) < 0)
(void) fchmod(mkret, 0666 & ~current_umask);
if (fchmod(fd, mode) < 0) {
if (fchmod(nfd, db_perms) < 0) {
if (fchmod(nfd, DLADM_FLOW_DB_PERMS) == -1)
if (fchmod(fd, CFG_PERMS) == -1) {
if (fchmod(tmpfd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) == -1) {
(void) fchmod(fd, 0644);
(void) fchmod(fileno(dfstab), 0644);
(void) fchmod(fileno(fp), 0444);
if (fchmod(fileno(fp), buf.st_mode) != 0) {
if (fchmod(fileno(fp), 0400) != 0) {
(void) fchmod(tmp_file_desc, ZONE_INDEX_MODE);
if (fchmod(fileno(ofp), sb.st_mode) == -1) {
if (fchmod(mpconf, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
if (fchmod(mpconf, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
(void) fchmod(file, S_IRUSR|S_IWUSR);
(void) fchmod(fd, 0644);
(void) fchmod(fileno(fp), 0600);
if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
(void) fchmod(fileno(fp), 0600);
n = fchmod(fd, 0444);
if (fchmod(to_fd, mode)) {
int fchmod(int, int);
/* 93 */ SYSENT_CI("fchmod", fchmod, 2),
/* 93 */ SYSENT_CI("fchmod", fchmod, 2),
extern int fchmod(int, mode_t);