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