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
29 if (link (zfrom
, zto
) < 0)
34 || link (zfrom
, zto
) < 0)
37 return unlink (zfrom
);