Lines Matching refs:from
59 move_file(const char *from, const char *to)
69 say("Moving %s to stdout.\n", from);
71 fromfd = open(from, O_RDONLY);
73 pfatal("internal error, can't reopen %s", from);
81 say("Can't backup %s, output is in %s: %s\n", to, from,
87 say("Moving %s to %s.\n", from, to);
89 if (rename(from, to) < 0) {
90 if (errno != EXDEV || copy_file(from, to) < 0) {
92 to, from, strerror(errno));
171 copy_file(const char *from, const char *to)
179 fromfd = open(from, O_RDONLY, 0);
181 pfatal("internal error, can't reopen %s", from);
240 * Say something from patch, something from the system, then silence . . .
257 * Get a response from the user via /dev/tty