Home
last modified time | relevance | path

Searched refs:tofd (Results 1 – 2 of 2) sorted by relevance

/tools/perf/util/
Dutil.c209 int fromfd, tofd; in copyfile_mode_ns() local
233 tofd = mkstemp(tmp); in copyfile_mode_ns()
234 if (tofd < 0) in copyfile_mode_ns()
237 if (fchmod(tofd, mode)) in copyfile_mode_ns()
251 err = copyfile_offset(fromfd, 0, tofd, 0, st.st_size); in copyfile_mode_ns()
255 close(tofd); in copyfile_mode_ns()
Dutil.h39 int copyfile_offset(int fromfd, loff_t from_ofs, int tofd, loff_t to_ofs, u64 size);