diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-09 19:23:59 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-09 19:23:59 -0700 |
commit | 40615f52b8fe7478599ce4948ccc751aa0a34397 (patch) | |
tree | fe37d140d73995c0067f78cfaffc476ab434ef60 | |
parent | 28fa5649850622482d068b56ff46a023bc14c264 (diff) |
Require OS to provide rename(2), as all POSIX.1-1990 & later OS'es do
Sorry SVR1-SVR3.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | commands.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -158,20 +158,6 @@ makeBackupName(String buf, String filename, unsigned len) return (strcmp(filename, buf) ? buf : NULL); } - -#if defined(USG) -int rename (from, to) - char *from, *to; -{ - (void) unlink (to); - if (link (from, to) == 0) { - unlink (from); - return 0; - } else { - return -1; - } -} -#endif /*ARGSUSED*/ void |