xref: /freebsd/contrib/ntp/ntpd/ntpd-opts.c (revision 734e82fe33aa764367791a7d603b383996c6b40b)
1 /*
2  *  EDIT THIS FILE WITH CAUTION  (ntpd-opts.c)
3  *
4  *  It has been AutoGen-ed  June  6, 2023 at 04:36:50 AM by AutoGen 5.18.16
5  *  From the definitions    ntpd-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 ntpd 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 ntpd 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 "ntpd-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      (ntpd_opt_strs+0)
58 #define zLicenseDescrip (ntpd_opt_strs+341)
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 #ifdef __windows
70   extern int atoi(const char*);
71 #else
72 # include <stdlib.h>
73 #endif
74 
75 #ifndef NULL
76 #  define NULL 0
77 #endif
78 
79 /**
80  *  static const strings for ntpd options
81  */
82 static char const ntpd_opt_strs[3133] =
83 /*     0 */ "ntpd 4.2.8p17\n"
84             "Copyright (C) 1992-2023 The University of Delaware and Network Time Foundation, all rights reserved.\n"
85             "This is free software. It is licensed for use, modification and\n"
86             "redistribution under the terms of the NTP License, copies of which\n"
87             "can be seen at:\n"
88             "  <http://ntp.org/license>\n"
89             "  <http://opensource.org/licenses/ntp-license.php>\n\0"
90 /*   341 */ "Permission to use, copy, modify, and distribute this software and its\n"
91             "documentation for any purpose with or without fee is hereby granted,\n"
92             "provided that the above copyright notice appears in all copies and that\n"
93             "both the copyright notice and this permission notice appear in supporting\n"
94             "documentation, and that the name The University of Delaware not be used in\n"
95             "advertising or publicity pertaining to distribution of the software without\n"
96             "specific, written prior permission.  The University of Delaware and Network\n"
97             "Time Foundation makes no representations about the suitability this\n"
98             "software for any purpose.  It is provided \"as is\" without express or\n"
99             "implied warranty.\n\0"
100 /*  1009 */ "Force IPv4 DNS name resolution\0"
101 /*  1040 */ "IPV4\0"
102 /*  1045 */ "ipv4\0"
103 /*  1050 */ "Force IPv6 DNS name resolution\0"
104 /*  1081 */ "IPV6\0"
105 /*  1086 */ "ipv6\0"
106 /*  1091 */ "Require crypto authentication\0"
107 /*  1121 */ "AUTHREQ\0"
108 /*  1129 */ "authreq\0"
109 /*  1137 */ "Do not require crypto authentication\0"
110 /*  1174 */ "AUTHNOREQ\0"
111 /*  1184 */ "authnoreq\0"
112 /*  1194 */ "Allow us to sync to broadcast servers\0"
113 /*  1232 */ "BCASTSYNC\0"
114 /*  1242 */ "bcastsync\0"
115 /*  1252 */ "configuration file name\0"
116 /*  1276 */ "CONFIGFILE\0"
117 /*  1287 */ "configfile\0"
118 /*  1298 */ "Increase debug verbosity level\0"
119 /*  1329 */ "DEBUG_LEVEL\0"
120 /*  1341 */ "debug-level\0"
121 /*  1353 */ "Set the debug verbosity level\0"
122 /*  1383 */ "SET_DEBUG_LEVEL\0"
123 /*  1399 */ "set-debug-level\0"
124 /*  1415 */ "frequency drift file name\0"
125 /*  1441 */ "DRIFTFILE\0"
126 /*  1451 */ "driftfile\0"
127 /*  1461 */ "Allow the first adjustment to be Big\0"
128 /*  1498 */ "PANICGATE\0"
129 /*  1508 */ "panicgate\0"
130 /*  1518 */ "Step any initial offset correction.\0"
131 /*  1554 */ "FORCE_STEP_ONCE\0"
132 /*  1570 */ "force-step-once\0"
133 /*  1586 */ "Jail directory\0"
134 /*  1601 */ "JAILDIR\0"
135 /*  1609 */ "jaildir\0"
136 /*  1617 */ "built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs\0"
137 /*  1696 */ "Listen on an interface name or address\0"
138 /*  1735 */ "INTERFACE\0"
139 /*  1745 */ "interface\0"
140 /*  1755 */ "path to symmetric keys\0"
141 /*  1778 */ "KEYFILE\0"
142 /*  1786 */ "keyfile\0"
143 /*  1794 */ "path to the log file\0"
144 /*  1815 */ "LOGFILE\0"
145 /*  1823 */ "logfile\0"
146 /*  1831 */ "Do not listen to virtual interfaces\0"
147 /*  1867 */ "NOVIRTUALIPS\0"
148 /*  1880 */ "novirtualips\0"
149 /*  1893 */ "Modify Multimedia Timer (Windows only)\0"
150 /*  1932 */ "MODIFYMMTIMER\0"
151 /*  1946 */ "modifymmtimer\0"
152 /*  1960 */ "Do not fork\0"
153 /*  1972 */ "NOFORK\0"
154 /*  1979 */ "nofork\0"
155 /*  1986 */ "Run at high priority\0"
156 /*  2007 */ "NICE\0"
157 /*  2012 */ "nice\0"
158 /*  2017 */ "path to the PID file\0"
159 /*  2038 */ "PIDFILE\0"
160 /*  2046 */ "pidfile\0"
161 /*  2054 */ "Process priority\0"
162 /*  2071 */ "PRIORITY\0"
163 /*  2080 */ "priority\0"
164 /*  2089 */ "Set the time and quit\0"
165 /*  2111 */ "QUIT\0"
166 /*  2116 */ "quit\0"
167 /*  2121 */ "Broadcast/propagation delay\0"
168 /*  2149 */ "PROPAGATIONDELAY\0"
169 /*  2166 */ "propagationdelay\0"
170 /*  2183 */ "Save parsed configuration and quit\0"
171 /*  2218 */ "SAVECONFIGQUIT\0"
172 /*  2233 */ "saveconfigquit\0"
173 /*  2248 */ "Statistics file location\0"
174 /*  2273 */ "STATSDIR\0"
175 /*  2282 */ "statsdir\0"
176 /*  2291 */ "Trusted key number\0"
177 /*  2310 */ "TRUSTEDKEY\0"
178 /*  2321 */ "trustedkey\0"
179 /*  2332 */ "Run as userid (or userid:groupid)\0"
180 /*  2366 */ "USER\0"
181 /*  2371 */ "user\0"
182 /*  2376 */ "interval in seconds between scans for new or dropped interfaces\0"
183 /*  2440 */ "UPDATEINTERVAL\0"
184 /*  2455 */ "updateinterval\0"
185 /*  2470 */ "make ARG an ntp variable (RW)\0"
186 /*  2500 */ "VAR\0"
187 /*  2504 */ "var\0"
188 /*  2508 */ "make ARG an ntp variable (RW|DEF)\0"
189 /*  2542 */ "DVAR\0"
190 /*  2547 */ "dvar\0"
191 /*  2552 */ "Seconds to wait for first clock sync\0"
192 /*  2589 */ "WAIT_SYNC\0"
193 /*  2599 */ "wait-sync\0"
194 /*  2609 */ "Slew up to 600 seconds\0"
195 /*  2632 */ "SLEW\0"
196 /*  2637 */ "slew\0"
197 /*  2642 */ "Use CPU cycle counter (Windows only)\0"
198 /*  2679 */ "USEPCC\0"
199 /*  2686 */ "usepcc\0"
200 /*  2693 */ "Force CPU cycle counter use (Windows only)\0"
201 /*  2736 */ "PCCFREQ\0"
202 /*  2744 */ "pccfreq\0"
203 /*  2752 */ "Register with mDNS as a NTP server\0"
204 /*  2787 */ "MDNS\0"
205 /*  2792 */ "mdns\0"
206 /*  2797 */ "display extended usage information and exit\0"
207 /*  2841 */ "help\0"
208 /*  2846 */ "extended usage information passed thru pager\0"
209 /*  2891 */ "more-help\0"
210 /*  2901 */ "output version information and exit\0"
211 /*  2937 */ "version\0"
212 /*  2945 */ "NTPD\0"
213 /*  2950 */ "ntpd - NTP daemon program - Ver. 4.2.8p17\n"
214             "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n"
215             "\t\t[ <server1> ... <serverN> ]\n\0"
216 /*  3082 */ "https://bugs.ntp.org, bugs@ntp.org\0"
217 /*  3117 */ "\n\0"
218 /*  3119 */ "ntpd 4.2.8p17";
219 
220 /**
221  *  ipv4 option description with
222  *  "Must also have options" and "Incompatible options":
223  */
224 /** Descriptive text for the ipv4 option */
225 #define IPV4_DESC      (ntpd_opt_strs+1009)
226 /** Upper-cased name for the ipv4 option */
227 #define IPV4_NAME      (ntpd_opt_strs+1040)
228 /** Name string for the ipv4 option */
229 #define IPV4_name      (ntpd_opt_strs+1045)
230 /** Other options that appear in conjunction with the ipv4 option */
231 static int const aIpv4CantList[] = {
232     INDEX_OPT_IPV6, NO_EQUIVALENT };
233 /** Compiled in flag settings for the ipv4 option */
234 #define IPV4_FLAGS     (OPTST_DISABLED)
235 
236 /**
237  *  ipv6 option description with
238  *  "Must also have options" and "Incompatible options":
239  */
240 /** Descriptive text for the ipv6 option */
241 #define IPV6_DESC      (ntpd_opt_strs+1050)
242 /** Upper-cased name for the ipv6 option */
243 #define IPV6_NAME      (ntpd_opt_strs+1081)
244 /** Name string for the ipv6 option */
245 #define IPV6_name      (ntpd_opt_strs+1086)
246 /** Other options that appear in conjunction with the ipv6 option */
247 static int const aIpv6CantList[] = {
248     INDEX_OPT_IPV4, NO_EQUIVALENT };
249 /** Compiled in flag settings for the ipv6 option */
250 #define IPV6_FLAGS     (OPTST_DISABLED)
251 
252 /**
253  *  authreq option description with
254  *  "Must also have options" and "Incompatible options":
255  */
256 /** Descriptive text for the authreq option */
257 #define AUTHREQ_DESC      (ntpd_opt_strs+1091)
258 /** Upper-cased name for the authreq option */
259 #define AUTHREQ_NAME      (ntpd_opt_strs+1121)
260 /** Name string for the authreq option */
261 #define AUTHREQ_name      (ntpd_opt_strs+1129)
262 /** Other options that appear in conjunction with the authreq option */
263 static int const aAuthreqCantList[] = {
264     INDEX_OPT_AUTHNOREQ, NO_EQUIVALENT };
265 /** Compiled in flag settings for the authreq option */
266 #define AUTHREQ_FLAGS     (OPTST_DISABLED)
267 
268 /**
269  *  authnoreq option description with
270  *  "Must also have options" and "Incompatible options":
271  */
272 /** Descriptive text for the authnoreq option */
273 #define AUTHNOREQ_DESC      (ntpd_opt_strs+1137)
274 /** Upper-cased name for the authnoreq option */
275 #define AUTHNOREQ_NAME      (ntpd_opt_strs+1174)
276 /** Name string for the authnoreq option */
277 #define AUTHNOREQ_name      (ntpd_opt_strs+1184)
278 /** Other options that appear in conjunction with the authnoreq option */
279 static int const aAuthnoreqCantList[] = {
280     INDEX_OPT_AUTHREQ, NO_EQUIVALENT };
281 /** Compiled in flag settings for the authnoreq option */
282 #define AUTHNOREQ_FLAGS     (OPTST_DISABLED)
283 
284 /**
285  *  bcastsync option description:
286  */
287 /** Descriptive text for the bcastsync option */
288 #define BCASTSYNC_DESC      (ntpd_opt_strs+1194)
289 /** Upper-cased name for the bcastsync option */
290 #define BCASTSYNC_NAME      (ntpd_opt_strs+1232)
291 /** Name string for the bcastsync option */
292 #define BCASTSYNC_name      (ntpd_opt_strs+1242)
293 /** Compiled in flag settings for the bcastsync option */
294 #define BCASTSYNC_FLAGS     (OPTST_DISABLED)
295 
296 /**
297  *  configfile option description:
298  */
299 /** Descriptive text for the configfile option */
300 #define CONFIGFILE_DESC      (ntpd_opt_strs+1252)
301 /** Upper-cased name for the configfile option */
302 #define CONFIGFILE_NAME      (ntpd_opt_strs+1276)
303 /** Name string for the configfile option */
304 #define CONFIGFILE_name      (ntpd_opt_strs+1287)
305 /** Compiled in flag settings for the configfile option */
306 #define CONFIGFILE_FLAGS     (OPTST_DISABLED \
307         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
308 
309 /**
310  *  debug-level option description:
311  */
312 /** Descriptive text for the debug-level option */
313 #define DEBUG_LEVEL_DESC      (ntpd_opt_strs+1298)
314 /** Upper-cased name for the debug-level option */
315 #define DEBUG_LEVEL_NAME      (ntpd_opt_strs+1329)
316 /** Name string for the debug-level option */
317 #define DEBUG_LEVEL_name      (ntpd_opt_strs+1341)
318 /** Compiled in flag settings for the debug-level option */
319 #define DEBUG_LEVEL_FLAGS     (OPTST_DISABLED)
320 
321 /**
322  *  set-debug-level option description:
323  */
324 /** Descriptive text for the set-debug-level option */
325 #define SET_DEBUG_LEVEL_DESC      (ntpd_opt_strs+1353)
326 /** Upper-cased name for the set-debug-level option */
327 #define SET_DEBUG_LEVEL_NAME      (ntpd_opt_strs+1383)
328 /** Name string for the set-debug-level option */
329 #define SET_DEBUG_LEVEL_name      (ntpd_opt_strs+1399)
330 /** Compiled in flag settings for the set-debug-level option */
331 #define SET_DEBUG_LEVEL_FLAGS     (OPTST_DISABLED \
332         | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
333 
334 /**
335  *  driftfile option description:
336  */
337 /** Descriptive text for the driftfile option */
338 #define DRIFTFILE_DESC      (ntpd_opt_strs+1415)
339 /** Upper-cased name for the driftfile option */
340 #define DRIFTFILE_NAME      (ntpd_opt_strs+1441)
341 /** Name string for the driftfile option */
342 #define DRIFTFILE_name      (ntpd_opt_strs+1451)
343 /** Compiled in flag settings for the driftfile option */
344 #define DRIFTFILE_FLAGS     (OPTST_DISABLED \
345         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
346 
347 /**
348  *  panicgate option description:
349  */
350 /** Descriptive text for the panicgate option */
351 #define PANICGATE_DESC      (ntpd_opt_strs+1461)
352 /** Upper-cased name for the panicgate option */
353 #define PANICGATE_NAME      (ntpd_opt_strs+1498)
354 /** Name string for the panicgate option */
355 #define PANICGATE_name      (ntpd_opt_strs+1508)
356 /** Compiled in flag settings for the panicgate option */
357 #define PANICGATE_FLAGS     (OPTST_DISABLED)
358 
359 /**
360  *  force_step_once option description:
361  */
362 /** Descriptive text for the force_step_once option */
363 #define FORCE_STEP_ONCE_DESC      (ntpd_opt_strs+1518)
364 /** Upper-cased name for the force_step_once option */
365 #define FORCE_STEP_ONCE_NAME      (ntpd_opt_strs+1554)
366 /** Name string for the force_step_once option */
367 #define FORCE_STEP_ONCE_name      (ntpd_opt_strs+1570)
368 /** Compiled in flag settings for the force_step_once option */
369 #define FORCE_STEP_ONCE_FLAGS     (OPTST_DISABLED)
370 
371 /**
372  *  jaildir option description:
373  */
374 #ifdef HAVE_DROPROOT
375 /** Descriptive text for the jaildir option */
376 #define JAILDIR_DESC      (ntpd_opt_strs+1586)
377 /** Upper-cased name for the jaildir option */
378 #define JAILDIR_NAME      (ntpd_opt_strs+1601)
379 /** Name string for the jaildir option */
380 #define JAILDIR_name      (ntpd_opt_strs+1609)
381 /** Compiled in flag settings for the jaildir option */
382 #define JAILDIR_FLAGS     (OPTST_DISABLED \
383         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
384 
385 #else   /* disable jaildir */
386 #define JAILDIR_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
387 #define JAILDIR_NAME      NULL
388 /** Descriptive text for the jaildir option */
389 #define JAILDIR_DESC      (ntpd_opt_strs+1617)
390 #define JAILDIR_name      (ntpd_opt_strs+1609)
391 #endif  /* HAVE_DROPROOT */
392 
393 /**
394  *  interface option description:
395  */
396 /** Descriptive text for the interface option */
397 #define INTERFACE_DESC      (ntpd_opt_strs+1696)
398 /** Upper-cased name for the interface option */
399 #define INTERFACE_NAME      (ntpd_opt_strs+1735)
400 /** Name string for the interface option */
401 #define INTERFACE_name      (ntpd_opt_strs+1745)
402 /** Compiled in flag settings for the interface option */
403 #define INTERFACE_FLAGS     (OPTST_DISABLED | OPTST_STACKED \
404         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
405 
406 /**
407  *  keyfile option description:
408  */
409 /** Descriptive text for the keyfile option */
410 #define KEYFILE_DESC      (ntpd_opt_strs+1755)
411 /** Upper-cased name for the keyfile option */
412 #define KEYFILE_NAME      (ntpd_opt_strs+1778)
413 /** Name string for the keyfile option */
414 #define KEYFILE_name      (ntpd_opt_strs+1786)
415 /** Compiled in flag settings for the keyfile option */
416 #define KEYFILE_FLAGS     (OPTST_DISABLED \
417         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
418 
419 /**
420  *  logfile option description:
421  */
422 /** Descriptive text for the logfile option */
423 #define LOGFILE_DESC      (ntpd_opt_strs+1794)
424 /** Upper-cased name for the logfile option */
425 #define LOGFILE_NAME      (ntpd_opt_strs+1815)
426 /** Name string for the logfile option */
427 #define LOGFILE_name      (ntpd_opt_strs+1823)
428 /** Compiled in flag settings for the logfile option */
429 #define LOGFILE_FLAGS     (OPTST_DISABLED \
430         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
431 
432 /**
433  *  novirtualips option description:
434  */
435 /** Descriptive text for the novirtualips option */
436 #define NOVIRTUALIPS_DESC      (ntpd_opt_strs+1831)
437 /** Upper-cased name for the novirtualips option */
438 #define NOVIRTUALIPS_NAME      (ntpd_opt_strs+1867)
439 /** Name string for the novirtualips option */
440 #define NOVIRTUALIPS_name      (ntpd_opt_strs+1880)
441 /** Compiled in flag settings for the novirtualips option */
442 #define NOVIRTUALIPS_FLAGS     (OPTST_DISABLED)
443 
444 /**
445  *  modifymmtimer option description:
446  */
447 #ifdef SYS_WINNT
448 /** Descriptive text for the modifymmtimer option */
449 #define MODIFYMMTIMER_DESC      (ntpd_opt_strs+1893)
450 /** Upper-cased name for the modifymmtimer option */
451 #define MODIFYMMTIMER_NAME      (ntpd_opt_strs+1932)
452 /** Name string for the modifymmtimer option */
453 #define MODIFYMMTIMER_name      (ntpd_opt_strs+1946)
454 /** Compiled in flag settings for the modifymmtimer option */
455 #define MODIFYMMTIMER_FLAGS     (OPTST_DISABLED)
456 
457 #else   /* disable modifymmtimer */
458 #define MODIFYMMTIMER_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
459 #define MODIFYMMTIMER_NAME      NULL
460 #define MODIFYMMTIMER_DESC      NULL
461 #define MODIFYMMTIMER_name      NULL
462 #endif  /* SYS_WINNT */
463 
464 /**
465  *  nofork option description with
466  *  "Must also have options" and "Incompatible options":
467  */
468 /** Descriptive text for the nofork option */
469 #define NOFORK_DESC      (ntpd_opt_strs+1960)
470 /** Upper-cased name for the nofork option */
471 #define NOFORK_NAME      (ntpd_opt_strs+1972)
472 /** Name string for the nofork option */
473 #define NOFORK_name      (ntpd_opt_strs+1979)
474 /** Other options that appear in conjunction with the nofork option */
475 static int const aNoforkCantList[] = {
476     INDEX_OPT_WAIT_SYNC, NO_EQUIVALENT };
477 /** Compiled in flag settings for the nofork option */
478 #define NOFORK_FLAGS     (OPTST_DISABLED)
479 
480 /**
481  *  nice option description:
482  */
483 /** Descriptive text for the nice option */
484 #define NICE_DESC      (ntpd_opt_strs+1986)
485 /** Upper-cased name for the nice option */
486 #define NICE_NAME      (ntpd_opt_strs+2007)
487 /** Name string for the nice option */
488 #define NICE_name      (ntpd_opt_strs+2012)
489 /** Compiled in flag settings for the nice option */
490 #define NICE_FLAGS     (OPTST_DISABLED)
491 
492 /**
493  *  pidfile option description:
494  */
495 /** Descriptive text for the pidfile option */
496 #define PIDFILE_DESC      (ntpd_opt_strs+2017)
497 /** Upper-cased name for the pidfile option */
498 #define PIDFILE_NAME      (ntpd_opt_strs+2038)
499 /** Name string for the pidfile option */
500 #define PIDFILE_name      (ntpd_opt_strs+2046)
501 /** Compiled in flag settings for the pidfile option */
502 #define PIDFILE_FLAGS     (OPTST_DISABLED \
503         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
504 
505 /**
506  *  priority option description:
507  */
508 /** Descriptive text for the priority option */
509 #define PRIORITY_DESC      (ntpd_opt_strs+2054)
510 /** Upper-cased name for the priority option */
511 #define PRIORITY_NAME      (ntpd_opt_strs+2071)
512 /** Name string for the priority option */
513 #define PRIORITY_name      (ntpd_opt_strs+2080)
514 /** Compiled in flag settings for the priority option */
515 #define PRIORITY_FLAGS     (OPTST_DISABLED \
516         | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
517 
518 /**
519  *  quit option description with
520  *  "Must also have options" and "Incompatible options":
521  */
522 /** Descriptive text for the quit option */
523 #define QUIT_DESC      (ntpd_opt_strs+2089)
524 /** Upper-cased name for the quit option */
525 #define QUIT_NAME      (ntpd_opt_strs+2111)
526 /** Name string for the quit option */
527 #define QUIT_name      (ntpd_opt_strs+2116)
528 /** Other options that appear in conjunction with the quit option */
529 static int const aQuitCantList[] = {
530     INDEX_OPT_SAVECONFIGQUIT,
531     INDEX_OPT_WAIT_SYNC, NO_EQUIVALENT };
532 /** Compiled in flag settings for the quit option */
533 #define QUIT_FLAGS     (OPTST_DISABLED)
534 
535 /**
536  *  propagationdelay option description:
537  */
538 /** Descriptive text for the propagationdelay option */
539 #define PROPAGATIONDELAY_DESC      (ntpd_opt_strs+2121)
540 /** Upper-cased name for the propagationdelay option */
541 #define PROPAGATIONDELAY_NAME      (ntpd_opt_strs+2149)
542 /** Name string for the propagationdelay option */
543 #define PROPAGATIONDELAY_name      (ntpd_opt_strs+2166)
544 /** Compiled in flag settings for the propagationdelay option */
545 #define PROPAGATIONDELAY_FLAGS     (OPTST_DISABLED \
546         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
547 
548 /**
549  *  saveconfigquit option description with
550  *  "Must also have options" and "Incompatible options":
551  */
552 #ifdef SAVECONFIG
553 /** Descriptive text for the saveconfigquit option */
554 #define SAVECONFIGQUIT_DESC      (ntpd_opt_strs+2183)
555 /** Upper-cased name for the saveconfigquit option */
556 #define SAVECONFIGQUIT_NAME      (ntpd_opt_strs+2218)
557 /** Name string for the saveconfigquit option */
558 #define SAVECONFIGQUIT_name      (ntpd_opt_strs+2233)
559 /** Other options that appear in conjunction with the saveconfigquit option */
560 static int const aSaveconfigquitCantList[] = {
561     INDEX_OPT_QUIT,
562     INDEX_OPT_WAIT_SYNC, NO_EQUIVALENT };
563 /** Compiled in flag settings for the saveconfigquit option */
564 #define SAVECONFIGQUIT_FLAGS     (OPTST_DISABLED \
565         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
566 
567 #else   /* disable saveconfigquit */
568 #define SAVECONFIGQUIT_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
569 #define aSaveconfigquitCantList   NULL
570 #define SAVECONFIGQUIT_NAME      NULL
571 #define SAVECONFIGQUIT_DESC      NULL
572 #define SAVECONFIGQUIT_name      NULL
573 #endif  /* SAVECONFIG */
574 
575 /**
576  *  statsdir option description:
577  */
578 /** Descriptive text for the statsdir option */
579 #define STATSDIR_DESC      (ntpd_opt_strs+2248)
580 /** Upper-cased name for the statsdir option */
581 #define STATSDIR_NAME      (ntpd_opt_strs+2273)
582 /** Name string for the statsdir option */
583 #define STATSDIR_name      (ntpd_opt_strs+2282)
584 /** Compiled in flag settings for the statsdir option */
585 #define STATSDIR_FLAGS     (OPTST_DISABLED \
586         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
587 
588 /**
589  *  trustedkey option description:
590  */
591 /** Descriptive text for the trustedkey option */
592 #define TRUSTEDKEY_DESC      (ntpd_opt_strs+2291)
593 /** Upper-cased name for the trustedkey option */
594 #define TRUSTEDKEY_NAME      (ntpd_opt_strs+2310)
595 /** Name string for the trustedkey option */
596 #define TRUSTEDKEY_name      (ntpd_opt_strs+2321)
597 /** Compiled in flag settings for the trustedkey option */
598 #define TRUSTEDKEY_FLAGS     (OPTST_DISABLED | OPTST_STACKED \
599         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
600 
601 /**
602  *  user option description:
603  */
604 #ifdef HAVE_DROPROOT
605 /** Descriptive text for the user option */
606 #define USER_DESC      (ntpd_opt_strs+2332)
607 /** Upper-cased name for the user option */
608 #define USER_NAME      (ntpd_opt_strs+2366)
609 /** Name string for the user option */
610 #define USER_name      (ntpd_opt_strs+2371)
611 /** Compiled in flag settings for the user option */
612 #define USER_FLAGS     (OPTST_DISABLED \
613         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
614 
615 #else   /* disable user */
616 #define USER_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
617 #define USER_NAME      NULL
618 /** Descriptive text for the user option */
619 #define USER_DESC      (ntpd_opt_strs+1617)
620 #define USER_name      (ntpd_opt_strs+2371)
621 #endif  /* HAVE_DROPROOT */
622 
623 /**
624  *  updateinterval option description:
625  */
626 /** Descriptive text for the updateinterval option */
627 #define UPDATEINTERVAL_DESC      (ntpd_opt_strs+2376)
628 /** Upper-cased name for the updateinterval option */
629 #define UPDATEINTERVAL_NAME      (ntpd_opt_strs+2440)
630 /** Name string for the updateinterval option */
631 #define UPDATEINTERVAL_name      (ntpd_opt_strs+2455)
632 /** Compiled in flag settings for the updateinterval option */
633 #define UPDATEINTERVAL_FLAGS     (OPTST_DISABLED \
634         | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
635 
636 /**
637  *  var option description:
638  */
639 /** Descriptive text for the var option */
640 #define VAR_DESC      (ntpd_opt_strs+2470)
641 /** Upper-cased name for the var option */
642 #define VAR_NAME      (ntpd_opt_strs+2500)
643 /** Name string for the var option */
644 #define VAR_name      (ntpd_opt_strs+2504)
645 /** Compiled in flag settings for the var option */
646 #define VAR_FLAGS     (OPTST_DISABLED | OPTST_STACKED \
647         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
648 
649 /**
650  *  dvar option description:
651  */
652 /** Descriptive text for the dvar option */
653 #define DVAR_DESC      (ntpd_opt_strs+2508)
654 /** Upper-cased name for the dvar option */
655 #define DVAR_NAME      (ntpd_opt_strs+2542)
656 /** Name string for the dvar option */
657 #define DVAR_name      (ntpd_opt_strs+2547)
658 /** Compiled in flag settings for the dvar option */
659 #define DVAR_FLAGS     (OPTST_DISABLED | OPTST_STACKED \
660         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
661 
662 /**
663  *  wait-sync option description with
664  *  "Must also have options" and "Incompatible options":
665  */
666 #ifdef HAVE_WORKING_FORK
667 /** Descriptive text for the wait-sync option */
668 #define WAIT_SYNC_DESC      (ntpd_opt_strs+2552)
669 /** Upper-cased name for the wait-sync option */
670 #define WAIT_SYNC_NAME      (ntpd_opt_strs+2589)
671 /** Name string for the wait-sync option */
672 #define WAIT_SYNC_name      (ntpd_opt_strs+2599)
673 /** Other options that appear in conjunction with the wait-sync option */
674 static int const aWait_SyncCantList[] = {
675     INDEX_OPT_NOFORK,
676     INDEX_OPT_QUIT,
677     INDEX_OPT_SAVECONFIGQUIT, NO_EQUIVALENT };
678 /** Compiled in flag settings for the wait-sync option */
679 #define WAIT_SYNC_FLAGS     (OPTST_DISABLED \
680         | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
681 
682 #else   /* disable wait-sync */
683 #define WAIT_SYNC_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
684 #define aWait_SyncCantList   NULL
685 #define WAIT_SYNC_NAME      NULL
686 #define WAIT_SYNC_DESC      NULL
687 #define WAIT_SYNC_name      NULL
688 #endif  /* HAVE_WORKING_FORK */
689 
690 /**
691  *  slew option description:
692  */
693 /** Descriptive text for the slew option */
694 #define SLEW_DESC      (ntpd_opt_strs+2609)
695 /** Upper-cased name for the slew option */
696 #define SLEW_NAME      (ntpd_opt_strs+2632)
697 /** Name string for the slew option */
698 #define SLEW_name      (ntpd_opt_strs+2637)
699 /** Compiled in flag settings for the slew option */
700 #define SLEW_FLAGS     (OPTST_DISABLED)
701 
702 /**
703  *  usepcc option description:
704  */
705 #ifdef SYS_WINNT
706 /** Descriptive text for the usepcc option */
707 #define USEPCC_DESC      (ntpd_opt_strs+2642)
708 /** Upper-cased name for the usepcc option */
709 #define USEPCC_NAME      (ntpd_opt_strs+2679)
710 /** Name string for the usepcc option */
711 #define USEPCC_name      (ntpd_opt_strs+2686)
712 /** Compiled in flag settings for the usepcc option */
713 #define USEPCC_FLAGS     (OPTST_DISABLED)
714 
715 #else   /* disable usepcc */
716 #define USEPCC_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
717 #define USEPCC_NAME      NULL
718 #define USEPCC_DESC      NULL
719 #define USEPCC_name      NULL
720 #endif  /* SYS_WINNT */
721 
722 /**
723  *  pccfreq option description:
724  */
725 #ifdef SYS_WINNT
726 /** Descriptive text for the pccfreq option */
727 #define PCCFREQ_DESC      (ntpd_opt_strs+2693)
728 /** Upper-cased name for the pccfreq option */
729 #define PCCFREQ_NAME      (ntpd_opt_strs+2736)
730 /** Name string for the pccfreq option */
731 #define PCCFREQ_name      (ntpd_opt_strs+2744)
732 /** Compiled in flag settings for the pccfreq option */
733 #define PCCFREQ_FLAGS     (OPTST_DISABLED \
734         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
735 
736 #else   /* disable pccfreq */
737 #define PCCFREQ_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
738 #define PCCFREQ_NAME      NULL
739 #define PCCFREQ_DESC      NULL
740 #define PCCFREQ_name      NULL
741 #endif  /* SYS_WINNT */
742 
743 /**
744  *  mdns option description:
745  */
746 #ifdef HAVE_DNSREGISTRATION
747 /** Descriptive text for the mdns option */
748 #define MDNS_DESC      (ntpd_opt_strs+2752)
749 /** Upper-cased name for the mdns option */
750 #define MDNS_NAME      (ntpd_opt_strs+2787)
751 /** Name string for the mdns option */
752 #define MDNS_name      (ntpd_opt_strs+2792)
753 /** Compiled in flag settings for the mdns option */
754 #define MDNS_FLAGS     (OPTST_DISABLED)
755 
756 #else   /* disable mdns */
757 #define MDNS_FLAGS     (OPTST_OMITTED | OPTST_NO_INIT)
758 #define MDNS_NAME      NULL
759 #define MDNS_DESC      NULL
760 #define MDNS_name      NULL
761 #endif  /* HAVE_DNSREGISTRATION */
762 
763 /*
764  *  Help/More_Help/Version option descriptions:
765  */
766 #define HELP_DESC       (ntpd_opt_strs+2797)
767 #define HELP_name       (ntpd_opt_strs+2841)
768 #ifdef HAVE_WORKING_FORK
769 #define MORE_HELP_DESC  (ntpd_opt_strs+2846)
770 #define MORE_HELP_name  (ntpd_opt_strs+2891)
771 #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
772 #else
773 #define MORE_HELP_DESC  HELP_DESC
774 #define MORE_HELP_name  HELP_name
775 #define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
776 #endif
777 #ifdef NO_OPTIONAL_OPT_ARGS
778 #  define VER_FLAGS     (OPTST_IMM | OPTST_NO_INIT)
779 #else
780 #  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
781                          OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
782 #endif
783 #define VER_DESC        (ntpd_opt_strs+2901)
784 #define VER_name        (ntpd_opt_strs+2937)
785 /**
786  *  Declare option callback procedures
787  */
788 extern tOptProc
789     ntpOptionPrintVersion, optionBooleanVal,      optionNestedVal,
790     optionNumericVal,      optionPagedUsage,      optionResetOpt,
791     optionStackArg,        optionTimeDate,        optionTimeVal,
792     optionUnstackArg,      optionVendorOption;
793 static tOptProc
794     doOptDebug_Level, doUsageOpt;
795 #define VER_PROC        ntpOptionPrintVersion
796 
797 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
798 /**
799  *  Define the ntpd Option Descriptions.
800  * This is an array of OPTION_CT entries, one for each
801  * option that the ntpd program responds to.
802  */
803 static tOptDesc optDesc[OPTION_CT] = {
804   {  /* entry idx, value */ 0, VALUE_OPT_IPV4,
805      /* equiv idx, value */ 0, VALUE_OPT_IPV4,
806      /* equivalenced to  */ NO_EQUIVALENT,
807      /* min, max, act ct */ 0, 1, 0,
808      /* opt state flags  */ IPV4_FLAGS, 0,
809      /* last opt argumnt */ { NULL }, /* --ipv4 */
810      /* arg list/cookie  */ NULL,
811      /* must/cannot opts */ NULL, aIpv4CantList,
812      /* option proc      */ NULL,
813      /* desc, NAME, name */ IPV4_DESC, IPV4_NAME, IPV4_name,
814      /* disablement strs */ NULL, NULL },
815 
816   {  /* entry idx, value */ 1, VALUE_OPT_IPV6,
817      /* equiv idx, value */ 1, VALUE_OPT_IPV6,
818      /* equivalenced to  */ NO_EQUIVALENT,
819      /* min, max, act ct */ 0, 1, 0,
820      /* opt state flags  */ IPV6_FLAGS, 0,
821      /* last opt argumnt */ { NULL }, /* --ipv6 */
822      /* arg list/cookie  */ NULL,
823      /* must/cannot opts */ NULL, aIpv6CantList,
824      /* option proc      */ NULL,
825      /* desc, NAME, name */ IPV6_DESC, IPV6_NAME, IPV6_name,
826      /* disablement strs */ NULL, NULL },
827 
828   {  /* entry idx, value */ 2, VALUE_OPT_AUTHREQ,
829      /* equiv idx, value */ 2, VALUE_OPT_AUTHREQ,
830      /* equivalenced to  */ NO_EQUIVALENT,
831      /* min, max, act ct */ 0, 1, 0,
832      /* opt state flags  */ AUTHREQ_FLAGS, 0,
833      /* last opt argumnt */ { NULL }, /* --authreq */
834      /* arg list/cookie  */ NULL,
835      /* must/cannot opts */ NULL, aAuthreqCantList,
836      /* option proc      */ NULL,
837      /* desc, NAME, name */ AUTHREQ_DESC, AUTHREQ_NAME, AUTHREQ_name,
838      /* disablement strs */ NULL, NULL },
839 
840   {  /* entry idx, value */ 3, VALUE_OPT_AUTHNOREQ,
841      /* equiv idx, value */ 3, VALUE_OPT_AUTHNOREQ,
842      /* equivalenced to  */ NO_EQUIVALENT,
843      /* min, max, act ct */ 0, 1, 0,
844      /* opt state flags  */ AUTHNOREQ_FLAGS, 0,
845      /* last opt argumnt */ { NULL }, /* --authnoreq */
846      /* arg list/cookie  */ NULL,
847      /* must/cannot opts */ NULL, aAuthnoreqCantList,
848      /* option proc      */ NULL,
849      /* desc, NAME, name */ AUTHNOREQ_DESC, AUTHNOREQ_NAME, AUTHNOREQ_name,
850      /* disablement strs */ NULL, NULL },
851 
852   {  /* entry idx, value */ 4, VALUE_OPT_BCASTSYNC,
853      /* equiv idx, value */ 4, VALUE_OPT_BCASTSYNC,
854      /* equivalenced to  */ NO_EQUIVALENT,
855      /* min, max, act ct */ 0, 1, 0,
856      /* opt state flags  */ BCASTSYNC_FLAGS, 0,
857      /* last opt argumnt */ { NULL }, /* --bcastsync */
858      /* arg list/cookie  */ NULL,
859      /* must/cannot opts */ NULL, NULL,
860      /* option proc      */ NULL,
861      /* desc, NAME, name */ BCASTSYNC_DESC, BCASTSYNC_NAME, BCASTSYNC_name,
862      /* disablement strs */ NULL, NULL },
863 
864   {  /* entry idx, value */ 5, VALUE_OPT_CONFIGFILE,
865      /* equiv idx, value */ 5, VALUE_OPT_CONFIGFILE,
866      /* equivalenced to  */ NO_EQUIVALENT,
867      /* min, max, act ct */ 0, 1, 0,
868      /* opt state flags  */ CONFIGFILE_FLAGS, 0,
869      /* last opt argumnt */ { NULL }, /* --configfile */
870      /* arg list/cookie  */ NULL,
871      /* must/cannot opts */ NULL, NULL,
872      /* option proc      */ NULL,
873      /* desc, NAME, name */ CONFIGFILE_DESC, CONFIGFILE_NAME, CONFIGFILE_name,
874      /* disablement strs */ NULL, NULL },
875 
876   {  /* entry idx, value */ 6, VALUE_OPT_DEBUG_LEVEL,
877      /* equiv idx, value */ 6, VALUE_OPT_DEBUG_LEVEL,
878      /* equivalenced to  */ NO_EQUIVALENT,
879      /* min, max, act ct */ 0, NOLIMIT, 0,
880      /* opt state flags  */ DEBUG_LEVEL_FLAGS, 0,
881      /* last opt argumnt */ { NULL }, /* --debug-level */
882      /* arg list/cookie  */ NULL,
883      /* must/cannot opts */ NULL, NULL,
884      /* option proc      */ doOptDebug_Level,
885      /* desc, NAME, name */ DEBUG_LEVEL_DESC, DEBUG_LEVEL_NAME, DEBUG_LEVEL_name,
886      /* disablement strs */ NULL, NULL },
887 
888   {  /* entry idx, value */ 7, VALUE_OPT_SET_DEBUG_LEVEL,
889      /* equiv idx, value */ 7, VALUE_OPT_SET_DEBUG_LEVEL,
890      /* equivalenced to  */ NO_EQUIVALENT,
891      /* min, max, act ct */ 0, NOLIMIT, 0,
892      /* opt state flags  */ SET_DEBUG_LEVEL_FLAGS, 0,
893      /* last opt argumnt */ { NULL }, /* --set-debug-level */
894      /* arg list/cookie  */ NULL,
895      /* must/cannot opts */ NULL, NULL,
896      /* option proc      */ optionNumericVal,
897      /* desc, NAME, name */ SET_DEBUG_LEVEL_DESC, SET_DEBUG_LEVEL_NAME, SET_DEBUG_LEVEL_name,
898      /* disablement strs */ NULL, NULL },
899 
900   {  /* entry idx, value */ 8, VALUE_OPT_DRIFTFILE,
901      /* equiv idx, value */ 8, VALUE_OPT_DRIFTFILE,
902      /* equivalenced to  */ NO_EQUIVALENT,
903      /* min, max, act ct */ 0, 1, 0,
904      /* opt state flags  */ DRIFTFILE_FLAGS, 0,
905      /* last opt argumnt */ { NULL }, /* --driftfile */
906      /* arg list/cookie  */ NULL,
907      /* must/cannot opts */ NULL, NULL,
908      /* option proc      */ NULL,
909      /* desc, NAME, name */ DRIFTFILE_DESC, DRIFTFILE_NAME, DRIFTFILE_name,
910      /* disablement strs */ NULL, NULL },
911 
912   {  /* entry idx, value */ 9, VALUE_OPT_PANICGATE,
913      /* equiv idx, value */ 9, VALUE_OPT_PANICGATE,
914      /* equivalenced to  */ NO_EQUIVALENT,
915      /* min, max, act ct */ 0, NOLIMIT, 0,
916      /* opt state flags  */ PANICGATE_FLAGS, 0,
917      /* last opt argumnt */ { NULL }, /* --panicgate */
918      /* arg list/cookie  */ NULL,
919      /* must/cannot opts */ NULL, NULL,
920      /* option proc      */ NULL,
921      /* desc, NAME, name */ PANICGATE_DESC, PANICGATE_NAME, PANICGATE_name,
922      /* disablement strs */ NULL, NULL },
923 
924   {  /* entry idx, value */ 10, VALUE_OPT_FORCE_STEP_ONCE,
925      /* equiv idx, value */ 10, VALUE_OPT_FORCE_STEP_ONCE,
926      /* equivalenced to  */ NO_EQUIVALENT,
927      /* min, max, act ct */ 0, 1, 0,
928      /* opt state flags  */ FORCE_STEP_ONCE_FLAGS, 0,
929      /* last opt argumnt */ { NULL }, /* --force_step_once */
930      /* arg list/cookie  */ NULL,
931      /* must/cannot opts */ NULL, NULL,
932      /* option proc      */ NULL,
933      /* desc, NAME, name */ FORCE_STEP_ONCE_DESC, FORCE_STEP_ONCE_NAME, FORCE_STEP_ONCE_name,
934      /* disablement strs */ NULL, NULL },
935 
936   {  /* entry idx, value */ 11, VALUE_OPT_JAILDIR,
937      /* equiv idx, value */ 11, VALUE_OPT_JAILDIR,
938      /* equivalenced to  */ NO_EQUIVALENT,
939      /* min, max, act ct */ 0, 1, 0,
940      /* opt state flags  */ JAILDIR_FLAGS, 0,
941      /* last opt argumnt */ { NULL }, /* --jaildir */
942      /* arg list/cookie  */ NULL,
943      /* must/cannot opts */ NULL, NULL,
944      /* option proc      */ NULL,
945      /* desc, NAME, name */ JAILDIR_DESC, JAILDIR_NAME, JAILDIR_name,
946      /* disablement strs */ NULL, NULL },
947 
948   {  /* entry idx, value */ 12, VALUE_OPT_INTERFACE,
949      /* equiv idx, value */ 12, VALUE_OPT_INTERFACE,
950      /* equivalenced to  */ NO_EQUIVALENT,
951      /* min, max, act ct */ 0, NOLIMIT, 0,
952      /* opt state flags  */ INTERFACE_FLAGS, 0,
953      /* last opt argumnt */ { NULL }, /* --interface */
954      /* arg list/cookie  */ NULL,
955      /* must/cannot opts */ NULL, NULL,
956      /* option proc      */ optionStackArg,
957      /* desc, NAME, name */ INTERFACE_DESC, INTERFACE_NAME, INTERFACE_name,
958      /* disablement strs */ NULL, NULL },
959 
960   {  /* entry idx, value */ 13, VALUE_OPT_KEYFILE,
961      /* equiv idx, value */ 13, VALUE_OPT_KEYFILE,
962      /* equivalenced to  */ NO_EQUIVALENT,
963      /* min, max, act ct */ 0, 1, 0,
964      /* opt state flags  */ KEYFILE_FLAGS, 0,
965      /* last opt argumnt */ { NULL }, /* --keyfile */
966      /* arg list/cookie  */ NULL,
967      /* must/cannot opts */ NULL, NULL,
968      /* option proc      */ NULL,
969      /* desc, NAME, name */ KEYFILE_DESC, KEYFILE_NAME, KEYFILE_name,
970      /* disablement strs */ NULL, NULL },
971 
972   {  /* entry idx, value */ 14, VALUE_OPT_LOGFILE,
973      /* equiv idx, value */ 14, VALUE_OPT_LOGFILE,
974      /* equivalenced to  */ NO_EQUIVALENT,
975      /* min, max, act ct */ 0, 1, 0,
976      /* opt state flags  */ LOGFILE_FLAGS, 0,
977      /* last opt argumnt */ { NULL }, /* --logfile */
978      /* arg list/cookie  */ NULL,
979      /* must/cannot opts */ NULL, NULL,
980      /* option proc      */ NULL,
981      /* desc, NAME, name */ LOGFILE_DESC, LOGFILE_NAME, LOGFILE_name,
982      /* disablement strs */ NULL, NULL },
983 
984   {  /* entry idx, value */ 15, VALUE_OPT_NOVIRTUALIPS,
985      /* equiv idx, value */ 15, VALUE_OPT_NOVIRTUALIPS,
986      /* equivalenced to  */ NO_EQUIVALENT,
987      /* min, max, act ct */ 0, 1, 0,
988      /* opt state flags  */ NOVIRTUALIPS_FLAGS, 0,
989      /* last opt argumnt */ { NULL }, /* --novirtualips */
990      /* arg list/cookie  */ NULL,
991      /* must/cannot opts */ NULL, NULL,
992      /* option proc      */ NULL,
993      /* desc, NAME, name */ NOVIRTUALIPS_DESC, NOVIRTUALIPS_NAME, NOVIRTUALIPS_name,
994      /* disablement strs */ NULL, NULL },
995 
996   {  /* entry idx, value */ 16, VALUE_OPT_MODIFYMMTIMER,
997      /* equiv idx, value */ 16, VALUE_OPT_MODIFYMMTIMER,
998      /* equivalenced to  */ NO_EQUIVALENT,
999      /* min, max, act ct */ 0, 1, 0,
1000      /* opt state flags  */ MODIFYMMTIMER_FLAGS, 0,
1001      /* last opt argumnt */ { NULL }, /* --modifymmtimer */
1002      /* arg list/cookie  */ NULL,
1003      /* must/cannot opts */ NULL, NULL,
1004      /* option proc      */ NULL,
1005      /* desc, NAME, name */ MODIFYMMTIMER_DESC, MODIFYMMTIMER_NAME, MODIFYMMTIMER_name,
1006      /* disablement strs */ NULL, NULL },
1007 
1008   {  /* entry idx, value */ 17, VALUE_OPT_NOFORK,
1009      /* equiv idx, value */ 17, VALUE_OPT_NOFORK,
1010      /* equivalenced to  */ NO_EQUIVALENT,
1011      /* min, max, act ct */ 0, 1, 0,
1012      /* opt state flags  */ NOFORK_FLAGS, 0,
1013      /* last opt argumnt */ { NULL }, /* --nofork */
1014      /* arg list/cookie  */ NULL,
1015      /* must/cannot opts */ NULL, aNoforkCantList,
1016      /* option proc      */ NULL,
1017      /* desc, NAME, name */ NOFORK_DESC, NOFORK_NAME, NOFORK_name,
1018      /* disablement strs */ NULL, NULL },
1019 
1020   {  /* entry idx, value */ 18, VALUE_OPT_NICE,
1021      /* equiv idx, value */ 18, VALUE_OPT_NICE,
1022      /* equivalenced to  */ NO_EQUIVALENT,
1023      /* min, max, act ct */ 0, 1, 0,
1024      /* opt state flags  */ NICE_FLAGS, 0,
1025      /* last opt argumnt */ { NULL }, /* --nice */
1026      /* arg list/cookie  */ NULL,
1027      /* must/cannot opts */ NULL, NULL,
1028      /* option proc      */ NULL,
1029      /* desc, NAME, name */ NICE_DESC, NICE_NAME, NICE_name,
1030      /* disablement strs */ NULL, NULL },
1031 
1032   {  /* entry idx, value */ 19, VALUE_OPT_PIDFILE,
1033      /* equiv idx, value */ 19, VALUE_OPT_PIDFILE,
1034      /* equivalenced to  */ NO_EQUIVALENT,
1035      /* min, max, act ct */ 0, 1, 0,
1036      /* opt state flags  */ PIDFILE_FLAGS, 0,
1037      /* last opt argumnt */ { NULL }, /* --pidfile */
1038      /* arg list/cookie  */ NULL,
1039      /* must/cannot opts */ NULL, NULL,
1040      /* option proc      */ NULL,
1041      /* desc, NAME, name */ PIDFILE_DESC, PIDFILE_NAME, PIDFILE_name,
1042      /* disablement strs */ NULL, NULL },
1043 
1044   {  /* entry idx, value */ 20, VALUE_OPT_PRIORITY,
1045      /* equiv idx, value */ 20, VALUE_OPT_PRIORITY,
1046      /* equivalenced to  */ NO_EQUIVALENT,
1047      /* min, max, act ct */ 0, 1, 0,
1048      /* opt state flags  */ PRIORITY_FLAGS, 0,
1049      /* last opt argumnt */ { NULL }, /* --priority */
1050      /* arg list/cookie  */ NULL,
1051      /* must/cannot opts */ NULL, NULL,
1052      /* option proc      */ optionNumericVal,
1053      /* desc, NAME, name */ PRIORITY_DESC, PRIORITY_NAME, PRIORITY_name,
1054      /* disablement strs */ NULL, NULL },
1055 
1056   {  /* entry idx, value */ 21, VALUE_OPT_QUIT,
1057      /* equiv idx, value */ 21, VALUE_OPT_QUIT,
1058      /* equivalenced to  */ NO_EQUIVALENT,
1059      /* min, max, act ct */ 0, 1, 0,
1060      /* opt state flags  */ QUIT_FLAGS, 0,
1061      /* last opt argumnt */ { NULL }, /* --quit */
1062      /* arg list/cookie  */ NULL,
1063      /* must/cannot opts */ NULL, aQuitCantList,
1064      /* option proc      */ NULL,
1065      /* desc, NAME, name */ QUIT_DESC, QUIT_NAME, QUIT_name,
1066      /* disablement strs */ NULL, NULL },
1067 
1068   {  /* entry idx, value */ 22, VALUE_OPT_PROPAGATIONDELAY,
1069      /* equiv idx, value */ 22, VALUE_OPT_PROPAGATIONDELAY,
1070      /* equivalenced to  */ NO_EQUIVALENT,
1071      /* min, max, act ct */ 0, 1, 0,
1072      /* opt state flags  */ PROPAGATIONDELAY_FLAGS, 0,
1073      /* last opt argumnt */ { NULL }, /* --propagationdelay */
1074      /* arg list/cookie  */ NULL,
1075      /* must/cannot opts */ NULL, NULL,
1076      /* option proc      */ NULL,
1077      /* desc, NAME, name */ PROPAGATIONDELAY_DESC, PROPAGATIONDELAY_NAME, PROPAGATIONDELAY_name,
1078      /* disablement strs */ NULL, NULL },
1079 
1080   {  /* entry idx, value */ 23, VALUE_OPT_SAVECONFIGQUIT,
1081      /* equiv idx, value */ 23, VALUE_OPT_SAVECONFIGQUIT,
1082      /* equivalenced to  */ NO_EQUIVALENT,
1083      /* min, max, act ct */ 0, 1, 0,
1084      /* opt state flags  */ SAVECONFIGQUIT_FLAGS, 0,
1085      /* last opt argumnt */ { NULL }, /* --saveconfigquit */
1086      /* arg list/cookie  */ NULL,
1087      /* must/cannot opts */ NULL, aSaveconfigquitCantList,
1088      /* option proc      */ NULL,
1089      /* desc, NAME, name */ SAVECONFIGQUIT_DESC, SAVECONFIGQUIT_NAME, SAVECONFIGQUIT_name,
1090      /* disablement strs */ NULL, NULL },
1091 
1092   {  /* entry idx, value */ 24, VALUE_OPT_STATSDIR,
1093      /* equiv idx, value */ 24, VALUE_OPT_STATSDIR,
1094      /* equivalenced to  */ NO_EQUIVALENT,
1095      /* min, max, act ct */ 0, 1, 0,
1096      /* opt state flags  */ STATSDIR_FLAGS, 0,
1097      /* last opt argumnt */ { NULL }, /* --statsdir */
1098      /* arg list/cookie  */ NULL,
1099      /* must/cannot opts */ NULL, NULL,
1100      /* option proc      */ NULL,
1101      /* desc, NAME, name */ STATSDIR_DESC, STATSDIR_NAME, STATSDIR_name,
1102      /* disablement strs */ NULL, NULL },
1103 
1104   {  /* entry idx, value */ 25, VALUE_OPT_TRUSTEDKEY,
1105      /* equiv idx, value */ 25, VALUE_OPT_TRUSTEDKEY,
1106      /* equivalenced to  */ NO_EQUIVALENT,
1107      /* min, max, act ct */ 0, NOLIMIT, 0,
1108      /* opt state flags  */ TRUSTEDKEY_FLAGS, 0,
1109      /* last opt argumnt */ { NULL }, /* --trustedkey */
1110      /* arg list/cookie  */ NULL,
1111      /* must/cannot opts */ NULL, NULL,
1112      /* option proc      */ optionStackArg,
1113      /* desc, NAME, name */ TRUSTEDKEY_DESC, TRUSTEDKEY_NAME, TRUSTEDKEY_name,
1114      /* disablement strs */ NULL, NULL },
1115 
1116   {  /* entry idx, value */ 26, VALUE_OPT_USER,
1117      /* equiv idx, value */ 26, VALUE_OPT_USER,
1118      /* equivalenced to  */ NO_EQUIVALENT,
1119      /* min, max, act ct */ 0, 1, 0,
1120      /* opt state flags  */ USER_FLAGS, 0,
1121      /* last opt argumnt */ { NULL }, /* --user */
1122      /* arg list/cookie  */ NULL,
1123      /* must/cannot opts */ NULL, NULL,
1124      /* option proc      */ NULL,
1125      /* desc, NAME, name */ USER_DESC, USER_NAME, USER_name,
1126      /* disablement strs */ NULL, NULL },
1127 
1128   {  /* entry idx, value */ 27, VALUE_OPT_UPDATEINTERVAL,
1129      /* equiv idx, value */ 27, VALUE_OPT_UPDATEINTERVAL,
1130      /* equivalenced to  */ NO_EQUIVALENT,
1131      /* min, max, act ct */ 0, 1, 0,
1132      /* opt state flags  */ UPDATEINTERVAL_FLAGS, 0,
1133      /* last opt argumnt */ { NULL }, /* --updateinterval */
1134      /* arg list/cookie  */ NULL,
1135      /* must/cannot opts */ NULL, NULL,
1136      /* option proc      */ optionNumericVal,
1137      /* desc, NAME, name */ UPDATEINTERVAL_DESC, UPDATEINTERVAL_NAME, UPDATEINTERVAL_name,
1138      /* disablement strs */ NULL, NULL },
1139 
1140   {  /* entry idx, value */ 28, VALUE_OPT_VAR,
1141      /* equiv idx, value */ 28, VALUE_OPT_VAR,
1142      /* equivalenced to  */ NO_EQUIVALENT,
1143      /* min, max, act ct */ 0, NOLIMIT, 0,
1144      /* opt state flags  */ VAR_FLAGS, 0,
1145      /* last opt argumnt */ { NULL }, /* --var */
1146      /* arg list/cookie  */ NULL,
1147      /* must/cannot opts */ NULL, NULL,
1148      /* option proc      */ optionStackArg,
1149      /* desc, NAME, name */ VAR_DESC, VAR_NAME, VAR_name,
1150      /* disablement strs */ NULL, NULL },
1151 
1152   {  /* entry idx, value */ 29, VALUE_OPT_DVAR,
1153      /* equiv idx, value */ 29, VALUE_OPT_DVAR,
1154      /* equivalenced to  */ NO_EQUIVALENT,
1155      /* min, max, act ct */ 0, NOLIMIT, 0,
1156      /* opt state flags  */ DVAR_FLAGS, 0,
1157      /* last opt argumnt */ { NULL }, /* --dvar */
1158      /* arg list/cookie  */ NULL,
1159      /* must/cannot opts */ NULL, NULL,
1160      /* option proc      */ optionStackArg,
1161      /* desc, NAME, name */ DVAR_DESC, DVAR_NAME, DVAR_name,
1162      /* disablement strs */ NULL, NULL },
1163 
1164   {  /* entry idx, value */ 30, VALUE_OPT_WAIT_SYNC,
1165      /* equiv idx, value */ 30, VALUE_OPT_WAIT_SYNC,
1166      /* equivalenced to  */ NO_EQUIVALENT,
1167      /* min, max, act ct */ 0, 1, 0,
1168      /* opt state flags  */ WAIT_SYNC_FLAGS, 0,
1169      /* last opt argumnt */ { NULL }, /* --wait-sync */
1170      /* arg list/cookie  */ NULL,
1171      /* must/cannot opts */ NULL, aWait_SyncCantList,
1172      /* option proc      */ optionNumericVal,
1173      /* desc, NAME, name */ WAIT_SYNC_DESC, WAIT_SYNC_NAME, WAIT_SYNC_name,
1174      /* disablement strs */ NULL, NULL },
1175 
1176   {  /* entry idx, value */ 31, VALUE_OPT_SLEW,
1177      /* equiv idx, value */ 31, VALUE_OPT_SLEW,
1178      /* equivalenced to  */ NO_EQUIVALENT,
1179      /* min, max, act ct */ 0, 1, 0,
1180      /* opt state flags  */ SLEW_FLAGS, 0,
1181      /* last opt argumnt */ { NULL }, /* --slew */
1182      /* arg list/cookie  */ NULL,
1183      /* must/cannot opts */ NULL, NULL,
1184      /* option proc      */ NULL,
1185      /* desc, NAME, name */ SLEW_DESC, SLEW_NAME, SLEW_name,
1186      /* disablement strs */ NULL, NULL },
1187 
1188   {  /* entry idx, value */ 32, VALUE_OPT_USEPCC,
1189      /* equiv idx, value */ 32, VALUE_OPT_USEPCC,
1190      /* equivalenced to  */ NO_EQUIVALENT,
1191      /* min, max, act ct */ 0, 1, 0,
1192      /* opt state flags  */ USEPCC_FLAGS, 0,
1193      /* last opt argumnt */ { NULL }, /* --usepcc */
1194      /* arg list/cookie  */ NULL,
1195      /* must/cannot opts */ NULL, NULL,
1196      /* option proc      */ NULL,
1197      /* desc, NAME, name */ USEPCC_DESC, USEPCC_NAME, USEPCC_name,
1198      /* disablement strs */ NULL, NULL },
1199 
1200   {  /* entry idx, value */ 33, VALUE_OPT_PCCFREQ,
1201      /* equiv idx, value */ 33, VALUE_OPT_PCCFREQ,
1202      /* equivalenced to  */ NO_EQUIVALENT,
1203      /* min, max, act ct */ 0, 1, 0,
1204      /* opt state flags  */ PCCFREQ_FLAGS, 0,
1205      /* last opt argumnt */ { NULL }, /* --pccfreq */
1206      /* arg list/cookie  */ NULL,
1207      /* must/cannot opts */ NULL, NULL,
1208      /* option proc      */ NULL,
1209      /* desc, NAME, name */ PCCFREQ_DESC, PCCFREQ_NAME, PCCFREQ_name,
1210      /* disablement strs */ NULL, NULL },
1211 
1212   {  /* entry idx, value */ 34, VALUE_OPT_MDNS,
1213      /* equiv idx, value */ 34, VALUE_OPT_MDNS,
1214      /* equivalenced to  */ NO_EQUIVALENT,
1215      /* min, max, act ct */ 0, 1, 0,
1216      /* opt state flags  */ MDNS_FLAGS, 0,
1217      /* last opt argumnt */ { NULL }, /* --mdns */
1218      /* arg list/cookie  */ NULL,
1219      /* must/cannot opts */ NULL, NULL,
1220      /* option proc      */ NULL,
1221      /* desc, NAME, name */ MDNS_DESC, MDNS_NAME, MDNS_name,
1222      /* disablement strs */ NULL, NULL },
1223 
1224   {  /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
1225      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_VERSION,
1226      /* equivalenced to  */ NO_EQUIVALENT,
1227      /* min, max, act ct */ 0, 1, 0,
1228      /* opt state flags  */ VER_FLAGS, AOUSE_VERSION,
1229      /* last opt argumnt */ { NULL },
1230      /* arg list/cookie  */ NULL,
1231      /* must/cannot opts */ NULL, NULL,
1232      /* option proc      */ VER_PROC,
1233      /* desc, NAME, name */ VER_DESC, NULL, VER_name,
1234      /* disablement strs */ NULL, NULL },
1235 
1236 
1237 
1238   {  /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
1239      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_HELP,
1240      /* equivalenced to  */ NO_EQUIVALENT,
1241      /* min, max, act ct */ 0, 1, 0,
1242      /* opt state flags  */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
1243      /* last opt argumnt */ { NULL },
1244      /* arg list/cookie  */ NULL,
1245      /* must/cannot opts */ NULL, NULL,
1246      /* option proc      */ doUsageOpt,
1247      /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
1248      /* disablement strs */ NULL, NULL },
1249 
1250   {  /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
1251      /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
1252      /* equivalenced to  */ NO_EQUIVALENT,
1253      /* min, max, act ct */ 0, 1, 0,
1254      /* opt state flags  */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
1255      /* last opt argumnt */ { NULL },
1256      /* arg list/cookie  */ NULL,
1257      /* must/cannot opts */ NULL,  NULL,
1258      /* option proc      */ optionPagedUsage,
1259      /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
1260      /* disablement strs */ NULL, NULL }
1261 };
1262 
1263 
1264 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1265 /** Reference to the upper cased version of ntpd. */
1266 #define zPROGNAME       (ntpd_opt_strs+2945)
1267 /** Reference to the title line for ntpd usage. */
1268 #define zUsageTitle     (ntpd_opt_strs+2950)
1269 /** There is no ntpd configuration file. */
1270 #define zRcName         NULL
1271 /** There are no directories to search for ntpd config files. */
1272 #define apzHomeList     NULL
1273 /** The ntpd program bug email address. */
1274 #define zBugsAddr       (ntpd_opt_strs+3082)
1275 /** Clarification/explanation of what ntpd does. */
1276 #define zExplain        (ntpd_opt_strs+3117)
1277 /** Extra detail explaining what ntpd does. */
1278 #define zDetail         (NULL)
1279 /** The full version string for ntpd. */
1280 #define zFullVersion    (ntpd_opt_strs+3119)
1281 /* extracted from optcode.tlib near line 342 */
1282 
1283 #if defined(ENABLE_NLS)
1284 # define OPTPROC_BASE OPTPROC_TRANSLATE
1285   static tOptionXlateProc translate_option_strings;
1286 #else
1287 # define OPTPROC_BASE OPTPROC_NONE
1288 # define translate_option_strings NULL
1289 #endif /* ENABLE_NLS */
1290 
1291 #define ntpd_full_usage (NULL)
1292 #define ntpd_short_usage (NULL)
1293 
1294 #endif /* not defined __doxygen__ */
1295 
1296 /*
1297  *  Create the static procedure(s) declared above.
1298  */
1299 /**
1300  * The callout function that invokes the optionUsage function.
1301  *
1302  * @param[in] opts the AutoOpts option description structure
1303  * @param[in] od   the descriptor for the "help" (usage) option.
1304  * @noreturn
1305  */
1306 static void
1307 doUsageOpt(tOptions * opts, tOptDesc * od)
1308 {
1309     int ex_code;
1310     ex_code = NTPD_EXIT_SUCCESS;
1311     optionUsage(&ntpdOptions, ex_code);
1312     /* NOTREACHED */
1313     exit(NTPD_EXIT_FAILURE);
1314     (void)opts;
1315     (void)od;
1316 }
1317 
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1319 /**
1320  * Code to handle the debug-level option.
1321  *
1322  * @param[in] pOptions the ntpd options data structure
1323  * @param[in,out] pOptDesc the option descriptor for this option.
1324  */
1325 static void
1326 doOptDebug_Level(tOptions* pOptions, tOptDesc* pOptDesc)
1327 {
1328     /*
1329      * Be sure the flag-code[0] handles special values for the options pointer
1330      * viz. (poptions <= OPTPROC_EMIT_LIMIT) *and also* the special flag bit
1331      * ((poptdesc->fOptState & OPTST_RESET) != 0) telling the option to
1332      * reset its state.
1333      */
1334     /* extracted from debug-opt.def, line 15 */
1335 OPT_VALUE_SET_DEBUG_LEVEL++;
1336     (void)pOptDesc;
1337     (void)pOptions;
1338 }
1339 /* extracted from optmain.tlib near line 1250 */
1340 
1341 /**
1342  * The directory containing the data associated with ntpd.
1343  */
1344 #ifndef  PKGDATADIR
1345 # define PKGDATADIR ""
1346 #endif
1347 
1348 /**
1349  * Information about the person or institution that packaged ntpd
1350  * for the current distribution.
1351  */
1352 #ifndef  WITH_PACKAGER
1353 # define ntpd_packager_info NULL
1354 #else
1355 /** Packager information for ntpd. */
1356 static char const ntpd_packager_info[] =
1357     "Packaged by " WITH_PACKAGER
1358 
1359 # ifdef WITH_PACKAGER_VERSION
1360         " ("WITH_PACKAGER_VERSION")"
1361 # endif
1362 
1363 # ifdef WITH_PACKAGER_BUG_REPORTS
1364     "\nReport ntpd bugs to " WITH_PACKAGER_BUG_REPORTS
1365 # endif
1366     "\n";
1367 #endif
1368 #ifndef __doxygen__
1369 
1370 #endif /* __doxygen__ */
1371 /**
1372  * The option definitions for ntpd.  The one structure that
1373  * binds them all.
1374  */
1375 tOptions ntpdOptions = {
1376     OPTIONS_STRUCT_VERSION,
1377     0, NULL,                    /* original argc + argv    */
1378     ( OPTPROC_BASE
1379     + OPTPROC_ERRSTOP
1380     + OPTPROC_SHORTOPT
1381     + OPTPROC_LONGOPT
1382     + OPTPROC_NO_REQ_OPT
1383     + OPTPROC_ENVIRON
1384     + OPTPROC_MISUSE ),
1385     0, NULL,                    /* current option index, current option */
1386     NULL,         NULL,         zPROGNAME,
1387     zRcName,      zCopyright,   zLicenseDescrip,
1388     zFullVersion, apzHomeList,  zUsageTitle,
1389     zExplain,     zDetail,      optDesc,
1390     zBugsAddr,                  /* address to send bugs to */
1391     NULL, NULL,                 /* extensions/saved state  */
1392     optionUsage, /* usage procedure */
1393     translate_option_strings,   /* translation procedure */
1394     /*
1395      *  Indexes to special options
1396      */
1397     { INDEX_OPT_MORE_HELP, /* more-help option index */
1398       NO_EQUIVALENT, /* save option index */
1399       NO_EQUIVALENT, /* '-#' option index */
1400       NO_EQUIVALENT /* index of default opt */
1401     },
1402     38 /* full option count */, 35 /* user option count */,
1403     ntpd_full_usage, ntpd_short_usage,
1404     NULL, NULL,
1405     PKGDATADIR, ntpd_packager_info
1406 };
1407 
1408 #if ENABLE_NLS
1409 /**
1410  * This code is designed to translate translatable option text for the
1411  * ntpd program.  These translations happen upon entry
1412  * to optionProcess().
1413  */
1414 #include <stdio.h>
1415 #include <stdlib.h>
1416 #include <string.h>
1417 #include <unistd.h>
1418 #ifdef HAVE_DCGETTEXT
1419 # include <gettext.h>
1420 #endif
1421 #include <autoopts/usage-txt.h>
1422 
1423 static char * AO_gettext(char const * pz);
1424 static void   coerce_it(void ** s);
1425 
1426 /**
1427  * AutoGen specific wrapper function for gettext.  It relies on the macro _()
1428  * to convert from English to the target language, then strdup-duplicates the
1429  * result string.  It tries the "libopts" domain first, then whatever has been
1430  * set via the \a textdomain(3) call.
1431  *
1432  * @param[in] pz the input text used as a lookup key.
1433  * @returns the translated text (if there is one),
1434  *   or the original text (if not).
1435  */
1436 static char *
1437 AO_gettext(char const * pz)
1438 {
1439     char * res;
1440     if (pz == NULL)
1441         return NULL;
1442 #ifdef HAVE_DCGETTEXT
1443     /*
1444      * While processing the option_xlateable_txt data, try to use the
1445      * "libopts" domain.  Once we switch to the option descriptor data,
1446      * do *not* use that domain.
1447      */
1448     if (option_xlateable_txt.field_ct != 0) {
1449         res = dgettext("libopts", pz);
1450         if (res == pz)
1451             res = (char *)VOIDP(_(pz));
1452     } else
1453         res = (char *)VOIDP(_(pz));
1454 #else
1455     res = (char *)VOIDP(_(pz));
1456 #endif
1457     if (res == pz)
1458         return res;
1459     res = strdup(res);
1460     if (res == NULL) {
1461         fputs(_("No memory for duping translated strings\n"), stderr);
1462         exit(NTPD_EXIT_FAILURE);
1463     }
1464     return res;
1465 }
1466 
1467 /**
1468  * All the pointers we use are marked "* const", but they are stored in
1469  * writable memory.  Coerce the mutability and set the pointer.
1470  */
1471 static void coerce_it(void ** s) { *s = AO_gettext(*s);
1472 }
1473 
1474 /**
1475  * Translate all the translatable strings in the ntpdOptions
1476  * structure defined above.  This is done only once.
1477  */
1478 static void
1479 translate_option_strings(void)
1480 {
1481     tOptions * const opts = &ntpdOptions;
1482 
1483     /*
1484      *  Guard against re-translation.  It won't work.  The strings will have
1485      *  been changed by the first pass through this code.  One shot only.
1486      */
1487     if (option_xlateable_txt.field_ct != 0) {
1488         /*
1489          *  Do the translations.  The first pointer follows the field count
1490          *  field.  The field count field is the size of a pointer.
1491          */
1492         char ** ppz = (char**)VOIDP(&(option_xlateable_txt));
1493         int     ix  = option_xlateable_txt.field_ct;
1494 
1495         do {
1496             ppz++; /* skip over field_ct */
1497             *ppz = AO_gettext(*ppz);
1498         } while (--ix > 0);
1499         /* prevent re-translation and disable "libopts" domain lookup */
1500         option_xlateable_txt.field_ct = 0;
1501 
1502         coerce_it(VOIDP(&(opts->pzCopyright)));
1503         coerce_it(VOIDP(&(opts->pzCopyNotice)));
1504         coerce_it(VOIDP(&(opts->pzFullVersion)));
1505         coerce_it(VOIDP(&(opts->pzUsageTitle)));
1506         coerce_it(VOIDP(&(opts->pzExplain)));
1507         coerce_it(VOIDP(&(opts->pzDetail)));
1508         {
1509             tOptDesc * od = opts->pOptDesc;
1510             for (ix = opts->optCt; ix > 0; ix--, od++)
1511                 coerce_it(VOIDP(&(od->pzText)));
1512         }
1513     }
1514 }
1515 #endif /* ENABLE_NLS */
1516 
1517 #ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
1518 /** I18N function strictly for xgettext.  Do not compile. */
1519 static void bogus_function(void) {
1520   /* TRANSLATORS:
1521 
1522      The following dummy function was crated solely so that xgettext can
1523      extract the correct strings.  These strings are actually referenced
1524      by a field name in the ntpdOptions structure noted in the
1525      comments below.  The literal text is defined in ntpd_opt_strs.
1526 
1527      NOTE: the strings below are segmented with respect to the source string
1528      ntpd_opt_strs.  The strings above are handed off for translation
1529      at run time a paragraph at a time.  Consequently, they are presented here
1530      for translation a paragraph at a time.
1531 
1532      ALSO: often the description for an option will reference another option
1533      by name.  These are set off with apostrophe quotes (I hope).  Do not
1534      translate option names.
1535    */
1536   /* referenced via ntpdOptions.pzCopyright */
1537   puts(_("ntpd 4.2.8p17\n\
1538 Copyright (C) 1992-2023 The University of Delaware and Network Time Foundation, all rights reserved.\n\
1539 This is free software. It is licensed for use, modification and\n\
1540 redistribution under the terms of the NTP License, copies of which\n\
1541 can be seen at:\n"));
1542   puts(_("  <http://ntp.org/license>\n\
1543   <http://opensource.org/licenses/ntp-license.php>\n"));
1544 
1545   /* referenced via ntpdOptions.pzCopyNotice */
1546   puts(_("Permission to use, copy, modify, and distribute this software and its\n\
1547 documentation for any purpose with or without fee is hereby granted,\n\
1548 provided that the above copyright notice appears in all copies and that\n\
1549 both the copyright notice and this permission notice appear in supporting\n\
1550 documentation, and that the name The University of Delaware not be used in\n\
1551 advertising or publicity pertaining to distribution of the software without\n\
1552 specific, written prior permission.  The University of Delaware and Network\n\
1553 Time Foundation makes no representations about the suitability this\n\
1554 software for any purpose.  It is provided \"as is\" without express or\n\
1555 implied warranty.\n"));
1556 
1557   /* referenced via ntpdOptions.pOptDesc->pzText */
1558   puts(_("Force IPv4 DNS name resolution"));
1559 
1560   /* referenced via ntpdOptions.pOptDesc->pzText */
1561   puts(_("Force IPv6 DNS name resolution"));
1562 
1563   /* referenced via ntpdOptions.pOptDesc->pzText */
1564   puts(_("Require crypto authentication"));
1565 
1566   /* referenced via ntpdOptions.pOptDesc->pzText */
1567   puts(_("Do not require crypto authentication"));
1568 
1569   /* referenced via ntpdOptions.pOptDesc->pzText */
1570   puts(_("Allow us to sync to broadcast servers"));
1571 
1572   /* referenced via ntpdOptions.pOptDesc->pzText */
1573   puts(_("configuration file name"));
1574 
1575   /* referenced via ntpdOptions.pOptDesc->pzText */
1576   puts(_("Increase debug verbosity level"));
1577 
1578   /* referenced via ntpdOptions.pOptDesc->pzText */
1579   puts(_("Set the debug verbosity level"));
1580 
1581   /* referenced via ntpdOptions.pOptDesc->pzText */
1582   puts(_("frequency drift file name"));
1583 
1584   /* referenced via ntpdOptions.pOptDesc->pzText */
1585   puts(_("Allow the first adjustment to be Big"));
1586 
1587   /* referenced via ntpdOptions.pOptDesc->pzText */
1588   puts(_("Step any initial offset correction."));
1589 
1590   /* referenced via ntpdOptions.pOptDesc->pzText */
1591   puts(_("Jail directory"));
1592 
1593   /* referenced via ntpdOptions.pOptDesc->pzText */
1594   puts(_("built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs"));
1595 
1596   /* referenced via ntpdOptions.pOptDesc->pzText */
1597   puts(_("Listen on an interface name or address"));
1598 
1599   /* referenced via ntpdOptions.pOptDesc->pzText */
1600   puts(_("path to symmetric keys"));
1601 
1602   /* referenced via ntpdOptions.pOptDesc->pzText */
1603   puts(_("path to the log file"));
1604 
1605   /* referenced via ntpdOptions.pOptDesc->pzText */
1606   puts(_("Do not listen to virtual interfaces"));
1607 
1608   /* referenced via ntpdOptions.pOptDesc->pzText */
1609   puts(_("Modify Multimedia Timer (Windows only)"));
1610 
1611   /* referenced via ntpdOptions.pOptDesc->pzText */
1612   puts(_("Do not fork"));
1613 
1614   /* referenced via ntpdOptions.pOptDesc->pzText */
1615   puts(_("Run at high priority"));
1616 
1617   /* referenced via ntpdOptions.pOptDesc->pzText */
1618   puts(_("path to the PID file"));
1619 
1620   /* referenced via ntpdOptions.pOptDesc->pzText */
1621   puts(_("Process priority"));
1622 
1623   /* referenced via ntpdOptions.pOptDesc->pzText */
1624   puts(_("Set the time and quit"));
1625 
1626   /* referenced via ntpdOptions.pOptDesc->pzText */
1627   puts(_("Broadcast/propagation delay"));
1628 
1629   /* referenced via ntpdOptions.pOptDesc->pzText */
1630   puts(_("Save parsed configuration and quit"));
1631 
1632   /* referenced via ntpdOptions.pOptDesc->pzText */
1633   puts(_("Statistics file location"));
1634 
1635   /* referenced via ntpdOptions.pOptDesc->pzText */
1636   puts(_("Trusted key number"));
1637 
1638   /* referenced via ntpdOptions.pOptDesc->pzText */
1639   puts(_("Run as userid (or userid:groupid)"));
1640 
1641   /* referenced via ntpdOptions.pOptDesc->pzText */
1642   puts(_("built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs"));
1643 
1644   /* referenced via ntpdOptions.pOptDesc->pzText */
1645   puts(_("interval in seconds between scans for new or dropped interfaces"));
1646 
1647   /* referenced via ntpdOptions.pOptDesc->pzText */
1648   puts(_("make ARG an ntp variable (RW)"));
1649 
1650   /* referenced via ntpdOptions.pOptDesc->pzText */
1651   puts(_("make ARG an ntp variable (RW|DEF)"));
1652 
1653   /* referenced via ntpdOptions.pOptDesc->pzText */
1654   puts(_("Seconds to wait for first clock sync"));
1655 
1656   /* referenced via ntpdOptions.pOptDesc->pzText */
1657   puts(_("Slew up to 600 seconds"));
1658 
1659   /* referenced via ntpdOptions.pOptDesc->pzText */
1660   puts(_("Use CPU cycle counter (Windows only)"));
1661 
1662   /* referenced via ntpdOptions.pOptDesc->pzText */
1663   puts(_("Force CPU cycle counter use (Windows only)"));
1664 
1665   /* referenced via ntpdOptions.pOptDesc->pzText */
1666   puts(_("Register with mDNS as a NTP server"));
1667 
1668   /* referenced via ntpdOptions.pOptDesc->pzText */
1669   puts(_("display extended usage information and exit"));
1670 
1671   /* referenced via ntpdOptions.pOptDesc->pzText */
1672   puts(_("extended usage information passed thru pager"));
1673 
1674   /* referenced via ntpdOptions.pOptDesc->pzText */
1675   puts(_("output version information and exit"));
1676 
1677   /* referenced via ntpdOptions.pzUsageTitle */
1678   puts(_("ntpd - NTP daemon program - Ver. 4.2.8p17\n\
1679 Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n\
1680 \t\t[ <server1> ... <serverN> ]\n"));
1681 
1682   /* referenced via ntpdOptions.pzExplain */
1683   puts(_("\n"));
1684 
1685   /* referenced via ntpdOptions.pzFullVersion */
1686   puts(_("ntpd 4.2.8p17"));
1687 
1688   /* referenced via ntpdOptions.pzFullUsage */
1689   puts(_("<<<NOT-FOUND>>>"));
1690 
1691   /* referenced via ntpdOptions.pzShortUsage */
1692   puts(_("<<<NOT-FOUND>>>"));
1693   /* LIBOPTS-MESSAGES: */
1694 #line 67 "../autoopts.c"
1695   puts(_("allocation of %d bytes failed\n"));
1696 #line 89 "../autoopts.c"
1697   puts(_("allocation of %d bytes failed\n"));
1698 #line 48 "../init.c"
1699   puts(_("AutoOpts function called without option descriptor\n"));
1700 #line 81 "../init.c"
1701   puts(_("\tThis exceeds the compiled library version:  "));
1702 #line 79 "../init.c"
1703   puts(_("Automated Options Processing Error!\n"
1704        "\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
1705 #line 78 "../autoopts.c"
1706   puts(_("realloc of %d bytes at 0x%p failed\n"));
1707 #line 83 "../init.c"
1708   puts(_("\tThis is less than the minimum library version:  "));
1709 #line 121 "../version.c"
1710   puts(_("Automated Options version %s\n"
1711        "\tCopyright (C) 1999-2017 by Bruce Korb - all rights reserved\n"));
1712 #line 49 "../makeshell.c"
1713   puts(_("(AutoOpts bug):  %s.\n"));
1714 #line 90 "../reset.c"
1715   puts(_("optionResetOpt() called, but reset-option not configured"));
1716 #line 241 "../usage.c"
1717   puts(_("could not locate the 'help' option"));
1718 #line 330 "../autoopts.c"
1719   puts(_("optionProcess() was called with invalid data"));
1720 #line 697 "../usage.c"
1721   puts(_("invalid argument type specified"));
1722 #line 568 "../find.c"
1723   puts(_("defaulted to option with optional arg"));
1724 #line 76 "../alias.c"
1725   puts(_("aliasing option is out of range."));
1726 #line 210 "../enum.c"
1727   puts(_("%s error:  the keyword '%s' is ambiguous for %s\n"));
1728 #line 78 "../find.c"
1729   puts(_("  The following options match:\n"));
1730 #line 263 "../find.c"
1731   puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
1732 #line 161 "../check.c"
1733   puts(_("%s: Command line arguments required\n"));
1734 #line 43 "../alias.c"
1735   puts(_("%d %s%s options allowed\n"));
1736 #line 56 "../makeshell.c"
1737   puts(_("%s error %d (%s) calling %s for '%s'\n"));
1738 #line 268 "../makeshell.c"
1739   puts(_("interprocess pipe"));
1740 #line 171 "../version.c"
1741   puts(_("error: version option argument '%c' invalid.  Use:\n"
1742        "\t'v' - version only\n"
1743        "\t'c' - version and copyright\n"
1744        "\t'n' - version and full copyright notice\n"));
1745 #line 58 "../check.c"
1746   puts(_("%s error:  the '%s' and '%s' options conflict\n"));
1747 #line 187 "../find.c"
1748   puts(_("%s: The '%s' option has been disabled."));
1749 #line 400 "../find.c"
1750   puts(_("%s: The '%s' option has been disabled."));
1751 #line 38 "../alias.c"
1752   puts(_("-equivalence"));
1753 #line 439 "../find.c"
1754   puts(_("%s: illegal option -- %c\n"));
1755 #line 110 "../reset.c"
1756   puts(_("%s: illegal option -- %c\n"));
1757 #line 241 "../find.c"
1758   puts(_("%s: illegal option -- %s\n"));
1759 #line 740 "../find.c"
1760   puts(_("%s: illegal option -- %s\n"));
1761 #line 118 "../reset.c"
1762   puts(_("%s: illegal option -- %s\n"));
1763 #line 305 "../find.c"
1764   puts(_("%s: unknown vendor extension option -- %s\n"));
1765 #line 135 "../enum.c"
1766   puts(_("  or an integer from %d through %d\n"));
1767 #line 145 "../enum.c"
1768   puts(_("  or an integer from %d through %d\n"));
1769 #line 696 "../usage.c"
1770   puts(_("%s error:  invalid option descriptor for %s\n"));
1771 #line 1030 "../usage.c"
1772   puts(_("%s error:  invalid option descriptor for %s\n"));
1773 #line 355 "../find.c"
1774   puts(_("%s: invalid option name: %s\n"));
1775 #line 497 "../find.c"
1776   puts(_("%s: The '%s' option requires an argument.\n"));
1777 #line 150 "../autoopts.c"
1778   puts(_("(AutoOpts bug):  Equivalenced option '%s' was equivalenced to both\n"
1779        "\t'%s' and '%s'."));
1780 #line 94 "../check.c"
1781   puts(_("%s error:  The %s option is required\n"));
1782 #line 602 "../find.c"
1783   puts(_("%s: The '%s' option cannot have an argument.\n"));
1784 #line 151 "../check.c"
1785   puts(_("%s: Command line arguments are not allowed.\n"));
1786 #line 568 "../save.c"
1787   puts(_("error %d (%s) creating %s\n"));
1788 #line 210 "../enum.c"
1789   puts(_("%s error:  '%s' does not match any %s keywords.\n"));
1790 #line 93 "../reset.c"
1791   puts(_("%s error: The '%s' option requires an argument.\n"));
1792 #line 122 "../save.c"
1793   puts(_("error %d (%s) stat-ing %s\n"));
1794 #line 175 "../save.c"
1795   puts(_("error %d (%s) stat-ing %s\n"));
1796 #line 143 "../restore.c"
1797   puts(_("%s error: no saved option state\n"));
1798 #line 225 "../autoopts.c"
1799   puts(_("'%s' is not a command line option.\n"));
1800 #line 113 "../time.c"
1801   puts(_("%s error:  '%s' is not a recognizable date/time.\n"));
1802 #line 50 "../time.c"
1803   puts(_("%s error:  '%s' is not a recognizable time duration.\n"));
1804 #line 92 "../check.c"
1805   puts(_("%s error:  The %s option must appear %d times.\n"));
1806 #line 165 "../numeric.c"
1807   puts(_("%s error:  '%s' is not a recognizable number.\n"));
1808 #line 176 "../enum.c"
1809   puts(_("%s error:  %s exceeds %s keyword count\n"));
1810 #line 279 "../usage.c"
1811   puts(_("Try '%s %s' for more information.\n"));
1812 #line 45 "../alias.c"
1813   puts(_("one %s%s option allowed\n"));
1814 #line 170 "../makeshell.c"
1815   puts(_("standard output"));
1816 #line 905 "../makeshell.c"
1817   puts(_("standard output"));
1818 #line 223 "../usage.c"
1819   puts(_("standard output"));
1820 #line 364 "../usage.c"
1821   puts(_("standard output"));
1822 #line 574 "../usage.c"
1823   puts(_("standard output"));
1824 #line 178 "../version.c"
1825   puts(_("standard output"));
1826 #line 223 "../usage.c"
1827   puts(_("standard error"));
1828 #line 364 "../usage.c"
1829   puts(_("standard error"));
1830 #line 574 "../usage.c"
1831   puts(_("standard error"));
1832 #line 178 "../version.c"
1833   puts(_("standard error"));
1834 #line 170 "../makeshell.c"
1835   puts(_("write"));
1836 #line 905 "../makeshell.c"
1837   puts(_("write"));
1838 #line 222 "../usage.c"
1839   puts(_("write"));
1840 #line 363 "../usage.c"
1841   puts(_("write"));
1842 #line 573 "../usage.c"
1843   puts(_("write"));
1844 #line 177 "../version.c"
1845   puts(_("write"));
1846 #line 60 "../numeric.c"
1847   puts(_("%s error:  %s option value %ld is out of range.\n"));
1848 #line 44 "../check.c"
1849   puts(_("%s error:  %s option requires the %s option\n"));
1850 #line 121 "../save.c"
1851   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1852 #line 174 "../save.c"
1853   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1854 #line 193 "../save.c"
1855   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1856 #line 567 "../save.c"
1857   puts(_("%s warning:  cannot save options - %s not regular file\n"));
1858   /* END-LIBOPTS-MESSAGES */
1859 
1860   /* USAGE-TEXT: */
1861 #line 822 "../usage.c"
1862   puts(_("\t\t\t\t- an alternate for '%s'\n"));
1863 #line 1097 "../usage.c"
1864   puts(_("Version, usage and configuration options:"));
1865 #line 873 "../usage.c"
1866   puts(_("\t\t\t\t- default option for unnamed options\n"));
1867 #line 786 "../usage.c"
1868   puts(_("\t\t\t\t- disabled as '--%s'\n"));
1869 #line 1066 "../usage.c"
1870   puts(_(" --- %-14s %s\n"));
1871 #line 1064 "../usage.c"
1872   puts(_("This option has been disabled"));
1873 #line 813 "../usage.c"
1874   puts(_("\t\t\t\t- enabled by default\n"));
1875 #line 40 "../alias.c"
1876   puts(_("%s error:  only "));
1877 #line 1143 "../usage.c"
1878   puts(_(" - examining environment variables named %s_*\n"));
1879 #line 168 "../file.c"
1880   puts(_("\t\t\t\t- file must not pre-exist\n"));
1881 #line 172 "../file.c"
1882   puts(_("\t\t\t\t- file must pre-exist\n"));
1883 #line 329 "../usage.c"
1884   puts(_("Options are specified by doubled hyphens and their name or by a single\n"
1885        "hyphen and the flag character.\n"));
1886 #line 882 "../makeshell.c"
1887   puts(_("\n"
1888        "= = = = = = = =\n\n"
1889        "This incarnation of genshell will produce\n"
1890        "a shell script to parse the options for %s:\n\n"));
1891 #line 142 "../enum.c"
1892   puts(_("  or an integer mask with any of the lower %d bits set\n"));
1893 #line 846 "../usage.c"
1894   puts(_("\t\t\t\t- is a set membership option\n"));
1895 #line 867 "../usage.c"
1896   puts(_("\t\t\t\t- must appear between %d and %d times\n"));
1897 #line 331 "../usage.c"
1898   puts(_("Options are specified by single or double hyphens and their name.\n"));
1899 #line 853 "../usage.c"
1900   puts(_("\t\t\t\t- may appear multiple times\n"));
1901 #line 840 "../usage.c"
1902   puts(_("\t\t\t\t- may not be preset\n"));
1903 #line 1258 "../usage.c"
1904   puts(_("   Arg Option-Name    Description\n"));
1905 #line 1194 "../usage.c"
1906   puts(_("  Flg Arg Option-Name    Description\n"));
1907 #line 1252 "../usage.c"
1908   puts(_("  Flg Arg Option-Name    Description\n"));
1909 #line 1253 "../usage.c"
1910   puts(_(" %3s %s"));
1911 #line 1259 "../usage.c"
1912   puts(_(" %3s %s"));
1913 #line 336 "../usage.c"
1914   puts(_("The '-#<number>' option may omit the hash char\n"));
1915 #line 332 "../usage.c"
1916   puts(_("All arguments are named options.\n"));
1917 #line 920 "../usage.c"
1918   puts(_(" - reading file %s"));
1919 #line 358 "../usage.c"
1920   puts(_("\n"
1921        "Please send bug reports to:  <%s>\n"));
1922 #line 100 "../version.c"
1923   puts(_("\n"
1924        "Please send bug reports to:  <%s>\n"));
1925 #line 129 "../version.c"
1926   puts(_("\n"
1927        "Please send bug reports to:  <%s>\n"));
1928 #line 852 "../usage.c"
1929   puts(_("\t\t\t\t- may NOT appear - preset only\n"));
1930 #line 893 "../usage.c"
1931   puts(_("\n"
1932        "The following option preset mechanisms are supported:\n"));
1933 #line 1141 "../usage.c"
1934   puts(_("\n"
1935        "The following option preset mechanisms are supported:\n"));
1936 #line 631 "../usage.c"
1937   puts(_("prohibits these options:\n"));
1938 #line 626 "../usage.c"
1939   puts(_("prohibits the option '%s'\n"));
1940 #line 81 "../numeric.c"
1941   puts(_("%s%ld to %ld"));
1942 #line 79 "../numeric.c"
1943   puts(_("%sgreater than or equal to %ld"));
1944 #line 75 "../numeric.c"
1945   puts(_("%s%ld exactly"));
1946 #line 68 "../numeric.c"
1947   puts(_("%sit must lie in one of the ranges:\n"));
1948 #line 68 "../numeric.c"
1949   puts(_("%sit must be in the range:\n"));
1950 #line 88 "../numeric.c"
1951   puts(_(", or\n"));
1952 #line 66 "../numeric.c"
1953   puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
1954 #line 77 "../numeric.c"
1955   puts(_("%sless than or equal to %ld"));
1956 #line 339 "../usage.c"
1957   puts(_("Operands and options may be intermixed.  They will be reordered.\n"));
1958 #line 601 "../usage.c"
1959   puts(_("requires the option '%s'\n"));
1960 #line 604 "../usage.c"
1961   puts(_("requires these options:\n"));
1962 #line 1270 "../usage.c"
1963   puts(_("   Arg Option-Name   Req?  Description\n"));
1964 #line 1264 "../usage.c"
1965   puts(_("  Flg Arg Option-Name   Req?  Description\n"));
1966 #line 143 "../enum.c"
1967   puts(_("or you may use a numeric representation.  Preceding these with a '!'\n"
1968        "will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
1969        "will set them all.  Multiple entries may be passed as an option\n"
1970        "argument list.\n"));
1971 #line 859 "../usage.c"
1972   puts(_("\t\t\t\t- may appear up to %d times\n"));
1973 #line 52 "../enum.c"
1974   puts(_("The valid \"%s\" option keywords are:\n"));
1975 #line 1101 "../usage.c"
1976   puts(_("The next option supports vendor supported extra options:"));
1977 #line 722 "../usage.c"
1978   puts(_("These additional options are:"));
1979   /* END-USAGE-TEXT */
1980 }
1981 #endif /* uncompilable code */
1982 #ifdef  __cplusplus
1983 }
1984 #endif
1985 /* ntpd-opts.c ends here */
1986