more ANSI fixes
[unix-history] / usr / src / libexec / getty / init.c
index 32a5865..2514058 100644 (file)
@@ -1,6 +1,13 @@
+/*
+ * Copyright (c) 1983 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)init.c     4.4 (Berkeley) 83/07/09";
-#endif
+static char sccsid[] = "@(#)init.c     5.5 (Berkeley) %G%";
+#endif /* not lint */
 
 /*
  * Getty table initializations.
 
 /*
  * Getty table initializations.
@@ -9,6 +16,7 @@ static char sccsid[] = "@(#)init.c     4.4 (Berkeley) 83/07/09";
  */
 #include <sgtty.h>
 #include "gettytab.h"
  */
 #include <sgtty.h>
 #include "gettytab.h"
+#include "pathnames.h"
 
 extern struct sgttyb tmode;
 extern struct tchars tc;
 
 extern struct sgttyb tmode;
 extern struct tchars tc;
@@ -26,7 +34,7 @@ struct        gettystrs gettystrs[] = {
        { "pc", "" },                   /* pad character */
        { "tt" },                       /* terminal type */
        { "ev" },                       /* enviroment */
        { "pc", "" },                   /* pad character */
        { "tt" },                       /* terminal type */
        { "ev" },                       /* enviroment */
-       { "lo", "/bin/login" },         /* login program */
+       { "lo", _PATH_LOGIN },          /* login program */
        { "hn", hostname },             /* host name */
        { "he" },                       /* host name edit */
        { "in", &tc.t_intrc },          /* interrupt char */
        { "hn", hostname },             /* host name */
        { "he" },                       /* host name edit */
        { "in", &tc.t_intrc },          /* interrupt char */
@@ -80,5 +88,7 @@ struct        gettyflags gettyflags[] = {
        { "ps", 0 },                    /* do port selector speed select */
        { "hc", 1 },                    /* don't set hangup on close */
        { "ub", 0 },                    /* unbuffered output */
        { "ps", 0 },                    /* do port selector speed select */
        { "hc", 1 },                    /* don't set hangup on close */
        { "ub", 0 },                    /* unbuffered output */
+       { "ab", 0 },                    /* auto-baud detect with '\r' */
+       { "dx", 0 },                    /* set decctlq */
        { 0 }
 };
        { 0 }
 };