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