~ubuntu-branches/debian/sid/ntp/sid

« back to all changes in this revision

Viewing changes to sntp/sntp-opts.h

  • Committer: Package Import Robot
  • Author(s): Peter Eisentraut
  • Date: 2012-02-27 13:55:56 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20120227135556-dkx4mkod5trl5bgt
Tags: 1:4.2.6.p5+dfsg-1
* New upstream release (closes: #644673)
* Updated instructions on generating autotools.patch
* Updated standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  
2
2
 *  EDIT THIS FILE WITH CAUTION  (sntp-opts.h)
3
3
 *  
4
 
 *  It has been AutoGen-ed  January  3, 2011 at 09:07:39 PM by AutoGen 5.11.6pre7
 
4
 *  It has been AutoGen-ed  December 24, 2011 at 06:33:53 PM by AutoGen 5.12
5
5
 *  From the definitions    sntp-opts.def
6
6
 *  and the template file   options
7
7
 *
8
 
 * Generated from AutoOpts 34:0:9 templates.
 
8
 * Generated from AutoOpts 35:0:10 templates.
9
9
 *
10
10
 *  AutoOpts is a copyrighted work.  This header file is not encumbered
11
11
 *  by AutoOpts licensing, but is provided under the licensing terms chosen
17
17
 *
18
18
 * This source file is copyrighted and licensed under the following terms:
19
19
 *
20
 
 * sntp copyright (c) 1970-2011 David L. Mills and/or others - all rights reserved
21
 
 *
22
 
 * see html/copyright.html
 
20
 *  see html/copyright.html
 
21
 *  
23
22
 */
24
23
/*
25
24
 *  This file contains the programmatic interface to the Automated
39
38
 *  tolerable version is at least as old as what was current when the header
40
39
 *  template was released.
41
40
 */
42
 
#define AO_TEMPLATE_VERSION 139264
 
41
#define AO_TEMPLATE_VERSION 143360
43
42
#if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
44
43
 || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
45
44
# error option template version mismatches autoopts/options.h header
55
54
    INDEX_OPT_NORMALVERBOSE   =  2,
56
55
    INDEX_OPT_KOD             =  3,
57
56
    INDEX_OPT_SYSLOG          =  4,
58
 
    INDEX_OPT_FILELOG         =  5,
 
57
    INDEX_OPT_LOGFILE         =  5,
59
58
    INDEX_OPT_SETTOD          =  6,
60
59
    INDEX_OPT_ADJTIME         =  7,
61
60
    INDEX_OPT_BROADCAST       =  8,
70
69
} teOptIndex;
71
70
 
72
71
#define OPTION_CT    17
73
 
#define SNTP_VERSION       "4.2.6p3"
74
 
#define SNTP_FULL_VERSION  "sntp - standard SNTP program - Ver. 4.2.6p3"
 
72
#define SNTP_VERSION       "4.2.6p5"
 
73
#define SNTP_FULL_VERSION  "sntp 4.2.6p5"
75
74
 
76
75
/*
77
76
 *  Interface defines for all options.  Replace "n" with the UPPER_CASED
102
101
    SNTP_EXIT_SUCCESS = 0,
103
102
    SNTP_EXIT_FAILURE = 1
104
103
} sntp_exit_code_t;
105
 
 
106
104
/*
107
105
 *  Make sure there are no #define name conflicts with the option names
108
106
 */
127
125
#  warning undefining SYSLOG due to option name conflict
128
126
#  undef   SYSLOG
129
127
# endif
130
 
# ifdef    FILELOG
131
 
#  warning undefining FILELOG due to option name conflict
132
 
#  undef   FILELOG
 
128
# ifdef    LOGFILE
 
129
#  warning undefining LOGFILE due to option name conflict
 
130
#  undef   LOGFILE
133
131
# endif
134
132
# ifdef    SETTOD
135
133
#  warning undefining SETTOD due to option name conflict
161
159
# undef NORMALVERBOSE
162
160
# undef KOD
163
161
# undef SYSLOG
164
 
# undef FILELOG
 
162
# undef LOGFILE
165
163
# undef SETTOD
166
164
# undef ADJTIME
167
165
# undef BROADCAST
179
177
#define VALUE_OPT_NORMALVERBOSE  'd'
180
178
#define VALUE_OPT_KOD            'K'
181
179
#define VALUE_OPT_SYSLOG         'p'
182
 
#define VALUE_OPT_FILELOG        'l'
 
180
#define VALUE_OPT_LOGFILE        'l'
183
181
#define VALUE_OPT_SETTOD         's'
184
182
#define VALUE_OPT_ADJTIME        'j'
185
183
#define VALUE_OPT_BROADCAST      'b'
209
207
                sntpOptions.pzCurOpt  = NULL)
210
208
#define START_OPT       RESTART_OPT(1)
211
209
#define USAGE(c)        (*sntpOptions.pUsageProc)(&sntpOptions, c)
212
 
/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 435 */
 
210
/* extracted from opthead.tlib near line 451 */
 
211
 
 
212
#ifdef  __cplusplus
 
213
extern "C" {
 
214
#endif
213
215
 
214
216
/* * * * * *
215
217
 *
216
218
 *  Declare the sntp option descriptor.
217
219
 */
218
 
#ifdef  __cplusplus
219
 
extern "C" {
220
 
#endif
221
 
 
222
 
extern tOptions   sntpOptions;
 
220
extern tOptions sntpOptions;
223
221
 
224
222
#if defined(ENABLE_NLS)
225
223
# ifndef _
226
224
#   include <stdio.h>
227
 
    static inline char* aoGetsText(char const* pz) {
228
 
        if (pz == NULL) return NULL;
229
 
        return (char*)gettext(pz);
230
 
    }
 
225
static inline char* aoGetsText(char const* pz) {
 
226
    if (pz == NULL) return NULL;
 
227
    return (char*)gettext(pz);
 
228
}
231
229
#   define _(s)  aoGetsText(s)
232
230
# endif /* _() */
233
231