file_copy
(void) file_copy(tmpfile, newfile);
extern int file_copy(char *, char *); /* from util.c */
docopytruncate(struct opts *opts, const char *file, const char *file_copy)
(void) out("# copy %s to %s\n", file, file_copy);
if ((fo = open(file_copy, O_CREAT|O_TRUNC|O_WRONLY, s.st_mode)) < 0) {
err(EF_SYS, "cannot create file: %s", file_copy);
(void) remove(file_copy);
err(EF_SYS, "cannot write into file %s", file_copy);
(void) remove(file_copy);
err(EF_SYS, "cannot write into file %s", file_copy);
(void) remove(file_copy);
(void) utime(file_copy, ×);
const char *file_copy);
file_copy(spf, NIS_pos);
void file_copy(FILE *spf, long NIS_pos);
file_copy(ins_file, dest_file);
static void file_copy(char *src_file, char *dest_file);