Lines Matching refs:desc
30 /* If DESC is a valid file descriptor use fchmod to change the
32 that don't have fchown and if DESC is invalid, use chown on
37 chmod_or_fchmod (const char *name, int desc, mode_t mode)
39 if (HAVE_FCHMOD && desc != -1)
40 return fchmod (desc, mode);
45 /* Set the access control lists of a file. If DESC is a valid file
54 qset_acl (char const *name, int desc, mode_t mode)
112 if (HAVE_ACL_SET_FD && desc != -1)
113 ret = acl_set_fd (desc, acl);
122 return chmod_or_fchmod (name, desc, mode);
139 return chmod_or_fchmod (name, desc, mode);
167 if (HAVE_ACL_GET_FD && desc != -1)
168 acl = acl_get_fd (desc);
178 if (HAVE_ACL_SET_FD && desc != -1)
179 ret = acl_set_fd (desc, acl);
189 return chmod_or_fchmod (name, desc, mode);
201 return chmod_or_fchmod (name, desc, mode);
232 ret = (desc < 0 ? acl_set (name, aclp) : facl_set (desc, aclp));
238 return chmod_or_fchmod (name, desc, mode);
247 return chmod_or_fchmod (name, desc, mode);
271 if (desc != -1)
272 count = facl (desc, ACE_GETACLCNT, 0, NULL);
286 if ((desc != -1
287 ? facl (desc, ACE_GETACL, count, entries)
355 if (desc != -1)
356 ret = facl (desc, ACE_SETACL,
364 return chmod_or_fchmod (name, desc, mode);
384 if (desc != -1)
385 ret = facl (desc, SETACL, sizeof (entries) / sizeof (aclent_t), entries);
391 return chmod_or_fchmod (name, desc, mode);
400 return chmod_or_fchmod (name, desc, mode);
412 if (desc != -1)
413 ret = fstat (desc, &statbuf);
429 if (desc != -1)
430 ret = fsetacl (desc, sizeof (entries) / sizeof (struct acl_entry), entries);
436 return chmod_or_fchmod (name, desc, mode);
444 return chmod_or_fchmod (name, desc, mode);
463 if (desc != -1)
464 ret = fchacl (desc, &u.a, u.a.acl_len);
469 return chmod_or_fchmod (name, desc, mode);
474 return chmod_or_fchmod (name, desc, mode);
477 return chmod_or_fchmod (name, desc, mode);
484 set_acl (char const *name, int desc, mode_t mode)
486 int r = qset_acl (name, desc, mode);