Searched refs:S_IROTH (Results 1 - 25 of 51) sorted by relevance

123

/ast/src/lib/libast/string/
H A Dmodedata.c66 S_IROTH, X_IROTH,
H A Dstrperm.c107 typ |= S_IRUSR|S_IRGRP|S_IROTH;
193 if (typ & S_IROTH)
212 if (typ & S_IROTH)
H A Dfmtperm.c83 if (perm & S_IROTH)
/ast/src/cmd/3d/
H A Daccess3d.c53 if ((st.st_mode&(S_IRUSR|S_IRGRP|S_IROTH)) == (S_IRUSR|S_IRGRP|S_IROTH))
92 if (mode & R_OK) test |= S_IROTH;
H A Dtouch.c142 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
182 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
/ast/src/lib/libast/comp/
H A Dsymlink.c48 if ((fd = open(b, O_CREAT|O_TRUNC|O_WRONLY|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
H A Deaccess.c124 mode |= S_IROTH;
H A Dopen.c58 mode = (op & O_CREAT) ? va_arg(ap, int) : S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
/ast/src/cmd/proto/
H A Dproto.c222 #ifndef S_IROTH
223 #define S_IROTH 0004 macro
268 if (st.st_mode &= (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH))
313 if ((fd = creat(file, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) < 0)
334 if ((fd = creat(buf, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) < 0)
342 if (access(buf, 0) && mkdir(buf, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH))
351 if ((fd = creat(buf, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) < 0)
/ast/src/lib/libast/features/
H A Dmode.c168 #ifndef S_IROTH
169 printf("#define S_IROTH 0%04o\n", X_IROTH);
171 if (S_IROTH != X_IROTH) idperm = 0;
190 printf("#define S_IRWXO (S_IROTH|S_IWOTH|S_IXOTH)\n");
/ast/src/lib/libcmd/
H A Dmkfifo.c56 register mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
H A Dtee.c180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR)
H A Dcksum.c243 (st->st_uid != state->uid && ((st->st_mode & S_ISUID) || (st->st_mode & S_IRUSR) && !(st->st_mode & (S_IRGRP|S_IROTH)) || (st->st_mode & S_IXUSR) && !(st->st_mode & (S_IXGRP|S_IXOTH)))) ? fmtuid(st->st_uid) : "-",
244 (st->st_gid != state->gid && ((st->st_mode & S_ISGID) || (st->st_mode & S_IRGRP) && !(st->st_mode & S_IROTH) || (st->st_mode & S_IXGRP) && !(st->st_mode & S_IXOTH))) ? fmtgid(st->st_gid) : "-");
/ast/src/cmd/at/
H A Dat.h47 #define AT_DIR_MODE (S_IRUSR|S_IWUSR|S_IXUSR|S_IXGRP|S_IXOTH|S_IRGRP|S_IROTH)
48 #define AT_JOB_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)
/ast/src/cmd/ie/
H A Dio.h80 #ifndef S_IROTH
81 # define S_IROTH (S_IREAD>>6) macro
82 #endif /* S_IROTH */
89 #define RW_ALL (S_IRUSR|S_IRGRP|S_IROTH|S_IWUSR|S_IWGRP|S_IWOTH)
/ast/src/lib/libast/path/
H A Dpathexists.c119 if (st.st_mode & (S_IRUSR|S_IRGRP|S_IROTH))
H A Dpathtemp.c99 } tmp = { S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH };
147 tmp.mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
/ast/src/lib/libast/tm/
H A Dtvtouch.c149 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
273 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
/ast/src/lib/libcs/
H A Dcsauth.c160 if ((stat(tmp, &st) || t1 <= (unsigned long)st.st_ctime && !remove(tmp)) && !close(open(tmp, O_CREAT|O_TRUNC|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH))) break;
170 if (chmod(tmp, S_ISUID|S_ISGID|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH))
H A Dcss.c202 css->perm = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
288 if (close(open(css->mount, O_WRONLY|O_CREAT|O_TRUNC, st.st_mode & (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH))) ||
289 chmod(css->mount, st.st_mode & (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) ||
315 open(css->mount, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
318 css->perm = st.st_mode & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
320 umask(~css->perm & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH));
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c246 mkdir( fpath, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH );
285 mkdir( buf, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH );
H A Dvcs_misc.c250 st->st_mode & S_IROTH ? 1 : 2);
/ast/src/cmd/probe/
H A Dprobe.c499 if (access(path, F_OK) && mkdir(path, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH))
515 chmod(tmp, S_IRUSR|S_IRGRP|S_IROTH);
598 if (access(cmd, F_OK) && mkdir(cmd, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH))
/ast/src/cmd/cs/
H A Dcat.c107 if (!s || (ad = csopen(s, 0)) < 0 && (ad = open(s, O_CREAT|O_APPEND|O_WRONLY|O_BINARY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
H A Dcs.c211 mode = ftw->statb.st_mode & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
286 sfprintf(sfstdout, "%c%s 1 %-8s %-8s %7s %s %s%s%s\n", label[0][0], fmtmode(mode, 0) + 1, fmtuid(st.st_uid), (mode & S_IROTH) ? "other" : fmtgid(ftw->statb.st_gid), port, time_buf, label[2], qual_buf, proc);
291 if (!(mode & S_IROTH))

Completed in 54 milliseconds

123