Home
last modified time | relevance | path

Searched refs:parentfd (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/chmod/
H A Dchmod.c998 set_named_attrs(char *file, int parentfd, char *attrname, nvlist_t *attr_nvlist) in set_named_attrs() argument
1012 if (fstatat(parentfd, attrname, &st, in set_named_attrs()
1031 if (((dirfd = dup(parentfd)) == -1) || in set_named_attrs()
1052 if (set_named_attrs(file, parentfd, dp->d_name, in set_named_attrs()
1078 int parentfd; in set_attrs() local
1098 parentfd = open(parentd, O_RDONLY); in set_attrs()
1100 parentfd = attropen(file, ".", O_RDONLY); in set_attrs()
1102 if (parentfd == -1) { in set_attrs()
1115 if (fchdir(parentfd) != 0) { in set_attrs()
1120 (void) close(parentfd); in set_attrs()
[all …]