Searched defs:pOpts (Results 1 - 11 of 11) sorted by relevance

/freebsd-head/contrib/ntp/libntp/
H A Dntp_libopts.c28 tOptions * pOpts,
33 return optionProcess(pOpts, argc, argv);
48 tOptions * pOpts,
52 UNUSED_ARG(pOpts);
27 ntpOptionProcess( tOptions * pOpts, int argc, char ** argv ) argument
47 ntpOptionPrintVersion( tOptions * pOpts, tOptDesc * pOD ) argument
/freebsd-head/contrib/ntp/sntp/libopts/
H A Dreset.c33 optionReset(tOptions * pOpts, tOptDesc * pOD) argument
38 pOD->pOptProc(pOpts, pOD);
40 pOpts->originalOptArgArray[ pOD->optIndex ].argString;
41 pOD->optCookie = pOpts->originalOptArgCookie[ pOD->optIndex ];
47 optionResetEverything(tOptions * pOpts) argument
49 tOptDesc * pOD = pOpts->pOptDesc;
50 int ct = pOpts->presetOptCt;
53 optionReset(pOpts, pOD);
66 * arg: + tOptions * + pOpts + program options descriptor +
74 optionResetOpt(tOptions * pOpts, tOptDes argument
[all...]
H A Dcheck.c35 has_conflict(tOptions * pOpts, tOptDesc * od) argument
41 tOptDesc * p = pOpts->pOptDesc + *(must++);
43 const tOptDesc * ood = pOpts->pOptDesc + must[-1];
44 fprintf(stderr, zneed_fmt, pOpts->pzProgName,
55 tOptDesc * p = pOpts->pOptDesc + *(cant++);
57 const tOptDesc * ood = pOpts->pOptDesc + cant[-1];
58 fprintf(stderr, zconflict_fmt, pOpts->pzProgName,
72 occurs_enough(tOptions * pOpts, tOptDesc * pOD) argument
74 (void)pOpts;
92 fprintf(stderr, zneed_more, pOpts
104 is_consistent(tOptions * pOpts) argument
[all...]
H A Dfile.c37 * @param pOpts program option descriptor
41 check_existence(teOptFileType ftype, tOptions * pOpts, tOptDesc * pOD) argument
53 fserr_exit(pOpts->pzProgName, "stat", fname);
77 fserr_exit(pOpts->pzProgName, "stat", p);
87 fserr_exit(pOpts->pzProgName, "stat", fname);
97 * @param pOpts program option descriptor
102 open_file_fd(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode) argument
106 fserr_exit(pOpts->pzProgName, "open", pOD->optArg.argString);
121 * @param pOpts program option descriptor
126 fopen_file_fp(tOptions * pOpts, tOptDes argument
159 optionFileCheck(tOptions * pOpts, tOptDesc * pOD, teOptFileType ftype, tuFileMode mode) argument
[all...]
H A Dnumeric.c36 * arg: + tOptions * + pOpts + program options descriptor +
45 optionShowRange(tOptions * pOpts, tOptDesc * pOD, void * rng_table, int rng_ct) argument
55 if (pOpts != OPTPROC_EMIT_USAGE) {
56 if (pOpts <= OPTPROC_EMIT_LIMIT)
60 fprintf(option_usage_fp, zRangeErr, pOpts->pzProgName,
69 pz_indent = (pOpts != OPTPROC_EMIT_USAGE)
92 if (pOpts > OPTPROC_EMIT_LIMIT)
93 pOpts->pUsageProc(pOpts, EXIT_FAILURE);
H A Drestore.c41 fixupSavedOptionArgs(tOptions * pOpts) argument
43 tOptions * p = pOpts->pSavedState;
44 tOptDesc * pOD = pOpts->pOptDesc;
45 int ct = pOpts->optCt;
55 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc);
59 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc);
66 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc);
76 * arg: tOptions *, pOpts, program options descriptor
97 optionSaveState(tOptions * pOpts) argument
99 tOptions * p = (tOptions *)pOpts
132 optionRestore(tOptions * pOpts) argument
171 optionFree(tOptions * pOpts) argument
[all...]
H A Denv.c38 tOptions * pOpts, teEnvPresetType type);
48 doPrognameEnv(tOptions * pOpts, teEnvPresetType type) argument
50 char const * env_opts = getenv(pOpts->pzPROGNAME);
73 sv_argc = (int)pOpts->origArgCt;
74 sv_argv = pOpts->origArgVect;
75 sv_flag = pOpts->fOptSet;
85 pOpts->origArgVect = VOIDP(v - sizeof(char *));
87 pOpts->origArgCt = (unsigned int)pTL->tkn_ct + 1;
88 pOpts->fOptSet &= ~OPTPROC_ERRSTOP;
90 pOpts
118 do_env_opt(tOptState * os, char * env_name, tOptions * pOpts, teEnvPresetType type) argument
191 env_presets(tOptions * pOpts, teEnvPresetType type) argument
[all...]
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
277 printf(OPT_VAL_FMT, pOpts->pzPROGNAME, pOD->pz_NAME);
288 printf(OPT_END_FMT, pOpts->pzPROGNAME, pOD->pz_NAME);
292 print_membership(tOptions * pOpts, tOptDesc * pOD) argument
297 printf(zOptNumFmt, pOpts->pzPROGNAME, pOD->pz_NAME,
324 print_stacked_arg(tOptions * pOpts, tOptDesc * pOD) argument
330 printf(zOptCookieCt, pOpts
371 optionPutShell(tOptions * pOpts) argument
[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
71 * A real "pOpts" pointer means someone messed up. Give a real error.
73 if (pOpts > OPTPROC_EMIT_LIMIT)
74 fprintf(option_usage_fp, pz_enum_err_fmt, pOpts->pzProgName,
158 if (pOpts > OPTPROC_EMIT_LIMIT) {
161 (*(pOpts->pUsageProc))(pOpts, EXIT_FAILUR
184 find_name(char const * name, tOptions * pOpts, tOptDesc * pOD, char const * const * paz_names, unsigned int name_ct) 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.c58 get_opt_arg_may(tOptions * pOpts, tOptState * o_st);
61 get_opt_arg_none(tOptions * pOpts, tOptState * o_st);
96 * @param pOpts option data
126 * @param pOpts option data
307 * arg: + tOptions * + pOpts + program options descriptor +
317 optionVendorOption(tOptions * pOpts, tOptDesc * pOD) argument
322 if (pOpts <= OPTPROC_EMIT_LIMIT)
331 if ( ((pOpts->fOptSet & OPTPROC_VENDOR_OPT) == 0)
332 || ! SUCCESSFUL(opt_find_long(pOpts, vopt_str, &opt_st))
333 || ! SUCCESSFUL(get_opt_arg(pOpts,
412 opt_find_short(tOptions * pOpts, uint_t optValue, tOptState * pOptState) argument
547 get_opt_arg_may(tOptions * pOpts, tOptState * o_st) argument
619 get_opt_arg_none(tOptions * pOpts, tOptState * o_st) argument
[all...]
H A Dusage.c45 do_gnu_usage(tOptions * pOpts);
48 skip_misuse_usage(tOptions * pOpts);
224 do_gnu_usage(tOptions * pOpts) argument
226 return (pOpts->fOptSet & OPTPROC_GNUUSAGE) ? true : false;
234 skip_misuse_usage(tOptions * pOpts) argument
236 return (pOpts->fOptSet & OPTPROC_MISUSE) ? true : false;
243 * arg: + tOptions * + pOpts + program options descriptor +
252 optionOnlyUsage(tOptions * pOpts, int ex_code) argument
256 set_usage_flags(pOpts, NULL);
258 skip_misuse_usage(pOpts))
[all...]

Completed in 312 milliseconds