ntpq-opts.c (182007) | ntpq-opts.c (200576) |
---|---|
1/* 2 * EDIT THIS FILE WITH CAUTION (ntpq-opts.c) 3 * | 1/* 2 * EDIT THIS FILE WITH CAUTION (ntpq-opts.c) 3 * |
4 * It has been AutoGen-ed Sunday August 17, 2008 at 05:26:55 AM EDT | 4 * It has been AutoGen-ed Tuesday December 8, 2009 at 08:14:26 AM EST |
5 * From the definitions ntpq-opts.def 6 * and the template file options 7 * 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 * ntpq 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. 19 * 20 * This source file is copyrighted and licensed under the following terms: 21 * | 5 * From the definitions ntpq-opts.def 6 * and the template file options 7 * 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 * ntpq 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. 19 * 20 * This source file is copyrighted and licensed under the following terms: 21 * |
22 * ntpq copyright 1970-2008 David L. Mills and/or others - all rights reserved | 22 * ntpq copyright 1970-2009 David L. Mills and/or others - all rights reserved |
23 * 24 * see html/copyright.html 25 */ 26 27 28#include <limits.h> 29 30#define OPTION_CODE_COMPILE 1 31#include "ntpq-opts.h" 32 33#ifdef __cplusplus 34extern "C" { 35#endif 36tSCC zCopyright[] = | 23 * 24 * see html/copyright.html 25 */ 26 27 28#include <limits.h> 29 30#define OPTION_CODE_COMPILE 1 31#include "ntpq-opts.h" 32 33#ifdef __cplusplus 34extern "C" { 35#endif 36tSCC zCopyright[] = |
37 "ntpq copyright (c) 1970-2008 David L. Mills and/or others, all rights reserved"; | 37 "ntpq copyright (c) 1970-2009 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; 43 44/* 45 * global included definitions --- 359 unchanged lines hidden (view full) --- 405}; 406 407/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 408 * 409 * Define the Ntpq Option Environment 410 */ 411tSCC zPROGNAME[] = "NTPQ"; 412tSCC zUsageTitle[] = | 38tSCC zCopyrightNotice[] = 39 40/* extracted from ../include/copyright.def near line 8 */ 41"see html/copyright.html"; 42extern tUsageProc optionUsage; 43 44/* 45 * global included definitions --- 359 unchanged lines hidden (view full) --- 405}; 406 407/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 408 * 409 * Define the Ntpq Option Environment 410 */ 411tSCC zPROGNAME[] = "NTPQ"; 412tSCC zUsageTitle[] = |
413"ntpq - standard NTP query program - Ver. 4.2.4p5\n\ | 413"ntpq - standard NTP query program - Ver. 4.2.4p8\n\ |
414USAGE: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n"; 415tSCC zRcName[] = ".ntprc"; 416tSCC* apzHomeList[] = { 417 "$HOME", 418 ".", 419 NULL }; 420 | 414USAGE: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n"; 415tSCC zRcName[] = ".ntprc"; 416tSCC* apzHomeList[] = { 417 "$HOME", 418 ".", 419 NULL }; 420 |
421tSCC zBugsAddr[] = "http://bugs.ntp.isc.org, bugs@ntp.org"; | 421tSCC zBugsAddr[] = "http://bugs.ntp.org, bugs@ntp.org"; |
422#define zExplain NULL 423tSCC zDetail[] = "\n\ 424The\n\ 425[= prog-name =]\n\ 426utility program is used to query NTP servers which\n\ 427implement the standard NTP mode 6 control message formats defined\n\ 428in Appendix B of the NTPv3 specification RFC1305, requesting\n\ 429information about current state and/or changes in that state.\n\ 430The same formats are used in NTPv4, although some of the\n\ 431variables have changed and new ones added.\n"; 432tSCC zFullVersion[] = NTPQ_FULL_VERSION; | 422#define zExplain NULL 423tSCC zDetail[] = "\n\ 424The\n\ 425[= prog-name =]\n\ 426utility program is used to query NTP servers which\n\ 427implement the standard NTP mode 6 control message formats defined\n\ 428in Appendix B of the NTPv3 specification RFC1305, requesting\n\ 429information about current state and/or changes in that state.\n\ 430The same formats are used in NTPv4, although some of the\n\ 431variables have changed and new ones added.\n"; 432tSCC zFullVersion[] = NTPQ_FULL_VERSION; |
433/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 408 */ | 433/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optcode.tpl near line 408 */ |
434 435#if defined(ENABLE_NLS) 436# define OPTPROC_BASE OPTPROC_TRANSLATE 437 static tOptionXlateProc translate_option_strings; 438#else 439# define OPTPROC_BASE OPTPROC_NONE 440# define translate_option_strings NULL 441#endif /* ENABLE_NLS */ --- 53 unchanged lines hidden (view full) --- 495{ 496 /* extracted from ../include/debug-opt.def, line 29 */ 497DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg ); 498} 499#endif /* defined DEBUG */ 500 501#endif /* defined(TEST_NTPQ_OPTS) */ 502 | 434 435#if defined(ENABLE_NLS) 436# define OPTPROC_BASE OPTPROC_TRANSLATE 437 static tOptionXlateProc translate_option_strings; 438#else 439# define OPTPROC_BASE OPTPROC_NONE 440# define translate_option_strings NULL 441#endif /* ENABLE_NLS */ --- 53 unchanged lines hidden (view full) --- 495{ 496 /* extracted from ../include/debug-opt.def, line 29 */ 497DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg ); 498} 499#endif /* defined DEBUG */ 500 501#endif /* defined(TEST_NTPQ_OPTS) */ 502 |
503/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 92 */ | 503/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optmain.tpl near line 92 */ |
504 505#if defined(TEST_NTPQ_OPTS) /* TEST MAIN PROCEDURE: */ 506 507int 508main( int argc, char** argv ) 509{ 510 int res = EXIT_SUCCESS; 511 (void)optionProcess( &ntpqOptions, argc, argv ); 512 { 513 void optionPutShell( tOptions* ); 514 optionPutShell( &ntpqOptions ); 515 } 516 return res; 517} 518#endif /* defined TEST_NTPQ_OPTS */ | 504 505#if defined(TEST_NTPQ_OPTS) /* TEST MAIN PROCEDURE: */ 506 507int 508main( int argc, char** argv ) 509{ 510 int res = EXIT_SUCCESS; 511 (void)optionProcess( &ntpqOptions, argc, argv ); 512 { 513 void optionPutShell( tOptions* ); 514 optionPutShell( &ntpqOptions ); 515 } 516 return res; 517} 518#endif /* defined TEST_NTPQ_OPTS */ |
519/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 514 */ | 519/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optcode.tpl near line 514 */ |
520 521#if ENABLE_NLS 522#include <stdio.h> 523#include <stdlib.h> 524#include <string.h> 525#include <unistd.h> 526#include <autoopts/usage-txt.h> 527 --- 80 unchanged lines hidden --- | 520 521#if ENABLE_NLS 522#include <stdio.h> 523#include <stdlib.h> 524#include <string.h> 525#include <unistd.h> 526#include <autoopts/usage-txt.h> 527 --- 80 unchanged lines hidden --- |