2 * Copyright (C)1996-1997,1999 Ian Jackson
4 * This is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with userv; if not, write to the Free Software
16 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 tokm_instance= 0x000000ff,
29 tokm_repres= 0x00000f00,
30 tokm_type= 0xfffff000,
31 tokr_nonstring= 0x00000100,
32 tokr_word= 0x00000200,
33 tokr_punct= 0x00000300,
34 tokr_string= 0x00000400,
35 tokt_directive= 0x00001000,
36 tokt_controlstart= 0x00002000,
37 tokt_controlend= 0x00004000,
38 tokt_exception= 0x00008000,
39 tokt_parmcondition= 0x00010000,
40 tokt_condop= 0x00020000,
41 tokt_parameter= 0x00040000,
42 tokt_number= 0x00080000,
43 tokt_fdrange= 0x00100000,
44 tokt_logfacility= 0x00200000,
45 tokt_loglevel= 0x00400000,
46 tokt_readwrite= 0x00800000,
47 tokt_string= 0x01000000,
48 tokt_execmode= 0x02000000,
49 tokt_ehandlemode= 0x04000000,
50 tokt_builtinservice= 0x08000000,
51 tokt_misc= 0x10000000,
52 tokt_internal= 0x20000000,
54 toki_word_reject= 0x00000001,
55 toki_word_executefromdirectory= 0x00000002,
56 toki_word_executefrompath= 0x00000003,
57 toki_word_executebuiltin= 0x00000004,
58 toki_word_errorstostderr= 0x00000005,
59 toki_word_errorstosyslog= 0x00000006,
60 toki_word_errorstofile= 0x00000007,
61 toki_word_requirefd= 0x00000008,
62 toki_word_allowfd= 0x00000009,
63 toki_word_nullfd= 0x0000000a,
64 toki_word_rejectfd= 0x0000000b,
65 toki_word_ignorefd= 0x0000000c,
66 toki_word_setenvironment= 0x0000000d,
67 toki_word_nosetenvironment= 0x0000000e,
68 toki_word_suppressargs= 0x0000000f,
69 toki_word_nosuppressargs= 0x00000010,
70 toki_word_disconnecthup= 0x00000011,
71 toki_word_nodisconnecthup= 0x00000012,
72 toki_word_cd= 0x00000013,
73 toki_word_userrcfile= 0x00000014,
74 toki_word_include= 0x00000015,
75 toki_word_includeifexist= 0x00000016,
76 toki_word_includelookup= 0x00000017,
77 toki_word_includelookupall= 0x00000018,
78 toki_word_includedirectory= 0x00000019,
79 toki_word_message= 0x0000001a,
80 toki_word_includesysconfig= 0x0000001b,
81 toki_word_includeuserrcfile= 0x0000001c,
82 toki_word_includeclientconfig= 0x0000001d,
83 toki_word_quit= 0x0000001e,
84 toki_word_eof= 0x0000001f,
85 toki_word_if= 0x00000020,
86 toki_word_catchquit= 0x00000021,
87 toki_word_errorspush= 0x00000022,
88 toki_word_elif= 0x00000023,
89 toki_word_else= 0x00000024,
90 toki_word_fi= 0x00000025,
91 toki_word_hctac= 0x00000026,
92 toki_word_srorre= 0x00000027,
93 toki_word_glob= 0x00000028,
94 toki_word_range= 0x00000029,
95 toki_word_grep= 0x0000002a,
96 toki_word_environment= 0x0000002b,
97 toki_word_parameter= 0x0000002c,
98 toki_word_version= 0x0000002d,
99 toki_word_toplevel= 0x0000002e,
100 toki_word_override= 0x0000002f,
101 toki_word_shutdown= 0x00000030,
102 toki_word_reset= 0x00000031,
103 toki_word_execute= 0x00000032,
104 toki_word_help= 0x00000033,
105 toki_word_service= 0x00000034,
106 toki_word_callinguser= 0x00000035,
107 toki_word_callinggroup= 0x00000036,
108 toki_word_callingusershell= 0x00000037,
109 toki_word_serviceuser= 0x00000038,
110 toki_word_servicegroup= 0x00000039,
111 toki_word_serviceusershell= 0x0000003a,
112 toki_syslog_debug= 0x0000003b,
113 toki_syslog_info= 0x0000003c,
114 toki_syslog_notice= 0x0000003d,
115 toki_syslog_warning= 0x0000003e,
116 toki_syslog_err= 0x0000003f,
117 toki_syslog_crit= 0x00000040,
118 toki_syslog_alert= 0x00000041,
119 toki_syslog_emerg= 0x00000042,
120 toki_syslog_authpriv= 0x00000043,
121 toki_syslog_cron= 0x00000044,
122 toki_syslog_daemon= 0x00000045,
123 toki_syslog_kern= 0x00000046,
124 toki_syslog_lpr= 0x00000047,
125 toki_syslog_mail= 0x00000048,
126 toki_syslog_news= 0x00000049,
127 toki_syslog_syslog= 0x0000004a,
128 toki_syslog_user= 0x0000004b,
129 toki_syslog_uucp= 0x0000004c,
130 toki_syslog_local0= 0x0000004d,
131 toki_syslog_local1= 0x0000004e,
132 toki_syslog_local2= 0x0000004f,
133 toki_syslog_local3= 0x00000050,
134 toki_syslog_local4= 0x00000051,
135 toki_syslog_local5= 0x00000052,
136 toki_syslog_local6= 0x00000053,
137 toki_syslog_local7= 0x00000054,
138 toki_word_read= 0x00000055,
139 toki_word_write= 0x00000056,
140 toki_ordinal= 0x00000057,
141 toki_fdrange= 0x00000058,
142 toki_fdstoend= 0x00000059,
143 toki_dollar= 0x0000005a,
144 toki_lwsp= 0x0000005b,
145 toki_newline= 0x0000005c,
146 toki_barestring= 0x0000005d,
147 toki_quotedstring= 0x0000005e,
148 toki_eof= 0x0000005f,
149 toki_quit= 0x00000060,
150 toki_error= 0x00000061,
151 toki_openparen= 0x00000062,
152 toki_closeparen= 0x00000063,
153 toki_not= 0x00000064,
154 toki_and= 0x00000065,
156 toki_word_error= 0x00000067,
158 tokv_word_reject= tokt_directive|tokt_execmode|tokr_word|toki_word_reject,
159 tokv_word_executefromdirectory=tokt_directive|tokt_execmode|tokr_word|toki_word_executefromdirectory,
160 tokv_word_executefrompath= tokt_directive|tokt_execmode|tokr_word|toki_word_executefrompath,
161 tokv_word_executebuiltin= tokt_directive|tokt_execmode|tokr_word|toki_word_executebuiltin,
162 tokv_word_errorstostderr= tokt_directive|tokt_ehandlemode|tokr_word|toki_word_errorstostderr,
163 tokv_word_errorstosyslog= tokt_directive|tokt_ehandlemode|tokr_word|toki_word_errorstosyslog,
164 tokv_word_errorstofile= tokt_directive|tokt_ehandlemode|tokr_word|toki_word_errorstofile,
165 tokv_word_requirefd= tokt_directive|tokr_word|toki_word_requirefd,
166 tokv_word_allowfd= tokt_directive|tokr_word|toki_word_allowfd,
167 tokv_word_nullfd= tokt_directive|tokr_word|toki_word_nullfd,
168 tokv_word_rejectfd= tokt_directive|tokr_word|toki_word_rejectfd,
169 tokv_word_ignorefd= tokt_directive|tokr_word|toki_word_ignorefd,
170 tokv_word_setenvironment= tokt_directive|tokr_word|toki_word_setenvironment,
171 tokv_word_nosetenvironment= tokt_directive|tokr_word|toki_word_nosetenvironment,
172 tokv_word_suppressargs= tokt_directive|tokr_word|toki_word_suppressargs,
173 tokv_word_nosuppressargs= tokt_directive|tokr_word|toki_word_nosuppressargs,
174 tokv_word_disconnecthup= tokt_directive|tokr_word|toki_word_disconnecthup,
175 tokv_word_nodisconnecthup= tokt_directive|tokr_word|toki_word_nodisconnecthup,
176 tokv_word_cd= tokt_directive|tokr_word|toki_word_cd,
177 tokv_word_userrcfile= tokt_directive|tokr_word|toki_word_userrcfile,
178 tokv_word_include= tokt_directive|tokr_word|toki_word_include,
179 tokv_word_includeifexist= tokt_directive|tokr_word|toki_word_includeifexist,
180 tokv_word_includelookup= tokt_directive|tokr_word|toki_word_includelookup,
181 tokv_word_includelookupall= tokt_directive|tokr_word|toki_word_includelookupall,
182 tokv_word_includedirectory= tokt_directive|tokr_word|toki_word_includedirectory,
183 tokv_word_message= tokt_directive|tokr_word|toki_word_message,
184 tokv_word_includesysconfig= tokt_directive|tokt_internal|tokr_word|toki_word_includesysconfig,
185 tokv_word_includeuserrcfile= tokt_directive|tokt_internal|tokr_word|toki_word_includeuserrcfile,
186 tokv_word_includeclientconfig=tokt_directive|tokt_internal|tokr_word|toki_word_includeclientconfig,
187 tokv_word_quit= tokt_directive|tokr_word|toki_word_quit,
188 tokv_word_eof= tokt_directive|tokr_word|toki_word_eof,
189 tokv_word_if= tokt_directive|tokt_controlstart|tokr_word|toki_word_if,
190 tokv_word_catchquit= tokt_directive|tokt_controlstart|tokr_word|toki_word_catchquit,
191 tokv_word_errorspush= tokt_directive|tokt_controlstart|tokr_word|toki_word_errorspush,
192 tokv_word_elif= tokt_controlend|tokt_controlstart|tokr_word|toki_word_elif,
193 tokv_word_else= tokt_controlend|tokt_controlstart|tokr_word|toki_word_else,
194 tokv_word_fi= tokt_controlend|tokr_word|toki_word_fi,
195 tokv_word_hctac= tokt_controlend|tokr_word|toki_word_hctac,
196 tokv_word_srorre= tokt_controlend|tokr_word|toki_word_srorre,
197 tokv_word_glob= tokt_parmcondition|tokr_word|toki_word_glob,
198 tokv_word_range= tokt_parmcondition|tokr_word|toki_word_range,
199 tokv_word_grep= tokt_parmcondition|tokr_word|toki_word_grep,
200 tokv_word_environment= tokt_builtinservice|tokr_word|toki_word_environment,
201 tokv_word_parameter= tokt_builtinservice|tokr_word|toki_word_parameter,
202 tokv_word_version= tokt_builtinservice|tokr_word|toki_word_version,
203 tokv_word_toplevel= tokt_builtinservice|tokr_word|toki_word_toplevel,
204 tokv_word_override= tokt_builtinservice|tokr_word|toki_word_override,
205 tokv_word_shutdown= tokt_builtinservice|tokr_word|toki_word_shutdown,
206 tokv_word_reset= tokt_builtinservice|tokt_directive|tokr_word|toki_word_reset,
207 tokv_word_execute= tokt_builtinservice|tokt_directive|tokt_execmode|tokr_word|toki_word_execute,
208 tokv_word_help= tokt_builtinservice|tokr_word|toki_word_help,
209 tokv_word_service= tokt_parameter|tokr_word|toki_word_service,
210 tokv_word_callinguser= tokt_parameter|tokr_word|toki_word_callinguser,
211 tokv_word_callinggroup= tokt_parameter|tokr_word|toki_word_callinggroup,
212 tokv_word_callingusershell= tokt_parameter|tokr_word|toki_word_callingusershell,
213 tokv_word_serviceuser= tokt_parameter|tokr_word|toki_word_serviceuser,
214 tokv_word_servicegroup= tokt_parameter|tokr_word|toki_word_servicegroup,
215 tokv_word_serviceusershell= tokt_parameter|tokr_word|toki_word_serviceusershell,
216 tokv_syslog_debug= tokt_loglevel|tokr_word|toki_syslog_debug,
217 tokv_syslog_info= tokt_loglevel|tokr_word|toki_syslog_info,
218 tokv_syslog_notice= tokt_loglevel|tokr_word|toki_syslog_notice,
219 tokv_syslog_warning= tokt_loglevel|tokr_word|toki_syslog_warning,
220 tokv_syslog_err= tokt_loglevel|tokr_word|toki_syslog_err,
221 tokv_syslog_crit= tokt_loglevel|tokr_word|toki_syslog_crit,
222 tokv_syslog_alert= tokt_loglevel|tokr_word|toki_syslog_alert,
223 tokv_syslog_emerg= tokt_loglevel|tokr_word|toki_syslog_emerg,
224 tokv_syslog_authpriv= tokt_logfacility|tokr_word|toki_syslog_authpriv,
225 tokv_syslog_cron= tokt_logfacility|tokr_word|toki_syslog_cron,
226 tokv_syslog_daemon= tokt_logfacility|tokr_word|toki_syslog_daemon,
227 tokv_syslog_kern= tokt_logfacility|tokr_word|toki_syslog_kern,
228 tokv_syslog_lpr= tokt_logfacility|tokr_word|toki_syslog_lpr,
229 tokv_syslog_mail= tokt_logfacility|tokr_word|toki_syslog_mail,
230 tokv_syslog_news= tokt_logfacility|tokr_word|toki_syslog_news,
231 tokv_syslog_syslog= tokt_logfacility|tokr_word|toki_syslog_syslog,
232 tokv_syslog_user= tokt_logfacility|tokr_word|toki_syslog_user,
233 tokv_syslog_uucp= tokt_logfacility|tokr_word|toki_syslog_uucp,
234 tokv_syslog_local0= tokt_logfacility|tokr_word|toki_syslog_local0,
235 tokv_syslog_local1= tokt_logfacility|tokr_word|toki_syslog_local1,
236 tokv_syslog_local2= tokt_logfacility|tokr_word|toki_syslog_local2,
237 tokv_syslog_local3= tokt_logfacility|tokr_word|toki_syslog_local3,
238 tokv_syslog_local4= tokt_logfacility|tokr_word|toki_syslog_local4,
239 tokv_syslog_local5= tokt_logfacility|tokr_word|toki_syslog_local5,
240 tokv_syslog_local6= tokt_logfacility|tokr_word|toki_syslog_local6,
241 tokv_syslog_local7= tokt_logfacility|tokr_word|toki_syslog_local7,
242 tokv_word_read= tokt_readwrite|tokr_word|toki_word_read,
243 tokv_word_write= tokt_readwrite|tokr_word|toki_word_write,
244 tokv_ordinal= tokt_number|tokt_fdrange|tokr_word|toki_ordinal,
245 tokv_fdrange= tokt_fdrange|tokr_punct|toki_fdrange,
246 tokv_fdstoend= tokt_fdrange|tokr_punct|toki_fdstoend,
247 tokv_dollar= tokt_misc|tokr_punct|toki_dollar,
248 tokv_lwsp= tokt_misc|tokr_nonstring|toki_lwsp,
249 tokv_newline= tokt_misc|tokr_nonstring|toki_newline,
250 tokv_barestring= tokt_string|tokr_string|toki_barestring,
251 tokv_quotedstring= tokt_string|tokr_string|toki_quotedstring,
252 tokv_eof= tokt_exception|tokr_nonstring|toki_eof,
253 tokv_quit= tokt_exception|tokr_nonstring|toki_quit,
254 tokv_error= tokt_exception|tokr_nonstring|toki_error,
255 tokv_openparen= tokt_condop|tokr_punct|toki_openparen,
256 tokv_closeparen= tokt_condop|tokr_punct|toki_closeparen,
257 tokv_not= tokt_condop|tokr_punct|toki_not,
258 tokv_and= tokt_condop|tokr_punct|toki_and,
259 tokv_or= tokt_condop|tokr_punct|toki_or,
260 tokv_word_error= tokt_directive|tokt_loglevel|tokr_word|toki_word_error,