Lines Matching refs:tfd
943 int fromfd, fromdir, tofd, todir, tfd; in movexattrs() local
947 fromfd = tofd = fromdir = todir = tfd = -1; in movexattrs()
949 resolve(orig, &tfd, &from); in movexattrs()
950 if (tfd == AT_FDCWD && pathconf(orig, _PC_XATTR_EXISTS) != 1) { in movexattrs()
954 if ((fromfd = openat64(tfd, from, O_RDONLY|O_NONBLOCK)) == -1) { in movexattrs()
957 if (tfd != AT_FDCWD) (void) close(tfd); in movexattrs()
963 if (tfd != AT_FDCWD) (void) close(tfd); in movexattrs()
971 if (tfd != AT_FDCWD) in movexattrs()
972 (void) close(tfd); in movexattrs()
975 if (tfd != AT_FDCWD) (void) close(tfd); in movexattrs()
977 resolve(targ, &tfd, &to); in movexattrs()
978 if ((tofd = openat64(tfd, to, O_RDONLY|O_NONBLOCK)) == -1 || in movexattrs()
984 if (tfd != AT_FDCWD) (void) close(tfd); in movexattrs()
987 if ((tfd = dup(fromdir)) == -1 || in movexattrs()
988 (dirp = fdopendir(tfd)) == NULL) { in movexattrs()
993 if (tfd != -1) (void) close(tfd); in movexattrs()