File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / sntp / libopts / proto.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 7 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    1: /* -*- buffer-read-only: t -*- vi: set ro:
    2:  *
    3:  * Prototypes for autoopts
    4:  * Generated Fri Apr 29 15:44:06 PDT 2011
    5:  */
    6: #ifndef AUTOOPTS_PROTO_H_GUARD
    7: #define AUTOOPTS_PROTO_H_GUARD 1
    8: 
    9: #ifndef LOCAL
   10: #  define LOCAL extern
   11: #  define REDEF_LOCAL 1
   12: #else
   13: #  undef  REDEF_LOCAL
   14: #endif
   15: /*
   16:  *  Extracted from autoopts.c
   17:  */
   18: LOCAL void *
   19: ao_malloc(size_t sz);
   20: 
   21: LOCAL void *
   22: ao_realloc(void *p, size_t sz);
   23: 
   24: LOCAL char *
   25: ao_strdup(char const *str);
   26: 
   27: LOCAL tSuccess
   28: handle_opt(tOptions* pOpts, tOptState* pOptState);
   29: 
   30: LOCAL tSuccess
   31: longOptionFind(tOptions* pOpts, char* pzOptName, tOptState* pOptState);
   32: 
   33: LOCAL tSuccess
   34: shortOptionFind(tOptions* pOpts, uint_t optValue, tOptState* pOptState);
   35: 
   36: LOCAL tSuccess
   37: doImmediateOpts(tOptions* pOpts);
   38: 
   39: LOCAL tSuccess
   40: doRegularOpts(tOptions* pOpts);
   41: 
   42: /*
   43:  *  Extracted from configfile.c
   44:  */
   45: LOCAL void
   46: internalFileLoad(tOptions* pOpts);
   47: 
   48: LOCAL char*
   49: parseAttributes(
   50:     tOptions*           pOpts,
   51:     char*               pzText,
   52:     tOptionLoadMode*    pMode,
   53:     tOptionValue*       pType );
   54: 
   55: LOCAL tSuccess
   56: validateOptionsStruct(tOptions* pOpts, char const* pzProgram);
   57: 
   58: /*
   59:  *  Extracted from environment.c
   60:  */
   61: LOCAL void
   62: doPrognameEnv(tOptions* pOpts, teEnvPresetType type);
   63: 
   64: LOCAL void
   65: doEnvPresets(tOptions* pOpts, teEnvPresetType type);
   66: 
   67: /*
   68:  *  Extracted from load.c
   69:  */
   70: LOCAL void
   71: mungeString(char* pzTxt, tOptionLoadMode mode);
   72: 
   73: LOCAL void
   74: loadOptionLine(
   75:     tOptions*   pOpts,
   76:     tOptState*  pOS,
   77:     char*       pzLine,
   78:     tDirection  direction,
   79:     tOptionLoadMode   load_mode );
   80: 
   81: /*
   82:  *  Extracted from nested.c
   83:  */
   84: LOCAL void
   85: unload_arg_list(tArgList* pAL);
   86: 
   87: LOCAL tOptionValue*
   88: optionLoadNested(char const* pzTxt, char const* pzName, size_t nameLen);
   89: 
   90: LOCAL int
   91: get_special_char(char const ** ppz, int * ct);
   92: 
   93: LOCAL void
   94: emit_special_char(FILE * fp, int ch);
   95: 
   96: /*
   97:  *  Extracted from sort.c
   98:  */
   99: LOCAL void
  100: optionSort(tOptions* pOpts);
  101: 
  102: /*
  103:  *  Extracted from stack.c
  104:  */
  105: LOCAL void
  106: addArgListEntry(void** ppAL, void* entry);
  107: 
  108: #ifdef REDEF_LOCAL
  109: #  undef LOCAL
  110: #  define LOCAL
  111: #endif
  112: #endif /* AUTOOPTS_PROTO_H_GUARD */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>