Annotation of 43BSDReno/libexec/getty/init.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1983 The Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms are permitted
                      6:  * provided that: (1) source distributions retain this entire copyright
                      7:  * notice and comment, and (2) distributions including binaries display
                      8:  * the following acknowledgement:  ``This product includes software
                      9:  * developed by the University of California, Berkeley and its contributors''
                     10:  * in the documentation or other materials provided with the distribution
                     11:  * and in all advertising materials mentioning features or use of this
                     12:  * software. Neither the name of the University nor the names of its
                     13:  * contributors may be used to endorse or promote products derived
                     14:  * from this software without specific prior written permission.
                     15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     18:  */
                     19: 
                     20: #ifndef lint
                     21: static char sccsid[] = "@(#)init.c     5.5 (Berkeley) 6/1/90";
                     22: #endif /* not lint */
                     23: 
                     24: /*
                     25:  * Getty table initializations.
                     26:  *
                     27:  * Melbourne getty.
                     28:  */
                     29: #include <sgtty.h>
                     30: #include "gettytab.h"
                     31: #include "pathnames.h"
                     32: 
                     33: extern struct sgttyb tmode;
                     34: extern struct tchars tc;
                     35: extern struct ltchars ltc;
                     36: extern char hostname[];
                     37: 
                     38: struct gettystrs gettystrs[] = {
                     39:        { "nx" },                       /* next table */
                     40:        { "cl" },                       /* screen clear characters */
                     41:        { "im" },                       /* initial message */
                     42:        { "lm", "login: " },            /* login message */
                     43:        { "er", &tmode.sg_erase },      /* erase character */
                     44:        { "kl", &tmode.sg_kill },       /* kill character */
                     45:        { "et", &tc.t_eofc },           /* eof chatacter (eot) */
                     46:        { "pc", "" },                   /* pad character */
                     47:        { "tt" },                       /* terminal type */
                     48:        { "ev" },                       /* enviroment */
                     49:        { "lo", _PATH_LOGIN },          /* login program */
                     50:        { "hn", hostname },             /* host name */
                     51:        { "he" },                       /* host name edit */
                     52:        { "in", &tc.t_intrc },          /* interrupt char */
                     53:        { "qu", &tc.t_quitc },          /* quit char */
                     54:        { "xn", &tc.t_startc },         /* XON (start) char */
                     55:        { "xf", &tc.t_stopc },          /* XOFF (stop) char */
                     56:        { "bk", &tc.t_brkc },           /* brk char (alt \n) */
                     57:        { "su", &ltc.t_suspc },         /* suspend char */
                     58:        { "ds", &ltc.t_dsuspc },        /* delayed suspend */
                     59:        { "rp", &ltc.t_rprntc },        /* reprint char */
                     60:        { "fl", &ltc.t_flushc },        /* flush output */
                     61:        { "we", &ltc.t_werasc },        /* word erase */
                     62:        { "ln", &ltc.t_lnextc },        /* literal next */
                     63:        { 0 }
                     64: };
                     65: 
                     66: struct gettynums gettynums[] = {
                     67:        { "is" },                       /* input speed */
                     68:        { "os" },                       /* output speed */
                     69:        { "sp" },                       /* both speeds */
                     70:        { "nd" },                       /* newline delay */
                     71:        { "cd" },                       /* carriage-return delay */
                     72:        { "td" },                       /* tab delay */
                     73:        { "fd" },                       /* form-feed delay */
                     74:        { "bd" },                       /* backspace delay */
                     75:        { "to" },                       /* timeout */
                     76:        { "f0" },                       /* output flags */
                     77:        { "f1" },                       /* input flags */
                     78:        { "f2" },                       /* user mode flags */
                     79:        { "pf" },                       /* delay before flush at 1st prompt */
                     80:        { 0 }
                     81: };
                     82: 
                     83: struct gettyflags gettyflags[] = {
                     84:        { "ht", 0 },                    /* has tabs */
                     85:        { "nl", 1 },                    /* has newline char */
                     86:        { "ep", 0 },                    /* even parity */
                     87:        { "op", 0 },                    /* odd parity */
                     88:        { "ap", 0 },                    /* any parity */
                     89:        { "ec", 1 },                    /* no echo */
                     90:        { "co", 0 },                    /* console special */
                     91:        { "cb", 0 },                    /* crt backspace */
                     92:        { "ck", 0 },                    /* crt kill */
                     93:        { "ce", 0 },                    /* crt erase */
                     94:        { "pe", 0 },                    /* printer erase */
                     95:        { "rw", 1 },                    /* don't use raw */
                     96:        { "xc", 1 },                    /* don't ^X ctl chars */
                     97:        { "lc", 0 },                    /* terminal las lower case */
                     98:        { "uc", 0 },                    /* terminal has no lower case */
                     99:        { "ig", 0 },                    /* ignore garbage */
                    100:        { "ps", 0 },                    /* do port selector speed select */
                    101:        { "hc", 1 },                    /* don't set hangup on close */
                    102:        { "ub", 0 },                    /* unbuffered output */
                    103:        { "ab", 0 },                    /* auto-baud detect with '\r' */
                    104:        { "dx", 0 },                    /* set decctlq */
                    105:        { 0 }
                    106: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.