Lines Matching defs:targetdirfd
123 static int targetdirfd = -1;
1665 if (fchmod(targetdirfd, attrdir.st_mode) == -1) {
1676 if (fchown(targetdirfd, attrdir.st_uid, attrdir.st_gid) == -1) {
1692 if (utimensat(targetdirfd, ".", times, 0) < 0) {
1719 if (facl_set(targetdirfd, attrdiracl) != 0) {
1803 if (utimensat(targetdirfd, dp->d_name, times, 0) < 0) {
2013 targfd = sourcedirfd = targetdirfd = -1;
2061 if ((targetdirfd = openat(targfd, ".", O_RDONLY|O_XATTR)) == -1) {
2166 (void) unlinkat(targetdirfd, dp->d_name, 0);
2167 if ((targattrfd = openat(targetdirfd, dp->d_name,
2180 if ((targattrfd = openat(targetdirfd, dp->d_name,
2245 if (targetdirfd != -1)
2246 (void) close(targetdirfd);