init.c (21673) | init.c (22208) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35/*static char sccsid[] = "from: @(#)init.c 8.1 (Berkeley) 6/4/93";*/ | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35/*static char sccsid[] = "from: @(#)init.c 8.1 (Berkeley) 6/4/93";*/ |
36static char rcsid[] = "$FreeBSD: head/libexec/getty/init.c 21673 1997-01-14 07:20:47Z jkh $"; | 36static char rcsid[] = "$FreeBSD: head/libexec/getty/init.c 22208 1997-02-02 14:24:57Z davidn $"; |
37#endif /* not lint */ 38 39/* 40 * Getty table initializations. 41 * 42 * Melbourne getty. 43 */ 44#include <termios.h> --- 27 unchanged lines hidden (view full) --- 72 { "su", &tmode.c_cc[VSUSP] }, /* suspend char */ 73 { "ds", &tmode.c_cc[VDSUSP] }, /* delayed suspend */ 74 { "rp", &tmode.c_cc[VREPRINT] },/* reprint char */ 75 { "fl", &tmode.c_cc[VDISCARD] },/* flush output */ 76 { "we", &tmode.c_cc[VWERASE] }, /* word erase */ 77 { "ln", &tmode.c_cc[VLNEXT] }, /* literal next */ 78 { "Lo" }, /* locale for strftime() */ 79 { "pp" }, /* ppp login program */ | 37#endif /* not lint */ 38 39/* 40 * Getty table initializations. 41 * 42 * Melbourne getty. 43 */ 44#include <termios.h> --- 27 unchanged lines hidden (view full) --- 72 { "su", &tmode.c_cc[VSUSP] }, /* suspend char */ 73 { "ds", &tmode.c_cc[VDSUSP] }, /* delayed suspend */ 74 { "rp", &tmode.c_cc[VREPRINT] },/* reprint char */ 75 { "fl", &tmode.c_cc[VDISCARD] },/* flush output */ 76 { "we", &tmode.c_cc[VWERASE] }, /* word erase */ 77 { "ln", &tmode.c_cc[VLNEXT] }, /* literal next */ 78 { "Lo" }, /* locale for strftime() */ 79 { "pp" }, /* ppp login program */ |
80 { "if" }, /* sysv-like 'issue' filename */ 81 { "ic" }, /* modem init-chat */ 82 { "ac" }, /* modem answer-chat */ |
|
80 { 0 } 81}; 82 83struct gettynums gettynums[] = { 84 { "is" }, /* input speed */ 85 { "os" }, /* output speed */ 86 { "sp" }, /* both speeds */ 87 { "nd" }, /* newline delay */ --- 14 unchanged lines hidden (view full) --- 102 { "i2" }, /* user mode i_flags */ 103 { "l0" }, /* output l_flags */ 104 { "l1" }, /* input l_flags */ 105 { "l2" }, /* user mode l_flags */ 106 { "o0" }, /* output o_flags */ 107 { "o1" }, /* input o_flags */ 108 { "o2" }, /* user mode o_flags */ 109 { "de" }, /* delay before sending 1st prompt */ | 83 { 0 } 84}; 85 86struct gettynums gettynums[] = { 87 { "is" }, /* input speed */ 88 { "os" }, /* output speed */ 89 { "sp" }, /* both speeds */ 90 { "nd" }, /* newline delay */ --- 14 unchanged lines hidden (view full) --- 105 { "i2" }, /* user mode i_flags */ 106 { "l0" }, /* output l_flags */ 107 { "l1" }, /* input l_flags */ 108 { "l2" }, /* user mode l_flags */ 109 { "o0" }, /* output o_flags */ 110 { "o1" }, /* input o_flags */ 111 { "o2" }, /* user mode o_flags */ 112 { "de" }, /* delay before sending 1st prompt */ |
113 { "rt" }, /* reset timeout */ 114 { "ct" }, /* chat script timeout */ 115 { "dc" }, /* debug chat script value */ |
|
110 { 0 } 111}; 112 113 114struct gettyflags gettyflags[] = { 115 { "ht", 0 }, /* has tabs */ 116 { "nl", 1 }, /* has newline char */ 117 { "ep", 0 }, /* even parity */ --- 12 unchanged lines hidden (view full) --- 130 { "ig", 0 }, /* ignore garbage */ 131 { "ps", 0 }, /* do port selector speed select */ 132 { "hc", 1 }, /* don't set hangup on close */ 133 { "ub", 0 }, /* unbuffered output */ 134 { "ab", 0 }, /* auto-baud detect with '\r' */ 135 { "dx", 0 }, /* set decctlq */ 136 { "np", 0 }, /* no parity at all (8bit chars) */ 137 { "mb", 0 }, /* do MDMBUF flow control */ | 116 { 0 } 117}; 118 119 120struct gettyflags gettyflags[] = { 121 { "ht", 0 }, /* has tabs */ 122 { "nl", 1 }, /* has newline char */ 123 { "ep", 0 }, /* even parity */ --- 12 unchanged lines hidden (view full) --- 136 { "ig", 0 }, /* ignore garbage */ 137 { "ps", 0 }, /* do port selector speed select */ 138 { "hc", 1 }, /* don't set hangup on close */ 139 { "ub", 0 }, /* unbuffered output */ 140 { "ab", 0 }, /* auto-baud detect with '\r' */ 141 { "dx", 0 }, /* set decctlq */ 142 { "np", 0 }, /* no parity at all (8bit chars) */ 143 { "mb", 0 }, /* do MDMBUF flow control */ |
144 { "hw", 0 }, /* do CTSRTS flow control */ |
|
138 { 0 } 139}; | 145 { 0 } 146}; |