Lines Matching refs:tofile
463 ** linkfile (fromfile, tofile)
465 int linkfile (const char *fromfile, const char *tofile)
469 /* fprintf (stderr, "linkfile (%s, %s)\n", fromfile, tofile); */
470 if ( (ret = link (fromfile, tofile)) == -1 && errno == EEXIST )
471 if ( unlink (tofile) == 0 )
472 ret = link (fromfile, tofile);
478 ** copyfile (fromfile, tofile, dnskeyfile)
479 ** copy fromfile into tofile.
480 ** Add (optional) the content of dnskeyfile to tofile.
482 int copyfile (const char *fromfile, const char *tofile, const char *dnskeyfile)
488 /* fprintf (stderr, "copyfile (%s, %s)\n", fromfile, tofile); */
491 if ( (outfp = fopen (tofile, "w")) == NULL )
512 ** copyzonefile (fromfile, tofile, dnskeyfile)
516 int copyzonefile (const char *fromfile, const char *tofile, const char *dnskeyfile)
532 if ( tofile == NULL )
535 if ( (outfp = fopen (tofile, "w")) == NULL )
608 if ( tofile )