1 /* 2 * EDIT THIS FILE WITH CAUTION (ntpd-opts.c) 3 * 4 * It has been AutoGen-ed January 7, 2016 at 11:28:29 PM by AutoGen 5.18.5 5 * From the definitions ntpd-opts.def 6 * and the template file options 7 * 8 * Generated from AutoOpts 41:0:16 templates. 9 * 10 * AutoOpts is a copyrighted work. This source file is not encumbered 11 * by AutoOpts licensing, but is provided under the licensing terms chosen 12 * by the ntpd author or copyright holder. AutoOpts is 13 * licensed under the terms of the LGPL. The redistributable library 14 * (``libopts'') is licensed under the terms of either the LGPL or, at the 15 * users discretion, the BSD license. See the AutoOpts and/or libopts sources 16 * for details. 17 * 18 * The ntpd program is copyrighted and licensed 19 * under the following terms: 20 * 21 * Copyright (C) 1992-2015 The University of Delaware and Network Time Foundation, all rights reserved. 22 * This is free software. It is licensed for use, modification and 23 * redistribution under the terms of the NTP License, copies of which 24 * can be seen at: 25 * <http://ntp.org/license> 26 * <http://opensource.org/licenses/ntp-license.php> 27 * 28 * Permission to use, copy, modify, and distribute this software and its 29 * documentation for any purpose with or without fee is hereby granted, 30 * provided that the above copyright notice appears in all copies and that 31 * both the copyright notice and this permission notice appear in 32 * supporting documentation, and that the name The University of Delaware not be used in 33 * advertising or publicity pertaining to distribution of the software 34 * without specific, written prior permission. The University of Delaware and Network Time Foundation makes no 35 * representations about the suitability this software for any purpose. It 36 * is provided "as is" without express or implied warranty. 37 */ 38 39 #ifndef __doxygen__ 40 #define OPTION_CODE_COMPILE 1 41 #include "ntpd-opts.h" 42 #include <sys/types.h> 43 44 #include <limits.h> 45 #include <stdio.h> 46 #include <stdlib.h> 47 48 #ifdef __cplusplus 49 extern "C" { 50 #endif 51 extern FILE * option_usage_fp; 52 #define zCopyright (ntpd_opt_strs+0) 53 #define zLicenseDescrip (ntpd_opt_strs+340) 54 55 /* 56 * global included definitions 57 */ 58 #ifdef __windows 59 extern int atoi(const char *); 60 #else 61 # include <stdlib.h> 62 #endif 63 64 #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 73 74 /** 75 * static const strings for ntpd options 76 */ 77 static char const ntpd_opt_strs[3129] = 78 /* 0 */ "ntpd 4.2.8p5\n" 79 "Copyright (C) 1992-2015 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.8p5\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.8p5"; 214 215 /** 216 * ipv4 option description with 217 * "Must also have options" and "Incompatible options": 218 */ 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 */ 226 static int const aIpv4CantList[] = { 227 INDEX_OPT_IPV6, NO_EQUIVALENT }; 228 /** Compiled in flag settings for the ipv4 option */ 229 #define IPV4_FLAGS (OPTST_DISABLED) 230 231 /** 232 * ipv6 option description with 233 * "Must also have options" and "Incompatible options": 234 */ 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 */ 242 static 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 */ 258 static int const aAuthreqCantList[] = { 259 INDEX_OPT_AUTHNOREQ, NO_EQUIVALENT }; 260 /** Compiled in flag settings for the authreq option */ 261 #define AUTHREQ_FLAGS (OPTST_DISABLED) 262 263 /** 264 * authnoreq option description with 265 * "Must also have options" and "Incompatible options": 266 */ 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 */ 274 static int const aAuthnoreqCantList[] = { 275 INDEX_OPT_AUTHREQ, NO_EQUIVALENT }; 276 /** Compiled in flag settings for the authnoreq option */ 277 #define AUTHNOREQ_FLAGS (OPTST_DISABLED) 278 279 /** 280 * bcastsync option description: 281 */ 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) 290 291 /** 292 * configfile option description: 293 */ 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 \ 302 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 303 304 /** 305 * debug-level option description: 306 */ 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) 315 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)) 328 329 /** 330 * driftfile option description: 331 */ 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 \ 340 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 341 342 /** 343 * panicgate option description: 344 */ 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) 353 354 /** 355 * force_step_once option description: 356 */ 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) 365 366 /** 367 * jaildir option description: 368 */ 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 \ 378 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 379 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: 390 */ 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 \ 399 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 400 401 /** 402 * keyfile option description: 403 */ 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 \ 412 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 413 414 /** 415 * logfile option description: 416 */ 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 \ 425 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 426 427 /** 428 * novirtualips option description: 429 */ 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) 438 439 /** 440 * modifymmtimer option description: 441 */ 442 #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) 451 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 457 #endif /* SYS_WINNT */ 458 459 /** 460 * nofork option description with 461 * "Must also have options" and "Incompatible options": 462 */ 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 */ 470 static 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) 474 475 /** 476 * nice option description: 477 */ 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) 486 487 /** 488 * pidfile option description: 489 */ 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 \ 498 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 499 500 /** 501 * priority option description: 502 */ 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 \ 511 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) 512 513 /** 514 * quit option description with 515 * "Must also have options" and "Incompatible options": 516 */ 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 */ 524 static 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) 529 530 /** 531 * propagationdelay option description: 532 */ 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 \ 541 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 542 543 /** 544 * saveconfigquit option description with 545 * "Must also have options" and "Incompatible options": 546 */ 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 */ 555 static 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)) 561 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: 572 */ 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 \ 581 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 582 583 /** 584 * trustedkey option description: 585 */ 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 \ 594 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 595 596 /** 597 * user option description: 598 */ 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 \ 608 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 609 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: 620 */ 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)) 630 631 /** 632 * var option description: 633 */ 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 \ 642 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) 643 644 /** 645 * dvar option description: 646 */ 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)) 656 657 /** 658 * wait-sync option description with 659 * "Must also have options" and "Incompatible options": 660 */ 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 */ 669 static 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)) 676 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 */ 684 685 /** 686 * slew option description: 687 */ 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: 699 */ 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) 709 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: 719 */ 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)) 730 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 738 /** 739 * mdns option description: 740 */ 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) 750 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 /* 759 * Help/More_Help/Version option descriptions: 760 */ 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) 767 #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 */ 783 extern tOptProc 784 ntpOptionPrintVersion, optionBooleanVal, optionNestedVal, 785 optionNumericVal, optionPagedUsage, optionResetOpt, 786 optionStackArg, optionTimeDate, optionTimeVal, 787 optionUnstackArg, optionVendorOption; 788 static tOptProc 789 doOptDebug_Level, doUsageOpt; 790 #define VER_PROC ntpOptionPrintVersion 791 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. 797 */ 798 static tOptDesc optDesc[OPTION_CT] = { 799 { /* entry idx, value */ 0, VALUE_OPT_IPV4, 800 /* equiv idx, value */ 0, VALUE_OPT_IPV4, 801 /* equivalenced to */ NO_EQUIVALENT, 802 /* min, max, act ct */ 0, 1, 0, 803 /* opt state flags */ IPV4_FLAGS, 0, 804 /* last opt argumnt */ { NULL }, /* --ipv4 */ 805 /* arg list/cookie */ NULL, 806 /* must/cannot opts */ NULL, aIpv4CantList, 807 /* option proc */ NULL, 808 /* desc, NAME, name */ IPV4_DESC, IPV4_NAME, IPV4_name, 809 /* disablement strs */ NULL, NULL }, 810 811 { /* entry idx, value */ 1, VALUE_OPT_IPV6, 812 /* equiv idx, value */ 1, VALUE_OPT_IPV6, 813 /* equivalenced to */ NO_EQUIVALENT, 814 /* min, max, act ct */ 0, 1, 0, 815 /* opt state flags */ IPV6_FLAGS, 0, 816 /* last opt argumnt */ { NULL }, /* --ipv6 */ 817 /* arg list/cookie */ NULL, 818 /* must/cannot opts */ NULL, aIpv6CantList, 819 /* option proc */ NULL, 820 /* desc, NAME, name */ IPV6_DESC, IPV6_NAME, IPV6_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, 828 /* last opt argumnt */ { NULL }, /* --authreq */ 829 /* arg list/cookie */ NULL, 830 /* must/cannot opts */ NULL, aAuthreqCantList, 831 /* option proc */ NULL, 832 /* desc, NAME, name */ AUTHREQ_DESC, AUTHREQ_NAME, AUTHREQ_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, 840 /* last opt argumnt */ { NULL }, /* --authnoreq */ 841 /* arg list/cookie */ NULL, 842 /* must/cannot opts */ NULL, aAuthnoreqCantList, 843 /* option proc */ NULL, 844 /* desc, NAME, name */ AUTHNOREQ_DESC, AUTHNOREQ_NAME, AUTHNOREQ_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, 852 /* last opt argumnt */ { NULL }, /* --bcastsync */ 853 /* arg list/cookie */ NULL, 854 /* must/cannot opts */ NULL, NULL, 855 /* option proc */ NULL, 856 /* desc, NAME, name */ BCASTSYNC_DESC, BCASTSYNC_NAME, BCASTSYNC_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, 864 /* last opt argumnt */ { NULL }, /* --configfile */ 865 /* arg list/cookie */ NULL, 866 /* must/cannot opts */ NULL, NULL, 867 /* option proc */ NULL, 868 /* desc, NAME, name */ CONFIGFILE_DESC, CONFIGFILE_NAME, CONFIGFILE_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, 876 /* last opt argumnt */ { NULL }, /* --debug-level */ 877 /* arg list/cookie */ NULL, 878 /* must/cannot opts */ NULL, NULL, 879 /* option proc */ doOptDebug_Level, 880 /* desc, NAME, name */ DEBUG_LEVEL_DESC, DEBUG_LEVEL_NAME, DEBUG_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, 888 /* last opt argumnt */ { NULL }, /* --set-debug-level */ 889 /* arg list/cookie */ NULL, 890 /* 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, 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, 900 /* last opt argumnt */ { NULL }, /* --driftfile */ 901 /* arg list/cookie */ NULL, 902 /* must/cannot opts */ NULL, NULL, 903 /* option proc */ NULL, 904 /* desc, NAME, name */ DRIFTFILE_DESC, DRIFTFILE_NAME, DRIFTFILE_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, 910 /* min, max, act ct */ 0, NOLIMIT, 0, 911 /* opt state flags */ PANICGATE_FLAGS, 0, 912 /* last opt argumnt */ { NULL }, /* --panicgate */ 913 /* arg list/cookie */ NULL, 914 /* must/cannot opts */ NULL, NULL, 915 /* option proc */ NULL, 916 /* desc, NAME, name */ PANICGATE_DESC, PANICGATE_NAME, PANICGATE_name, 917 /* disablement strs */ NULL, NULL }, 918 919 { /* entry idx, value */ 10, VALUE_OPT_FORCE_STEP_ONCE, 920 /* equiv idx, value */ 10, VALUE_OPT_FORCE_STEP_ONCE, 921 /* equivalenced to */ NO_EQUIVALENT, 922 /* 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, 936 /* last opt argumnt */ { NULL }, /* --jaildir */ 937 /* arg list/cookie */ NULL, 938 /* must/cannot opts */ NULL, NULL, 939 /* option proc */ NULL, 940 /* desc, NAME, name */ JAILDIR_DESC, JAILDIR_NAME, JAILDIR_name, 941 /* disablement strs */ NULL, NULL }, 942 943 { /* entry idx, value */ 12, VALUE_OPT_INTERFACE, 944 /* equiv idx, value */ 12, VALUE_OPT_INTERFACE, 945 /* equivalenced to */ NO_EQUIVALENT, 946 /* min, max, act ct */ 0, NOLIMIT, 0, 947 /* opt state flags */ INTERFACE_FLAGS, 0, 948 /* last opt argumnt */ { NULL }, /* --interface */ 949 /* arg list/cookie */ NULL, 950 /* must/cannot opts */ NULL, NULL, 951 /* option proc */ optionStackArg, 952 /* desc, NAME, name */ INTERFACE_DESC, INTERFACE_NAME, INTERFACE_name, 953 /* disablement strs */ NULL, NULL }, 954 955 { /* entry idx, value */ 13, VALUE_OPT_KEYFILE, 956 /* equiv idx, value */ 13, VALUE_OPT_KEYFILE, 957 /* equivalenced to */ NO_EQUIVALENT, 958 /* min, max, act ct */ 0, 1, 0, 959 /* opt state flags */ KEYFILE_FLAGS, 0, 960 /* last opt argumnt */ { NULL }, /* --keyfile */ 961 /* arg list/cookie */ NULL, 962 /* must/cannot opts */ NULL, NULL, 963 /* option proc */ NULL, 964 /* desc, NAME, name */ KEYFILE_DESC, KEYFILE_NAME, KEYFILE_name, 965 /* disablement strs */ NULL, NULL }, 966 967 { /* entry idx, value */ 14, VALUE_OPT_LOGFILE, 968 /* equiv idx, value */ 14, VALUE_OPT_LOGFILE, 969 /* equivalenced to */ NO_EQUIVALENT, 970 /* min, max, act ct */ 0, 1, 0, 971 /* opt state flags */ LOGFILE_FLAGS, 0, 972 /* last opt argumnt */ { NULL }, /* --logfile */ 973 /* arg list/cookie */ NULL, 974 /* must/cannot opts */ NULL, NULL, 975 /* option proc */ NULL, 976 /* desc, NAME, name */ LOGFILE_DESC, LOGFILE_NAME, LOGFILE_name, 977 /* disablement strs */ NULL, NULL }, 978 979 { /* entry idx, value */ 15, VALUE_OPT_NOVIRTUALIPS, 980 /* equiv idx, value */ 15, VALUE_OPT_NOVIRTUALIPS, 981 /* equivalenced to */ NO_EQUIVALENT, 982 /* min, max, act ct */ 0, 1, 0, 983 /* opt state flags */ NOVIRTUALIPS_FLAGS, 0, 984 /* last opt argumnt */ { NULL }, /* --novirtualips */ 985 /* arg list/cookie */ NULL, 986 /* must/cannot opts */ NULL, NULL, 987 /* option proc */ NULL, 988 /* desc, NAME, name */ NOVIRTUALIPS_DESC, NOVIRTUALIPS_NAME, NOVIRTUALIPS_name, 989 /* disablement strs */ NULL, NULL }, 990 991 { /* entry idx, value */ 16, VALUE_OPT_MODIFYMMTIMER, 992 /* equiv idx, value */ 16, VALUE_OPT_MODIFYMMTIMER, 993 /* equivalenced to */ NO_EQUIVALENT, 994 /* min, max, act ct */ 0, 1, 0, 995 /* opt state flags */ MODIFYMMTIMER_FLAGS, 0, 996 /* last opt argumnt */ { NULL }, /* --modifymmtimer */ 997 /* arg list/cookie */ NULL, 998 /* must/cannot opts */ NULL, NULL, 999 /* option proc */ NULL, 1000 /* desc, NAME, name */ MODIFYMMTIMER_DESC, MODIFYMMTIMER_NAME, MODIFYMMTIMER_name, 1001 /* disablement strs */ NULL, NULL }, 1002 1003 { /* entry idx, value */ 17, VALUE_OPT_NOFORK, 1004 /* equiv idx, value */ 17, VALUE_OPT_NOFORK, 1005 /* equivalenced to */ NO_EQUIVALENT, 1006 /* min, max, act ct */ 0, 1, 0, 1007 /* opt state flags */ NOFORK_FLAGS, 0, 1008 /* last opt argumnt */ { NULL }, /* --nofork */ 1009 /* arg list/cookie */ NULL, 1010 /* must/cannot opts */ NULL, aNoforkCantList, 1011 /* option proc */ NULL, 1012 /* desc, NAME, name */ NOFORK_DESC, NOFORK_NAME, NOFORK_name, 1013 /* disablement strs */ NULL, NULL }, 1014 1015 { /* entry idx, value */ 18, VALUE_OPT_NICE, 1016 /* equiv idx, value */ 18, VALUE_OPT_NICE, 1017 /* equivalenced to */ NO_EQUIVALENT, 1018 /* min, max, act ct */ 0, 1, 0, 1019 /* opt state flags */ NICE_FLAGS, 0, 1020 /* last opt argumnt */ { NULL }, /* --nice */ 1021 /* arg list/cookie */ NULL, 1022 /* must/cannot opts */ NULL, NULL, 1023 /* option proc */ NULL, 1024 /* desc, NAME, name */ NICE_DESC, NICE_NAME, NICE_name, 1025 /* disablement strs */ NULL, NULL }, 1026 1027 { /* entry idx, value */ 19, VALUE_OPT_PIDFILE, 1028 /* equiv idx, value */ 19, VALUE_OPT_PIDFILE, 1029 /* equivalenced to */ NO_EQUIVALENT, 1030 /* min, max, act ct */ 0, 1, 0, 1031 /* opt state flags */ PIDFILE_FLAGS, 0, 1032 /* last opt argumnt */ { NULL }, /* --pidfile */ 1033 /* arg list/cookie */ NULL, 1034 /* must/cannot opts */ NULL, NULL, 1035 /* option proc */ NULL, 1036 /* desc, NAME, name */ PIDFILE_DESC, PIDFILE_NAME, PIDFILE_name, 1037 /* disablement strs */ NULL, NULL }, 1038 1039 { /* entry idx, value */ 20, VALUE_OPT_PRIORITY, 1040 /* equiv idx, value */ 20, VALUE_OPT_PRIORITY, 1041 /* equivalenced to */ NO_EQUIVALENT, 1042 /* min, max, act ct */ 0, 1, 0, 1043 /* opt state flags */ PRIORITY_FLAGS, 0, 1044 /* last opt argumnt */ { NULL }, /* --priority */ 1045 /* arg list/cookie */ NULL, 1046 /* must/cannot opts */ NULL, NULL, 1047 /* option proc */ optionNumericVal, 1048 /* desc, NAME, name */ PRIORITY_DESC, PRIORITY_NAME, PRIORITY_name, 1049 /* disablement strs */ NULL, NULL }, 1050 1051 { /* entry idx, value */ 21, VALUE_OPT_QUIT, 1052 /* equiv idx, value */ 21, VALUE_OPT_QUIT, 1053 /* equivalenced to */ NO_EQUIVALENT, 1054 /* min, max, act ct */ 0, 1, 0, 1055 /* opt state flags */ QUIT_FLAGS, 0, 1056 /* last opt argumnt */ { NULL }, /* --quit */ 1057 /* arg list/cookie */ NULL, 1058 /* must/cannot opts */ NULL, aQuitCantList, 1059 /* option proc */ NULL, 1060 /* desc, NAME, name */ QUIT_DESC, QUIT_NAME, QUIT_name, 1061 /* disablement strs */ NULL, NULL }, 1062 1063 { /* entry idx, value */ 22, VALUE_OPT_PROPAGATIONDELAY, 1064 /* equiv idx, value */ 22, VALUE_OPT_PROPAGATIONDELAY, 1065 /* equivalenced to */ NO_EQUIVALENT, 1066 /* min, max, act ct */ 0, 1, 0, 1067 /* opt state flags */ PROPAGATIONDELAY_FLAGS, 0, 1068 /* last opt argumnt */ { NULL }, /* --propagationdelay */ 1069 /* arg list/cookie */ NULL, 1070 /* must/cannot opts */ NULL, NULL, 1071 /* option proc */ NULL, 1072 /* desc, NAME, name */ PROPAGATIONDELAY_DESC, PROPAGATIONDELAY_NAME, PROPAGATIONDELAY_name, 1073 /* disablement strs */ NULL, NULL }, 1074 1075 { /* entry idx, value */ 23, VALUE_OPT_SAVECONFIGQUIT, 1076 /* equiv idx, value */ 23, VALUE_OPT_SAVECONFIGQUIT, 1077 /* equivalenced to */ NO_EQUIVALENT, 1078 /* min, max, act ct */ 0, 1, 0, 1079 /* opt state flags */ SAVECONFIGQUIT_FLAGS, 0, 1080 /* last opt argumnt */ { NULL }, /* --saveconfigquit */ 1081 /* arg list/cookie */ NULL, 1082 /* must/cannot opts */ NULL, aSaveconfigquitCantList, 1083 /* option proc */ NULL, 1084 /* desc, NAME, name */ SAVECONFIGQUIT_DESC, SAVECONFIGQUIT_NAME, SAVECONFIGQUIT_name, 1085 /* disablement strs */ NULL, NULL }, 1086 1087 { /* entry idx, value */ 24, VALUE_OPT_STATSDIR, 1088 /* equiv idx, value */ 24, VALUE_OPT_STATSDIR, 1089 /* equivalenced to */ NO_EQUIVALENT, 1090 /* min, max, act ct */ 0, 1, 0, 1091 /* opt state flags */ STATSDIR_FLAGS, 0, 1092 /* last opt argumnt */ { NULL }, /* --statsdir */ 1093 /* arg list/cookie */ NULL, 1094 /* must/cannot opts */ NULL, NULL, 1095 /* option proc */ NULL, 1096 /* desc, NAME, name */ STATSDIR_DESC, STATSDIR_NAME, STATSDIR_name, 1097 /* disablement strs */ NULL, NULL }, 1098 1099 { /* entry idx, value */ 25, VALUE_OPT_TRUSTEDKEY, 1100 /* equiv idx, value */ 25, VALUE_OPT_TRUSTEDKEY, 1101 /* equivalenced to */ NO_EQUIVALENT, 1102 /* min, max, act ct */ 0, NOLIMIT, 0, 1103 /* opt state flags */ TRUSTEDKEY_FLAGS, 0, 1104 /* last opt argumnt */ { NULL }, /* --trustedkey */ 1105 /* arg list/cookie */ NULL, 1106 /* must/cannot opts */ NULL, NULL, 1107 /* option proc */ optionStackArg, 1108 /* desc, NAME, name */ TRUSTEDKEY_DESC, TRUSTEDKEY_NAME, TRUSTEDKEY_name, 1109 /* disablement strs */ NULL, NULL }, 1110 1111 { /* entry idx, value */ 26, VALUE_OPT_USER, 1112 /* equiv idx, value */ 26, VALUE_OPT_USER, 1113 /* equivalenced to */ NO_EQUIVALENT, 1114 /* min, max, act ct */ 0, 1, 0, 1115 /* opt state flags */ USER_FLAGS, 0, 1116 /* last opt argumnt */ { NULL }, /* --user */ 1117 /* arg list/cookie */ NULL, 1118 /* must/cannot opts */ NULL, NULL, 1119 /* option proc */ NULL, 1120 /* desc, NAME, name */ USER_DESC, USER_NAME, USER_name, 1121 /* disablement strs */ NULL, NULL }, 1122 1123 { /* entry idx, value */ 27, VALUE_OPT_UPDATEINTERVAL, 1124 /* equiv idx, value */ 27, VALUE_OPT_UPDATEINTERVAL, 1125 /* 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, 1140 /* last opt argumnt */ { NULL }, /* --var */ 1141 /* arg list/cookie */ NULL, 1142 /* must/cannot opts */ NULL, NULL, 1143 /* option proc */ optionStackArg, 1144 /* desc, NAME, name */ VAR_DESC, VAR_NAME, VAR_name, 1145 /* disablement strs */ NULL, NULL }, 1146 1147 { /* entry idx, value */ 29, VALUE_OPT_DVAR, 1148 /* equiv idx, value */ 29, VALUE_OPT_DVAR, 1149 /* equivalenced to */ NO_EQUIVALENT, 1150 /* min, max, act ct */ 0, NOLIMIT, 0, 1151 /* opt state flags */ DVAR_FLAGS, 0, 1152 /* last opt argumnt */ { NULL }, /* --dvar */ 1153 /* arg list/cookie */ NULL, 1154 /* must/cannot opts */ NULL, NULL, 1155 /* option proc */ optionStackArg, 1156 /* desc, NAME, name */ DVAR_DESC, DVAR_NAME, DVAR_name, 1157 /* disablement strs */ NULL, NULL }, 1158 1159 { /* entry idx, value */ 30, VALUE_OPT_WAIT_SYNC, 1160 /* equiv idx, value */ 30, VALUE_OPT_WAIT_SYNC, 1161 /* equivalenced to */ NO_EQUIVALENT, 1162 /* 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, 1176 /* last opt argumnt */ { NULL }, /* --slew */ 1177 /* arg list/cookie */ NULL, 1178 /* must/cannot opts */ NULL, NULL, 1179 /* option proc */ NULL, 1180 /* desc, NAME, name */ SLEW_DESC, SLEW_NAME, SLEW_name, 1181 /* disablement strs */ NULL, NULL }, 1182 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 }, 1194 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, 1220 /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_VERSION, 1221 /* equivalenced to */ NO_EQUIVALENT, 1222 /* min, max, act ct */ 0, 1, 0, 1223 /* opt state flags */ VER_FLAGS, AOUSE_VERSION, 1224 /* last opt argumnt */ { NULL }, 1225 /* arg list/cookie */ NULL, 1226 /* must/cannot opts */ NULL, NULL, 1227 /* option proc */ VER_PROC, 1228 /* desc, NAME, name */ VER_DESC, NULL, VER_name, 1229 /* disablement strs */ NULL, NULL }, 1230 1231 1232 1233 { /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP, 1234 /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_HELP, 1235 /* equivalenced to */ NO_EQUIVALENT, 1236 /* min, max, act ct */ 0, 1, 0, 1237 /* opt state flags */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP, 1238 /* last opt argumnt */ { NULL }, 1239 /* arg list/cookie */ NULL, 1240 /* must/cannot opts */ NULL, NULL, 1241 /* option proc */ doUsageOpt, 1242 /* desc, NAME, name */ HELP_DESC, NULL, HELP_name, 1243 /* disablement strs */ NULL, NULL }, 1244 1245 { /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP, 1246 /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP, 1247 /* equivalenced to */ NO_EQUIVALENT, 1248 /* min, max, act ct */ 0, 1, 0, 1249 /* opt state flags */ MORE_HELP_FLAGS, AOUSE_MORE_HELP, 1250 /* last opt argumnt */ { NULL }, 1251 /* arg list/cookie */ NULL, 1252 /* must/cannot opts */ NULL, NULL, 1253 /* option proc */ optionPagedUsage, 1254 /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name, 1255 /* disablement strs */ NULL, NULL } 1256 }; 1257 1258 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 */ 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 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 */ 1301 static void 1302 doUsageOpt(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 */ 1320 static void 1321 doOptDebug_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 */ 1330 OPT_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. */ 1351 static 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 */ 1370 tOptions 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 1379 + OPTPROC_MISUSE ), 1380 0, NULL, /* current option index, current option */ 1381 NULL, NULL, zPROGNAME, 1382 zRcName, zCopyright, zLicenseDescrip, 1383 zFullVersion, apzHomeList, zUsageTitle, 1384 zExplain, zDetail, optDesc, 1385 zBugsAddr, /* address to send bugs to */ 1386 NULL, NULL, /* extensions/saved state */ 1387 optionUsage, /* usage procedure */ 1388 translate_option_strings, /* translation procedure */ 1389 /* 1390 * Indexes to special options 1391 */ 1392 { INDEX_OPT_MORE_HELP, /* more-help option index */ 1393 NO_EQUIVALENT, /* save option index */ 1394 NO_EQUIVALENT, /* '-#' option index */ 1395 NO_EQUIVALENT /* index of default opt */ 1396 }, 1397 38 /* full option count */, 35 /* user option count */, 1398 ntpd_full_usage, ntpd_short_usage, 1399 NULL, NULL, 1400 PKGDATADIR, ntpd_packager_info 1401 }; 1402 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(). 1408 */ 1409 #include <stdio.h> 1410 #include <stdlib.h> 1411 #include <string.h> 1412 #include <unistd.h> 1413 #ifdef HAVE_DCGETTEXT 1414 # include <gettext.h> 1415 #endif 1416 #include <autoopts/usage-txt.h> 1417 1418 static char * AO_gettext(char const * pz); 1419 static void coerce_it(void ** s); 1420 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 */ 1431 static char * 1432 AO_gettext(char const * pz) 1433 { 1434 char * res; 1435 if (pz == NULL) 1436 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); 1458 } 1459 return res; 1460 } 1461 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 */ 1466 static void coerce_it(void ** s) { *s = AO_gettext(*s); 1467 } 1468 1469 /** 1470 * Translate all the translatable strings in the ntpdOptions 1471 * structure defined above. This is done only once. 1472 */ 1473 static void 1474 translate_option_strings(void) 1475 { 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 */ 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; 1489 1490 do { 1491 ppz++; /* skip over field_ct */ 1492 *ppz = AO_gettext(*ppz); 1493 } while (--ix > 0); 1494 /* prevent re-translation and disable "libopts" domain lookup */ 1495 option_xlateable_txt.field_ct = 0; 1496 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))); 1507 } 1508 } 1509 } 1510 #endif /* ENABLE_NLS */ 1511 1512 #ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT 1513 /** I18N function strictly for xgettext. Do not compile. */ 1514 static 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.8p5\n\ 1533 Copyright (C) 1992-2015 The University of Delaware and Network Time Foundation, all rights reserved.\n\ 1534 This is free software. It is licensed for use, modification and\n\ 1535 redistribution under the terms of the NTP License, copies of which\n\ 1536 can 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\ 1542 documentation for any purpose with or without fee is hereby granted,\n\ 1543 provided that the above copyright notice appears in all copies and that\n\ 1544 both the copyright notice and this permission notice appear in supporting\n\ 1545 documentation, and that the name The University of Delaware not be used in\n\ 1546 advertising or publicity pertaining to distribution of the software without\n\ 1547 specific, written prior permission. The University of Delaware and Network\n\ 1548 Time Foundation makes no representations about the suitability this\n\ 1549 software for any purpose. It is provided \"as is\" without express or\n\ 1550 implied 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.8p5\n\ 1674 Usage: %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.8p5")); 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 */ 1985