Lines Matching refs:parentfd
998 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()
1133 error = set_named_attrs(file, parentfd, NULL, attr_nvlist); in set_attrs()
1137 if (set_named_attrs(file, parentfd, tattr->name, in set_attrs()
1144 (void) close(parentfd); in set_attrs()