|
|
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: * @(#)gettytab.h 5.4 (Berkeley) 6/1/90
20: */
21:
22: /*
23: * Getty description definitions.
24: */
25: struct gettystrs {
26: char *field; /* name to lookup in gettytab */
27: char *defalt; /* value we find by looking in defaults */
28: char *value; /* value that we find there */
29: };
30:
31: struct gettynums {
32: char *field; /* name to lookup */
33: long defalt; /* number we find in defaults */
34: long value; /* number we find there */
35: int set; /* we actually got this one */
36: };
37:
38: struct gettyflags {
39: char *field; /* name to lookup */
40: char invrt; /* name existing in gettytab --> false */
41: char defalt; /* true/false in defaults */
42: char value; /* true/false flag */
43: char set; /* we found it */
44: };
45:
46: /*
47: * String values.
48: */
49: #define NX gettystrs[0].value
50: #define CL gettystrs[1].value
51: #define IM gettystrs[2].value
52: #define LM gettystrs[3].value
53: #define ER gettystrs[4].value
54: #define KL gettystrs[5].value
55: #define ET gettystrs[6].value
56: #define PC gettystrs[7].value
57: #define TT gettystrs[8].value
58: #define EV gettystrs[9].value
59: #define LO gettystrs[10].value
60: #define HN gettystrs[11].value
61: #define HE gettystrs[12].value
62: #define IN gettystrs[13].value
63: #define QU gettystrs[14].value
64: #define XN gettystrs[15].value
65: #define XF gettystrs[16].value
66: #define BK gettystrs[17].value
67: #define SU gettystrs[18].value
68: #define DS gettystrs[19].value
69: #define RP gettystrs[20].value
70: #define FL gettystrs[21].value
71: #define WE gettystrs[22].value
72: #define LN gettystrs[23].value
73:
74: /*
75: * Numeric definitions.
76: */
77: #define IS gettynums[0].value
78: #define OS gettynums[1].value
79: #define SP gettynums[2].value
80: #define ND gettynums[3].value
81: #define CD gettynums[4].value
82: #define TD gettynums[5].value
83: #define FD gettynums[6].value
84: #define BD gettynums[7].value
85: #define TO gettynums[8].value
86: #define F0 gettynums[9].value
87: #define F0set gettynums[9].set
88: #define F1 gettynums[10].value
89: #define F1set gettynums[10].set
90: #define F2 gettynums[11].value
91: #define F2set gettynums[11].set
92: #define PF gettynums[12].value
93:
94: /*
95: * Boolean values.
96: */
97: #define HT gettyflags[0].value
98: #define NL gettyflags[1].value
99: #define EP gettyflags[2].value
100: #define EPset gettyflags[2].set
101: #define OP gettyflags[3].value
102: #define OPset gettyflags[2].set
103: #define AP gettyflags[4].value
104: #define APset gettyflags[2].set
105: #define EC gettyflags[5].value
106: #define CO gettyflags[6].value
107: #define CB gettyflags[7].value
108: #define CK gettyflags[8].value
109: #define CE gettyflags[9].value
110: #define PE gettyflags[10].value
111: #define RW gettyflags[11].value
112: #define XC gettyflags[12].value
113: #define LC gettyflags[13].value
114: #define UC gettyflags[14].value
115: #define IG gettyflags[15].value
116: #define PS gettyflags[16].value
117: #define HC gettyflags[17].value
118: #define UB gettyflags[18].value
119: #define AB gettyflags[19].value
120: #define DX gettyflags[20].value
121:
122: int getent();
123: long getnum();
124: int getflag();
125: char *getstr();
126:
127: extern struct gettyflags gettyflags[];
128: extern struct gettynums gettynums[];
129: extern struct gettystrs gettystrs[];
130: extern int hopcount;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.