Searched defs:pOD (Results 1 - 10 of 10) sorted by relevance

/freebsd-head/contrib/ntp/sntp/libopts/
H A Dreset.c33 optionReset(tOptions * pOpts, tOptDesc * pOD) argument
35 pOD->fOptState &= OPTST_PERSISTENT_MASK;
36 pOD->fOptState |= OPTST_RESET;
37 if (pOD->pOptProc != NULL)
38 pOD->pOptProc(pOpts, pOD);
39 pOD->optArg.argString =
40 pOpts->originalOptArgArray[ pOD->optIndex ].argString;
41 pOD->optCookie = pOpts->originalOptArgCookie[ pOD
49 tOptDesc * pOD = pOpts->pOptDesc; local
74 optionResetOpt(tOptions * pOpts, tOptDesc * pOD) argument
[all...]
H A Dcheck.c72 occurs_enough(tOptions * pOpts, tOptDesc * pOD) argument
80 if (pOD->optOccCt >= pOD->optMinCt)
87 if ( (pOD->fOptState & OPTST_MUST_SET)
88 && (pOD->fOptState & (OPTST_PRESET | OPTST_SET)) )
91 if (pOD->optMinCt > 1)
92 fprintf(stderr, zneed_more, pOpts->pzProgName, pOD->pz_Name,
93 pOD->optMinCt);
94 else fprintf(stderr, zneed_one, pOpts->pzProgName, pOD->pz_Name);
106 tOptDesc * pOD local
[all...]
H A Dfile.c38 * @param pOD the option descriptor
41 check_existence(teOptFileType ftype, tOptions * pOpts, tOptDesc * pOD) argument
43 char const * fname = pOD->optArg.argString;
98 * @param pOD the option descriptor
102 open_file_fd(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode) argument
104 int fd = open(pOD->optArg.argString, mode.file_flags);
106 fserr_exit(pOpts->pzProgName, "open", pOD->optArg.argString);
109 if ((pOD->fOptState & OPTST_ALLOC_ARG) != 0)
110 pOD->optCookie = VOIDP(pOD
126 fopen_file_fp(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode) argument
159 optionFileCheck(tOptions * pOpts, tOptDesc * pOD, teOptFileType ftype, tuFileMode mode) argument
[all...]
H A Dnumeric.c45 optionShowRange(tOptions * pOpts, tOptDesc * pOD, void * rng_table, int rng_ct) argument
61 pOD->pz_Name, pOD->optArg.argInt);
65 if (pOD->fOptState & OPTST_SCALED_NUM)
H A Drestore.c44 tOptDesc * pOD = pOpts->pOptDesc; local
51 for (; ct-- > 0; pOD++) {
52 switch (OPTST_GET_ARGTYPE(pOD->fOptState)) {
54 if (pOD->fOptState & OPTST_STACKED) {
55 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc);
58 if (pOD->fOptState & OPTST_ALLOC_ARG) {
59 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc);
60 AGDUPSTR(q->optArg.argString, pOD->optArg.argString, "arg");
66 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc);
H A Dputshell.c45 print_enumeration(tOptions * pOpts, tOptDesc * pOD);
48 print_membership(tOptions * pOpts, tOptDesc * pOD);
51 print_stacked_arg(tOptions * pOpts, tOptDesc * pOD);
274 print_enumeration(tOptions * pOpts, tOptDesc * pOD) argument
276 uintptr_t e_val = pOD->optArg.argEnum;
277 printf(OPT_VAL_FMT, pOpts->pzPROGNAME, pOD->pz_NAME);
282 (*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, pOD);
283 printf(QUOT_ARG_FMT, pOD->optArg.argString);
284 if (pOD
292 print_membership(tOptions * pOpts, tOptDesc * pOD) argument
324 print_stacked_arg(tOptions * pOpts, tOptDesc * pOD) argument
378 tOptDesc * pOD = pOpts->pOptDesc + optIx; local
[all...]
H A Denum.c38 enum_err(tOptions * pOpts, tOptDesc * pOD,
42 find_name(char const * name, tOptions * pOpts, tOptDesc * pOD,
46 set_memb_shell(tOptions * pOpts, tOptDesc * pOD, char const * const * paz_names,
62 enum_err(tOptions * pOpts, tOptDesc * pOD, argument
75 pOD->optArg.argString, pOD->pz_Name);
77 fprintf(option_usage_fp, zValidKeys, pOD->pz_Name);
165 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_MEMBERSHIP) {
179 * @param pOD the option descriptor for this option
184 find_name(char const * name, tOptions * pOpts, tOptDesc * pOD, argument
254 optionKeywordName(tOptDesc * pOD, unsigned int enum_val) argument
283 optionEnumerationVal(tOptions * pOpts, tOptDesc * pOD, char const * const * paz_names, unsigned int name_ct) argument
344 set_memb_shell(tOptions * pOpts, tOptDesc * pOD, char const * const * paz_names, unsigned int name_ct) argument
[all...]
H A Dfind.c105 tOptDesc * pOD = opts->pOptDesc; local
110 if (pOD->pz_Name == NULL)
113 if (strneqvcmp(name, pOD->pz_Name, nm_len) == 0)
114 fprintf(stderr, zambig_file, hyph, pOD->pz_Name);
116 else if ( (pOD->pz_DisableName != NULL)
117 && (strneqvcmp(name, pOD->pz_DisableName, nm_len) == 0)
119 fprintf(stderr, zambig_file, hyph, pOD->pz_DisableName);
120 } while (pOD++, (++idx < opts->optCt));
140 tOptDesc * pOD = opts->pOptDesc; local
146 if (pOD
211 tOptDesc * pOD = opts->pOptDesc + idx; local
317 optionVendorOption(tOptions * pOpts, tOptDesc * pOD) argument
[all...]
H A Dsave.c45 prt_value(FILE * fp, int depth, tOptDesc * pOD, tOptionValue const * ovp);
60 prt_no_arg_opt(FILE * fp, tOptDesc * p, tOptDesc * pOD);
63 prt_str_arg(FILE * fp, tOptDesc * pOD);
343 prt_value(FILE * fp, int depth, tOptDesc * pOD, tOptionValue const * ovp) argument
360 if (pOD != NULL) {
361 uint32_t opt_state = pOD->fOptState;
362 uintptr_t val = pOD->optArg.argEnum;
372 (*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, pOD );
373 if (pOD
573 prt_no_arg_opt(FILE * fp, tOptDesc * p, tOptDesc * pOD) argument
596 prt_str_arg(FILE * fp, tOptDesc * pOD) argument
[all...]
H A Dautoopts.h218 tOptDesc * pOD; member in struct:__anon51

Completed in 236 milliseconds