/*
* valloc() does a malloc() on a page boundary. On some systems,
* this can make large block I/O more efficient.
/*
* valloc() does a malloc() on a page boundary. On some systems,
* this can make large block I/O more efficient.
/* Rename file FROM to file TO.
Return 0 if successful, -1 if not. */
/* Rename file FROM to file TO.
Return 0 if successful, -1 if not. */
- if (stat (from, &from_stats))
- return -1;
-
- if (unlink (to) && errno != ENOENT)
- return -1;
-
- if (link (from, to))
- return -1;
-
- if (unlink (from) && errno != ENOENT)
+ if (stat (from, &from_stats) == 0)
void msg(str,a1,a2,a3,a4,a5,a6)
char *str;
{
void msg(str,a1,a2,a3,a4,a5,a6)
char *str;
{