Lines Matching defs:st
89 struct stat st;
90 if (lstat(p.c_str(), &st) == -1)
107 if (!ok && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) {
113 if (!ok && (tools::user::euid() == st.st_uid)) {
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));
118 if (!ok && tools::user::is_member_of_group(st.st_gid)) {
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));
123 if (!ok && ((tools::user::euid() != st.st_uid) &&
124 !tools::user::is_member_of_group(st.st_gid))) {
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));