1 /* rename -- rename a file
2 This function is in the public domain. */
6 @deftypefn Supplemental int rename (const char *@var{old}, const char *@var{new})
8 Renames a file from @var{old} to @var{new}. If @var{new} already
28 if (link (zfrom
, zto
) < 0)
33 || link (zfrom
, zto
) < 0)
36 return unlink (zfrom
);