Searched refs:from_dir_fd (Results 1 – 1 of 1) sorted by relevance
196 int from_dir_fd = open(from_dir.c_str(), OPEN_DIR_FLAGS); in move_files() local197 if (from_dir_fd == -1) { in move_files()208 close(from_dir_fd); in move_files()217 (renameat(from_dir_fd, from_filename.c_str(), to_dir_fd, to_filename.c_str()) == 0); in move_files()221 close(from_dir_fd); in move_files()222 close(from_dir_fd); in move_files()228 int from_dir_fd = open(from_dir.c_str(), OPEN_DIR_FLAGS); in hardlink_files() local229 if (from_dir_fd == -1) { in hardlink_files()240 close(from_dir_fd); in hardlink_files()249 (linkat(from_dir_fd, from_filename.c_str(), to_dir_fd, to_filename.c_str(), 0) == 0); in hardlink_files()[all …]