Lines Matching refs:desc
37 chmod_or_fchmod (const char *name, int desc, mode_t mode) in chmod_or_fchmod() argument
39 if (HAVE_FCHMOD && desc != -1) in chmod_or_fchmod()
40 return fchmod (desc, mode); in chmod_or_fchmod()
54 qset_acl (char const *name, int desc, mode_t mode) in qset_acl() argument
112 if (HAVE_ACL_SET_FD && desc != -1) in qset_acl()
113 ret = acl_set_fd (desc, acl); in qset_acl()
122 return chmod_or_fchmod (name, desc, mode); in qset_acl()
139 return chmod_or_fchmod (name, desc, mode); in qset_acl()
167 if (HAVE_ACL_GET_FD && desc != -1) in qset_acl()
168 acl = acl_get_fd (desc); in qset_acl()
178 if (HAVE_ACL_SET_FD && desc != -1) in qset_acl()
179 ret = acl_set_fd (desc, acl); 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()
232 ret = (desc < 0 ? acl_set (name, aclp) : facl_set (desc, aclp)); in qset_acl()
238 return chmod_or_fchmod (name, desc, mode); in qset_acl()
247 return chmod_or_fchmod (name, desc, mode); in qset_acl()
271 if (desc != -1) in qset_acl()
272 count = facl (desc, ACE_GETACLCNT, 0, NULL); in qset_acl()
286 if ((desc != -1 in qset_acl()
287 ? facl (desc, ACE_GETACL, count, entries) in qset_acl()
355 if (desc != -1) in qset_acl()
356 ret = facl (desc, ACE_SETACL, in qset_acl()
364 return chmod_or_fchmod (name, desc, mode); in qset_acl()
384 if (desc != -1) in qset_acl()
385 ret = facl (desc, SETACL, sizeof (entries) / sizeof (aclent_t), entries); in qset_acl()
391 return chmod_or_fchmod (name, desc, mode); in qset_acl()
400 return chmod_or_fchmod (name, desc, mode); in qset_acl()
412 if (desc != -1) in qset_acl()
413 ret = fstat (desc, &statbuf); in qset_acl()
429 if (desc != -1) in qset_acl()
430 ret = fsetacl (desc, sizeof (entries) / sizeof (struct acl_entry), entries); in qset_acl()
436 return chmod_or_fchmod (name, desc, mode); in qset_acl()
444 return chmod_or_fchmod (name, desc, mode); in qset_acl()
463 if (desc != -1) in qset_acl()
464 ret = fchacl (desc, &u.a, u.a.acl_len); 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()