Deleted Added
full compact
ntpdc-opts.c (182007) ntpdc-opts.c (200576)
1/*
2 * EDIT THIS FILE WITH CAUTION (ntpdc-opts.c)
3 *
1/*
2 * EDIT THIS FILE WITH CAUTION (ntpdc-opts.c)
3 *
4 * It has been AutoGen-ed Sunday August 17, 2008 at 05:26:25 AM EDT
4 * It has been AutoGen-ed Tuesday December 8, 2009 at 08:14:00 AM EST
5 * From the definitions ntpdc-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 * ntpdc 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 ntpdc-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 * ntpdc 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 * ntpdc copyright 1970-2008 David L. Mills and/or others - all rights reserved
22 * ntpdc 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 "ntpdc-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 "ntpdc-opts.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36tSCC zCopyright[] =
37 "ntpdc copyright (c) 1970-2008 David L. Mills and/or others, all rights reserved";
37 "ntpdc 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

--- 411 unchanged lines hidden (view full) ---

457};
458
459/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
460 *
461 * Define the Ntpdc Option Environment
462 */
463tSCC zPROGNAME[] = "NTPDC";
464tSCC 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

--- 411 unchanged lines hidden (view full) ---

457};
458
459/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
460 *
461 * Define the Ntpdc Option Environment
462 */
463tSCC zPROGNAME[] = "NTPDC";
464tSCC zUsageTitle[] =
465"ntpdc - vendor-specific NTP query program - Ver. 4.2.4p5\n\
465"ntpdc - vendor-specific NTP query program - Ver. 4.2.4p8\n\
466USAGE: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n";
467tSCC zRcName[] = ".ntprc";
468tSCC* apzHomeList[] = {
469 "$HOME",
470 ".",
471 NULL };
472
466USAGE: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n";
467tSCC zRcName[] = ".ntprc";
468tSCC* apzHomeList[] = {
469 "$HOME",
470 ".",
471 NULL };
472
473tSCC zBugsAddr[] = "http://bugs.ntp.isc.org, bugs@ntp.org";
473tSCC zBugsAddr[] = "http://bugs.ntp.org, bugs@ntp.org";
474#define zExplain NULL
475tSCC zDetail[] = "\n\
476The\n\
477[= prog-name =]\n\
478utility program is used to query an NTP daemon about its\n\
479current state and to request changes in that state.\n\
480It uses NTP mode 7 control message formats described in the source code.\n\
481The program may\n\
482be run either in interactive mode or controlled using command line\n\
483arguments.\n\
484Extensive state and statistics information is available\n\
485through the\n\
486[= prog-name =]\n\
487interface.\n\
488In addition, nearly all the\n\
489configuration options which can be specified at startup using\n\
490ntpd's configuration file may also be specified at run time using\n\
491[= prog-name =] .\n";
492tSCC zFullVersion[] = NTPDC_FULL_VERSION;
474#define zExplain NULL
475tSCC zDetail[] = "\n\
476The\n\
477[= prog-name =]\n\
478utility program is used to query an NTP daemon about its\n\
479current state and to request changes in that state.\n\
480It uses NTP mode 7 control message formats described in the source code.\n\
481The program may\n\
482be run either in interactive mode or controlled using command line\n\
483arguments.\n\
484Extensive state and statistics information is available\n\
485through the\n\
486[= prog-name =]\n\
487interface.\n\
488In addition, nearly all the\n\
489configuration options which can be specified at startup using\n\
490ntpd's configuration file may also be specified at run time using\n\
491[= prog-name =] .\n";
492tSCC zFullVersion[] = NTPDC_FULL_VERSION;
493/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 408 */
493/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optcode.tpl near line 408 */
494
495#if defined(ENABLE_NLS)
496# define OPTPROC_BASE OPTPROC_TRANSLATE
497 static tOptionXlateProc translate_option_strings;
498#else
499# define OPTPROC_BASE OPTPROC_NONE
500# define translate_option_strings NULL
501#endif /* ENABLE_NLS */

--- 53 unchanged lines hidden (view full) ---

555{
556 /* extracted from ../include/debug-opt.def, line 29 */
557DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg );
558}
559#endif /* defined DEBUG */
560
561#endif /* defined(TEST_NTPDC_OPTS) */
562
494
495#if defined(ENABLE_NLS)
496# define OPTPROC_BASE OPTPROC_TRANSLATE
497 static tOptionXlateProc translate_option_strings;
498#else
499# define OPTPROC_BASE OPTPROC_NONE
500# define translate_option_strings NULL
501#endif /* ENABLE_NLS */

--- 53 unchanged lines hidden (view full) ---

555{
556 /* extracted from ../include/debug-opt.def, line 29 */
557DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg );
558}
559#endif /* defined DEBUG */
560
561#endif /* defined(TEST_NTPDC_OPTS) */
562
563/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 92 */
563/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optmain.tpl near line 92 */
564
565#if defined(TEST_NTPDC_OPTS) /* TEST MAIN PROCEDURE: */
566
567int
568main( int argc, char** argv )
569{
570 int res = EXIT_SUCCESS;
571 (void)optionProcess( &ntpdcOptions, argc, argv );
572 {
573 void optionPutShell( tOptions* );
574 optionPutShell( &ntpdcOptions );
575 }
576 return res;
577}
578#endif /* defined TEST_NTPDC_OPTS */
564
565#if defined(TEST_NTPDC_OPTS) /* TEST MAIN PROCEDURE: */
566
567int
568main( int argc, char** argv )
569{
570 int res = EXIT_SUCCESS;
571 (void)optionProcess( &ntpdcOptions, argc, argv );
572 {
573 void optionPutShell( tOptions* );
574 optionPutShell( &ntpdcOptions );
575 }
576 return res;
577}
578#endif /* defined TEST_NTPDC_OPTS */
579/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 514 */
579/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optcode.tpl near line 514 */
580
581#if ENABLE_NLS
582#include <stdio.h>
583#include <stdlib.h>
584#include <string.h>
585#include <unistd.h>
586#include <autoopts/usage-txt.h>
587

--- 80 unchanged lines hidden ---
580
581#if ENABLE_NLS
582#include <stdio.h>
583#include <stdlib.h>
584#include <string.h>
585#include <unistd.h>
586#include <autoopts/usage-txt.h>
587

--- 80 unchanged lines hidden ---