| /freebsd-14.2/contrib/ntp/sntp/libopts/ |
| H A D | restore.c | 45 int ct = pOpts->optCt; in fixupSavedOptionArgs() 97 optionSaveState(tOptions * pOpts) in optionSaveState() argument 106 pOpts->pSavedState = p; in optionSaveState() 112 fixupSavedOptionArgs(pOpts); in optionSaveState() 132 optionRestore(tOptions * pOpts) in optionRestore() argument 147 pOpts->pSavedState = NULL; in optionRestore() 148 optionFree(pOpts); in optionRestore() 152 pOpts->pSavedState = p; in optionRestore() 154 fixupSavedOptionArgs(pOpts); in optionRestore() 171 optionFree(tOptions * pOpts) in optionFree() argument [all …]
|
| H A D | reset.c | 38 pOD->pOptProc(pOpts, pOD); in optionReset() 47 optionResetEverything(tOptions * pOpts) in optionResetEverything() argument 49 tOptDesc * pOD = pOpts->pOptDesc; in optionResetEverything() 50 int ct = pOpts->presetOptCt; in optionResetEverything() 53 optionReset(pOpts, pOD); in optionResetEverything() 82 if (pOpts <= OPTPROC_EMIT_LIMIT) in optionResetOpt() 94 pOpts->pUsageProc(pOpts, EXIT_FAILURE); in optionResetOpt() 103 optionResetEverything(pOpts); in optionResetOpt() 111 pOpts->pUsageProc(pOpts, EXIT_FAILURE); in optionResetOpt() 119 pOpts->pUsageProc(pOpts, EXIT_FAILURE); in optionResetOpt() [all …]
|
| H A D | env.c | 68 sv_argv = pOpts->origArgVect; in doPrognameEnv() 69 sv_flag = pOpts->fOptSet; in doPrognameEnv() 84 pOpts->curOptIdx = 1; in doPrognameEnv() 85 pOpts->pzCurOpt = NULL; in doPrognameEnv() 94 pOpts->curOptIdx = 1; in doPrognameEnv() 95 pOpts->pzCurOpt = NULL; in doPrognameEnv() 126 handle_opt(pOpts, os); in do_env_opt() 177 handle_opt(pOpts, os); in do_env_opt() 202 ct = pOpts->presetOptCt; in env_presets() 203 st.pOD = pOpts->pOptDesc; in env_presets() [all …]
|
| H A D | check.c | 35 has_conflict(tOptions * pOpts, tOptDesc * od) in has_conflict() argument 72 occurs_enough(tOptions * pOpts, tOptDesc * pOD) in occurs_enough() argument 74 (void)pOpts; in occurs_enough() 104 is_consistent(tOptions * pOpts) in is_consistent() argument 106 tOptDesc * pOD = pOpts->pOptDesc; in is_consistent() 107 int oCt = pOpts->presetOptCt; in is_consistent() 120 if (has_conflict(pOpts, pOD)) in is_consistent() 132 if (! occurs_enough(pOpts, pOD)) in is_consistent() 144 if ((pOpts->fOptSet & OPTPROC_ERRSTOP) != 0) { in is_consistent() 150 if (pOpts->origArgCt > pOpts->curOptIdx) { in is_consistent() [all …]
|
| H A D | find.c | 306 (*pOpts->pUsageProc)(pOpts, EXIT_FAILURE); in optionVendorOption() 385 int ct = pOpts->optCt; in opt_find_short() 404 (*pOpts->pUsageProc)(pOpts, EXIT_FAILURE); in opt_find_short() 426 pRes = pOpts->pOptDesc + pOpts->specOptIdx.number_option; in opt_find_short() 427 (pOpts->pzCurOpt)--; in opt_find_short() 440 (*pOpts->pUsageProc)(pOpts, EXIT_FAILURE); in opt_find_short() 527 char * pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; in get_opt_arg_may() 550 char * pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; in get_opt_arg_may() 577 pOpts->pzCurOpt = NULL; in get_opt_arg_may() 596 (pOpts->pzCurOpt)++; in get_opt_arg_none() [all …]
|
| H A D | putshell.c | 258 print_enumeration(tOptions * pOpts, tOptDesc * pOD) in print_enumeration() argument 276 print_membership(tOptions * pOpts, tOptDesc * pOD) in print_membership() argument 355 optionPutShell(tOptions * pOpts) in optionPutShell() argument 359 printf(zOptCtFmt, pOpts->curOptIdx-1); in optionPutShell() 362 tOptDesc * pOD = pOpts->pOptDesc + optIx; in optionPutShell() 397 print_membership(pOpts, pOD); in optionPutShell() 415 print_stacked_arg(pOpts, pOD); in optionPutShell() 446 print_enumeration(pOpts, pOD); in optionPutShell() 479 } while (++optIx < pOpts->presetOptCt ); in optionPutShell() 482 && (pOpts->curOptIdx < pOpts->origArgCt)) in optionPutShell() [all …]
|
| H A D | file.c | 41 check_existence(teOptFileType ftype, tOptions * pOpts, tOptDesc * pOD) in check_existence() argument 53 fserr_exit(pOpts->pzProgName, "stat", fname); in check_existence() 77 fserr_exit(pOpts->pzProgName, "stat", p); in check_existence() 87 fserr_exit(pOpts->pzProgName, "stat", fname); in check_existence() 102 open_file_fd(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode) in open_file_fd() argument 106 fserr_exit(pOpts->pzProgName, "open", pOD->optArg.argString); in open_file_fd() 126 fopen_file_fp(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode) in fopen_file_fp() argument 159 optionFileCheck(tOptions * pOpts, tOptDesc * pOD, in optionFileCheck() argument 162 if (pOpts <= OPTPROC_EMIT_LIMIT) { in optionFileCheck() 163 if (pOpts != OPTPROC_EMIT_USAGE) in optionFileCheck() [all …]
|
| H A D | proto.h | 41 has_conflict(tOptions * pOpts, tOptDesc * od); 44 occurs_enough(tOptions * pOpts, tOptDesc * pOD); 47 is_consistent(tOptions * pOpts); 114 enum_err(tOptions * pOpts, tOptDesc * pOD, 144 tOptions * pOpts, teEnvPresetType type); 147 env_presets(tOptions * pOpts, teEnvPresetType type); 438 optionReset(tOptions * pOpts, tOptDesc * pOD); 441 optionResetEverything(tOptions * pOpts); 447 fixupSavedOptionArgs(tOptions * pOpts); 552 do_gnu_usage(tOptions * pOpts); [all …]
|
| H A D | numeric.c | 45 optionShowRange(tOptions * pOpts, tOptDesc * pOD, void * rng_table, int rng_ct) in optionShowRange() argument 55 if (pOpts != OPTPROC_EMIT_USAGE) { in optionShowRange() 56 if (pOpts <= OPTPROC_EMIT_LIMIT) in optionShowRange() 60 fprintf(option_usage_fp, zRangeErr, pOpts->pzProgName, in optionShowRange() 69 pz_indent = (pOpts != OPTPROC_EMIT_USAGE) in optionShowRange() 92 if (pOpts > OPTPROC_EMIT_LIMIT) in optionShowRange() 93 pOpts->pUsageProc(pOpts, EXIT_FAILURE); in optionShowRange()
|
| H A D | enum.c | 37 enum_err(tOptions * pOpts, tOptDesc * pOD, in enum_err() argument 48 if (pOpts > OPTPROC_EMIT_LIMIT) in enum_err() 134 if (pOpts > OPTPROC_EMIT_LIMIT) { in enum_err() 137 (*(pOpts->pUsageProc))(pOpts, EXIT_FAILURE); in enum_err() 160 find_name(char const * name, tOptions * pOpts, tOptDesc * pOD, in find_name() argument 178 enum_err(pOpts, pOD, paz_names, (int)name_ct); in find_name() 212 enum_err(pOpts, pOD, paz_names, (int)name_ct); in find_name() 259 optionEnumerationVal(tOptions * pOpts, tOptDesc * pOD, in optionEnumerationVal() argument 268 switch ((uintptr_t)pOpts) { in optionEnumerationVal() 273 enum_err(pOpts, pOD, paz_names, (int)name_ct); in optionEnumerationVal() [all …]
|
| H A D | usage.c | 173 do_gnu_usage(tOptions * pOpts) in do_gnu_usage() argument 175 return (pOpts->fOptSet & OPTPROC_GNUUSAGE) ? true : false; in do_gnu_usage() 183 skip_misuse_usage(tOptions * pOpts) in skip_misuse_usage() argument 185 return (pOpts->fOptSet & OPTPROC_MISUSE) ? true : false; in skip_misuse_usage() 201 optionOnlyUsage(tOptions * pOpts, int ex_code) in optionOnlyUsage() argument 205 set_usage_flags(pOpts, NULL); in optionOnlyUsage() 207 skip_misuse_usage(pOpts)) in optionOnlyUsage() 213 if (do_gnu_usage(pOpts)) in optionOnlyUsage() 214 (void)setGnuOptFmts(pOpts, &pOptTitle); in optionOnlyUsage() 216 (void)setStdOptFmts(pOpts, &pOptTitle); in optionOnlyUsage() [all …]
|
| /freebsd-14.2/contrib/ntp/libntp/ |
| H A D | ntp_libopts.c | 28 tOptions * pOpts, in ntpOptionProcess() argument 33 return optionProcess(pOpts, argc, argv); in ntpOptionProcess() 48 tOptions * pOpts, in ntpOptionPrintVersion() argument 52 UNUSED_ARG(pOpts); in ntpOptionPrintVersion()
|
| /freebsd-14.2/contrib/ntp/include/ |
| H A D | ntp_libopts.h | 11 extern int ntpOptionProcess(tOptions *pOpts, int argc,
|
| /freebsd-14.2/contrib/ntp/sntp/libopts/autoopts/ |
| H A D | options.h | 445 typedef void (tOptProc)(tOptions * pOpts, tOptDesc * pOptDesc); 457 typedef void (tUsageProc)(tOptions * pOpts, int exitCode);
|