Lines Matching refs:perm
43 strperm(const char* aexpr, char** e, register int perm) in strperm() argument
54 if (perm == -1) in strperm()
56 perm = 0; in strperm()
92 perm &= ~who; in strperm()
94 perm = 0; in strperm()
113 if (!S_ISDIR(perm) && !(perm & (S_IXUSR|S_IXGRP|S_IXOTH))) in strperm()
126 if (perm & S_IXGRP) in strperm()
130 return perm & S_IPERM; in strperm()
165 perm &= ~who; in strperm()
167 perm = 0; in strperm()
171 perm |= typ; in strperm()
175 perm &= ~typ; in strperm()
179 perm &= typ; in strperm()
183 if (typ &= perm) in strperm()
190 perm |= who & (S_IXUSR|S_IXGRP); in strperm()
192 perm |= who & (S_IWUSR|S_IWGRP); in strperm()
194 perm |= who & (S_IRUSR|S_IRGRP); in strperm()
196 perm |= who & S_IXUSR; in strperm()
198 perm |= who & S_IWUSR; in strperm()
200 perm |= who & S_IRUSR; in strperm()
206 if ((typ |= perm) & (S_IXUSR|S_IXGRP|S_IXOTH)) in strperm()
209 perm |= who & S_IXUSR; in strperm()
211 perm |= who & S_IXGRP; in strperm()
213 perm |= who & S_IXOTH; in strperm()
244 perm &= ~who; in strperm()
246 perm |= typ; in strperm()
248 return perm & S_IPERM; in strperm()