xref: /freebsd/libexec/getty/gettytab.h (revision 43581d7b6617959e4452094d9330ef020034a6c9)
1*8a16b7a1SPedro F. Giffuni /*-
2*8a16b7a1SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
3*8a16b7a1SPedro F. Giffuni  *
4cae66988SJoerg Wunsch  * Copyright (c) 1983, 1993, 1994
5cae66988SJoerg Wunsch  *	The Regents of the University of California.  All rights reserved.
6ea022d16SRodney W. Grimes  *
7ea022d16SRodney W. Grimes  * Redistribution and use in source and binary forms, with or without
8ea022d16SRodney W. Grimes  * modification, are permitted provided that the following conditions
9ea022d16SRodney W. Grimes  * are met:
10ea022d16SRodney W. Grimes  * 1. Redistributions of source code must retain the above copyright
11ea022d16SRodney W. Grimes  *    notice, this list of conditions and the following disclaimer.
12ea022d16SRodney W. Grimes  * 2. Redistributions in binary form must reproduce the above copyright
13ea022d16SRodney W. Grimes  *    notice, this list of conditions and the following disclaimer in the
14ea022d16SRodney W. Grimes  *    documentation and/or other materials provided with the distribution.
155efaea4cSChristian Brueffer  * 3. Neither the name of the University nor the names of its contributors
16ea022d16SRodney W. Grimes  *    may be used to endorse or promote products derived from this software
17ea022d16SRodney W. Grimes  *    without specific prior written permission.
18ea022d16SRodney W. Grimes  *
19ea022d16SRodney W. Grimes  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20ea022d16SRodney W. Grimes  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21ea022d16SRodney W. Grimes  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22ea022d16SRodney W. Grimes  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23ea022d16SRodney W. Grimes  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24ea022d16SRodney W. Grimes  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25ea022d16SRodney W. Grimes  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26ea022d16SRodney W. Grimes  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27ea022d16SRodney W. Grimes  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28ea022d16SRodney W. Grimes  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29ea022d16SRodney W. Grimes  * SUCH DAMAGE.
30ea022d16SRodney W. Grimes  */
31ea022d16SRodney W. Grimes 
32ea022d16SRodney W. Grimes /*
33ea022d16SRodney W. Grimes  * Getty description definitions.
34ea022d16SRodney W. Grimes  */
35ea022d16SRodney W. Grimes struct	gettystrs {
36cae66988SJoerg Wunsch 	const char *field;	/* name to lookup in gettytab */
37ea022d16SRodney W. Grimes 	char	*defalt;	/* value we find by looking in defaults */
38ea022d16SRodney W. Grimes 	char	*value;		/* value that we find there */
39ea022d16SRodney W. Grimes };
40ea022d16SRodney W. Grimes 
41ea022d16SRodney W. Grimes struct	gettynums {
42cae66988SJoerg Wunsch 	const char *field;	/* name to lookup */
43ea022d16SRodney W. Grimes 	long	defalt;		/* number we find in defaults */
44ea022d16SRodney W. Grimes 	long	value;		/* number we find there */
45ea022d16SRodney W. Grimes 	int	set;		/* we actually got this one */
46ea022d16SRodney W. Grimes };
47ea022d16SRodney W. Grimes 
48ea022d16SRodney W. Grimes struct gettyflags {
49cae66988SJoerg Wunsch 	const char *field;	/* name to lookup */
50ea022d16SRodney W. Grimes 	char	invrt;		/* name existing in gettytab --> false */
51ea022d16SRodney W. Grimes 	char	defalt;		/* true/false in defaults */
52ea022d16SRodney W. Grimes 	char	value;		/* true/false flag */
53ea022d16SRodney W. Grimes 	char	set;		/* we found it */
54ea022d16SRodney W. Grimes };
55ea022d16SRodney W. Grimes 
56ea022d16SRodney W. Grimes /*
57ea022d16SRodney W. Grimes  * String values.
58ea022d16SRodney W. Grimes  */
59ea022d16SRodney W. Grimes #define	NX	gettystrs[0].value
60ea022d16SRodney W. Grimes #define	CL	gettystrs[1].value
61ea022d16SRodney W. Grimes #define IM	gettystrs[2].value
62ea022d16SRodney W. Grimes #define	LM	gettystrs[3].value
63ea022d16SRodney W. Grimes #define	ER	gettystrs[4].value
64ea022d16SRodney W. Grimes #define	KL	gettystrs[5].value
65ea022d16SRodney W. Grimes #define	ET	gettystrs[6].value
66ea022d16SRodney W. Grimes #define	PC	gettystrs[7].value
67ea022d16SRodney W. Grimes #define	TT	gettystrs[8].value
68ea022d16SRodney W. Grimes #define	EV	gettystrs[9].value
69ea022d16SRodney W. Grimes #define	LO	gettystrs[10].value
70ea022d16SRodney W. Grimes #define HN	gettystrs[11].value
71ea022d16SRodney W. Grimes #define HE	gettystrs[12].value
72ea022d16SRodney W. Grimes #define IN	gettystrs[13].value
73ea022d16SRodney W. Grimes #define QU	gettystrs[14].value
74ea022d16SRodney W. Grimes #define XN	gettystrs[15].value
75ea022d16SRodney W. Grimes #define XF	gettystrs[16].value
76ea022d16SRodney W. Grimes #define BK	gettystrs[17].value
77ea022d16SRodney W. Grimes #define SU	gettystrs[18].value
78ea022d16SRodney W. Grimes #define DS	gettystrs[19].value
79ea022d16SRodney W. Grimes #define RP	gettystrs[20].value
80ea022d16SRodney W. Grimes #define FL	gettystrs[21].value
81ea022d16SRodney W. Grimes #define WE	gettystrs[22].value
82ea022d16SRodney W. Grimes #define LN	gettystrs[23].value
83cae66988SJoerg Wunsch #define Lo	gettystrs[24].value
84ee936a69SPaul Traina #define PP	gettystrs[25].value
85fe552114SDavid Nugent #define IF	gettystrs[26].value
86fe552114SDavid Nugent #define IC	gettystrs[27].value
87fe552114SDavid Nugent #define AC	gettystrs[28].value
88610b0299SPeter Wemm #define AL	gettystrs[29].value
89db563f31SYaroslav Tykhiy #define DF	gettystrs[30].value
90ff48be37SDavid Bright #define IMP	gettystrs[31].value
91ea022d16SRodney W. Grimes 
92ea022d16SRodney W. Grimes /*
93ea022d16SRodney W. Grimes  * Numeric definitions.
94ea022d16SRodney W. Grimes  */
95ea022d16SRodney W. Grimes #define	IS	gettynums[0].value
96ea022d16SRodney W. Grimes #define	OS	gettynums[1].value
97ea022d16SRodney W. Grimes #define	SP	gettynums[2].value
98ea022d16SRodney W. Grimes #define	ND	gettynums[3].value
99ea022d16SRodney W. Grimes #define	CD	gettynums[4].value
100ea022d16SRodney W. Grimes #define	TD	gettynums[5].value
101ea022d16SRodney W. Grimes #define	FD	gettynums[6].value
102ea022d16SRodney W. Grimes #define	BD	gettynums[7].value
103ea022d16SRodney W. Grimes #define	TO	gettynums[8].value
104ea022d16SRodney W. Grimes #define	F0	gettynums[9].value
105ea022d16SRodney W. Grimes #define	F0set	gettynums[9].set
106ea022d16SRodney W. Grimes #define	F1	gettynums[10].value
107ea022d16SRodney W. Grimes #define	F1set	gettynums[10].set
108ea022d16SRodney W. Grimes #define	F2	gettynums[11].value
109ea022d16SRodney W. Grimes #define	F2set	gettynums[11].set
110ea022d16SRodney W. Grimes #define	PF	gettynums[12].value
111cae66988SJoerg Wunsch #define	C0	gettynums[13].value
112cae66988SJoerg Wunsch #define	C0set	gettynums[13].set
113cae66988SJoerg Wunsch #define	C1	gettynums[14].value
114cae66988SJoerg Wunsch #define	C1set	gettynums[14].set
115cae66988SJoerg Wunsch #define	C2	gettynums[15].value
116cae66988SJoerg Wunsch #define	C2set	gettynums[15].set
117cae66988SJoerg Wunsch #define	I0	gettynums[16].value
118cae66988SJoerg Wunsch #define	I0set	gettynums[16].set
119cae66988SJoerg Wunsch #define	I1	gettynums[17].value
120cae66988SJoerg Wunsch #define	I1set	gettynums[17].set
121cae66988SJoerg Wunsch #define	I2	gettynums[18].value
122cae66988SJoerg Wunsch #define	I2set	gettynums[18].set
123cae66988SJoerg Wunsch #define	L0	gettynums[19].value
124cae66988SJoerg Wunsch #define	L0set	gettynums[19].set
125cae66988SJoerg Wunsch #define	L1	gettynums[20].value
126cae66988SJoerg Wunsch #define	L1set	gettynums[20].set
127cae66988SJoerg Wunsch #define	L2	gettynums[21].value
128cae66988SJoerg Wunsch #define	L2set	gettynums[21].set
129cae66988SJoerg Wunsch #define	O0	gettynums[22].value
130cae66988SJoerg Wunsch #define	O0set	gettynums[22].set
131cae66988SJoerg Wunsch #define	O1	gettynums[23].value
132cae66988SJoerg Wunsch #define	O1set	gettynums[23].set
133cae66988SJoerg Wunsch #define	O2	gettynums[24].value
134cae66988SJoerg Wunsch #define	O2set	gettynums[24].set
135b2a1dd44SMike Smith #define	DE	gettynums[25].value
136fe552114SDavid Nugent #define RTset	gettynums[26].set
137fe552114SDavid Nugent #define RT	gettynums[26].value
138fe552114SDavid Nugent #define CT	gettynums[27].value
139fe552114SDavid Nugent #define DC	gettynums[28].value
140ea022d16SRodney W. Grimes 
141ea022d16SRodney W. Grimes /*
142ea022d16SRodney W. Grimes  * Boolean values.
143ea022d16SRodney W. Grimes  */
144ea022d16SRodney W. Grimes #define	HT	gettyflags[0].value
145ea022d16SRodney W. Grimes #define	NL	gettyflags[1].value
146ea022d16SRodney W. Grimes #define	EP	gettyflags[2].value
147ea022d16SRodney W. Grimes #define	EPset	gettyflags[2].set
148ea022d16SRodney W. Grimes #define	OP	gettyflags[3].value
149ea022d16SRodney W. Grimes #define	OPset	gettyflags[3].set
150ea022d16SRodney W. Grimes #define	AP	gettyflags[4].value
151ea022d16SRodney W. Grimes #define	APset	gettyflags[4].set
152ea022d16SRodney W. Grimes #define	EC	gettyflags[5].value
153ea022d16SRodney W. Grimes #define	CO	gettyflags[6].value
154ea022d16SRodney W. Grimes #define	CB	gettyflags[7].value
155ea022d16SRodney W. Grimes #define	CK	gettyflags[8].value
156ea022d16SRodney W. Grimes #define	CE	gettyflags[9].value
157ea022d16SRodney W. Grimes #define	PE	gettyflags[10].value
158ea022d16SRodney W. Grimes #define	RW	gettyflags[11].value
159ea022d16SRodney W. Grimes #define	XC	gettyflags[12].value
160ea022d16SRodney W. Grimes #define	LC	gettyflags[13].value
161ea022d16SRodney W. Grimes #define	UC	gettyflags[14].value
162ea022d16SRodney W. Grimes #define	IG	gettyflags[15].value
163ea022d16SRodney W. Grimes #define	PS	gettyflags[16].value
164ea022d16SRodney W. Grimes #define	HC	gettyflags[17].value
165ea022d16SRodney W. Grimes #define UB	gettyflags[18].value
166ea022d16SRodney W. Grimes #define AB	gettyflags[19].value
167ea022d16SRodney W. Grimes #define DX	gettyflags[20].value
168ea022d16SRodney W. Grimes #define	NP	gettyflags[21].value
1693cd7e229SYaroslav Tykhiy #define	NPset	gettyflags[21].set
170cae66988SJoerg Wunsch #define	MB	gettyflags[22].value
171fe552114SDavid Nugent #define	HW	gettyflags[23].value
1723d4a189eSNick Sayer #define	NC	gettyflags[24].value
1739b766048SMaxim Sobolev #define	PL	gettyflags[25].value
174