Searched refs:S_IRUSR (Results 1 - 25 of 66) sorted by relevance

123

/ast/src/lib/libast/string/
H A Dmodedata.c60 S_IRUSR, X_IRUSR,
H A Dstrperm.c107 typ |= S_IRUSR|S_IRGRP|S_IROTH;
194 perm |= who & (S_IRUSR|S_IRGRP);
200 perm |= who & S_IRUSR;
208 if (typ & S_IRUSR)
H A Dfmtperm.c51 if (perm & S_IRUSR)
/ast/src/cmd/3d/
H A Daccess3d.c53 if ((st.st_mode&(S_IRUSR|S_IRGRP|S_IROTH)) == (S_IRUSR|S_IRGRP|S_IROTH))
80 if (mode & R_OK) test |= S_IRUSR;
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.c83 mode |= S_IRUSR;
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/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)
71 #define AT_DIR_MODE (S_IRUSR|S_IWUSR|S_IXUSR|S_IXGRP|S_IXOTH)
72 #define AT_JOB_MODE (S_IRUSR|S_IWUSR)
/ast/src/cmd/proto/
H A Dproto.c204 #ifndef S_IRUSR
205 #define S_IRUSR 0400 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.c138 #ifndef S_IRUSR
139 printf("#define S_IRUSR 0%04o\n", X_IRUSR);
141 if (S_IRUSR != X_IRUSR) idperm = 0;
184 printf("#define S_IRWXU (S_IRUSR|S_IWUSR|S_IXUSR)\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 Dmktemp.c128 mode = (fdp ? (S_IRUSR|S_IWUSR) : S_IRWXU) & ~mask;
H A Dtee.c180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR)
/ast/src/lib/libast/path/
H A Dpathtemp.c99 } tmp = { S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH };
142 tmp.mode = S_IRUSR|S_IWUSR;
147 tmp.mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
H A Dpathexists.c119 if (st.st_mode & (S_IRUSR|S_IRGRP|S_IROTH))
/ast/src/cmd/ie/
H A Dio.h62 #ifndef S_IRUSR
63 # define S_IRUSR (S_IREAD) macro
64 #endif /* S_IRUSR */
89 #define RW_ALL (S_IRUSR|S_IRGRP|S_IROTH|S_IWUSR|S_IWGRP|S_IWOTH)
/ast/src/lib/libast/aso/
H A Daso-sem.c82 perm = S_IRUSR|S_IWUSR;
H A Daso-fcntl.c89 perm = S_IRUSR|S_IWUSR;
/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 Dcslib.h34 #define CS_AUTH_MODE (S_ISUID|S_ISGID|S_IRUSR)
H A Dcsrecv.c351 if (!stat(s, &st) && (fds[i] = open(s, (st.st_mode & (S_IRUSR|S_IWUSR)) == (S_IRUSR|S_IWUSR) ? O_RDWR : (st.st_mode & S_IWUSR) ? O_WRONLY : O_RDONLY)) >= 0)
/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)
/ast/src/cmd/cs/vcs_src/
H A Dvcs_misc.c244 st->st_mode & S_IRUSR ? 1 : 2);

Completed in 67 milliseconds

123