Lines Matching refs:perms_msk
123 * perms_msk contains rwx(slt) information
139 mode_t perms_msk;
171 perms_msk = 0;
177 perms_msk = (new_mode & USER) >> 6;
180 perms_msk = (new_mode & GROUP) >> 3;
183 perms_msk = (new_mode & OTHER);
185 perms_msk &= (READ|WRITE|EXEC);
186 perms_msk |= (perms_msk << 3) |
187 (perms_msk << 6);
195 perms_msk |= READ;
198 perms_msk |= WRITE;
201 perms_msk |= EXEC;
207 perms_msk |= EXEC;
212 perms_msk |= LOCK;
217 perms_msk |= SETID;
221 perms_msk |= STICKY;
229 perms_msk &= who_msk;
234 perms_msk &= ~umsk;
240 (perms_msk & GROUP & EXEC) ==
267 if (scheck == 1 && (perms_msk & GROUP & SETID)
271 ((perms_msk & GROUP & EXEC) ==
303 if (((new_mode | perms_msk) &
337 if ((grp_change = (perms_msk & GROUP_RWX) >> 3)
344 new_mode |= perms_msk;
349 perms_msk &= ~umsk;
356 perms_msk &= ~LOCK;
365 perms_msk &= ~(GROUP & SETID);
386 if ((perms_msk & USER & SETID) !=
391 perms_msk |= USER & SETID;
393 if ((perms_msk & GROUP & SETID) !=
399 perms_msk |= GROUP & SETID;
403 if ((grp_change = (perms_msk & GROUP_RWX) >> 3)
410 new_mode &= ~perms_msk;
415 perms_msk &= ~umsk;
420 if ((perms_msk & GROUP & EXEC) ==
444 (perms_msk & EXEC & (USER | GROUP)) !=
459 perms_msk = (perms_msk &
469 if ((grp_change = (perms_msk & GROUP_RWX) >> 3)
476 new_mode |= perms_msk;