Deleted Added
full compact
gettytab.h (2286) gettytab.h (15645)
1/*
1/*
2 * Copyright (c) 1983 The Regents of the University of California.
3 * All rights reserved.
2 * Copyright (c) 1983, 1993, 1994
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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the

--- 13 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 *
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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the

--- 13 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 * @(#)gettytab.h 5.5 (Berkeley) 3/27/91
33 * from: @(#)gettytab.h 8.2 (Berkeley) 3/30/94
34 * $Id: gettytab.h,v 1.1.1.2 1996/04/13 15:33:09 joerg Exp $
34 */
35
36/*
37 * Getty description definitions.
38 */
39struct gettystrs {
35 */
36
37/*
38 * Getty description definitions.
39 */
40struct gettystrs {
40 char *field; /* name to lookup in gettytab */
41 const char *field; /* name to lookup in gettytab */
41 char *defalt; /* value we find by looking in defaults */
42 char *value; /* value that we find there */
43};
44
45struct gettynums {
42 char *defalt; /* value we find by looking in defaults */
43 char *value; /* value that we find there */
44};
45
46struct gettynums {
46 char *field; /* name to lookup */
47 const char *field; /* name to lookup */
47 long defalt; /* number we find in defaults */
48 long value; /* number we find there */
49 int set; /* we actually got this one */
50};
51
52struct gettyflags {
48 long defalt; /* number we find in defaults */
49 long value; /* number we find there */
50 int set; /* we actually got this one */
51};
52
53struct gettyflags {
53 char *field; /* name to lookup */
54 const char *field; /* name to lookup */
54 char invrt; /* name existing in gettytab --> false */
55 char defalt; /* true/false in defaults */
56 char value; /* true/false flag */
57 char set; /* we found it */
58};
59
60/*
61 * String values.

--- 17 unchanged lines hidden (view full) ---

79#define XF gettystrs[16].value
80#define BK gettystrs[17].value
81#define SU gettystrs[18].value
82#define DS gettystrs[19].value
83#define RP gettystrs[20].value
84#define FL gettystrs[21].value
85#define WE gettystrs[22].value
86#define LN gettystrs[23].value
55 char invrt; /* name existing in gettytab --> false */
56 char defalt; /* true/false in defaults */
57 char value; /* true/false flag */
58 char set; /* we found it */
59};
60
61/*
62 * String values.

--- 17 unchanged lines hidden (view full) ---

80#define XF gettystrs[16].value
81#define BK gettystrs[17].value
82#define SU gettystrs[18].value
83#define DS gettystrs[19].value
84#define RP gettystrs[20].value
85#define FL gettystrs[21].value
86#define WE gettystrs[22].value
87#define LN gettystrs[23].value
88#define Lo gettystrs[24].value
87
88/*
89 * Numeric definitions.
90 */
91#define IS gettynums[0].value
92#define OS gettynums[1].value
93#define SP gettynums[2].value
94#define ND gettynums[3].value

--- 4 unchanged lines hidden (view full) ---

99#define TO gettynums[8].value
100#define F0 gettynums[9].value
101#define F0set gettynums[9].set
102#define F1 gettynums[10].value
103#define F1set gettynums[10].set
104#define F2 gettynums[11].value
105#define F2set gettynums[11].set
106#define PF gettynums[12].value
89
90/*
91 * Numeric definitions.
92 */
93#define IS gettynums[0].value
94#define OS gettynums[1].value
95#define SP gettynums[2].value
96#define ND gettynums[3].value

--- 4 unchanged lines hidden (view full) ---

101#define TO gettynums[8].value
102#define F0 gettynums[9].value
103#define F0set gettynums[9].set
104#define F1 gettynums[10].value
105#define F1set gettynums[10].set
106#define F2 gettynums[11].value
107#define F2set gettynums[11].set
108#define PF gettynums[12].value
109#define C0 gettynums[13].value
110#define C0set gettynums[13].set
111#define C1 gettynums[14].value
112#define C1set gettynums[14].set
113#define C2 gettynums[15].value
114#define C2set gettynums[15].set
115#define I0 gettynums[16].value
116#define I0set gettynums[16].set
117#define I1 gettynums[17].value
118#define I1set gettynums[17].set
119#define I2 gettynums[18].value
120#define I2set gettynums[18].set
121#define L0 gettynums[19].value
122#define L0set gettynums[19].set
123#define L1 gettynums[20].value
124#define L1set gettynums[20].set
125#define L2 gettynums[21].value
126#define L2set gettynums[21].set
127#define O0 gettynums[22].value
128#define O0set gettynums[22].set
129#define O1 gettynums[23].value
130#define O1set gettynums[23].set
131#define O2 gettynums[24].value
132#define O2set gettynums[24].set
107
108/*
109 * Boolean values.
110 */
111#define HT gettyflags[0].value
112#define NL gettyflags[1].value
113#define EP gettyflags[2].value
114#define EPset gettyflags[2].set

--- 13 unchanged lines hidden (view full) ---

128#define UC gettyflags[14].value
129#define IG gettyflags[15].value
130#define PS gettyflags[16].value
131#define HC gettyflags[17].value
132#define UB gettyflags[18].value
133#define AB gettyflags[19].value
134#define DX gettyflags[20].value
135#define NP gettyflags[21].value
133
134/*
135 * Boolean values.
136 */
137#define HT gettyflags[0].value
138#define NL gettyflags[1].value
139#define EP gettyflags[2].value
140#define EPset gettyflags[2].set

--- 13 unchanged lines hidden (view full) ---

154#define UC gettyflags[14].value
155#define IG gettyflags[15].value
156#define PS gettyflags[16].value
157#define HC gettyflags[17].value
158#define UB gettyflags[18].value
159#define AB gettyflags[19].value
160#define DX gettyflags[20].value
161#define NP gettyflags[21].value
162#define MB gettyflags[22].value
136
163
137int getent();
138long getnum();
139int getflag();
140char *getstr();
141
142extern struct gettyflags gettyflags[];
143extern struct gettynums gettynums[];
144extern struct gettystrs gettystrs[];
145extern int hopcount;