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