• Home
  • Raw
  • Download

Lines Matching refs:mode

37 chmod_or_fchmod (const char *name, int desc, mode_t mode)  in chmod_or_fchmod()  argument
40 return fchmod (desc, mode); in chmod_or_fchmod()
42 return chmod (name, mode); in chmod_or_fchmod()
54 qset_acl (char const *name, int desc, mode_t mode) in qset_acl() argument
80 acl = acl_from_mode (mode); in qset_acl()
98 if (mode & S_IRUSR) acl_text[ 3] = 'r'; in qset_acl()
99 if (mode & S_IWUSR) acl_text[ 4] = 'w'; in qset_acl()
100 if (mode & S_IXUSR) acl_text[ 5] = 'x'; in qset_acl()
101 if (mode & S_IRGRP) acl_text[10] = 'r'; in qset_acl()
102 if (mode & S_IWGRP) acl_text[11] = 'w'; in qset_acl()
103 if (mode & S_IXGRP) acl_text[12] = 'x'; in qset_acl()
104 if (mode & S_IROTH) acl_text[17] = 'r'; in qset_acl()
105 if (mode & S_IWOTH) acl_text[18] = 'w'; in qset_acl()
106 if (mode & S_IXOTH) acl_text[19] = 'x'; in qset_acl()
122 return chmod_or_fchmod (name, desc, mode); in qset_acl()
132 if (S_ISDIR (mode) && acl_delete_def_file (name)) in qset_acl()
135 if (mode & (S_ISUID | S_ISGID | S_ISVTX)) in qset_acl()
139 return chmod_or_fchmod (name, desc, mode); in qset_acl()
189 return chmod_or_fchmod (name, desc, mode); in qset_acl()
201 return chmod_or_fchmod (name, desc, mode); in qset_acl()
216 if (mode & S_IRUSR) acl_text[ 6] = 'r'; in qset_acl()
217 if (mode & S_IWUSR) acl_text[ 7] = 'w'; in qset_acl()
218 if (mode & S_IXUSR) acl_text[ 8] = 'x'; in qset_acl()
219 if (mode & S_IRGRP) acl_text[17] = acl_text[26] = 'r'; in qset_acl()
220 if (mode & S_IWGRP) acl_text[18] = acl_text[27] = 'w'; in qset_acl()
221 if (mode & S_IXGRP) acl_text[19] = acl_text[28] = 'x'; in qset_acl()
222 if (mode & S_IROTH) acl_text[36] = 'r'; in qset_acl()
223 if (mode & S_IWOTH) acl_text[37] = 'w'; in qset_acl()
224 if (mode & S_IXOTH) acl_text[38] = 'x'; in qset_acl()
238 return chmod_or_fchmod (name, desc, mode); in qset_acl()
243 if (mode & (S_ISUID | S_ISGID | S_ISVTX)) in qset_acl()
247 return chmod_or_fchmod (name, desc, mode); in qset_acl()
320 entries[0].a_access_mask = (mode >> 6) & 7; in qset_acl()
324 entries[1].a_access_mask = (mode >> 3) & 7; in qset_acl()
328 entries[2].a_access_mask = mode & 7; in qset_acl()
337 (mode & 0400 ? NEW_ACE_READ_DATA : 0) in qset_acl()
338 | (mode & 0200 ? NEW_ACE_WRITE_DATA : 0) in qset_acl()
339 | (mode & 0100 ? NEW_ACE_EXECUTE : 0); in qset_acl()
344 (mode & 0040 ? NEW_ACE_READ_DATA : 0) in qset_acl()
345 | (mode & 0020 ? NEW_ACE_WRITE_DATA : 0) in qset_acl()
346 | (mode & 0010 ? NEW_ACE_EXECUTE : 0); in qset_acl()
351 (mode & 0004 ? NEW_ACE_READ_DATA : 0) in qset_acl()
352 | (mode & 0002 ? NEW_ACE_WRITE_DATA : 0) in qset_acl()
353 | (mode & 0001 ? NEW_ACE_EXECUTE : 0); in qset_acl()
364 return chmod_or_fchmod (name, desc, mode); in qset_acl()
376 entries[0].a_perm = (mode >> 6) & 7; in qset_acl()
379 entries[1].a_perm = (mode >> 3) & 7; in qset_acl()
382 entries[2].a_perm = mode & 7; in qset_acl()
391 return chmod_or_fchmod (name, desc, mode); in qset_acl()
396 if (!MODE_INSIDE_ACL || (mode & (S_ISUID | S_ISGID | S_ISVTX))) in qset_acl()
400 return chmod_or_fchmod (name, desc, mode); in qset_acl()
421 entries[0].mode = (mode >> 6) & 7; in qset_acl()
424 entries[1].mode = (mode >> 3) & 7; in qset_acl()
427 entries[2].mode = mode & 7; in qset_acl()
436 return chmod_or_fchmod (name, desc, mode); in qset_acl()
440 if (mode & (S_ISUID | S_ISGID | S_ISVTX)) in qset_acl()
444 return chmod_or_fchmod (name, desc, mode); in qset_acl()
458 u.a.acl_mode = mode & ~(S_IXACL | 0777); in qset_acl()
459 u.a.u_access = (mode >> 6) & 7; in qset_acl()
460 u.a.g_access = (mode >> 3) & 7; in qset_acl()
461 u.a.o_access = mode & 7; in qset_acl()
469 return chmod_or_fchmod (name, desc, mode); in qset_acl()
474 return chmod_or_fchmod (name, desc, mode); in qset_acl()
477 return chmod_or_fchmod (name, desc, mode); in qset_acl()
484 set_acl (char const *name, int desc, mode_t mode) in set_acl() argument
486 int r = qset_acl (name, desc, mode); in set_acl()