summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-09-09 19:23:59 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-09-09 19:23:59 -0700
commit40615f52b8fe7478599ce4948ccc751aa0a34397 (patch)
treefe37d140d73995c0067f78cfaffc476ab434ef60 /commands.c
parent28fa5649850622482d068b56ff46a023bc14c264 (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>
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/commands.c b/commands.c
index ae81a12..2af7ec4 100644
--- a/commands.c
+++ b/commands.c
@@ -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