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