ntpsnmpd-opts.c revision 1.1.1.1.6.2 1 1.1.1.1.6.2 yamt /* $NetBSD: ntpsnmpd-opts.c,v 1.1.1.1.6.2 2014/05/22 15:50:10 yamt Exp $ */
2 1.1 kardel
3 1.1.1.1.6.2 yamt /*
4 1.1 kardel * EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.c)
5 1.1.1.1.6.2 yamt *
6 1.1.1.1.6.2 yamt * It has been AutoGen-ed December 24, 2013 at 11:39:05 AM by AutoGen 5.18.3pre5
7 1.1 kardel * From the definitions ntpsnmpd-opts.def
8 1.1 kardel * and the template file options
9 1.1 kardel *
10 1.1.1.1.6.2 yamt * Generated from AutoOpts 40:1:15 templates.
11 1.1 kardel *
12 1.1.1.1.6.1 yamt * AutoOpts is a copyrighted work. This source file is not encumbered
13 1.1.1.1.6.1 yamt * by AutoOpts licensing, but is provided under the licensing terms chosen
14 1.1.1.1.6.1 yamt * by the ntpsnmpd author or copyright holder. AutoOpts is
15 1.1.1.1.6.1 yamt * licensed under the terms of the LGPL. The redistributable library
16 1.1.1.1.6.1 yamt * (``libopts'') is licensed under the terms of either the LGPL or, at the
17 1.1.1.1.6.1 yamt * users discretion, the BSD license. See the AutoOpts and/or libopts sources
18 1.1.1.1.6.1 yamt * for details.
19 1.1 kardel *
20 1.1.1.1.6.2 yamt * The ntpsnmpd program is copyrighted and licensed
21 1.1.1.1.6.2 yamt * under the following terms:
22 1.1.1.1.6.2 yamt *
23 1.1.1.1.6.2 yamt * Copyright (C) 1970-2013 The University of Delaware, all rights reserved.
24 1.1.1.1.6.2 yamt * This is free software. It is licensed for use, modification and
25 1.1.1.1.6.2 yamt * redistribution under the terms of the NTP License, copies of which
26 1.1.1.1.6.2 yamt * can be seen at:
27 1.1.1.1.6.2 yamt * <http://ntp.org/license>
28 1.1.1.1.6.2 yamt * <http://opensource.org/licenses/ntp-license.php>
29 1.1 kardel *
30 1.1.1.1.6.2 yamt * Permission to use, copy, modify, and distribute this software and its
31 1.1.1.1.6.2 yamt * documentation for any purpose with or without fee is hereby granted,
32 1.1.1.1.6.2 yamt * provided that the above copyright notice appears in all copies and that
33 1.1.1.1.6.2 yamt * both the copyright notice and this permission notice appear in
34 1.1.1.1.6.2 yamt * supporting documentation, and that the name The University of Delaware not be used in
35 1.1.1.1.6.2 yamt * advertising or publicity pertaining to distribution of the software
36 1.1.1.1.6.2 yamt * without specific, written prior permission. The University of Delaware makes no
37 1.1.1.1.6.2 yamt * representations about the suitability this software for any purpose. It
38 1.1.1.1.6.2 yamt * is provided "as is" without express or implied warranty.
39 1.1 kardel */
40 1.1 kardel
41 1.1.1.1.6.2 yamt #ifndef __doxygen__
42 1.1.1.1.6.2 yamt #define OPTION_CODE_COMPILE 1
43 1.1.1.1.6.2 yamt #include "ntpsnmpd-opts.h"
44 1.1 kardel #include <sys/types.h>
45 1.1.1.1.6.1 yamt
46 1.1 kardel #include <limits.h>
47 1.1 kardel #include <stdio.h>
48 1.1 kardel #include <stdlib.h>
49 1.1 kardel
50 1.1 kardel #ifdef __cplusplus
51 1.1 kardel extern "C" {
52 1.1 kardel #endif
53 1.1.1.1.6.1 yamt extern FILE * option_usage_fp;
54 1.1.1.1.6.2 yamt #define zCopyright (ntpsnmpd_opt_strs+0)
55 1.1.1.1.6.2 yamt #define zLicenseDescrip (ntpsnmpd_opt_strs+318)
56 1.1 kardel
57 1.1 kardel
58 1.1 kardel #ifndef NULL
59 1.1 kardel # define NULL 0
60 1.1 kardel #endif
61 1.1 kardel
62 1.1.1.1.6.2 yamt /**
63 1.1.1.1.6.2 yamt * static const strings for ntpsnmpd options
64 1.1.1.1.6.1 yamt */
65 1.1.1.1.6.2 yamt static char const ntpsnmpd_opt_strs[1560] =
66 1.1.1.1.6.2 yamt /* 0 */ "ntpsnmpd 4.2.7p404\n"
67 1.1.1.1.6.2 yamt "Copyright (C) 1970-2013 The University of Delaware, all rights reserved.\n"
68 1.1.1.1.6.2 yamt "This is free software. It is licensed for use, modification and\n"
69 1.1.1.1.6.2 yamt "redistribution under the terms of the NTP License, copies of which\n"
70 1.1.1.1.6.2 yamt "can be seen at:\n"
71 1.1.1.1.6.2 yamt " <http://ntp.org/license>\n"
72 1.1.1.1.6.2 yamt " <http://opensource.org/licenses/ntp-license.php>\n\0"
73 1.1.1.1.6.2 yamt /* 318 */ "Permission to use, copy, modify, and distribute this software and its\n"
74 1.1.1.1.6.2 yamt "documentation for any purpose with or without fee is hereby granted,\n"
75 1.1.1.1.6.2 yamt "provided that the above copyright notice appears in all copies and that\n"
76 1.1.1.1.6.2 yamt "both the copyright notice and this permission notice appear in supporting\n"
77 1.1.1.1.6.2 yamt "documentation, and that the name The University of Delaware not be used in\n"
78 1.1.1.1.6.2 yamt "advertising or publicity pertaining to distribution of the software without\n"
79 1.1.1.1.6.2 yamt "specific, written prior permission. The University of Delaware makes no\n"
80 1.1.1.1.6.2 yamt "representations about the suitability this software for any purpose. It is\n"
81 1.1.1.1.6.2 yamt "provided \"as is\" without express or implied warranty.\n\0"
82 1.1.1.1.6.2 yamt /* 958 */ "Do not fork\0"
83 1.1.1.1.6.2 yamt /* 970 */ "NOFORK\0"
84 1.1.1.1.6.2 yamt /* 977 */ "nofork\0"
85 1.1.1.1.6.2 yamt /* 984 */ "Log to syslog()\0"
86 1.1.1.1.6.2 yamt /* 1000 */ "SYSLOG\0"
87 1.1.1.1.6.2 yamt /* 1007 */ "syslog\0"
88 1.1.1.1.6.2 yamt /* 1014 */ "The socket address ntpsnmpd uses to connect to net-snmpd\0"
89 1.1.1.1.6.2 yamt /* 1071 */ "AGENTXSOCKET\0"
90 1.1.1.1.6.2 yamt /* 1084 */ "agentxsocket\0"
91 1.1.1.1.6.2 yamt /* 1097 */ "unix:/var/agentx/master\0"
92 1.1.1.1.6.2 yamt /* 1121 */ "display extended usage information and exit\0"
93 1.1.1.1.6.2 yamt /* 1165 */ "help\0"
94 1.1.1.1.6.2 yamt /* 1170 */ "extended usage information passed thru pager\0"
95 1.1.1.1.6.2 yamt /* 1215 */ "more-help\0"
96 1.1.1.1.6.2 yamt /* 1225 */ "output version information and exit\0"
97 1.1.1.1.6.2 yamt /* 1261 */ "version\0"
98 1.1.1.1.6.2 yamt /* 1269 */ "save the option state to a config file\0"
99 1.1.1.1.6.2 yamt /* 1308 */ "save-opts\0"
100 1.1.1.1.6.2 yamt /* 1318 */ "load options from a config file\0"
101 1.1.1.1.6.2 yamt /* 1350 */ "LOAD_OPTS\0"
102 1.1.1.1.6.2 yamt /* 1360 */ "no-load-opts\0"
103 1.1.1.1.6.2 yamt /* 1373 */ "no\0"
104 1.1.1.1.6.2 yamt /* 1376 */ "NTPSNMPD\0"
105 1.1.1.1.6.2 yamt /* 1385 */ "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p404\n"
106 1.1.1.1.6.2 yamt "Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
107 1.1.1.1.6.2 yamt /* 1490 */ "$HOME\0"
108 1.1.1.1.6.2 yamt /* 1496 */ ".\0"
109 1.1.1.1.6.2 yamt /* 1498 */ ".ntprc\0"
110 1.1.1.1.6.2 yamt /* 1505 */ "http://bugs.ntp.org, bugs (at) ntp.org\0"
111 1.1.1.1.6.2 yamt /* 1539 */ "\n\0"
112 1.1.1.1.6.2 yamt /* 1541 */ "ntpsnmpd 4.2.7p404";
113 1.1.1.1.6.2 yamt
114 1.1.1.1.6.2 yamt /**
115 1.1.1.1.6.2 yamt * nofork option description:
116 1.1.1.1.6.2 yamt */
117 1.1.1.1.6.2 yamt /** Descriptive text for the nofork option */
118 1.1.1.1.6.2 yamt #define NOFORK_DESC (ntpsnmpd_opt_strs+958)
119 1.1.1.1.6.2 yamt /** Upper-cased name for the nofork option */
120 1.1.1.1.6.2 yamt #define NOFORK_NAME (ntpsnmpd_opt_strs+970)
121 1.1.1.1.6.2 yamt /** Name string for the nofork option */
122 1.1.1.1.6.2 yamt #define NOFORK_name (ntpsnmpd_opt_strs+977)
123 1.1.1.1.6.2 yamt /** Compiled in flag settings for the nofork option */
124 1.1.1.1.6.2 yamt #define NOFORK_FLAGS (OPTST_DISABLED)
125 1.1.1.1.6.2 yamt
126 1.1.1.1.6.2 yamt /**
127 1.1.1.1.6.2 yamt * syslog option description:
128 1.1.1.1.6.2 yamt */
129 1.1.1.1.6.2 yamt /** Descriptive text for the syslog option */
130 1.1.1.1.6.2 yamt #define SYSLOG_DESC (ntpsnmpd_opt_strs+984)
131 1.1.1.1.6.2 yamt /** Upper-cased name for the syslog option */
132 1.1.1.1.6.2 yamt #define SYSLOG_NAME (ntpsnmpd_opt_strs+1000)
133 1.1.1.1.6.2 yamt /** Name string for the syslog option */
134 1.1.1.1.6.2 yamt #define SYSLOG_name (ntpsnmpd_opt_strs+1007)
135 1.1.1.1.6.2 yamt /** Compiled in flag settings for the syslog option */
136 1.1.1.1.6.2 yamt #define SYSLOG_FLAGS (OPTST_DISABLED)
137 1.1.1.1.6.2 yamt
138 1.1.1.1.6.2 yamt /**
139 1.1.1.1.6.2 yamt * agentXSocket option description:
140 1.1.1.1.6.2 yamt */
141 1.1.1.1.6.2 yamt /** Descriptive text for the agentXSocket option */
142 1.1.1.1.6.2 yamt #define AGENTXSOCKET_DESC (ntpsnmpd_opt_strs+1014)
143 1.1.1.1.6.2 yamt /** Upper-cased name for the agentXSocket option */
144 1.1.1.1.6.2 yamt #define AGENTXSOCKET_NAME (ntpsnmpd_opt_strs+1071)
145 1.1.1.1.6.2 yamt /** Name string for the agentXSocket option */
146 1.1.1.1.6.2 yamt #define AGENTXSOCKET_name (ntpsnmpd_opt_strs+1084)
147 1.1.1.1.6.2 yamt /** The compiled in default value for the agentXSocket option argument */
148 1.1.1.1.6.2 yamt #define AGENTXSOCKET_DFT_ARG (ntpsnmpd_opt_strs+1097)
149 1.1.1.1.6.2 yamt /** Compiled in flag settings for the agentXSocket option */
150 1.1.1.1.6.2 yamt #define AGENTXSOCKET_FLAGS (OPTST_DISABLED \
151 1.1.1.1.6.1 yamt | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
152 1.1.1.1.6.1 yamt
153 1.1.1.1.6.1 yamt /*
154 1.1 kardel * Help/More_Help/Version option descriptions:
155 1.1 kardel */
156 1.1.1.1.6.2 yamt #define HELP_DESC (ntpsnmpd_opt_strs+1121)
157 1.1.1.1.6.2 yamt #define HELP_name (ntpsnmpd_opt_strs+1165)
158 1.1 kardel #ifdef HAVE_WORKING_FORK
159 1.1.1.1.6.2 yamt #define MORE_HELP_DESC (ntpsnmpd_opt_strs+1170)
160 1.1.1.1.6.2 yamt #define MORE_HELP_name (ntpsnmpd_opt_strs+1215)
161 1.1.1.1.6.2 yamt #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
162 1.1 kardel #else
163 1.1.1.1.6.2 yamt #define MORE_HELP_DESC HELP_DESC
164 1.1.1.1.6.2 yamt #define MORE_HELP_name HELP_name
165 1.1.1.1.6.2 yamt #define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
166 1.1 kardel #endif
167 1.1 kardel #ifdef NO_OPTIONAL_OPT_ARGS
168 1.1.1.1.6.2 yamt # define VER_FLAGS (OPTST_IMM | OPTST_NO_INIT)
169 1.1 kardel #else
170 1.1.1.1.6.2 yamt # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
171 1.1.1.1.6.2 yamt OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
172 1.1 kardel #endif
173 1.1.1.1.6.2 yamt #define VER_DESC (ntpsnmpd_opt_strs+1225)
174 1.1.1.1.6.2 yamt #define VER_name (ntpsnmpd_opt_strs+1261)
175 1.1.1.1.6.2 yamt #define SAVE_OPTS_DESC (ntpsnmpd_opt_strs+1269)
176 1.1.1.1.6.2 yamt #define SAVE_OPTS_name (ntpsnmpd_opt_strs+1308)
177 1.1.1.1.6.2 yamt #define LOAD_OPTS_DESC (ntpsnmpd_opt_strs+1318)
178 1.1.1.1.6.2 yamt #define LOAD_OPTS_NAME (ntpsnmpd_opt_strs+1350)
179 1.1.1.1.6.2 yamt #define NO_LOAD_OPTS_name (ntpsnmpd_opt_strs+1360)
180 1.1.1.1.6.2 yamt #define LOAD_OPTS_pfx (ntpsnmpd_opt_strs+1373)
181 1.1.1.1.6.2 yamt #define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3)
182 1.1.1.1.6.2 yamt /**
183 1.1 kardel * Declare option callback procedures
184 1.1 kardel */
185 1.1.1.1.6.2 yamt /* extracted from optmain.tlib near line 723 */
186 1.1.1.1.6.2 yamt
187 1.1 kardel #if defined(TEST_NTPSNMPD_OPTS)
188 1.1 kardel /*
189 1.1 kardel * Under test, omit argument processing, or call optionStackArg,
190 1.1 kardel * if multiple copies are allowed.
191 1.1 kardel */
192 1.1 kardel static tOptProc
193 1.1 kardel doUsageOpt;
194 1.1 kardel
195 1.1 kardel #else /* NOT defined TEST_NTPSNMPD_OPTS */
196 1.1 kardel /*
197 1.1 kardel * When not under test, there are different procs to use
198 1.1 kardel */
199 1.1 kardel extern tOptProc
200 1.1.1.1.6.2 yamt ntpOptionPrintVersion, optionBooleanVal, optionNestedVal,
201 1.1.1.1.6.2 yamt optionNumericVal, optionPagedUsage, optionResetOpt,
202 1.1.1.1.6.2 yamt optionStackArg, optionTimeDate, optionTimeVal,
203 1.1.1.1.6.2 yamt optionUnstackArg, optionVendorOption, optionVersionStderr;
204 1.1 kardel static tOptProc
205 1.1 kardel doUsageOpt;
206 1.1 kardel #endif /* TEST_NTPSNMPD_OPTS */
207 1.1.1.1.6.2 yamt #define VER_PROC ntpOptionPrintVersion
208 1.1 kardel
209 1.1.1.1.6.2 yamt /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
210 1.1.1.1.6.2 yamt /**
211 1.1.1.1.6.2 yamt * Define the ntpsnmpd Option Descriptions.
212 1.1.1.1.6.2 yamt * This is an array of OPTION_CT entries, one for each
213 1.1.1.1.6.2 yamt * option that the ntpsnmpd program responds to.
214 1.1 kardel */
215 1.1.1.1.6.1 yamt static tOptDesc optDesc[OPTION_CT] = {
216 1.1 kardel { /* entry idx, value */ 0, VALUE_OPT_NOFORK,
217 1.1 kardel /* equiv idx, value */ 0, VALUE_OPT_NOFORK,
218 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
219 1.1 kardel /* min, max, act ct */ 0, 1, 0,
220 1.1 kardel /* opt state flags */ NOFORK_FLAGS, 0,
221 1.1.1.1.6.2 yamt /* last opt argumnt */ { NULL }, /* --nofork */
222 1.1 kardel /* arg list/cookie */ NULL,
223 1.1 kardel /* must/cannot opts */ NULL, NULL,
224 1.1 kardel /* option proc */ NULL,
225 1.1.1.1.6.2 yamt /* desc, NAME, name */ NOFORK_DESC, NOFORK_NAME, NOFORK_name,
226 1.1 kardel /* disablement strs */ NULL, NULL },
227 1.1 kardel
228 1.1 kardel { /* entry idx, value */ 1, VALUE_OPT_SYSLOG,
229 1.1 kardel /* equiv idx, value */ 1, VALUE_OPT_SYSLOG,
230 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
231 1.1 kardel /* min, max, act ct */ 0, 1, 0,
232 1.1 kardel /* opt state flags */ SYSLOG_FLAGS, 0,
233 1.1.1.1.6.2 yamt /* last opt argumnt */ { NULL }, /* --syslog */
234 1.1 kardel /* arg list/cookie */ NULL,
235 1.1 kardel /* must/cannot opts */ NULL, NULL,
236 1.1 kardel /* option proc */ NULL,
237 1.1.1.1.6.2 yamt /* desc, NAME, name */ SYSLOG_DESC, SYSLOG_NAME, SYSLOG_name,
238 1.1 kardel /* disablement strs */ NULL, NULL },
239 1.1 kardel
240 1.1.1.1.6.1 yamt { /* entry idx, value */ 2, VALUE_OPT_AGENTXSOCKET,
241 1.1.1.1.6.1 yamt /* equiv idx, value */ 2, VALUE_OPT_AGENTXSOCKET,
242 1.1.1.1.6.1 yamt /* equivalenced to */ NO_EQUIVALENT,
243 1.1.1.1.6.1 yamt /* min, max, act ct */ 0, 1, 0,
244 1.1.1.1.6.1 yamt /* opt state flags */ AGENTXSOCKET_FLAGS, 0,
245 1.1.1.1.6.2 yamt /* last opt argumnt */ { AGENTXSOCKET_DFT_ARG },
246 1.1.1.1.6.1 yamt /* arg list/cookie */ NULL,
247 1.1.1.1.6.1 yamt /* must/cannot opts */ NULL, NULL,
248 1.1.1.1.6.1 yamt /* option proc */ NULL,
249 1.1.1.1.6.2 yamt /* desc, NAME, name */ AGENTXSOCKET_DESC, AGENTXSOCKET_NAME, AGENTXSOCKET_name,
250 1.1.1.1.6.1 yamt /* disablement strs */ NULL, NULL },
251 1.1.1.1.6.1 yamt
252 1.1 kardel { /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
253 1.1.1.1.6.2 yamt /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_VERSION,
254 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
255 1.1 kardel /* min, max, act ct */ 0, 1, 0,
256 1.1.1.1.6.2 yamt /* opt state flags */ VER_FLAGS, AOUSE_VERSION,
257 1.1 kardel /* last opt argumnt */ { NULL },
258 1.1 kardel /* arg list/cookie */ NULL,
259 1.1 kardel /* must/cannot opts */ NULL, NULL,
260 1.1.1.1.6.2 yamt /* option proc */ VER_PROC,
261 1.1.1.1.6.2 yamt /* desc, NAME, name */ VER_DESC, NULL, VER_name,
262 1.1 kardel /* disablement strs */ NULL, NULL },
263 1.1 kardel
264 1.1 kardel
265 1.1 kardel
266 1.1 kardel { /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
267 1.1.1.1.6.2 yamt /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_HELP,
268 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
269 1.1 kardel /* min, max, act ct */ 0, 1, 0,
270 1.1.1.1.6.2 yamt /* opt state flags */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
271 1.1 kardel /* last opt argumnt */ { NULL },
272 1.1 kardel /* arg list/cookie */ NULL,
273 1.1 kardel /* must/cannot opts */ NULL, NULL,
274 1.1 kardel /* option proc */ doUsageOpt,
275 1.1.1.1.6.2 yamt /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
276 1.1 kardel /* disablement strs */ NULL, NULL },
277 1.1 kardel
278 1.1 kardel { /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
279 1.1.1.1.6.2 yamt /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
280 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
281 1.1 kardel /* min, max, act ct */ 0, 1, 0,
282 1.1.1.1.6.2 yamt /* opt state flags */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
283 1.1 kardel /* last opt argumnt */ { NULL },
284 1.1 kardel /* arg list/cookie */ NULL,
285 1.1 kardel /* must/cannot opts */ NULL, NULL,
286 1.1 kardel /* option proc */ optionPagedUsage,
287 1.1.1.1.6.2 yamt /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
288 1.1 kardel /* disablement strs */ NULL, NULL },
289 1.1 kardel
290 1.1 kardel { /* entry idx, value */ INDEX_OPT_SAVE_OPTS, VALUE_OPT_SAVE_OPTS,
291 1.1.1.1.6.2 yamt /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_SAVE_OPTS,
292 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
293 1.1 kardel /* min, max, act ct */ 0, 1, 0,
294 1.1 kardel /* opt state flags */ OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)
295 1.1.1.1.6.2 yamt | OPTST_ARG_OPTIONAL | OPTST_NO_INIT, AOUSE_SAVE_OPTS,
296 1.1 kardel /* last opt argumnt */ { NULL },
297 1.1 kardel /* arg list/cookie */ NULL,
298 1.1 kardel /* must/cannot opts */ NULL, NULL,
299 1.1 kardel /* option proc */ NULL,
300 1.1.1.1.6.2 yamt /* desc, NAME, name */ SAVE_OPTS_DESC, NULL, SAVE_OPTS_name,
301 1.1 kardel /* disablement strs */ NULL, NULL },
302 1.1 kardel
303 1.1 kardel { /* entry idx, value */ INDEX_OPT_LOAD_OPTS, VALUE_OPT_LOAD_OPTS,
304 1.1.1.1.6.2 yamt /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_LOAD_OPTS,
305 1.1 kardel /* equivalenced to */ NO_EQUIVALENT,
306 1.1 kardel /* min, max, act ct */ 0, NOLIMIT, 0,
307 1.1 kardel /* opt state flags */ OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)
308 1.1.1.1.6.2 yamt | OPTST_DISABLE_IMM, AOUSE_LOAD_OPTS,
309 1.1 kardel /* last opt argumnt */ { NULL },
310 1.1 kardel /* arg list/cookie */ NULL,
311 1.1 kardel /* must/cannot opts */ NULL, NULL,
312 1.1 kardel /* option proc */ optionLoadOpt,
313 1.1.1.1.6.2 yamt /* desc, NAME, name */ LOAD_OPTS_DESC, LOAD_OPTS_NAME, LOAD_OPTS_name,
314 1.1.1.1.6.2 yamt /* disablement strs */ NO_LOAD_OPTS_name, LOAD_OPTS_pfx }
315 1.1 kardel };
316 1.1 kardel
317 1.1.1.1.6.2 yamt
318 1.1.1.1.6.2 yamt /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
319 1.1.1.1.6.2 yamt /** Reference to the upper cased version of ntpsnmpd. */
320 1.1.1.1.6.2 yamt #define zPROGNAME (ntpsnmpd_opt_strs+1376)
321 1.1.1.1.6.2 yamt /** Reference to the title line for ntpsnmpd usage. */
322 1.1.1.1.6.2 yamt #define zUsageTitle (ntpsnmpd_opt_strs+1385)
323 1.1.1.1.6.2 yamt /** ntpsnmpd configuration file name. */
324 1.1.1.1.6.2 yamt #define zRcName (ntpsnmpd_opt_strs+1498)
325 1.1.1.1.6.2 yamt /** Directories to search for ntpsnmpd config files. */
326 1.1.1.1.6.1 yamt static char const * const apzHomeList[3] = {
327 1.1.1.1.6.2 yamt ntpsnmpd_opt_strs+1490,
328 1.1.1.1.6.2 yamt ntpsnmpd_opt_strs+1496,
329 1.1.1.1.6.1 yamt NULL };
330 1.1.1.1.6.2 yamt /** The ntpsnmpd program bug email address. */
331 1.1.1.1.6.2 yamt #define zBugsAddr (ntpsnmpd_opt_strs+1505)
332 1.1.1.1.6.2 yamt /** Clarification/explanation of what ntpsnmpd does. */
333 1.1.1.1.6.2 yamt #define zExplain (ntpsnmpd_opt_strs+1539)
334 1.1.1.1.6.2 yamt /** Extra detail explaining what ntpsnmpd does. */
335 1.1.1.1.6.2 yamt #define zDetail (NULL)
336 1.1.1.1.6.2 yamt /** The full version string for ntpsnmpd. */
337 1.1.1.1.6.2 yamt #define zFullVersion (ntpsnmpd_opt_strs+1541)
338 1.1.1.1.6.2 yamt /* extracted from optcode.tlib near line 364 */
339 1.1 kardel
340 1.1 kardel #if defined(ENABLE_NLS)
341 1.1 kardel # define OPTPROC_BASE OPTPROC_TRANSLATE
342 1.1 kardel static tOptionXlateProc translate_option_strings;
343 1.1 kardel #else
344 1.1 kardel # define OPTPROC_BASE OPTPROC_NONE
345 1.1 kardel # define translate_option_strings NULL
346 1.1 kardel #endif /* ENABLE_NLS */
347 1.1 kardel
348 1.1.1.1.6.2 yamt #define ntpsnmpd_full_usage (NULL)
349 1.1.1.1.6.2 yamt #define ntpsnmpd_short_usage (NULL)
350 1.1.1.1.6.2 yamt
351 1.1.1.1.6.2 yamt #endif /* not defined __doxygen__ */
352 1.1.1.1.6.2 yamt
353 1.1.1.1.6.2 yamt /*
354 1.1.1.1.6.2 yamt * Create the static procedure(s) declared above.
355 1.1.1.1.6.2 yamt */
356 1.1.1.1.6.2 yamt /**
357 1.1.1.1.6.2 yamt * The callout function that invokes the optionUsage function.
358 1.1.1.1.6.2 yamt *
359 1.1.1.1.6.2 yamt * @param[in] opts the AutoOpts option description structure
360 1.1.1.1.6.2 yamt * @param[in] od the descriptor for the "help" (usage) option.
361 1.1.1.1.6.2 yamt * @noreturn
362 1.1.1.1.6.2 yamt */
363 1.1.1.1.6.2 yamt static void
364 1.1.1.1.6.2 yamt doUsageOpt(tOptions * opts, tOptDesc * od)
365 1.1.1.1.6.2 yamt {
366 1.1.1.1.6.2 yamt int ex_code;
367 1.1.1.1.6.2 yamt ex_code = NTPSNMPD_EXIT_SUCCESS;
368 1.1.1.1.6.2 yamt optionUsage(&ntpsnmpdOptions, ex_code);
369 1.1.1.1.6.2 yamt /* NOTREACHED */
370 1.1.1.1.6.2 yamt exit(1);
371 1.1.1.1.6.2 yamt (void)opts;
372 1.1.1.1.6.2 yamt (void)od;
373 1.1.1.1.6.2 yamt }
374 1.1.1.1.6.2 yamt /* extracted from optmain.tlib near line 46 */
375 1.1.1.1.6.2 yamt
376 1.1.1.1.6.2 yamt #if defined(TEST_NTPSNMPD_OPTS) /* TEST-MAIN-PROCEDURE: */
377 1.1.1.1.6.2 yamt
378 1.1.1.1.6.2 yamt extern void optionPutShell(tOptions*);
379 1.1 kardel
380 1.1.1.1.6.2 yamt /**
381 1.1.1.1.6.2 yamt * Generated main procedure. This will emit text that a Bourne shell can
382 1.1.1.1.6.2 yamt * process to handle its command line arguments.
383 1.1.1.1.6.2 yamt *
384 1.1.1.1.6.2 yamt * @param[in] argc argument count
385 1.1.1.1.6.2 yamt * @param[in] argv argument vector
386 1.1.1.1.6.2 yamt * @returns program exit code
387 1.1.1.1.6.2 yamt */
388 1.1.1.1.6.2 yamt int
389 1.1.1.1.6.2 yamt main(int argc, char ** argv)
390 1.1.1.1.6.2 yamt {
391 1.1.1.1.6.2 yamt int res = NTPSNMPD_EXIT_SUCCESS;
392 1.1.1.1.6.2 yamt (void)optionProcess(&ntpsnmpdOptions, argc, argv);
393 1.1.1.1.6.2 yamt optionPutShell(&ntpsnmpdOptions);
394 1.1.1.1.6.2 yamt res = ferror(stdout);
395 1.1.1.1.6.2 yamt if (res != 0)
396 1.1.1.1.6.2 yamt fputs("output error writing to stdout\n", stderr);
397 1.1.1.1.6.2 yamt return res;
398 1.1.1.1.6.2 yamt }
399 1.1.1.1.6.2 yamt #endif /* TEST_NTPSNMPD_OPTS END-TEST-MAIN-PROCEDURE */
400 1.1.1.1.6.2 yamt /* extracted from optmain.tlib near line 1245 */
401 1.1.1.1.6.2 yamt
402 1.1.1.1.6.2 yamt /**
403 1.1.1.1.6.2 yamt * The directory containing the data associated with ntpsnmpd.
404 1.1.1.1.6.2 yamt */
405 1.1.1.1.6.1 yamt #ifndef PKGDATADIR
406 1.1.1.1.6.1 yamt # define PKGDATADIR ""
407 1.1.1.1.6.1 yamt #endif
408 1.1.1.1.6.1 yamt
409 1.1.1.1.6.2 yamt /**
410 1.1.1.1.6.2 yamt * Information about the person or institution that packaged ntpsnmpd
411 1.1.1.1.6.2 yamt * for the current distribution.
412 1.1.1.1.6.2 yamt */
413 1.1.1.1.6.1 yamt #ifndef WITH_PACKAGER
414 1.1.1.1.6.1 yamt # define ntpsnmpd_packager_info NULL
415 1.1.1.1.6.1 yamt #else
416 1.1.1.1.6.2 yamt /** Packager information for ntpsnmpd. */
417 1.1.1.1.6.1 yamt static char const ntpsnmpd_packager_info[] =
418 1.1.1.1.6.1 yamt "Packaged by " WITH_PACKAGER
419 1.1.1.1.6.1 yamt
420 1.1.1.1.6.1 yamt # ifdef WITH_PACKAGER_VERSION
421 1.1.1.1.6.1 yamt " ("WITH_PACKAGER_VERSION")"
422 1.1.1.1.6.1 yamt # endif
423 1.1.1.1.6.1 yamt
424 1.1.1.1.6.1 yamt # ifdef WITH_PACKAGER_BUG_REPORTS
425 1.1.1.1.6.1 yamt "\nReport ntpsnmpd bugs to " WITH_PACKAGER_BUG_REPORTS
426 1.1.1.1.6.1 yamt # endif
427 1.1.1.1.6.1 yamt "\n";
428 1.1.1.1.6.1 yamt #endif
429 1.1.1.1.6.2 yamt #ifndef __doxygen__
430 1.1.1.1.6.1 yamt
431 1.1.1.1.6.2 yamt #endif /* __doxygen__ */
432 1.1.1.1.6.2 yamt /**
433 1.1.1.1.6.2 yamt * The option definitions for ntpsnmpd. The one structure that
434 1.1.1.1.6.2 yamt * binds them all.
435 1.1.1.1.6.2 yamt */
436 1.1 kardel tOptions ntpsnmpdOptions = {
437 1.1 kardel OPTIONS_STRUCT_VERSION,
438 1.1 kardel 0, NULL, /* original argc + argv */
439 1.1 kardel ( OPTPROC_BASE
440 1.1 kardel + OPTPROC_ERRSTOP
441 1.1 kardel + OPTPROC_SHORTOPT
442 1.1 kardel + OPTPROC_LONGOPT
443 1.1 kardel + OPTPROC_NO_REQ_OPT
444 1.1 kardel + OPTPROC_ENVIRON
445 1.1.1.1.6.1 yamt + OPTPROC_NO_ARGS
446 1.1.1.1.6.2 yamt + OPTPROC_MISUSE
447 1.1.1.1.6.2 yamt + OPTPROC_SHELL_OUTPUT ),
448 1.1 kardel 0, NULL, /* current option index, current option */
449 1.1 kardel NULL, NULL, zPROGNAME,
450 1.1.1.1.6.1 yamt zRcName, zCopyright, zLicenseDescrip,
451 1.1 kardel zFullVersion, apzHomeList, zUsageTitle,
452 1.1 kardel zExplain, zDetail, optDesc,
453 1.1 kardel zBugsAddr, /* address to send bugs to */
454 1.1 kardel NULL, NULL, /* extensions/saved state */
455 1.1.1.1.6.1 yamt optionUsage, /* usage procedure */
456 1.1 kardel translate_option_strings, /* translation procedure */
457 1.1 kardel /*
458 1.1 kardel * Indexes to special options
459 1.1 kardel */
460 1.1 kardel { INDEX_OPT_MORE_HELP, /* more-help option index */
461 1.1 kardel INDEX_OPT_SAVE_OPTS, /* save option index */
462 1.1 kardel NO_EQUIVALENT, /* '-#' option index */
463 1.1 kardel NO_EQUIVALENT /* index of default opt */
464 1.1 kardel },
465 1.1.1.1.6.1 yamt 8 /* full option count */, 3 /* user option count */,
466 1.1 kardel ntpsnmpd_full_usage, ntpsnmpd_short_usage,
467 1.1.1.1.6.1 yamt NULL, NULL,
468 1.1.1.1.6.1 yamt PKGDATADIR, ntpsnmpd_packager_info
469 1.1 kardel };
470 1.1 kardel
471 1.1 kardel #if ENABLE_NLS
472 1.1.1.1.6.2 yamt /**
473 1.1.1.1.6.2 yamt * This code is designed to translate translatable option text for the
474 1.1.1.1.6.2 yamt * ntpsnmpd program. These translations happen upon entry
475 1.1.1.1.6.2 yamt * to optionProcess().
476 1.1.1.1.6.2 yamt */
477 1.1 kardel #include <stdio.h>
478 1.1 kardel #include <stdlib.h>
479 1.1 kardel #include <string.h>
480 1.1 kardel #include <unistd.h>
481 1.1.1.1.6.2 yamt #ifdef HAVE_DCGETTEXT
482 1.1.1.1.6.2 yamt # include <gettext.h>
483 1.1.1.1.6.2 yamt #endif
484 1.1 kardel #include <autoopts/usage-txt.h>
485 1.1 kardel
486 1.1.1.1.6.2 yamt static char * AO_gettext(char const * pz);
487 1.1.1.1.6.2 yamt static void coerce_it(void ** s);
488 1.1 kardel
489 1.1.1.1.6.2 yamt /**
490 1.1.1.1.6.2 yamt * AutoGen specific wrapper function for gettext. It relies on the macro _()
491 1.1.1.1.6.2 yamt * to convert from English to the target language, then strdup-duplicates the
492 1.1.1.1.6.2 yamt * result string. It tries the "libopts" domain first, then whatever has been
493 1.1.1.1.6.2 yamt * set via the \a textdomain(3) call.
494 1.1.1.1.6.2 yamt *
495 1.1.1.1.6.2 yamt * @param[in] pz the input text used as a lookup key.
496 1.1.1.1.6.2 yamt * @returns the translated text (if there is one),
497 1.1.1.1.6.2 yamt * or the original text (if not).
498 1.1.1.1.6.2 yamt */
499 1.1.1.1.6.2 yamt static char *
500 1.1.1.1.6.2 yamt AO_gettext(char const * pz)
501 1.1 kardel {
502 1.1.1.1.6.2 yamt char * res;
503 1.1 kardel if (pz == NULL)
504 1.1 kardel return NULL;
505 1.1.1.1.6.2 yamt #ifdef HAVE_DCGETTEXT
506 1.1.1.1.6.2 yamt /*
507 1.1.1.1.6.2 yamt * While processing the option_xlateable_txt data, try to use the
508 1.1.1.1.6.2 yamt * "libopts" domain. Once we switch to the option descriptor data,
509 1.1.1.1.6.2 yamt * do *not* use that domain.
510 1.1.1.1.6.2 yamt */
511 1.1.1.1.6.2 yamt if (option_xlateable_txt.field_ct != 0) {
512 1.1.1.1.6.2 yamt res = dgettext("libopts", pz);
513 1.1.1.1.6.2 yamt if (res == pz)
514 1.1.1.1.6.2 yamt res = (char *)(void *)_(pz);
515 1.1.1.1.6.2 yamt } else
516 1.1.1.1.6.2 yamt res = (char *)(void *)_(pz);
517 1.1.1.1.6.2 yamt #else
518 1.1.1.1.6.2 yamt res = (char *)(void *)_(pz);
519 1.1.1.1.6.2 yamt #endif
520 1.1.1.1.6.2 yamt if (res == pz)
521 1.1.1.1.6.2 yamt return res;
522 1.1.1.1.6.2 yamt res = strdup(res);
523 1.1.1.1.6.2 yamt if (res == NULL) {
524 1.1.1.1.6.1 yamt fputs(_("No memory for duping translated strings\n"), stderr);
525 1.1.1.1.6.1 yamt exit(NTPSNMPD_EXIT_FAILURE);
526 1.1 kardel }
527 1.1.1.1.6.2 yamt return res;
528 1.1 kardel }
529 1.1 kardel
530 1.1.1.1.6.2 yamt /**
531 1.1.1.1.6.2 yamt * All the pointers we use are marked "* const", but they are stored in
532 1.1.1.1.6.2 yamt * writable memory. Coerce the mutability and set the pointer.
533 1.1.1.1.6.2 yamt */
534 1.1.1.1.6.2 yamt static void coerce_it(void ** s) { *s = AO_gettext(*s);
535 1.1.1.1.6.1 yamt }
536 1.1 kardel
537 1.1.1.1.6.2 yamt /**
538 1.1.1.1.6.2 yamt * Translate all the translatable strings in the ntpsnmpdOptions
539 1.1.1.1.6.2 yamt * structure defined above. This is done only once.
540 1.1 kardel */
541 1.1 kardel static void
542 1.1.1.1.6.1 yamt translate_option_strings(void)
543 1.1 kardel {
544 1.1.1.1.6.2 yamt tOptions * const opts = &ntpsnmpdOptions;
545 1.1.1.1.6.1 yamt
546 1.1 kardel /*
547 1.1 kardel * Guard against re-translation. It won't work. The strings will have
548 1.1 kardel * been changed by the first pass through this code. One shot only.
549 1.1 kardel */
550 1.1.1.1.6.2 yamt if (option_xlateable_txt.field_ct != 0) {
551 1.1 kardel /*
552 1.1 kardel * Do the translations. The first pointer follows the field count
553 1.1 kardel * field. The field count field is the size of a pointer.
554 1.1 kardel */
555 1.1.1.1.6.2 yamt char ** ppz = (char**)(void*)&(option_xlateable_txt);
556 1.1.1.1.6.2 yamt int ix = option_xlateable_txt.field_ct;
557 1.1 kardel
558 1.1 kardel do {
559 1.1.1.1.6.2 yamt ppz++; /* skip over field_ct */
560 1.1 kardel *ppz = AO_gettext(*ppz);
561 1.1 kardel } while (--ix > 0);
562 1.1.1.1.6.2 yamt /* prevent re-translation and disable "libopts" domain lookup */
563 1.1.1.1.6.2 yamt option_xlateable_txt.field_ct = 0;
564 1.1 kardel
565 1.1.1.1.6.2 yamt coerce_it((void*)&(opts->pzCopyright));
566 1.1.1.1.6.2 yamt coerce_it((void*)&(opts->pzCopyNotice));
567 1.1.1.1.6.2 yamt coerce_it((void*)&(opts->pzFullVersion));
568 1.1.1.1.6.2 yamt coerce_it((void*)&(opts->pzUsageTitle));
569 1.1.1.1.6.2 yamt coerce_it((void*)&(opts->pzExplain));
570 1.1.1.1.6.2 yamt coerce_it((void*)&(opts->pzDetail));
571 1.1.1.1.6.2 yamt {
572 1.1.1.1.6.2 yamt tOptDesc * od = opts->pOptDesc;
573 1.1.1.1.6.2 yamt for (ix = opts->optCt; ix > 0; ix--, od++)
574 1.1.1.1.6.2 yamt coerce_it((void*)&(od->pzText));
575 1.1 kardel }
576 1.1 kardel }
577 1.1 kardel }
578 1.1 kardel #endif /* ENABLE_NLS */
579 1.1 kardel
580 1.1.1.1.6.2 yamt #ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
581 1.1.1.1.6.2 yamt /** I18N function strictly for xgettext. Do not compile. */
582 1.1.1.1.6.2 yamt static void bogus_function(void) {
583 1.1.1.1.6.2 yamt /* TRANSLATORS:
584 1.1.1.1.6.2 yamt
585 1.1.1.1.6.2 yamt The following dummy function was crated solely so that xgettext can
586 1.1.1.1.6.2 yamt extract the correct strings. These strings are actually referenced
587 1.1.1.1.6.2 yamt by a field name in the ntpsnmpdOptions structure noted in the
588 1.1.1.1.6.2 yamt comments below. The literal text is defined in ntpsnmpd_opt_strs.
589 1.1.1.1.6.2 yamt
590 1.1.1.1.6.2 yamt NOTE: the strings below are segmented with respect to the source string
591 1.1.1.1.6.2 yamt ntpsnmpd_opt_strs. The strings above are handed off for translation
592 1.1.1.1.6.2 yamt at run time a paragraph at a time. Consequently, they are presented here
593 1.1.1.1.6.2 yamt for translation a paragraph at a time.
594 1.1.1.1.6.2 yamt
595 1.1.1.1.6.2 yamt ALSO: often the description for an option will reference another option
596 1.1.1.1.6.2 yamt by name. These are set off with apostrophe quotes (I hope). Do not
597 1.1.1.1.6.2 yamt translate option names.
598 1.1.1.1.6.2 yamt */
599 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzCopyright */
600 1.1.1.1.6.2 yamt puts(_("ntpsnmpd 4.2.7p404\n\
601 1.1.1.1.6.2 yamt Copyright (C) 1970-2013 The University of Delaware, all rights reserved.\n\
602 1.1.1.1.6.2 yamt This is free software. It is licensed for use, modification and\n\
603 1.1.1.1.6.2 yamt redistribution under the terms of the NTP License, copies of which\n\
604 1.1.1.1.6.2 yamt can be seen at:\n"));
605 1.1.1.1.6.2 yamt puts(_(" <http://ntp.org/license>\n\
606 1.1.1.1.6.2 yamt <http://opensource.org/licenses/ntp-license.php>\n"));
607 1.1.1.1.6.2 yamt
608 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzCopyNotice */
609 1.1.1.1.6.2 yamt puts(_("Permission to use, copy, modify, and distribute this software and its\n\
610 1.1.1.1.6.2 yamt documentation for any purpose with or without fee is hereby granted,\n\
611 1.1.1.1.6.2 yamt provided that the above copyright notice appears in all copies and that\n\
612 1.1.1.1.6.2 yamt both the copyright notice and this permission notice appear in supporting\n\
613 1.1.1.1.6.2 yamt documentation, and that the name The University of Delaware not be used in\n\
614 1.1.1.1.6.2 yamt advertising or publicity pertaining to distribution of the software without\n\
615 1.1.1.1.6.2 yamt specific, written prior permission. The University of Delaware makes no\n\
616 1.1.1.1.6.2 yamt representations about the suitability this software for any purpose. It is\n\
617 1.1.1.1.6.2 yamt provided \"as is\" without express or implied warranty.\n"));
618 1.1.1.1.6.2 yamt
619 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
620 1.1.1.1.6.2 yamt puts(_("Do not fork"));
621 1.1.1.1.6.2 yamt
622 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
623 1.1.1.1.6.2 yamt puts(_("Log to syslog()"));
624 1.1.1.1.6.2 yamt
625 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
626 1.1.1.1.6.2 yamt puts(_("The socket address ntpsnmpd uses to connect to net-snmpd"));
627 1.1.1.1.6.2 yamt
628 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
629 1.1.1.1.6.2 yamt puts(_("display extended usage information and exit"));
630 1.1.1.1.6.2 yamt
631 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
632 1.1.1.1.6.2 yamt puts(_("extended usage information passed thru pager"));
633 1.1.1.1.6.2 yamt
634 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
635 1.1.1.1.6.2 yamt puts(_("output version information and exit"));
636 1.1.1.1.6.2 yamt
637 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
638 1.1.1.1.6.2 yamt puts(_("save the option state to a config file"));
639 1.1.1.1.6.2 yamt
640 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
641 1.1.1.1.6.2 yamt puts(_("load options from a config file"));
642 1.1.1.1.6.2 yamt
643 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzUsageTitle */
644 1.1.1.1.6.2 yamt puts(_("ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p404\n\
645 1.1.1.1.6.2 yamt Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
646 1.1.1.1.6.2 yamt
647 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzExplain */
648 1.1.1.1.6.2 yamt puts(_("\n"));
649 1.1.1.1.6.2 yamt
650 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzFullVersion */
651 1.1.1.1.6.2 yamt puts(_("ntpsnmpd 4.2.7p404"));
652 1.1.1.1.6.2 yamt
653 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzFullUsage */
654 1.1.1.1.6.2 yamt puts(_("<<<NOT-FOUND>>>"));
655 1.1.1.1.6.2 yamt
656 1.1.1.1.6.2 yamt /* referenced via ntpsnmpdOptions.pzShortUsage */
657 1.1.1.1.6.2 yamt puts(_("<<<NOT-FOUND>>>"));
658 1.1.1.1.6.2 yamt /* LIBOPTS-MESSAGES: */
659 1.1.1.1.6.2 yamt #line 67 "../autoopts.c"
660 1.1.1.1.6.2 yamt puts(_("allocation of %d bytes failed\n"));
661 1.1.1.1.6.2 yamt #line 93 "../autoopts.c"
662 1.1.1.1.6.2 yamt puts(_("allocation of %d bytes failed\n"));
663 1.1.1.1.6.2 yamt #line 53 "../init.c"
664 1.1.1.1.6.2 yamt puts(_("AutoOpts function called without option descriptor\n"));
665 1.1.1.1.6.2 yamt #line 90 "../init.c"
666 1.1.1.1.6.2 yamt puts(_("\tThis exceeds the compiled library version: "));
667 1.1.1.1.6.2 yamt #line 88 "../init.c"
668 1.1.1.1.6.2 yamt puts(_("Automated Options Processing Error!\n"
669 1.1.1.1.6.2 yamt "\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
670 1.1.1.1.6.2 yamt #line 80 "../autoopts.c"
671 1.1.1.1.6.2 yamt puts(_("realloc of %d bytes at 0x%p failed\n"));
672 1.1.1.1.6.2 yamt #line 92 "../init.c"
673 1.1.1.1.6.2 yamt puts(_("\tThis is less than the minimum library version: "));
674 1.1.1.1.6.2 yamt #line 121 "../version.c"
675 1.1.1.1.6.2 yamt puts(_("Automated Options version %s\n"
676 1.1.1.1.6.2 yamt "\tCopyright (C) 1999-2013 by Bruce Korb - all rights reserved\n"));
677 1.1.1.1.6.2 yamt #line 82 "../makeshell.c"
678 1.1.1.1.6.2 yamt puts(_("(AutoOpts bug): %s.\n"));
679 1.1.1.1.6.2 yamt #line 90 "../reset.c"
680 1.1.1.1.6.2 yamt puts(_("optionResetOpt() called, but reset-option not configured"));
681 1.1.1.1.6.2 yamt #line 292 "../usage.c"
682 1.1.1.1.6.2 yamt puts(_("could not locate the 'help' option"));
683 1.1.1.1.6.2 yamt #line 336 "../autoopts.c"
684 1.1.1.1.6.2 yamt puts(_("optionProcess() was called with invalid data"));
685 1.1.1.1.6.2 yamt #line 748 "../usage.c"
686 1.1.1.1.6.2 yamt puts(_("invalid argument type specified"));
687 1.1.1.1.6.2 yamt #line 598 "../find.c"
688 1.1.1.1.6.2 yamt puts(_("defaulted to option with optional arg"));
689 1.1.1.1.6.2 yamt #line 76 "../alias.c"
690 1.1.1.1.6.2 yamt puts(_("aliasing option is out of range."));
691 1.1.1.1.6.2 yamt #line 234 "../enum.c"
692 1.1.1.1.6.2 yamt puts(_("%s error: the keyword '%s' is ambiguous for %s\n"));
693 1.1.1.1.6.2 yamt #line 108 "../find.c"
694 1.1.1.1.6.2 yamt puts(_(" The following options match:\n"));
695 1.1.1.1.6.2 yamt #line 293 "../find.c"
696 1.1.1.1.6.2 yamt puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
697 1.1.1.1.6.2 yamt #line 161 "../check.c"
698 1.1.1.1.6.2 yamt puts(_("%s: Command line arguments required\n"));
699 1.1.1.1.6.2 yamt #line 43 "../alias.c"
700 1.1.1.1.6.2 yamt puts(_("%d %s%s options allowed\n"));
701 1.1.1.1.6.2 yamt #line 89 "../makeshell.c"
702 1.1.1.1.6.2 yamt puts(_("%s error %d (%s) calling %s for '%s'\n"));
703 1.1.1.1.6.2 yamt #line 301 "../makeshell.c"
704 1.1.1.1.6.2 yamt puts(_("interprocess pipe"));
705 1.1.1.1.6.2 yamt #line 168 "../version.c"
706 1.1.1.1.6.2 yamt puts(_("error: version option argument '%c' invalid. Use:\n"
707 1.1.1.1.6.2 yamt "\t'v' - version only\n"
708 1.1.1.1.6.2 yamt "\t'c' - version and copyright\n"
709 1.1.1.1.6.2 yamt "\t'n' - version and full copyright notice\n"));
710 1.1.1.1.6.2 yamt #line 58 "../check.c"
711 1.1.1.1.6.2 yamt puts(_("%s error: the '%s' and '%s' options conflict\n"));
712 1.1.1.1.6.2 yamt #line 217 "../find.c"
713 1.1.1.1.6.2 yamt puts(_("%s: The '%s' option has been disabled."));
714 1.1.1.1.6.2 yamt #line 430 "../find.c"
715 1.1.1.1.6.2 yamt puts(_("%s: The '%s' option has been disabled."));
716 1.1.1.1.6.2 yamt #line 38 "../alias.c"
717 1.1.1.1.6.2 yamt puts(_("-equivalence"));
718 1.1.1.1.6.2 yamt #line 469 "../find.c"
719 1.1.1.1.6.2 yamt puts(_("%s: illegal option -- %c\n"));
720 1.1.1.1.6.2 yamt #line 110 "../reset.c"
721 1.1.1.1.6.2 yamt puts(_("%s: illegal option -- %c\n"));
722 1.1.1.1.6.2 yamt #line 271 "../find.c"
723 1.1.1.1.6.2 yamt puts(_("%s: illegal option -- %s\n"));
724 1.1.1.1.6.2 yamt #line 755 "../find.c"
725 1.1.1.1.6.2 yamt puts(_("%s: illegal option -- %s\n"));
726 1.1.1.1.6.2 yamt #line 118 "../reset.c"
727 1.1.1.1.6.2 yamt puts(_("%s: illegal option -- %s\n"));
728 1.1.1.1.6.2 yamt #line 335 "../find.c"
729 1.1.1.1.6.2 yamt puts(_("%s: unknown vendor extension option -- %s\n"));
730 1.1.1.1.6.2 yamt #line 159 "../enum.c"
731 1.1.1.1.6.2 yamt puts(_(" or an integer from %d through %d\n"));
732 1.1.1.1.6.2 yamt #line 169 "../enum.c"
733 1.1.1.1.6.2 yamt puts(_(" or an integer from %d through %d\n"));
734 1.1.1.1.6.2 yamt #line 747 "../usage.c"
735 1.1.1.1.6.2 yamt puts(_("%s error: invalid option descriptor for %s\n"));
736 1.1.1.1.6.2 yamt #line 1081 "../usage.c"
737 1.1.1.1.6.2 yamt puts(_("%s error: invalid option descriptor for %s\n"));
738 1.1.1.1.6.2 yamt #line 385 "../find.c"
739 1.1.1.1.6.2 yamt puts(_("%s: invalid option name: %s\n"));
740 1.1.1.1.6.2 yamt #line 527 "../find.c"
741 1.1.1.1.6.2 yamt puts(_("%s: The '%s' option requires an argument.\n"));
742 1.1.1.1.6.2 yamt #line 156 "../autoopts.c"
743 1.1.1.1.6.2 yamt puts(_("(AutoOpts bug): Equivalenced option '%s' was equivalenced to both\n"
744 1.1.1.1.6.2 yamt "\t'%s' and '%s'."));
745 1.1.1.1.6.2 yamt #line 94 "../check.c"
746 1.1.1.1.6.2 yamt puts(_("%s error: The %s option is required\n"));
747 1.1.1.1.6.2 yamt #line 632 "../find.c"
748 1.1.1.1.6.2 yamt puts(_("%s: The '%s' option cannot have an argument.\n"));
749 1.1.1.1.6.2 yamt #line 151 "../check.c"
750 1.1.1.1.6.2 yamt puts(_("%s: Command line arguments are not allowed.\n"));
751 1.1.1.1.6.2 yamt #line 535 "../save.c"
752 1.1.1.1.6.2 yamt puts(_("error %d (%s) creating %s\n"));
753 1.1.1.1.6.2 yamt #line 234 "../enum.c"
754 1.1.1.1.6.2 yamt puts(_("%s error: '%s' does not match any %s keywords.\n"));
755 1.1.1.1.6.2 yamt #line 93 "../reset.c"
756 1.1.1.1.6.2 yamt puts(_("%s error: The '%s' option requires an argument.\n"));
757 1.1.1.1.6.2 yamt #line 184 "../save.c"
758 1.1.1.1.6.2 yamt puts(_("error %d (%s) stat-ing %s\n"));
759 1.1.1.1.6.2 yamt #line 238 "../save.c"
760 1.1.1.1.6.2 yamt puts(_("error %d (%s) stat-ing %s\n"));
761 1.1.1.1.6.2 yamt #line 143 "../restore.c"
762 1.1.1.1.6.2 yamt puts(_("%s error: no saved option state\n"));
763 1.1.1.1.6.2 yamt #line 231 "../autoopts.c"
764 1.1.1.1.6.2 yamt puts(_("'%s' is not a command line option.\n"));
765 1.1.1.1.6.2 yamt #line 114 "../time.c"
766 1.1.1.1.6.2 yamt puts(_("%s error: '%s' is not a recognizable date/time.\n"));
767 1.1.1.1.6.2 yamt #line 132 "../save.c"
768 1.1.1.1.6.2 yamt puts(_("'%s' not defined\n"));
769 1.1.1.1.6.2 yamt #line 53 "../time.c"
770 1.1.1.1.6.2 yamt puts(_("%s error: '%s' is not a recognizable time duration.\n"));
771 1.1.1.1.6.2 yamt #line 92 "../check.c"
772 1.1.1.1.6.2 yamt puts(_("%s error: The %s option must appear %d times.\n"));
773 1.1.1.1.6.2 yamt #line 157 "../numeric.c"
774 1.1.1.1.6.2 yamt puts(_("%s error: '%s' is not a recognizable number.\n"));
775 1.1.1.1.6.2 yamt #line 200 "../enum.c"
776 1.1.1.1.6.2 yamt puts(_("%s error: %s exceeds %s keyword count\n"));
777 1.1.1.1.6.2 yamt #line 330 "../usage.c"
778 1.1.1.1.6.2 yamt puts(_("Try '%s %s' for more information.\n"));
779 1.1.1.1.6.2 yamt #line 45 "../alias.c"
780 1.1.1.1.6.2 yamt puts(_("one %s%s option allowed\n"));
781 1.1.1.1.6.2 yamt #line 203 "../makeshell.c"
782 1.1.1.1.6.2 yamt puts(_("standard output"));
783 1.1.1.1.6.2 yamt #line 938 "../makeshell.c"
784 1.1.1.1.6.2 yamt puts(_("standard output"));
785 1.1.1.1.6.2 yamt #line 274 "../usage.c"
786 1.1.1.1.6.2 yamt puts(_("standard output"));
787 1.1.1.1.6.2 yamt #line 415 "../usage.c"
788 1.1.1.1.6.2 yamt puts(_("standard output"));
789 1.1.1.1.6.2 yamt #line 625 "../usage.c"
790 1.1.1.1.6.2 yamt puts(_("standard output"));
791 1.1.1.1.6.2 yamt #line 175 "../version.c"
792 1.1.1.1.6.2 yamt puts(_("standard output"));
793 1.1.1.1.6.2 yamt #line 274 "../usage.c"
794 1.1.1.1.6.2 yamt puts(_("standard error"));
795 1.1.1.1.6.2 yamt #line 415 "../usage.c"
796 1.1.1.1.6.2 yamt puts(_("standard error"));
797 1.1.1.1.6.2 yamt #line 625 "../usage.c"
798 1.1.1.1.6.2 yamt puts(_("standard error"));
799 1.1.1.1.6.2 yamt #line 175 "../version.c"
800 1.1.1.1.6.2 yamt puts(_("standard error"));
801 1.1.1.1.6.2 yamt #line 203 "../makeshell.c"
802 1.1.1.1.6.2 yamt puts(_("write"));
803 1.1.1.1.6.2 yamt #line 938 "../makeshell.c"
804 1.1.1.1.6.2 yamt puts(_("write"));
805 1.1.1.1.6.2 yamt #line 273 "../usage.c"
806 1.1.1.1.6.2 yamt puts(_("write"));
807 1.1.1.1.6.2 yamt #line 414 "../usage.c"
808 1.1.1.1.6.2 yamt puts(_("write"));
809 1.1.1.1.6.2 yamt #line 624 "../usage.c"
810 1.1.1.1.6.2 yamt puts(_("write"));
811 1.1.1.1.6.2 yamt #line 174 "../version.c"
812 1.1.1.1.6.2 yamt puts(_("write"));
813 1.1.1.1.6.2 yamt #line 60 "../numeric.c"
814 1.1.1.1.6.2 yamt puts(_("%s error: %s option value %ld is out of range.\n"));
815 1.1.1.1.6.2 yamt #line 44 "../check.c"
816 1.1.1.1.6.2 yamt puts(_("%s error: %s option requires the %s option\n"));
817 1.1.1.1.6.2 yamt #line 131 "../save.c"
818 1.1.1.1.6.2 yamt puts(_("%s warning: cannot save options - %s not regular file\n"));
819 1.1.1.1.6.2 yamt #line 183 "../save.c"
820 1.1.1.1.6.2 yamt puts(_("%s warning: cannot save options - %s not regular file\n"));
821 1.1.1.1.6.2 yamt #line 237 "../save.c"
822 1.1.1.1.6.2 yamt puts(_("%s warning: cannot save options - %s not regular file\n"));
823 1.1.1.1.6.2 yamt #line 256 "../save.c"
824 1.1.1.1.6.2 yamt puts(_("%s warning: cannot save options - %s not regular file\n"));
825 1.1.1.1.6.2 yamt #line 534 "../save.c"
826 1.1.1.1.6.2 yamt puts(_("%s warning: cannot save options - %s not regular file\n"));
827 1.1.1.1.6.2 yamt /* END-LIBOPTS-MESSAGES */
828 1.1.1.1.6.2 yamt
829 1.1.1.1.6.2 yamt /* USAGE-TEXT: */
830 1.1.1.1.6.2 yamt #line 873 "../usage.c"
831 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- an alternate for '%s'\n"));
832 1.1.1.1.6.2 yamt #line 1148 "../usage.c"
833 1.1.1.1.6.2 yamt puts(_("Version, usage and configuration options:"));
834 1.1.1.1.6.2 yamt #line 924 "../usage.c"
835 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- default option for unnamed options\n"));
836 1.1.1.1.6.2 yamt #line 837 "../usage.c"
837 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- disabled as '--%s'\n"));
838 1.1.1.1.6.2 yamt #line 1117 "../usage.c"
839 1.1.1.1.6.2 yamt puts(_(" --- %-14s %s\n"));
840 1.1.1.1.6.2 yamt #line 1115 "../usage.c"
841 1.1.1.1.6.2 yamt puts(_("This option has been disabled"));
842 1.1.1.1.6.2 yamt #line 864 "../usage.c"
843 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- enabled by default\n"));
844 1.1.1.1.6.2 yamt #line 40 "../alias.c"
845 1.1.1.1.6.2 yamt puts(_("%s error: only "));
846 1.1.1.1.6.2 yamt #line 1194 "../usage.c"
847 1.1.1.1.6.2 yamt puts(_(" - examining environment variables named %s_*\n"));
848 1.1.1.1.6.2 yamt #line 168 "../file.c"
849 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- file must not pre-exist\n"));
850 1.1.1.1.6.2 yamt #line 172 "../file.c"
851 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- file must pre-exist\n"));
852 1.1.1.1.6.2 yamt #line 380 "../usage.c"
853 1.1.1.1.6.2 yamt puts(_("Options are specified by doubled hyphens and their name or by a single\n"
854 1.1.1.1.6.2 yamt "hyphen and the flag character.\n"));
855 1.1.1.1.6.2 yamt #line 916 "../makeshell.c"
856 1.1.1.1.6.2 yamt puts(_("\n"
857 1.1.1.1.6.2 yamt "= = = = = = = =\n\n"
858 1.1.1.1.6.2 yamt "This incarnation of genshell will produce\n"
859 1.1.1.1.6.2 yamt "a shell script to parse the options for %s:\n\n"));
860 1.1.1.1.6.2 yamt #line 166 "../enum.c"
861 1.1.1.1.6.2 yamt puts(_(" or an integer mask with any of the lower %d bits set\n"));
862 1.1.1.1.6.2 yamt #line 897 "../usage.c"
863 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- is a set membership option\n"));
864 1.1.1.1.6.2 yamt #line 918 "../usage.c"
865 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- must appear between %d and %d times\n"));
866 1.1.1.1.6.2 yamt #line 382 "../usage.c"
867 1.1.1.1.6.2 yamt puts(_("Options are specified by single or double hyphens and their name.\n"));
868 1.1.1.1.6.2 yamt #line 904 "../usage.c"
869 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- may appear multiple times\n"));
870 1.1.1.1.6.2 yamt #line 891 "../usage.c"
871 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- may not be preset\n"));
872 1.1.1.1.6.2 yamt #line 1309 "../usage.c"
873 1.1.1.1.6.2 yamt puts(_(" Arg Option-Name Description\n"));
874 1.1.1.1.6.2 yamt #line 1245 "../usage.c"
875 1.1.1.1.6.2 yamt puts(_(" Flg Arg Option-Name Description\n"));
876 1.1.1.1.6.2 yamt #line 1303 "../usage.c"
877 1.1.1.1.6.2 yamt puts(_(" Flg Arg Option-Name Description\n"));
878 1.1.1.1.6.2 yamt #line 1304 "../usage.c"
879 1.1.1.1.6.2 yamt puts(_(" %3s %s"));
880 1.1.1.1.6.2 yamt #line 1310 "../usage.c"
881 1.1.1.1.6.2 yamt puts(_(" %3s %s"));
882 1.1.1.1.6.2 yamt #line 387 "../usage.c"
883 1.1.1.1.6.2 yamt puts(_("The '-#<number>' option may omit the hash char\n"));
884 1.1.1.1.6.2 yamt #line 383 "../usage.c"
885 1.1.1.1.6.2 yamt puts(_("All arguments are named options.\n"));
886 1.1.1.1.6.2 yamt #line 971 "../usage.c"
887 1.1.1.1.6.2 yamt puts(_(" - reading file %s"));
888 1.1.1.1.6.2 yamt #line 409 "../usage.c"
889 1.1.1.1.6.2 yamt puts(_("\n"
890 1.1.1.1.6.2 yamt "Please send bug reports to: <%s>\n"));
891 1.1.1.1.6.2 yamt #line 100 "../version.c"
892 1.1.1.1.6.2 yamt puts(_("\n"
893 1.1.1.1.6.2 yamt "Please send bug reports to: <%s>\n"));
894 1.1.1.1.6.2 yamt #line 129 "../version.c"
895 1.1.1.1.6.2 yamt puts(_("\n"
896 1.1.1.1.6.2 yamt "Please send bug reports to: <%s>\n"));
897 1.1.1.1.6.2 yamt #line 903 "../usage.c"
898 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- may NOT appear - preset only\n"));
899 1.1.1.1.6.2 yamt #line 944 "../usage.c"
900 1.1.1.1.6.2 yamt puts(_("\n"
901 1.1.1.1.6.2 yamt "The following option preset mechanisms are supported:\n"));
902 1.1.1.1.6.2 yamt #line 1192 "../usage.c"
903 1.1.1.1.6.2 yamt puts(_("\n"
904 1.1.1.1.6.2 yamt "The following option preset mechanisms are supported:\n"));
905 1.1.1.1.6.2 yamt #line 682 "../usage.c"
906 1.1.1.1.6.2 yamt puts(_("prohibits these options:\n"));
907 1.1.1.1.6.2 yamt #line 677 "../usage.c"
908 1.1.1.1.6.2 yamt puts(_("prohibits the option '%s'\n"));
909 1.1.1.1.6.2 yamt #line 81 "../numeric.c"
910 1.1.1.1.6.2 yamt puts(_("%s%ld to %ld"));
911 1.1.1.1.6.2 yamt #line 79 "../numeric.c"
912 1.1.1.1.6.2 yamt puts(_("%sgreater than or equal to %ld"));
913 1.1.1.1.6.2 yamt #line 75 "../numeric.c"
914 1.1.1.1.6.2 yamt puts(_("%s%ld exactly"));
915 1.1.1.1.6.2 yamt #line 68 "../numeric.c"
916 1.1.1.1.6.2 yamt puts(_("%sit must lie in one of the ranges:\n"));
917 1.1.1.1.6.2 yamt #line 68 "../numeric.c"
918 1.1.1.1.6.2 yamt puts(_("%sit must be in the range:\n"));
919 1.1.1.1.6.2 yamt #line 88 "../numeric.c"
920 1.1.1.1.6.2 yamt puts(_(", or\n"));
921 1.1.1.1.6.2 yamt #line 66 "../numeric.c"
922 1.1.1.1.6.2 yamt puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
923 1.1.1.1.6.2 yamt #line 77 "../numeric.c"
924 1.1.1.1.6.2 yamt puts(_("%sless than or equal to %ld"));
925 1.1.1.1.6.2 yamt #line 390 "../usage.c"
926 1.1.1.1.6.2 yamt puts(_("Operands and options may be intermixed. They will be reordered.\n"));
927 1.1.1.1.6.2 yamt #line 652 "../usage.c"
928 1.1.1.1.6.2 yamt puts(_("requires the option '%s'\n"));
929 1.1.1.1.6.2 yamt #line 655 "../usage.c"
930 1.1.1.1.6.2 yamt puts(_("requires these options:\n"));
931 1.1.1.1.6.2 yamt #line 1321 "../usage.c"
932 1.1.1.1.6.2 yamt puts(_(" Arg Option-Name Req? Description\n"));
933 1.1.1.1.6.2 yamt #line 1315 "../usage.c"
934 1.1.1.1.6.2 yamt puts(_(" Flg Arg Option-Name Req? Description\n"));
935 1.1.1.1.6.2 yamt #line 167 "../enum.c"
936 1.1.1.1.6.2 yamt puts(_("or you may use a numeric representation. Preceding these with a '!'\n"
937 1.1.1.1.6.2 yamt "will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
938 1.1.1.1.6.2 yamt "will set them all. Multiple entries may be passed as an option\n"
939 1.1.1.1.6.2 yamt "argument list.\n"));
940 1.1.1.1.6.2 yamt #line 910 "../usage.c"
941 1.1.1.1.6.2 yamt puts(_("\t\t\t\t- may appear up to %d times\n"));
942 1.1.1.1.6.2 yamt #line 77 "../enum.c"
943 1.1.1.1.6.2 yamt puts(_("The valid \"%s\" option keywords are:\n"));
944 1.1.1.1.6.2 yamt #line 1152 "../usage.c"
945 1.1.1.1.6.2 yamt puts(_("The next option supports vendor supported extra options:"));
946 1.1.1.1.6.2 yamt #line 773 "../usage.c"
947 1.1.1.1.6.2 yamt puts(_("These additional options are:"));
948 1.1.1.1.6.2 yamt /* END-USAGE-TEXT */
949 1.1.1.1.6.2 yamt }
950 1.1.1.1.6.2 yamt #endif /* uncompilable code */
951 1.1 kardel #ifdef __cplusplus
952 1.1 kardel }
953 1.1 kardel #endif
954 1.1 kardel /* ntpsnmpd-opts.c ends here */
955