date and time created 89/04/02 12:51:28 by bostic
[unix-history] / usr / src / libexec / getty / subr.c
index 51c8a32..cfe3d7c 100644 (file)
@@ -1,12 +1,23 @@
 /*
 /*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1983 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)subr.c     5.1 (Berkeley) %G%";
-#endif not lint
+static char sccsid[] = "@(#)subr.c     5.5 (Berkeley) %G%";
+#endif /* not lint */
 
 /*
  * Melbourne getty.
 
 /*
  * Melbourne getty.
@@ -116,7 +127,7 @@ setchars()
                if (p && *p)
                        *charvars[i] = *p;
                else
                if (p && *p)
                        *charvars[i] = *p;
                else
-                       *charvars[i] = '\0377';
+                       *charvars[i] = '\377';
        }
 }
 
        }
 }
 
@@ -189,6 +200,9 @@ setflags(n)
        if (XC)
                f |= CTLECH;
 
        if (XC)
                f |= CTLECH;
 
+       if (DX)
+               f |= DECCTQ;
+
        return (f);
 }
 
        return (f);
 }
 
@@ -385,6 +399,7 @@ struct      portselect {
        { "B2400",      "std.2400" },
        { "B4800",      "std.4800" },
        { "B9600",      "std.9600" },
        { "B2400",      "std.2400" },
        { "B4800",      "std.4800" },
        { "B9600",      "std.9600" },
+       { "B19200",     "std.19200" },
        { 0 }
 };
 
        { 0 }
 };