From 06e8262d73d2ee6c05b108aee40d9fe1acc6846f Mon Sep 17 00:00:00 2001 From: David Wasley Date: Thu, 19 May 1983 02:06:45 -0800 Subject: [PATCH] removed rename() for 4.2bsd. DLW SCCS-vsn: old/configttys/configttys.c 4.2 --- usr/src/old/configttys/configttys.c | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/usr/src/old/configttys/configttys.c b/usr/src/old/configttys/configttys.c index 1db304eea2..f7cb7b87fb 100644 --- a/usr/src/old/configttys/configttys.c +++ b/usr/src/old/configttys/configttys.c @@ -6,7 +6,7 @@ */ #ifndef lint -char sccsid[] = "@(#)configttys.c 4.1 Berkeley %G%"; +char sccsid[] = "@(#)configttys.c 4.2 Berkeley %G%"; #endif #include @@ -174,8 +174,8 @@ char **argv; quit(1); } - fprintf(conf, conformat, "port", "active", "speed\t", "terminal name"); - fprintf(conf, conformat, "----", "------", "-----\t", "-------------"); + fprintf(conf, conformat, "port", "login", "speed\t", "terminal type"); + fprintf(conf, conformat, "----", "-----", "-----\t", "-------------"); for (ty = ttys; ty->ty_active; ty++) { fprintf(conf, conformat, ty->ty_port, @@ -557,22 +557,3 @@ char *port; return((struct ttytype *)0); } - -/* DELETE this for 4.2bsd */ - -#include - -rename (from, to) -char *from, *to; -{ - extern int errno; - - if (unlink(to) < 0) - if (errno != ENOENT) - return(-1); - if (link(from, to) == 0) - return (unlink(from)); - else - return(-1); -} - -- 2.20.1