From 40615f52b8fe7478599ce4948ccc751aa0a34397 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 9 Sep 2014 19:23:59 -0700 Subject: Require OS to provide rename(2), as all POSIX.1-1990 & later OS'es do Sorry SVR1-SVR3. Signed-off-by: Alan Coopersmith --- commands.c | 14 -------------- 1 file changed, 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 -- cgit v1.2.3