xref: /netbsd-src/external/bsd/ntp/dist/ntpdc/ntpdc-opts.c (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /*	$NetBSD: ntpdc-opts.c,v 1.11 2018/04/07 00:19:53 christos Exp $	*/
2 
3 /*
4  *  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.c)
5  *
6  *  It has been AutoGen-ed  February 27, 2018 at 05:14:56 PM by AutoGen 5.18.5
7  *  From the definitions    ntpdc-opts.def
8  *  and the template file   options
9  *
10  * Generated from AutoOpts 41:0:16 templates.
11  *
12  *  AutoOpts is a copyrighted work.  This source file is not encumbered
13  *  by AutoOpts licensing, but is provided under the licensing terms chosen
14  *  by the ntpdc author or copyright holder.  AutoOpts is
15  *  licensed under the terms of the LGPL.  The redistributable library
16  *  (``libopts'') is licensed under the terms of either the LGPL or, at the
17  *  users discretion, the BSD license.  See the AutoOpts and/or libopts sources
18  *  for details.
19  *
20  * The ntpdc program is copyrighted and licensed
21  * under the following terms:
22  *
23  *  Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
24  *  This is free software. It is licensed for use, modification and
25  *  redistribution under the terms of the NTP License, copies of which
26  *  can be seen at:
27  *    <http://ntp.org/license>
28  *    <http://opensource.org/licenses/ntp-license.php>
29  *
30  *  Permission to use, copy, modify, and distribute this software and its
31  *  documentation for any purpose with or without fee is hereby granted,
32  *  provided that the above copyright notice appears in all copies and that
33  *  both the copyright notice and this permission notice appear in
34  *  supporting documentation, and that the name The University of Delaware not be used in
35  *  advertising or publicity pertaining to distribution of the software
36  *  without specific, written prior permission. The University of Delaware and Network Time Foundation makes no
37  *  representations about the suitability this software for any purpose. It
38  *  is provided "as is" without express or implied warranty.
39  */
40 
41 #ifndef __doxygen__
42 #define OPTION_CODE_COMPILE 1
43 #include "ntpdc-opts.h"
44 #include <sys/types.h>
45 
46 #include <limits.h>
47 #include <stdio.h>
48 #include <stdlib.h>
49 
50 #ifdef  __cplusplus
51 extern "C" {
52 #endif
53 extern FILE * option_usage_fp;
54 #define zCopyright      (ntpdc_opt_strs+0)
55 #define zLicenseDescrip (ntpdc_opt_strs+342)
56 
57 /*
58  *  global included definitions
59  */
60 #ifdef __windows
61   extern int atoi(const char*);
62 #else
63 # include <stdlib.h>
64 #endif
65 
66 #ifndef NULL
67 #  define NULL 0
68 #endif
69 
70 /**
71  *  static const strings for ntpdc options
72  */
73 static char const ntpdc_opt_strs[1914] =
74 /*     0 */ "ntpdc 4.2.8p11\n"
75             "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
76             "This is free software. It is licensed for use, modification and\n"
77             "redistribution under the terms of the NTP License, copies of which\n"
78             "can be seen at:\n"
79             "  <http://ntp.org/license>\n"
80             "  <http://opensource.org/licenses/ntp-license.php>\n\0"
81 /*   342 */ "Permission to use, copy, modify, and distribute this software and its\n"
82             "documentation for any purpose with or without fee is hereby granted,\n"
83             "provided that the above copyright notice appears in all copies and that\n"
84             "both the copyright notice and this permission notice appear in supporting\n"
85             "documentation, and that the name The University of Delaware not be used in\n"
86             "advertising or publicity pertaining to distribution of the software without\n"
87             "specific, written prior permission.  The University of Delaware and Network\n"
88             "Time Foundation makes no representations about the suitability this\n"
89             "software for any purpose.  It is provided \"as is\" without express or\n"
90             "implied warranty.\n\0"
91 /*  1010 */ "Force IPv4 DNS name resolution\0"
92 /*  1041 */ "IPV4\0"
93 /*  1046 */ "ipv4\0"
94 /*  1051 */ "Force IPv6 DNS name resolution\0"
95 /*  1082 */ "IPV6\0"
96 /*  1087 */ "ipv6\0"
97 /*  1092 */ "run a command and exit\0"
98 /*  1115 */ "COMMAND\0"
99 /*  1123 */ "command\0"
100 /*  1131 */ "Increase debug verbosity level\0"
101 /*  1162 */ "DEBUG_LEVEL\0"
102 /*  1174 */ "debug-level\0"
103 /*  1186 */ "Set the debug verbosity level\0"
104 /*  1216 */ "SET_DEBUG_LEVEL\0"
105 /*  1232 */ "set-debug-level\0"
106 /*  1248 */ "Force ntpq to operate in interactive mode\0"
107 /*  1290 */ "INTERACTIVE\0"
108 /*  1302 */ "interactive\0"
109 /*  1314 */ "Print a list of the peers\0"
110 /*  1340 */ "LISTPEERS\0"
111 /*  1350 */ "listpeers\0"
112 /*  1360 */ "numeric host addresses\0"
113 /*  1383 */ "NUMERIC\0"
114 /*  1391 */ "numeric\0"
115 /*  1399 */ "PEERS\0"
116 /*  1405 */ "peers\0"
117 /*  1411 */ "Show a list of the peers\0"
118 /*  1436 */ "SHOWPEERS\0"
119 /*  1446 */ "showpeers\0"
120 /*  1456 */ "display extended usage information and exit\0"
121 /*  1500 */ "help\0"
122 /*  1505 */ "extended usage information passed thru pager\0"
123 /*  1550 */ "more-help\0"
124 /*  1560 */ "output version information and exit\0"
125 /*  1596 */ "version\0"
126 /*  1604 */ "save the option state to a config file\0"
127 /*  1643 */ "save-opts\0"
128 /*  1653 */ "load options from a config file\0"
129 /*  1685 */ "LOAD_OPTS\0"
130 /*  1695 */ "no-load-opts\0"
131 /*  1708 */ "no\0"
132 /*  1711 */ "NTPDC\0"
133 /*  1717 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p11\n"
134             "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n\0"
135 /*  1848 */ "$HOME\0"
136 /*  1854 */ ".\0"
137 /*  1856 */ ".ntprc\0"
138 /*  1863 */ "http://bugs.ntp.org, bugs@ntp.org\0"
139 /*  1897 */ "\n\0"
140 /*  1899 */ "ntpdc 4.2.8p11";
141 
142 /**
143  *  ipv4 option description with
144  *  "Must also have options" and "Incompatible options":
145  */
146 /** Descriptive text for the ipv4 option */
147 #define IPV4_DESC      (ntpdc_opt_strs+1010)
148 /** Upper-cased name for the ipv4 option */
149 #define IPV4_NAME      (ntpdc_opt_strs+1041)
150 /** Name string for the ipv4 option */
151 #define IPV4_name      (ntpdc_opt_strs+1046)
152 /** Other options that appear in conjunction with the ipv4 option */
153 static int const aIpv4CantList[] = {
154     INDEX_OPT_IPV6, NO_EQUIVALENT };
155 /** Compiled in flag settings for the ipv4 option */
156 #define IPV4_FLAGS     (OPTST_DISABLED)
157 
158 /**
159  *  ipv6 option description with
160  *  "Must also have options" and "Incompatible options":
161  */
162 /** Descriptive text for the ipv6 option */
163 #define IPV6_DESC      (ntpdc_opt_strs+1051)
164 /** Upper-cased name for the ipv6 option */
165 #define IPV6_NAME      (ntpdc_opt_strs+1082)
166 /** Name string for the ipv6 option */
167 #define IPV6_name      (ntpdc_opt_strs+1087)
168 /** Other options that appear in conjunction with the ipv6 option */
169 static int const aIpv6CantList[] = {
170     INDEX_OPT_IPV4, NO_EQUIVALENT };
171 /** Compiled in flag settings for the ipv6 option */
172 #define IPV6_FLAGS     (OPTST_DISABLED)
173 
174 /**
175  *  command option description:
176  */
177 /** Descriptive text for the command option */
178 #define COMMAND_DESC      (ntpdc_opt_strs+1092)
179 /** Upper-cased name for the command option */
180 #define COMMAND_NAME      (ntpdc_opt_strs+1115)
181 /** Name string for the command option */
182 #define COMMAND_name      (ntpdc_opt_strs+1123)
183 /** Compiled in flag settings for the command option */
184 #define COMMAND_FLAGS     (OPTST_DISABLED | OPTST_STACKED \
185         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
186 
187 /**
188  *  debug-level option description:
189  */
190 /** Descriptive text for the debug-level option */
191 #define DEBUG_LEVEL_DESC      (ntpdc_opt_strs+1131)
192 /** Upper-cased name for the debug-level option */
193 #define DEBUG_LEVEL_NAME      (ntpdc_opt_strs+1162)
194 /** Name string for the debug-level option */
195 #define DEBUG_LEVEL_name      (ntpdc_opt_strs+1174)
196 /** Compiled in flag settings for the debug-level option */
197 #define DEBUG_LEVEL_FLAGS     (OPTST_DISABLED)
198 
199 /**
200  *  set-debug-level option description:
201  */
202 /** Descriptive text for the set-debug-level option */
203 #define SET_DEBUG_LEVEL_DESC      (ntpdc_opt_strs+1186)
204 /** Upper-cased name for the set-debug-level option */
205 #define SET_DEBUG_LEVEL_NAME      (ntpdc_opt_strs+1216)
206 /** Name string for the set-debug-level option */
207 #define SET_DEBUG_LEVEL_name      (ntpdc_opt_strs+1232)
208 /** Compiled in flag settings for the set-debug-level option */
209 #define SET_DEBUG_LEVEL_FLAGS     (OPTST_DISABLED \
210         | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
211 
212 /**
213  *  interactive option description with
214  *  "Must also have options" and "Incompatible options":
215  */
216 /** Descriptive text for the interactive option */
217 #define INTERACTIVE_DESC      (ntpdc_opt_strs+1248)
218 /** Upper-cased name for the interactive option */
219 #define INTERACTIVE_NAME      (ntpdc_opt_strs+1290)
220 /** Name string for the interactive option */
221 #define INTERACTIVE_name      (ntpdc_opt_strs+1302)
222 /** Other options that appear in conjunction with the interactive option */
223 static int const aInteractiveCantList[] = {
224     INDEX_OPT_COMMAND,
225     INDEX_OPT_LISTPEERS,
226     INDEX_OPT_PEERS,
227     INDEX_OPT_SHOWPEERS, NO_EQUIVALENT };
228 /** Compiled in flag settings for the interactive option */
229 #define INTERACTIVE_FLAGS     (OPTST_DISABLED)
230 
231 /**
232  *  listpeers option description with
233  *  "Must also have options" and "Incompatible options":
234  */
235 /** Descriptive text for the listpeers option */
236 #define LISTPEERS_DESC      (ntpdc_opt_strs+1314)
237 /** Upper-cased name for the listpeers option */
238 #define LISTPEERS_NAME      (ntpdc_opt_strs+1340)
239 /** Name string for the listpeers option */
240 #define LISTPEERS_name      (ntpdc_opt_strs+1350)
241 /** Other options that appear in conjunction with the listpeers option */
242 static int const aListpeersCantList[] = {
243     INDEX_OPT_COMMAND, NO_EQUIVALENT };
244 /** Compiled in flag settings for the listpeers option */
245 #define LISTPEERS_FLAGS     (OPTST_DISABLED)
246 
247 /**
248  *  numeric option description:
249  */
250 /** Descriptive text for the numeric option */
251 #define NUMERIC_DESC      (ntpdc_opt_strs+1360)
252 /** Upper-cased name for the numeric option */
253 #define NUMERIC_NAME      (ntpdc_opt_strs+1383)
254 /** Name string for the numeric option */
255 #define NUMERIC_name      (ntpdc_opt_strs+1391)
256 /** Compiled in flag settings for the numeric option */
257 #define NUMERIC_FLAGS     (OPTST_DISABLED)
258 
259 /**
260  *  peers option description with
261  *  "Must also have options" and "Incompatible options":
262  */
263 /** Descriptive text for the peers option */
264 #define PEERS_DESC      (ntpdc_opt_strs+1314)
265 /** Upper-cased name for the peers option */
266 #define PEERS_NAME      (ntpdc_opt_strs+1399)
267 /** Name string for the peers option */
268 #define PEERS_name      (ntpdc_opt_strs+1405)
269 /** Other options that appear in conjunction with the peers option */
270 static int const aPeersCantList[] = {
271     INDEX_OPT_COMMAND, NO_EQUIVALENT };
272 /** Compiled in flag settings for the peers option */
273 #define PEERS_FLAGS     (OPTST_DISABLED)
274 
275 /**
276  *  showpeers option description with
277  *  "Must also have options" and "Incompatible options":
278  */
279 /** Descriptive text for the showpeers option */
280 #define SHOWPEERS_DESC      (ntpdc_opt_strs+1411)
281 /** Upper-cased name for the showpeers option */
282 #define SHOWPEERS_NAME      (ntpdc_opt_strs+1436)
283 /** Name string for the showpeers option */
284 #define SHOWPEERS_name      (ntpdc_opt_strs+1446)
285 /** Other options that appear in conjunction with the showpeers option */
286 static int const aShowpeersCantList[] = {
287     INDEX_OPT_COMMAND, NO_EQUIVALENT };
288 /** Compiled in flag settings for the showpeers option */
289 #define SHOWPEERS_FLAGS     (OPTST_DISABLED)
290 
291 /*
292  *  Help/More_Help/Version option descriptions:
293  */
294 #define HELP_DESC       (ntpdc_opt_strs+1456)
295 #define HELP_name       (ntpdc_opt_strs+1500)
296 #ifdef HAVE_WORKING_FORK
297 #define MORE_HELP_DESC  (ntpdc_opt_strs+1505)
298 #define MORE_HELP_name  (ntpdc_opt_strs+1550)
299 #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
300 #else
301 #define MORE_HELP_DESC  HELP_DESC
302 #define MORE_HELP_name  HELP_name
303 #define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
304 #endif
305 #ifdef NO_OPTIONAL_OPT_ARGS
306 #  define VER_FLAGS     (OPTST_IMM | OPTST_NO_INIT)
307 #else
308 #  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
309                          OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
310 #endif
311 #define VER_DESC        (ntpdc_opt_strs+1560)
312 #define VER_name        (ntpdc_opt_strs+1596)
313 #define SAVE_OPTS_DESC  (ntpdc_opt_strs+1604)
314 #define SAVE_OPTS_name  (ntpdc_opt_strs+1643)
315 #define LOAD_OPTS_DESC     (ntpdc_opt_strs+1653)
316 #define LOAD_OPTS_NAME     (ntpdc_opt_strs+1685)
317 #define NO_LOAD_OPTS_name  (ntpdc_opt_strs+1695)
318 #define LOAD_OPTS_pfx      (ntpdc_opt_strs+1708)
319 #define LOAD_OPTS_name     (NO_LOAD_OPTS_name + 3)
320 /**
321  *  Declare option callback procedures
322  */
323 extern tOptProc
324     ntpOptionPrintVersion, optionBooleanVal,      optionNestedVal,
325     optionNumericVal,      optionPagedUsage,      optionResetOpt,
326     optionStackArg,        optionTimeDate,        optionTimeVal,
327     optionUnstackArg,      optionVendorOption;
328 static tOptProc
329     doOptDebug_Level, doUsageOpt;
330 #define VER_PROC        ntpOptionPrintVersion
331 
332 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
333 /**
334  *  Define the ntpdc Option Descriptions.
335  * This is an array of OPTION_CT entries, one for each
336  * option that the ntpdc program responds to.
337  */
338 static tOptDesc optDesc[OPTION_CT] = {
339   {  /* entry idx, value */ 0, VALUE_OPT_IPV4,
340      /* equiv idx, value */ 0, VALUE_OPT_IPV4,
341      /* equivalenced to  */ NO_EQUIVALENT,
342      /* min, max, act ct */ 0, 1, 0,
343      /* opt state flags  */ IPV4_FLAGS, 0,
344      /* last opt argumnt */ { NULL }, /* --ipv4 */
345      /* arg list/cookie  */ NULL,
346      /* must/cannot opts */ NULL, aIpv4CantList,
347      /* option proc      */ NULL,
348      /* desc, NAME, name */ IPV4_DESC, IPV4_NAME, IPV4_name,
349      /* disablement strs */ NULL, NULL },
350 
351   {  /* entry idx, value */ 1, VALUE_OPT_IPV6,
352      /* equiv idx, value */ 1, VALUE_OPT_IPV6,
353      /* equivalenced to  */ NO_EQUIVALENT,
354      /* min, max, act ct */ 0, 1, 0,
355      /* opt state flags  */ IPV6_FLAGS, 0,
356      /* last opt argumnt */ { NULL }, /* --ipv6 */
357      /* arg list/cookie  */ NULL,
358      /* must/cannot opts */ NULL, aIpv6CantList,
359      /* option proc      */ NULL,
360      /* desc, NAME, name */ IPV6_DESC, IPV6_NAME, IPV6_name,
361      /* disablement strs */ NULL, NULL },
362 
363   {  /* entry idx, value */ 2, VALUE_OPT_COMMAND,
364      /* equiv idx, value */ 2, VALUE_OPT_COMMAND,
365      /* equivalenced to  */ NO_EQUIVALENT,
366      /* min, max, act ct */ 0, NOLIMIT, 0,
367      /* opt state flags  */ COMMAND_FLAGS, 0,
368      /* last opt argumnt */ { NULL }, /* --command */
369      /* arg list/cookie  */ NULL,
370      /* must/cannot opts */ NULL, NULL,
371      /* option proc      */ optionStackArg,
372      /* desc, NAME, name */ COMMAND_DESC, COMMAND_NAME, COMMAND_name,
373      /* disablement strs */ NULL, NULL },
374 
375   {  /* entry idx, value */ 3, VALUE_OPT_DEBUG_LEVEL,
376      /* equiv idx, value */ 3, VALUE_OPT_DEBUG_LEVEL,
377      /* equivalenced to  */ NO_EQUIVALENT,
378      /* min, max, act ct */ 0, NOLIMIT, 0,
379      /* opt state flags  */ DEBUG_LEVEL_FLAGS, 0,
380      /* last opt argumnt */ { NULL }, /* --debug-level */
381      /* arg list/cookie  */ NULL,
382      /* must/cannot opts */ NULL, NULL,
383      /* option proc      */ doOptDebug_Level,
384      /* desc, NAME, name */ DEBUG_LEVEL_DESC, DEBUG_LEVEL_NAME, DEBUG_LEVEL_name,
385      /* disablement strs */ NULL, NULL },
386 
387   {  /* entry idx, value */ 4, VALUE_OPT_SET_DEBUG_LEVEL,
388      /* equiv idx, value */ 4, VALUE_OPT_SET_DEBUG_LEVEL,
389      /* equivalenced to  */ NO_EQUIVALENT,
390      /* min, max, act ct */ 0, NOLIMIT, 0,
391      /* opt state flags  */ SET_DEBUG_LEVEL_FLAGS, 0,
392      /* last opt argumnt */ { NULL }, /* --set-debug-level */
393      /* arg list/cookie  */ NULL,
394      /* must/cannot opts */ NULL, NULL,
395      /* option proc      */ optionNumericVal,
396      /* desc, NAME, name */ SET_DEBUG_LEVEL_DESC, SET_DEBUG_LEVEL_NAME, SET_DEBUG_LEVEL_name,
397      /* disablement strs */ NULL, NULL },
398 
399   {  /* entry idx, value */ 5, VALUE_OPT_INTERACTIVE,
400      /* equiv idx, value */ 5, VALUE_OPT_INTERACTIVE,
401      /* equivalenced to  */ NO_EQUIVALENT,
402      /* min, max, act ct */ 0, 1, 0,
403      /* opt state flags  */ INTERACTIVE_FLAGS, 0,
404      /* last opt argumnt */ { NULL }, /* --interactive */
405      /* arg list/cookie  */ NULL,
406      /* must/cannot opts */ NULL, aInteractiveCantList,
407      /* option proc      */ NULL,
408      /* desc, NAME, name */ INTERACTIVE_DESC, INTERACTIVE_NAME, INTERACTIVE_name,
409      /* disablement strs */ NULL, NULL },
410 
411   {  /* entry idx, value */ 6, VALUE_OPT_LISTPEERS,
412      /* equiv idx, value */ 6, VALUE_OPT_LISTPEERS,
413      /* equivalenced to  */ NO_EQUIVALENT,
414      /* min, max, act ct */ 0, 1, 0,
415      /* opt state flags  */ LISTPEERS_FLAGS, 0,
416      /* last opt argumnt */ { NULL }, /* --listpeers */
417      /* arg list/cookie  */ NULL,
418      /* must/cannot opts */ NULL, aListpeersCantList,
419      /* option proc      */ NULL,
420      /* desc, NAME, name */ LISTPEERS_DESC, LISTPEERS_NAME, LISTPEERS_name,
421      /* disablement strs */ NULL, NULL },
422 
423   {  /* entry idx, value */ 7, VALUE_OPT_NUMERIC,
424      /* equiv idx, value */ 7, VALUE_OPT_NUMERIC,
425      /* equivalenced to  */ NO_EQUIVALENT,
426      /* min, max, act ct */ 0, 1, 0,
427      /* opt state flags  */ NUMERIC_FLAGS, 0,
428      /* last opt argumnt */ { NULL }, /* --numeric */
429      /* arg list/cookie  */ NULL,
430      /* must/cannot opts */ NULL, NULL,
431      /* option proc      */ NULL,
432      /* desc, NAME, name */ NUMERIC_DESC, NUMERIC_NAME, NUMERIC_name,
433      /* disablement strs */ NULL, NULL },
434 
435   {  /* entry idx, value */ 8, VALUE_OPT_PEERS,
436      /* equiv idx, value */ 8, VALUE_OPT_PEERS,
437      /* equivalenced to  */ NO_EQUIVALENT,
438      /* min, max, act ct */ 0, 1, 0,
439      /* opt state flags  */ PEERS_FLAGS, 0,
440      /* last opt argumnt */ { NULL }, /* --peers */
441      /* arg list/cookie  */ NULL,
442      /* must/cannot opts */ NULL, aPeersCantList,
443      /* option proc      */ NULL,
444      /* desc, NAME, name */ PEERS_DESC, PEERS_NAME, PEERS_name,
445      /* disablement strs */ NULL, NULL },
446 
447   {  /* entry idx, value */ 9, VALUE_OPT_SHOWPEERS,
448      /* equiv idx, value */ 9, VALUE_OPT_SHOWPEERS,
449      /* equivalenced to  */ NO_EQUIVALENT,
450      /* min, max, act ct */ 0, 1, 0,
451      /* opt state flags  */ SHOWPEERS_FLAGS, 0,
452      /* last opt argumnt */ { NULL }, /* --showpeers */
453      /* arg list/cookie  */ NULL,
454      /* must/cannot opts */ NULL, aShowpeersCantList,
455      /* option proc      */ NULL,
456      /* desc, NAME, name */ SHOWPEERS_DESC, SHOWPEERS_NAME, SHOWPEERS_name,
457      /* disablement strs */ NULL, NULL },
458 
459   {  /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
460      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_VERSION,
461      /* equivalenced to  */ NO_EQUIVALENT,
462      /* min, max, act ct */ 0, 1, 0,
463      /* opt state flags  */ VER_FLAGS, AOUSE_VERSION,
464      /* last opt argumnt */ { NULL },
465      /* arg list/cookie  */ NULL,
466      /* must/cannot opts */ NULL, NULL,
467      /* option proc      */ VER_PROC,
468      /* desc, NAME, name */ VER_DESC, NULL, VER_name,
469      /* disablement strs */ NULL, NULL },
470 
471 
472 
473   {  /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
474      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_HELP,
475      /* equivalenced to  */ NO_EQUIVALENT,
476      /* min, max, act ct */ 0, 1, 0,
477      /* opt state flags  */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
478      /* last opt argumnt */ { NULL },
479      /* arg list/cookie  */ NULL,
480      /* must/cannot opts */ NULL, NULL,
481      /* option proc      */ doUsageOpt,
482      /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
483      /* disablement strs */ NULL, NULL },
484 
485   {  /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
486      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
487      /* equivalenced to  */ NO_EQUIVALENT,
488      /* min, max, act ct */ 0, 1, 0,
489      /* opt state flags  */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
490      /* last opt argumnt */ { NULL },
491      /* arg list/cookie  */ NULL,
492      /* must/cannot opts */ NULL,  NULL,
493      /* option proc      */ optionPagedUsage,
494      /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
495      /* disablement strs */ NULL, NULL },
496 
497   {  /* entry idx, value */ INDEX_OPT_SAVE_OPTS, VALUE_OPT_SAVE_OPTS,
498      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_SAVE_OPTS,
499      /* equivalenced to  */ NO_EQUIVALENT,
500      /* min, max, act ct */ 0, 1, 0,
501      /* opt state flags  */ OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)
502                        | OPTST_ARG_OPTIONAL | OPTST_NO_INIT, AOUSE_SAVE_OPTS,
503      /* last opt argumnt */ { NULL },
504      /* arg list/cookie  */ NULL,
505      /* must/cannot opts */ NULL,  NULL,
506      /* option proc      */ NULL,
507      /* desc, NAME, name */ SAVE_OPTS_DESC, NULL, SAVE_OPTS_name,
508      /* disablement strs */ NULL, NULL },
509 
510   {  /* entry idx, value */ INDEX_OPT_LOAD_OPTS, VALUE_OPT_LOAD_OPTS,
511      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_LOAD_OPTS,
512      /* equivalenced to  */ NO_EQUIVALENT,
513      /* min, max, act ct */ 0, NOLIMIT, 0,
514      /* opt state flags  */ OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)
515 			  | OPTST_DISABLE_IMM, AOUSE_LOAD_OPTS,
516      /* last opt argumnt */ { NULL },
517      /* arg list/cookie  */ NULL,
518      /* must/cannot opts */ NULL, NULL,
519      /* option proc      */ optionLoadOpt,
520      /* desc, NAME, name */ LOAD_OPTS_DESC, LOAD_OPTS_NAME, LOAD_OPTS_name,
521      /* disablement strs */ NO_LOAD_OPTS_name, LOAD_OPTS_pfx }
522 };
523 
524 
525 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
526 /** Reference to the upper cased version of ntpdc. */
527 #define zPROGNAME       (ntpdc_opt_strs+1711)
528 /** Reference to the title line for ntpdc usage. */
529 #define zUsageTitle     (ntpdc_opt_strs+1717)
530 /** ntpdc configuration file name. */
531 #define zRcName         (ntpdc_opt_strs+1856)
532 /** Directories to search for ntpdc config files. */
533 static char const * const apzHomeList[3] = {
534     ntpdc_opt_strs+1848,
535     ntpdc_opt_strs+1854,
536     NULL };
537 /** The ntpdc program bug email address. */
538 #define zBugsAddr       (ntpdc_opt_strs+1863)
539 /** Clarification/explanation of what ntpdc does. */
540 #define zExplain        (ntpdc_opt_strs+1897)
541 /** Extra detail explaining what ntpdc does. */
542 #define zDetail         (NULL)
543 /** The full version string for ntpdc. */
544 #define zFullVersion    (ntpdc_opt_strs+1899)
545 /* extracted from optcode.tlib near line 364 */
546 
547 #if defined(ENABLE_NLS)
548 # define OPTPROC_BASE OPTPROC_TRANSLATE
549   static tOptionXlateProc translate_option_strings;
550 #else
551 # define OPTPROC_BASE OPTPROC_NONE
552 # define translate_option_strings NULL
553 #endif /* ENABLE_NLS */
554 
555 #define ntpdc_full_usage (NULL)
556 #define ntpdc_short_usage (NULL)
557 
558 #endif /* not defined __doxygen__ */
559 
560 /*
561  *  Create the static procedure(s) declared above.
562  */
563 /**
564  * The callout function that invokes the optionUsage function.
565  *
566  * @param[in] opts the AutoOpts option description structure
567  * @param[in] od   the descriptor for the "help" (usage) option.
568  * @noreturn
569  */
570 static void
571 doUsageOpt(tOptions * opts, tOptDesc * od)
572 {
573     int ex_code;
574     ex_code = NTPDC_EXIT_SUCCESS;
575     optionUsage(&ntpdcOptions, ex_code);
576     /* NOTREACHED */
577     exit(1);
578     (void)opts;
579     (void)od;
580 }
581 
582 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
583 /**
584  * Code to handle the debug-level option.
585  *
586  * @param[in] pOptions the ntpdc options data structure
587  * @param[in,out] pOptDesc the option descriptor for this option.
588  */
589 static void
590 doOptDebug_Level(tOptions* pOptions, tOptDesc* pOptDesc)
591 {
592     /*
593      * Be sure the flag-code[0] handles special values for the options pointer
594      * viz. (poptions <= OPTPROC_EMIT_LIMIT) *and also* the special flag bit
595      * ((poptdesc->fOptState & OPTST_RESET) != 0) telling the option to
596      * reset its state.
597      */
598     /* extracted from debug-opt.def, line 15 */
599 OPT_VALUE_SET_DEBUG_LEVEL++;
600     (void)pOptDesc;
601     (void)pOptions;
602 }
603 /* extracted from optmain.tlib near line 1250 */
604 
605 /**
606  * The directory containing the data associated with ntpdc.
607  */
608 #ifndef  PKGDATADIR
609 # define PKGDATADIR ""
610 #endif
611 
612 /**
613  * Information about the person or institution that packaged ntpdc
614  * for the current distribution.
615  */
616 #ifndef  WITH_PACKAGER
617 # define ntpdc_packager_info NULL
618 #else
619 /** Packager information for ntpdc. */
620 static char const ntpdc_packager_info[] =
621     "Packaged by " WITH_PACKAGER
622 
623 # ifdef WITH_PACKAGER_VERSION
624         " ("WITH_PACKAGER_VERSION")"
625 # endif
626 
627 # ifdef WITH_PACKAGER_BUG_REPORTS
628     "\nReport ntpdc bugs to " WITH_PACKAGER_BUG_REPORTS
629 # endif
630     "\n";
631 #endif
632 #ifndef __doxygen__
633 
634 #endif /* __doxygen__ */
635 /**
636  * The option definitions for ntpdc.  The one structure that
637  * binds them all.
638  */
639 tOptions ntpdcOptions = {
640     OPTIONS_STRUCT_VERSION,
641     0, NULL,                    /* original argc + argv    */
642     ( OPTPROC_BASE
643     + OPTPROC_ERRSTOP
644     + OPTPROC_SHORTOPT
645     + OPTPROC_LONGOPT
646     + OPTPROC_NO_REQ_OPT
647     + OPTPROC_ENVIRON
648     + OPTPROC_MISUSE ),
649     0, NULL,                    /* current option index, current option */
650     NULL,         NULL,         zPROGNAME,
651     zRcName,      zCopyright,   zLicenseDescrip,
652     zFullVersion, apzHomeList,  zUsageTitle,
653     zExplain,     zDetail,      optDesc,
654     zBugsAddr,                  /* address to send bugs to */
655     NULL, NULL,                 /* extensions/saved state  */
656     optionUsage, /* usage procedure */
657     translate_option_strings,   /* translation procedure */
658     /*
659      *  Indexes to special options
660      */
661     { INDEX_OPT_MORE_HELP, /* more-help option index */
662       INDEX_OPT_SAVE_OPTS, /* save option index */
663       NO_EQUIVALENT, /* '-#' option index */
664       NO_EQUIVALENT /* index of default opt */
665     },
666     15 /* full option count */, 10 /* user option count */,
667     ntpdc_full_usage, ntpdc_short_usage,
668     NULL, NULL,
669     PKGDATADIR, ntpdc_packager_info
670 };
671 
672 #if ENABLE_NLS
673 /**
674  * This code is designed to translate translatable option text for the
675  * ntpdc program.  These translations happen upon entry
676  * to optionProcess().
677  */
678 #include <stdio.h>
679 #include <stdlib.h>
680 #include <string.h>
681 #include <unistd.h>
682 #ifdef HAVE_DCGETTEXT
683 # include <gettext.h>
684 #endif
685 #include <autoopts/usage-txt.h>
686 
687 static char * AO_gettext(char const * pz);
688 static void   coerce_it(void ** s);
689 
690 /**
691  * AutoGen specific wrapper function for gettext.  It relies on the macro _()
692  * to convert from English to the target language, then strdup-duplicates the
693  * result string.  It tries the "libopts" domain first, then whatever has been
694  * set via the \a textdomain(3) call.
695  *
696  * @param[in] pz the input text used as a lookup key.
697  * @returns the translated text (if there is one),
698  *   or the original text (if not).
699  */
700 static char *
701 AO_gettext(char const * pz)
702 {
703     char * res;
704     if (pz == NULL)
705         return NULL;
706 #ifdef HAVE_DCGETTEXT
707     /*
708      * While processing the option_xlateable_txt data, try to use the
709      * "libopts" domain.  Once we switch to the option descriptor data,
710      * do *not* use that domain.
711      */
712     if (option_xlateable_txt.field_ct != 0) {
713         res = dgettext("libopts", pz);
714         if (res == pz)
715             res = (char *)VOIDP(_(pz));
716     } else
717         res = (char *)VOIDP(_(pz));
718 #else
719     res = (char *)VOIDP(_(pz));
720 #endif
721     if (res == pz)
722         return res;
723     res = strdup(res);
724     if (res == NULL) {
725         fputs(_("No memory for duping translated strings\n"), stderr);
726         exit(NTPDC_EXIT_FAILURE);
727     }
728     return res;
729 }
730 
731 /**
732  * All the pointers we use are marked "* const", but they are stored in
733  * writable memory.  Coerce the mutability and set the pointer.
734  */
735 static void coerce_it(void ** s) { *s = AO_gettext(*s);
736 }
737 
738 /**
739  * Translate all the translatable strings in the ntpdcOptions
740  * structure defined above.  This is done only once.
741  */
742 static void
743 translate_option_strings(void)
744 {
745     tOptions * const opts = &ntpdcOptions;
746 
747     /*
748      *  Guard against re-translation.  It won't work.  The strings will have
749      *  been changed by the first pass through this code.  One shot only.
750      */
751     if (option_xlateable_txt.field_ct != 0) {
752         /*
753          *  Do the translations.  The first pointer follows the field count
754          *  field.  The field count field is the size of a pointer.
755          */
756         char ** ppz = (char**)VOIDP(&(option_xlateable_txt));
757         int     ix  = option_xlateable_txt.field_ct;
758 
759         do {
760             ppz++; /* skip over field_ct */
761             *ppz = AO_gettext(*ppz);
762         } while (--ix > 0);
763         /* prevent re-translation and disable "libopts" domain lookup */
764         option_xlateable_txt.field_ct = 0;
765 
766         coerce_it(VOIDP(&(opts->pzCopyright)));
767         coerce_it(VOIDP(&(opts->pzCopyNotice)));
768         coerce_it(VOIDP(&(opts->pzFullVersion)));
769         coerce_it(VOIDP(&(opts->pzUsageTitle)));
770         coerce_it(VOIDP(&(opts->pzExplain)));
771         coerce_it(VOIDP(&(opts->pzDetail)));
772         {
773             tOptDesc * od = opts->pOptDesc;
774             for (ix = opts->optCt; ix > 0; ix--, od++)
775                 coerce_it(VOIDP(&(od->pzText)));
776         }
777     }
778 }
779 #endif /* ENABLE_NLS */
780 
781 #ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
782 /** I18N function strictly for xgettext.  Do not compile. */
783 static void bogus_function(void) {
784   /* TRANSLATORS:
785 
786      The following dummy function was crated solely so that xgettext can
787      extract the correct strings.  These strings are actually referenced
788      by a field name in the ntpdcOptions structure noted in the
789      comments below.  The literal text is defined in ntpdc_opt_strs.
790 
791      NOTE: the strings below are segmented with respect to the source string
792      ntpdc_opt_strs.  The strings above are handed off for translation
793      at run time a paragraph at a time.  Consequently, they are presented here
794      for translation a paragraph at a time.
795 
796      ALSO: often the description for an option will reference another option
797      by name.  These are set off with apostrophe quotes (I hope).  Do not
798      translate option names.
799    */
800   /* referenced via ntpdcOptions.pzCopyright */
801   puts(_("ntpdc 4.2.8p11\n\
802 Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
803 This is free software. It is licensed for use, modification and\n\
804 redistribution under the terms of the NTP License, copies of which\n\
805 can be seen at:\n"));
806   puts(_("  <http://ntp.org/license>\n\
807   <http://opensource.org/licenses/ntp-license.php>\n"));
808 
809   /* referenced via ntpdcOptions.pzCopyNotice */
810   puts(_("Permission to use, copy, modify, and distribute this software and its\n\
811 documentation for any purpose with or without fee is hereby granted,\n\
812 provided that the above copyright notice appears in all copies and that\n\
813 both the copyright notice and this permission notice appear in supporting\n\
814 documentation, and that the name The University of Delaware not be used in\n\
815 advertising or publicity pertaining to distribution of the software without\n\
816 specific, written prior permission.  The University of Delaware and Network\n\
817 Time Foundation makes no representations about the suitability this\n\
818 software for any purpose.  It is provided \"as is\" without express or\n\
819 implied warranty.\n"));
820 
821   /* referenced via ntpdcOptions.pOptDesc->pzText */
822   puts(_("Force IPv4 DNS name resolution"));
823 
824   /* referenced via ntpdcOptions.pOptDesc->pzText */
825   puts(_("Force IPv6 DNS name resolution"));
826 
827   /* referenced via ntpdcOptions.pOptDesc->pzText */
828   puts(_("run a command and exit"));
829 
830   /* referenced via ntpdcOptions.pOptDesc->pzText */
831   puts(_("Increase debug verbosity level"));
832 
833   /* referenced via ntpdcOptions.pOptDesc->pzText */
834   puts(_("Set the debug verbosity level"));
835 
836   /* referenced via ntpdcOptions.pOptDesc->pzText */
837   puts(_("Force ntpq to operate in interactive mode"));
838 
839   /* referenced via ntpdcOptions.pOptDesc->pzText */
840   puts(_("Print a list of the peers"));
841 
842   /* referenced via ntpdcOptions.pOptDesc->pzText */
843   puts(_("numeric host addresses"));
844 
845   /* referenced via ntpdcOptions.pOptDesc->pzText */
846   puts(_("Print a list of the peers"));
847 
848   /* referenced via ntpdcOptions.pOptDesc->pzText */
849   puts(_("Show a list of the peers"));
850 
851   /* referenced via ntpdcOptions.pOptDesc->pzText */
852   puts(_("display extended usage information and exit"));
853 
854   /* referenced via ntpdcOptions.pOptDesc->pzText */
855   puts(_("extended usage information passed thru pager"));
856 
857   /* referenced via ntpdcOptions.pOptDesc->pzText */
858   puts(_("output version information and exit"));
859 
860   /* referenced via ntpdcOptions.pOptDesc->pzText */
861   puts(_("save the option state to a config file"));
862 
863   /* referenced via ntpdcOptions.pOptDesc->pzText */
864   puts(_("load options from a config file"));
865 
866   /* referenced via ntpdcOptions.pzUsageTitle */
867   puts(_("ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p11\n\
868 Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n"));
869 
870   /* referenced via ntpdcOptions.pzExplain */
871   puts(_("\n"));
872 
873   /* referenced via ntpdcOptions.pzFullVersion */
874   puts(_("ntpdc 4.2.8p11"));
875 
876   /* referenced via ntpdcOptions.pzFullUsage */
877   puts(_("<<<NOT-FOUND>>>"));
878 
879   /* referenced via ntpdcOptions.pzShortUsage */
880   puts(_("<<<NOT-FOUND>>>"));
881   /* LIBOPTS-MESSAGES: */
882 #line 67 "../autoopts.c"
883   puts(_("allocation of %d bytes failed\n"));
884 #line 93 "../autoopts.c"
885   puts(_("allocation of %d bytes failed\n"));
886 #line 53 "../init.c"
887   puts(_("AutoOpts function called without option descriptor\n"));
888 #line 86 "../init.c"
889   puts(_("\tThis exceeds the compiled library version:  "));
890 #line 84 "../init.c"
891   puts(_("Automated Options Processing Error!\n"
892        "\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
893 #line 80 "../autoopts.c"
894   puts(_("realloc of %d bytes at 0x%p failed\n"));
895 #line 88 "../init.c"
896   puts(_("\tThis is less than the minimum library version:  "));
897 #line 121 "../version.c"
898   puts(_("Automated Options version %s\n"
899        "\tCopyright (C) 1999-2014 by Bruce Korb - all rights reserved\n"));
900 #line 87 "../makeshell.c"
901   puts(_("(AutoOpts bug):  %s.\n"));
902 #line 90 "../reset.c"
903   puts(_("optionResetOpt() called, but reset-option not configured"));
904 #line 292 "../usage.c"
905   puts(_("could not locate the 'help' option"));
906 #line 336 "../autoopts.c"
907   puts(_("optionProcess() was called with invalid data"));
908 #line 748 "../usage.c"
909   puts(_("invalid argument type specified"));
910 #line 598 "../find.c"
911   puts(_("defaulted to option with optional arg"));
912 #line 76 "../alias.c"
913   puts(_("aliasing option is out of range."));
914 #line 234 "../enum.c"
915   puts(_("%s error:  the keyword '%s' is ambiguous for %s\n"));
916 #line 108 "../find.c"
917   puts(_("  The following options match:\n"));
918 #line 293 "../find.c"
919   puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
920 #line 161 "../check.c"
921   puts(_("%s: Command line arguments required\n"));
922 #line 43 "../alias.c"
923   puts(_("%d %s%s options allowed\n"));
924 #line 94 "../makeshell.c"
925   puts(_("%s error %d (%s) calling %s for '%s'\n"));
926 #line 306 "../makeshell.c"
927   puts(_("interprocess pipe"));
928 #line 168 "../version.c"
929   puts(_("error: version option argument '%c' invalid.  Use:\n"
930        "\t'v' - version only\n"
931        "\t'c' - version and copyright\n"
932        "\t'n' - version and full copyright notice\n"));
933 #line 58 "../check.c"
934   puts(_("%s error:  the '%s' and '%s' options conflict\n"));
935 #line 217 "../find.c"
936   puts(_("%s: The '%s' option has been disabled."));
937 #line 430 "../find.c"
938   puts(_("%s: The '%s' option has been disabled."));
939 #line 38 "../alias.c"
940   puts(_("-equivalence"));
941 #line 469 "../find.c"
942   puts(_("%s: illegal option -- %c\n"));
943 #line 110 "../reset.c"
944   puts(_("%s: illegal option -- %c\n"));
945 #line 271 "../find.c"
946   puts(_("%s: illegal option -- %s\n"));
947 #line 755 "../find.c"
948   puts(_("%s: illegal option -- %s\n"));
949 #line 118 "../reset.c"
950   puts(_("%s: illegal option -- %s\n"));
951 #line 335 "../find.c"
952   puts(_("%s: unknown vendor extension option -- %s\n"));
953 #line 159 "../enum.c"
954   puts(_("  or an integer from %d through %d\n"));
955 #line 169 "../enum.c"
956   puts(_("  or an integer from %d through %d\n"));
957 #line 747 "../usage.c"
958   puts(_("%s error:  invalid option descriptor for %s\n"));
959 #line 1081 "../usage.c"
960   puts(_("%s error:  invalid option descriptor for %s\n"));
961 #line 385 "../find.c"
962   puts(_("%s: invalid option name: %s\n"));
963 #line 527 "../find.c"
964   puts(_("%s: The '%s' option requires an argument.\n"));
965 #line 156 "../autoopts.c"
966   puts(_("(AutoOpts bug):  Equivalenced option '%s' was equivalenced to both\n"
967        "\t'%s' and '%s'."));
968 #line 94 "../check.c"
969   puts(_("%s error:  The %s option is required\n"));
970 #line 632 "../find.c"
971   puts(_("%s: The '%s' option cannot have an argument.\n"));
972 #line 151 "../check.c"
973   puts(_("%s: Command line arguments are not allowed.\n"));
974 #line 535 "../save.c"
975   puts(_("error %d (%s) creating %s\n"));
976 #line 234 "../enum.c"
977   puts(_("%s error:  '%s' does not match any %s keywords.\n"));
978 #line 93 "../reset.c"
979   puts(_("%s error: The '%s' option requires an argument.\n"));
980 #line 184 "../save.c"
981   puts(_("error %d (%s) stat-ing %s\n"));
982 #line 238 "../save.c"
983   puts(_("error %d (%s) stat-ing %s\n"));
984 #line 143 "../restore.c"
985   puts(_("%s error: no saved option state\n"));
986 #line 231 "../autoopts.c"
987   puts(_("'%s' is not a command line option.\n"));
988 #line 111 "../time.c"
989   puts(_("%s error:  '%s' is not a recognizable date/time.\n"));
990 #line 132 "../save.c"
991   puts(_("'%s' not defined\n"));
992 #line 50 "../time.c"
993   puts(_("%s error:  '%s' is not a recognizable time duration.\n"));
994 #line 92 "../check.c"
995   puts(_("%s error:  The %s option must appear %d times.\n"));
996 #line 164 "../numeric.c"
997   puts(_("%s error:  '%s' is not a recognizable number.\n"));
998 #line 200 "../enum.c"
999   puts(_("%s error:  %s exceeds %s keyword count\n"));
1000 #line 330 "../usage.c"
1001   puts(_("Try '%s %s' for more information.\n"));
1002 #line 45 "../alias.c"
1003   puts(_("one %s%s option allowed\n"));
1004 #line 208 "../makeshell.c"
1005   puts(_("standard output"));
1006 #line 943 "../makeshell.c"
1007   puts(_("standard output"));
1008 #line 274 "../usage.c"
1009   puts(_("standard output"));
1010 #line 415 "../usage.c"
1011   puts(_("standard output"));
1012 #line 625 "../usage.c"
1013   puts(_("standard output"));
1014 #line 175 "../version.c"
1015   puts(_("standard output"));
1016 #line 274 "../usage.c"
1017   puts(_("standard error"));
1018 #line 415 "../usage.c"
1019   puts(_("standard error"));
1020 #line 625 "../usage.c"
1021   puts(_("standard error"));
1022 #line 175 "../version.c"
1023   puts(_("standard error"));
1024 #line 208 "../makeshell.c"
1025   puts(_("write"));
1026 #line 943 "../makeshell.c"
1027   puts(_("write"));
1028 #line 273 "../usage.c"
1029   puts(_("write"));
1030 #line 414 "../usage.c"
1031   puts(_("write"));
1032 #line 624 "../usage.c"
1033   puts(_("write"));
1034 #line 174 "../version.c"
1035   puts(_("write"));
1036 #line 60 "../numeric.c"
1037   puts(_("%s error:  %s option value %ld is out of range.\n"));
1038 #line 44 "../check.c"
1039   puts(_("%s error:  %s option requires the %s option\n"));
1040 #line 131 "../save.c"
1041   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1042 #line 183 "../save.c"
1043   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1044 #line 237 "../save.c"
1045   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1046 #line 256 "../save.c"
1047   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1048 #line 534 "../save.c"
1049   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1050   /* END-LIBOPTS-MESSAGES */
1051 
1052   /* USAGE-TEXT: */
1053 #line 873 "../usage.c"
1054   puts(_("\t\t\t\t- an alternate for '%s'\n"));
1055 #line 1148 "../usage.c"
1056   puts(_("Version, usage and configuration options:"));
1057 #line 924 "../usage.c"
1058   puts(_("\t\t\t\t- default option for unnamed options\n"));
1059 #line 837 "../usage.c"
1060   puts(_("\t\t\t\t- disabled as '--%s'\n"));
1061 #line 1117 "../usage.c"
1062   puts(_(" --- %-14s %s\n"));
1063 #line 1115 "../usage.c"
1064   puts(_("This option has been disabled"));
1065 #line 864 "../usage.c"
1066   puts(_("\t\t\t\t- enabled by default\n"));
1067 #line 40 "../alias.c"
1068   puts(_("%s error:  only "));
1069 #line 1194 "../usage.c"
1070   puts(_(" - examining environment variables named %s_*\n"));
1071 #line 168 "../file.c"
1072   puts(_("\t\t\t\t- file must not pre-exist\n"));
1073 #line 172 "../file.c"
1074   puts(_("\t\t\t\t- file must pre-exist\n"));
1075 #line 380 "../usage.c"
1076   puts(_("Options are specified by doubled hyphens and their name or by a single\n"
1077        "hyphen and the flag character.\n"));
1078 #line 921 "../makeshell.c"
1079   puts(_("\n"
1080        "= = = = = = = =\n\n"
1081        "This incarnation of genshell will produce\n"
1082        "a shell script to parse the options for %s:\n\n"));
1083 #line 166 "../enum.c"
1084   puts(_("  or an integer mask with any of the lower %d bits set\n"));
1085 #line 897 "../usage.c"
1086   puts(_("\t\t\t\t- is a set membership option\n"));
1087 #line 918 "../usage.c"
1088   puts(_("\t\t\t\t- must appear between %d and %d times\n"));
1089 #line 382 "../usage.c"
1090   puts(_("Options are specified by single or double hyphens and their name.\n"));
1091 #line 904 "../usage.c"
1092   puts(_("\t\t\t\t- may appear multiple times\n"));
1093 #line 891 "../usage.c"
1094   puts(_("\t\t\t\t- may not be preset\n"));
1095 #line 1309 "../usage.c"
1096   puts(_("   Arg Option-Name    Description\n"));
1097 #line 1245 "../usage.c"
1098   puts(_("  Flg Arg Option-Name    Description\n"));
1099 #line 1303 "../usage.c"
1100   puts(_("  Flg Arg Option-Name    Description\n"));
1101 #line 1304 "../usage.c"
1102   puts(_(" %3s %s"));
1103 #line 1310 "../usage.c"
1104   puts(_(" %3s %s"));
1105 #line 387 "../usage.c"
1106   puts(_("The '-#<number>' option may omit the hash char\n"));
1107 #line 383 "../usage.c"
1108   puts(_("All arguments are named options.\n"));
1109 #line 971 "../usage.c"
1110   puts(_(" - reading file %s"));
1111 #line 409 "../usage.c"
1112   puts(_("\n"
1113        "Please send bug reports to:  <%s>\n"));
1114 #line 100 "../version.c"
1115   puts(_("\n"
1116        "Please send bug reports to:  <%s>\n"));
1117 #line 129 "../version.c"
1118   puts(_("\n"
1119        "Please send bug reports to:  <%s>\n"));
1120 #line 903 "../usage.c"
1121   puts(_("\t\t\t\t- may NOT appear - preset only\n"));
1122 #line 944 "../usage.c"
1123   puts(_("\n"
1124        "The following option preset mechanisms are supported:\n"));
1125 #line 1192 "../usage.c"
1126   puts(_("\n"
1127        "The following option preset mechanisms are supported:\n"));
1128 #line 682 "../usage.c"
1129   puts(_("prohibits these options:\n"));
1130 #line 677 "../usage.c"
1131   puts(_("prohibits the option '%s'\n"));
1132 #line 81 "../numeric.c"
1133   puts(_("%s%ld to %ld"));
1134 #line 79 "../numeric.c"
1135   puts(_("%sgreater than or equal to %ld"));
1136 #line 75 "../numeric.c"
1137   puts(_("%s%ld exactly"));
1138 #line 68 "../numeric.c"
1139   puts(_("%sit must lie in one of the ranges:\n"));
1140 #line 68 "../numeric.c"
1141   puts(_("%sit must be in the range:\n"));
1142 #line 88 "../numeric.c"
1143   puts(_(", or\n"));
1144 #line 66 "../numeric.c"
1145   puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
1146 #line 77 "../numeric.c"
1147   puts(_("%sless than or equal to %ld"));
1148 #line 390 "../usage.c"
1149   puts(_("Operands and options may be intermixed.  They will be reordered.\n"));
1150 #line 652 "../usage.c"
1151   puts(_("requires the option '%s'\n"));
1152 #line 655 "../usage.c"
1153   puts(_("requires these options:\n"));
1154 #line 1321 "../usage.c"
1155   puts(_("   Arg Option-Name   Req?  Description\n"));
1156 #line 1315 "../usage.c"
1157   puts(_("  Flg Arg Option-Name   Req?  Description\n"));
1158 #line 167 "../enum.c"
1159   puts(_("or you may use a numeric representation.  Preceding these with a '!'\n"
1160        "will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
1161        "will set them all.  Multiple entries may be passed as an option\n"
1162        "argument list.\n"));
1163 #line 910 "../usage.c"
1164   puts(_("\t\t\t\t- may appear up to %d times\n"));
1165 #line 77 "../enum.c"
1166   puts(_("The valid \"%s\" option keywords are:\n"));
1167 #line 1152 "../usage.c"
1168   puts(_("The next option supports vendor supported extra options:"));
1169 #line 773 "../usage.c"
1170   puts(_("These additional options are:"));
1171   /* END-USAGE-TEXT */
1172 }
1173 #endif /* uncompilable code */
1174 #ifdef  __cplusplus
1175 }
1176 #endif
1177 /* ntpdc-opts.c ends here */
1178