PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/contrib/ntp/sntp/libopts/proto.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 91 lines | 60 code | 19 blank | 12 comment | 0 complexity | 4ed759a8e4ed57dd1f833eb316d1078d MD5 | raw file
 1/* -*- buffer-read-only: t -*- vi: set ro:
 2 *
 3 * Prototypes for autoopts
 4 * Generated Sat May  5 12:02:36 PDT 2007
 5 */
 6#ifndef AUTOOPTS_PROTO_H_GUARD
 7#define AUTOOPTS_PROTO_H_GUARD 1
 8#ifndef LOCAL
 9#  define LOCAL extern
10#  define REDEF_LOCAL 1
11#else
12#  undef  REDEF_LOCAL
13#endif
14/*\n *  Extracted from autoopts.c\n */
15LOCAL void *
16ao_malloc( size_t sz );
17
18LOCAL void *
19ao_realloc( void *p, size_t sz );
20
21LOCAL void
22ao_free( void *p );
23
24LOCAL char *
25ao_strdup( char const *str );
26
27LOCAL tSuccess
28handleOption( tOptions* pOpts, tOptState* pOptState );
29
30LOCAL tSuccess
31longOptionFind( tOptions* pOpts, char* pzOptName, tOptState* pOptState );
32
33LOCAL tSuccess
34shortOptionFind( tOptions* pOpts, uint_t optValue, tOptState* pOptState );
35
36LOCAL tSuccess
37doImmediateOpts( tOptions* pOpts );
38
39LOCAL tSuccess
40doRegularOpts( tOptions* pOpts );
41
42/*\n *  Extracted from configfile.c\n */
43LOCAL void
44internalFileLoad( tOptions* pOpts );
45
46LOCAL char*
47parseAttributes(
48    tOptions*           pOpts,
49    char*               pzText,
50    tOptionLoadMode*    pMode,
51    tOptionValue*       pType );
52
53LOCAL tSuccess
54validateOptionsStruct( tOptions* pOpts, char const* pzProgram );
55
56/*\n *  Extracted from environment.c\n */
57LOCAL void
58doPrognameEnv( tOptions* pOpts, teEnvPresetType type );
59
60LOCAL void
61doEnvPresets( tOptions* pOpts, teEnvPresetType type );
62
63/*\n *  Extracted from load.c\n */
64LOCAL void
65mungeString( char* pzTxt, tOptionLoadMode mode );
66
67LOCAL void
68loadOptionLine(
69    tOptions*   pOpts,
70    tOptState*  pOS,
71    char*       pzLine,
72    tDirection  direction,
73    tOptionLoadMode   load_mode );
74
75/*\n *  Extracted from nested.c\n */
76LOCAL tOptionValue*
77optionLoadNested(char const* pzTxt, char const* pzName, size_t nameLen);
78
79/*\n *  Extracted from sort.c\n */
80LOCAL void
81optionSort( tOptions* pOpts );
82
83/*\n *  Extracted from stack.c\n */
84LOCAL void
85addArgListEntry( void** ppAL, void* entry );
86
87#ifdef REDEF_LOCAL
88#  undef LOCAL
89#  define LOCAL
90#endif
91#endif /* AUTOOPTS_PROTO_H_GUARD */