Lines Matching refs:parentfd
998 set_named_attrs(char *file, int parentfd, char *attrname, nvlist_t *attr_nvlist)
1012 if (fstatat(parentfd, attrname, &st,
1031 if (((dirfd = dup(parentfd)) == -1) ||
1052 if (set_named_attrs(file, parentfd, dp->d_name,
1078 int parentfd;
1098 parentfd = open(parentd, O_RDONLY);
1100 parentfd = attropen(file, ".", O_RDONLY);
1102 if (parentfd == -1) {
1115 if (fchdir(parentfd) != 0) {
1120 (void) close(parentfd);
1133 error = set_named_attrs(file, parentfd, NULL, attr_nvlist);
1137 if (set_named_attrs(file, parentfd, tattr->name,
1144 (void) close(parentfd);