Lines Matching refs:fromfd
34 /* Copy file FROMFD to file TO, performing no translations.
38 simple_copy (int fromfd, const char *to,
45 if (fromfd < 0
46 || lseek (fromfd, 0, SEEK_SET) != 0)
53 close (fromfd);
58 while ((nread = read (fromfd, buf, sizeof buf)) > 0)
63 close (fromfd);
79 close (fromfd);
210 smart_rename (const char *from, const char *to, int fromfd,
217 ret = simple_copy (fromfd, to, target_stat);