1988-06-28 11:12:18 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1988-06-28 11:12:18 +00:00
|
|
|
|
1993-10-22 13:49:04 +00:00
|
|
|
#include <system.h>
|
|
|
|
|
1988-06-28 11:12:18 +00:00
|
|
|
int
|
|
|
|
sys_rename(path1, path2)
|
|
|
|
char *path1, *path2;
|
|
|
|
{
|
|
|
|
unlink(path2);
|
|
|
|
return link(path1, path2) == 0 &&
|
|
|
|
unlink(path1) == 0;
|
|
|
|
}
|
|
|
|
|