sntp-opts.c (182007) | sntp-opts.c (200576) |
---|---|
1/* 2 * EDIT THIS FILE WITH CAUTION (sntp-opts.c) 3 * | 1/* 2 * EDIT THIS FILE WITH CAUTION (sntp-opts.c) 3 * |
4 * It has been AutoGen-ed Sunday August 17, 2008 at 05:27:24 AM EDT | 4 * It has been AutoGen-ed Tuesday December 8, 2009 at 08:14:49 AM EST |
5 * From the definitions sntp-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 --- 495 unchanged lines hidden (view full) --- 508}; 509 510/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 511 * 512 * Define the Sntp Option Environment 513 */ 514tSCC zPROGNAME[] = "SNTP"; 515tSCC zUsageTitle[] = | 5 * From the definitions sntp-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 --- 495 unchanged lines hidden (view full) --- 508}; 509 510/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 511 * 512 * Define the Sntp Option Environment 513 */ 514tSCC zPROGNAME[] = "SNTP"; 515tSCC zUsageTitle[] = |
516"sntp - standard SNTP program - Ver. 4.2.4p5\n\ | 516"sntp - standard SNTP program - Ver. 4.2.4p8\n\ |
517USAGE: %s [ -<flag> | --<name> ]...\n"; 518tSCC zRcName[] = ".ntprc"; 519tSCC* apzHomeList[] = { 520 "$HOME", 521 ".", 522 NULL }; 523 | 517USAGE: %s [ -<flag> | --<name> ]...\n"; 518tSCC zRcName[] = ".ntprc"; 519tSCC* apzHomeList[] = { 520 "$HOME", 521 ".", 522 NULL }; 523 |
524tSCC zBugsAddr[] = "http://bugs.ntp.isc.org, bugs@ntp.org"; | 524tSCC zBugsAddr[] = "http://bugs.ntp.org, bugs@ntp.org"; |
525#define zExplain NULL 526tSCC zDetail[] = "\n\ 527.I sntp\n\ 528can be used as a SNTP client to query a NTP or SNTP server and either display\n\ 529the time or set the local system's time (given suitable privilege). It can be\n\ 530run as an interactive command or in a\n\ 531.I cron\n\ 532job.\n\ 533NTP is the Network Time Protocol (RFC 1305) and SNTP is the\n\ 534Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).\n"; 535tSCC zFullVersion[] = SNTP_FULL_VERSION; | 525#define zExplain NULL 526tSCC zDetail[] = "\n\ 527.I sntp\n\ 528can be used as a SNTP client to query a NTP or SNTP server and either display\n\ 529the time or set the local system's time (given suitable privilege). It can be\n\ 530run as an interactive command or in a\n\ 531.I cron\n\ 532job.\n\ 533NTP is the Network Time Protocol (RFC 1305) and SNTP is the\n\ 534Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).\n"; 535tSCC zFullVersion[] = SNTP_FULL_VERSION; |
536/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 408 */ | 536/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optcode.tpl near line 408 */ |
537 538#if defined(ENABLE_NLS) 539# define OPTPROC_BASE OPTPROC_TRANSLATE 540 static tOptionXlateProc translate_option_strings; 541#else 542# define OPTPROC_BASE OPTPROC_NONE 543# define translate_option_strings NULL 544#endif /* ENABLE_NLS */ --- 34 unchanged lines hidden (view full) --- 579 */ 580static void 581doUsageOpt( 582 tOptions* pOptions, 583 tOptDesc* pOptDesc ) 584{ 585 USAGE( EXIT_SUCCESS ); 586} | 537 538#if defined(ENABLE_NLS) 539# define OPTPROC_BASE OPTPROC_TRANSLATE 540 static tOptionXlateProc translate_option_strings; 541#else 542# define OPTPROC_BASE OPTPROC_NONE 543# define translate_option_strings NULL 544#endif /* ENABLE_NLS */ --- 34 unchanged lines hidden (view full) --- 579 */ 580static void 581doUsageOpt( 582 tOptions* pOptions, 583 tOptDesc* pOptDesc ) 584{ 585 USAGE( EXIT_SUCCESS ); 586} |
587/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 92 */ | 587/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optmain.tpl near line 92 */ |
588 589#if defined(TEST_SNTP_OPTS) /* TEST MAIN PROCEDURE: */ 590 591int 592main( int argc, char** argv ) 593{ 594 int res = EXIT_SUCCESS; 595 (void)optionProcess( &sntpOptions, argc, argv ); 596 { 597 void optionPutShell( tOptions* ); 598 optionPutShell( &sntpOptions ); 599 } 600 return res; 601} 602#endif /* defined TEST_SNTP_OPTS */ | 588 589#if defined(TEST_SNTP_OPTS) /* TEST MAIN PROCEDURE: */ 590 591int 592main( int argc, char** argv ) 593{ 594 int res = EXIT_SUCCESS; 595 (void)optionProcess( &sntpOptions, argc, argv ); 596 { 597 void optionPutShell( tOptions* ); 598 optionPutShell( &sntpOptions ); 599 } 600 return res; 601} 602#endif /* defined TEST_SNTP_OPTS */ |
603/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 514 */ | 603/* extracted from /usr/local/gnu/autogen-5.9.1/share/autogen/optcode.tpl near line 514 */ |
604 605#if ENABLE_NLS 606#include <stdio.h> 607#include <stdlib.h> 608#include <string.h> 609#include <unistd.h> 610#include <autoopts/usage-txt.h> 611 --- 80 unchanged lines hidden --- | 604 605#if ENABLE_NLS 606#include <stdio.h> 607#include <stdlib.h> 608#include <string.h> 609#include <unistd.h> 610#include <autoopts/usage-txt.h> 611 --- 80 unchanged lines hidden --- |