Home
last modified time | relevance | path

Searched refs:o_st (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/ntp/sntp/libopts/
H A Dfind.c458 get_opt_arg_must(tOptions * opts, tOptState * o_st) in get_opt_arg_must() argument
460 switch (o_st->optType) { in get_opt_arg_must()
467 o_st->pzOptArg = opts->pzCurOpt; in get_opt_arg_must()
475 if (o_st->pzOptArg == NULL) in get_opt_arg_must()
476 o_st->pzOptArg = opts->origArgVect[ opts->curOptIdx++ ]; in get_opt_arg_must()
497 fprintf(stderr, zMisArg, opts->pzProgPath, o_st->pOD->pz_Name); in get_opt_arg_must()
517 get_opt_arg_may(tOptions * pOpts, tOptState * o_st) in get_opt_arg_may() argument
522 switch (o_st->optType) { in get_opt_arg_may()
525 o_st->pzOptArg = pOpts->pzCurOpt; in get_opt_arg_may()
535 o_st->pzOptArg = NULL; in get_opt_arg_may()
[all …]
H A Dautoopts.c102 handle_opt(tOptions * opts, tOptState * o_st) in handle_opt() argument
108 tOptDesc * od = o_st->pOD; in handle_opt()
113 od->optArg.argString = o_st->pzOptArg; in handle_opt()
171 o_st->flags |= OPTST_EQUIVALENCE; in handle_opt()
187 od->fOptState |= (o_st->flags & ~OPTST_PERSISTENT_MASK); in handle_opt()
215 next_opt(tOptions * opts, tOptState * o_st) in next_opt() argument
218 tSuccess res = find_opt(opts, o_st); in next_opt()
223 if ( ((o_st->flags & OPTST_DEFINED) != 0) in next_opt()
224 && ((o_st->pOD->fOptState & OPTST_NO_COMMAND) != 0)) { in next_opt()
225 fprintf(stderr, zNotCmdOpt, o_st->pOD->pz_Name); in next_opt()
[all …]
H A Dproto.h29 handle_opt(tOptions * opts, tOptState * o_st);
32 next_opt(tOptions * opts, tOptState * o_st);
190 get_opt_arg_must(tOptions * opts, tOptState * o_st);
193 get_opt_arg_may(tOptions * pOpts, tOptState * o_st);
196 get_opt_arg_none(tOptions * pOpts, tOptState * o_st);
199 get_opt_arg(tOptions * opts, tOptState * o_st);
202 find_opt(tOptions * opts, tOptState * o_st);