Lines Matching defs:mode
84 eaccess(const tools::fs::path& p, int mode)
86 assert(mode & access_f || mode & access_r ||
87 mode & access_w || mode & access_x);
97 if (mode & access_f)
102 if (!ok && !(mode & access_x)) {
114 ok = ((mode & access_r) && (st.st_mode & S_IRUSR)) ||
115 ((mode & access_w) && (st.st_mode & S_IWUSR)) ||
116 ((mode & access_x) && (st.st_mode & S_IXUSR));
119 ok = ((mode & access_r) && (st.st_mode & S_IRGRP)) ||
120 ((mode & access_w) && (st.st_mode & S_IWGRP)) ||
121 ((mode & access_x) && (st.st_mode & S_IXGRP));
125 ok = ((mode & access_r) && (st.st_mode & S_IROTH)) ||
126 ((mode & access_w) && (st.st_mode & S_IWOTH)) ||
127 ((mode & access_x) && (st.st_mode & S_IXOTH));
145 safe_access(const impl::path& p, int mode, int experr)
148 eaccess(p, mode);