| /freebsd-14.2/contrib/ntp/sntp/libopts/ |
| H A D | putshell.c | 266 (*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, pOD); in print_enumeration() 269 AGFREE(pOD->optArg.argString); in print_enumeration() 270 pOD->optArg.argEnum = e_val; in print_enumeration() 283 pOD->optCookie = VOIDP(~0UL); in print_membership() 284 (*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, pOD); in print_membership() 286 pz = pOD->optArg.argString; in print_membership() 303 AGFREE(pOD->optArg.argString); in print_membership() 304 pOD->optArg.argString = svstr; in print_membership() 388 pOD = p; in optionPutShell() 407 if (UNUSED_OPT(pOD) && DISABLED_OPT(pOD)) in optionPutShell() [all …]
|
| H A D | file.c | 110 pOD->optCookie = VOIDP(pOD->optArg.argString); in open_file_fd() 112 AGDUPSTR(pOD->optCookie, pOD->optArg.argString, "file name"); in open_file_fd() 114 pOD->optArg.argFd = fd; in open_file_fd() 115 pOD->fOptState &= ~OPTST_ALLOC_ARG; in open_file_fd() 134 pOD->optCookie = VOIDP(pOD->optArg.argString); in fopen_file_fp() 136 AGDUPSTR(pOD->optCookie, pOD->optArg.argString, "file name"); in fopen_file_fp() 138 pOD->optArg.argFp = fp; in fopen_file_fp() 139 pOD->fOptState &= ~OPTST_ALLOC_ARG; in fopen_file_fp() 179 if (pOD->optCookie != NULL) in optionFileCheck() 180 AGFREE(pOD->optCookie); in optionFileCheck() [all …]
|
| H A D | reset.c | 35 pOD->fOptState &= OPTST_PERSISTENT_MASK; in optionReset() 36 pOD->fOptState |= OPTST_RESET; in optionReset() 37 if (pOD->pOptProc != NULL) in optionReset() 38 pOD->pOptProc(pOpts, pOD); in optionReset() 39 pOD->optArg.argString = in optionReset() 41 pOD->optCookie = pOpts->originalOptArgCookie[ pOD->optIndex ]; in optionReset() 42 pOD->fOptState &= OPTST_PERSISTENT_MASK; in optionReset() 49 tOptDesc * pOD = pOpts->pOptDesc; in optionResetEverything() local 53 optionReset(pOpts, pOD); in optionResetEverything() 57 pOD++; in optionResetEverything() [all …]
|
| H A D | check.c | 72 occurs_enough(tOptions * pOpts, tOptDesc * pOD) in occurs_enough() argument 80 if (pOD->optOccCt >= pOD->optMinCt) in occurs_enough() 87 if ( (pOD->fOptState & OPTST_MUST_SET) in occurs_enough() 91 if (pOD->optMinCt > 1) in occurs_enough() 93 pOD->optMinCt); in occurs_enough() 106 tOptDesc * pOD = pOpts->pOptDesc; in is_consistent() local 119 if (SELECTED_OPT(pOD)) { in is_consistent() 120 if (has_conflict(pOpts, pOD)) in is_consistent() 130 || (pOD->optEquivIndex == pOD->optIndex) ) in is_consistent() 132 if (! occurs_enough(pOpts, pOD)) in is_consistent() [all …]
|
| H A D | find.c | 75 tOptDesc * pOD = opts->pOptDesc; in opt_ambiguities() local 80 if (pOD->pz_Name == NULL) in opt_ambiguities() 110 tOptDesc * pOD = opts->pOptDesc; in opt_match_ct() local 116 if (pOD->pz_Name == NULL) in opt_match_ct() 119 if ( SKIP_OPT(pOD) in opt_match_ct() 164 } while (pOD++, (++idx < idxLim)); in opt_match_ct() 183 if (SKIP_OPT(pOD)) { in opt_set() 188 if (pOD->pzText != NULL) in opt_set() 203 st->pOD = pOD; in opt_set() 411 pOptState->pOD = pRes; in opt_find_short() [all …]
|
| H A D | env.c | 122 if ( (os->pOD->pz_DisablePfx != NULL) in do_env_opt() 168 if ((os->pOD->fOptState & OPTST_ARG_OPTIONAL) == 0) in do_env_opt() 203 st.pOD = pOpts->pOptDesc; in env_presets() 209 for (;ct-- > 0; st.pOD++) { in env_presets() 215 if ( ((st.pOD->fOptState & OPTST_NO_INIT) != 0) in env_presets() 216 || (st.pOD->optEquivIndex != NO_EQUIVALENT) ) in env_presets() 223 nln = strlen(st.pOD->pz_NAME) + 1; in env_presets() 228 memcpy(pzFlagName, st.pOD->pz_NAME, nln); in env_presets() 241 if (st.pOD->pz_NAME == NULL) in env_presets() 244 nln = strlen(st.pOD->pz_NAME) + 1; in env_presets() [all …]
|
| H A D | enum.c | 37 enum_err(tOptions * pOpts, tOptDesc * pOD, in enum_err() argument 50 pOD->optArg.argString, pOD->pz_Name); in enum_err() 212 enum_err(pOpts, pOD, paz_names, (int)name_ct); in find_name() 299 pOD->optArg.argString = paz_names[ix]; in optionEnumerationVal() 304 if ((pOD->fOptState & OPTST_RESET) != 0) in optionEnumerationVal() 307 res = find_name(pOD->optArg.argString, pOpts, pOD, paz_names, name_ct); in optionEnumerationVal() 309 if (pOD->fOptState & OPTST_ALLOC_ARG) { in optionEnumerationVal() 310 AGFREE(pOD->optArg.argString); in optionEnumerationVal() 311 pOD->fOptState &= ~OPTST_ALLOC_ARG; in optionEnumerationVal() 312 pOD->optArg.argString = NULL; in optionEnumerationVal() [all …]
|
| H A D | restore.c | 44 tOptDesc * pOD = pOpts->pOptDesc; in fixupSavedOptionArgs() local 51 for (; ct-- > 0; pOD++) { in fixupSavedOptionArgs() 52 switch (OPTST_GET_ARGTYPE(pOD->fOptState)) { in fixupSavedOptionArgs() 54 if (pOD->fOptState & OPTST_STACKED) { in fixupSavedOptionArgs() 55 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc); in fixupSavedOptionArgs() 58 if (pOD->fOptState & OPTST_ALLOC_ARG) { in fixupSavedOptionArgs() 59 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc); in fixupSavedOptionArgs() 60 AGDUPSTR(q->optArg.argString, pOD->optArg.argString, "arg"); in fixupSavedOptionArgs() 66 tOptDesc * q = p->pOptDesc + (pOD - pOpts->pOptDesc); in fixupSavedOptionArgs()
|
| H A D | proto.h | 44 occurs_enough(tOptions * pOpts, tOptDesc * pOD); 114 enum_err(tOptions * pOpts, tOptDesc * pOD, 118 find_name(char const * name, tOptions * pOpts, tOptDesc * pOD, 122 set_memb_shell(tOptions * pOpts, tOptDesc * pOD, char const * const * paz_names, 153 check_existence(teOptFileType ftype, tOptions * pOpts, tOptDesc * pOD); 156 open_file_fd(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode); 159 fopen_file_fp(tOptions * pOpts, tOptDesc * pOD, tuFileMode mode); 423 print_enumeration(tOptions * pOpts, tOptDesc * pOD); 426 print_membership(tOptions * pOpts, tOptDesc * pOD); 429 print_stacked_arg(tOptions * pOpts, tOptDesc * pOD); [all …]
|
| H A D | numeric.c | 45 optionShowRange(tOptions * pOpts, tOptDesc * pOD, void * rng_table, int rng_ct) in optionShowRange() argument 61 pOD->pz_Name, pOD->optArg.argInt); in optionShowRange() 65 if (pOD->fOptState & OPTST_SCALED_NUM) in optionShowRange()
|
| H A D | autoopts.c | 108 tOptDesc * od = o_st->pOD; in handle_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() 261 opt_st.pOD->optOccCt--; /* don't count this repetition */ in regular_opts()
|
| H A D | sort.c | 129 if (OPTST_GET_ARGTYPE(pOS->pOD->fOptState) == OPARG_TYPE_NONE) { in short_opt_ck() 132 } else if (pOS->pOD->fOptState & OPTST_ARG_OPTIONAL) { in short_opt_ck() 270 if (OPTST_GET_ARGTYPE(os.pOD->fOptState) == OPARG_TYPE_NONE) { in optionSort() 283 } else if (os.pOD->fOptState & OPTST_ARG_OPTIONAL) { in optionSort()
|
| H A D | load.c | 503 if (OPTST_GET_ARGTYPE(opt_state->pOD->fOptState) == OPARG_TYPE_NONE) { in load_opt_line() 508 } else if (opt_state->pOD->fOptState & OPTST_ARG_OPTIONAL) { in load_opt_line()
|
| H A D | autoopts.h | 221 tOptDesc * pOD; member
|
| /freebsd-14.2/contrib/ntp/libntp/ |
| H A D | ntp_libopts.c | 49 tOptDesc * pOD in ntpOptionPrintVersion() argument 53 UNUSED_ARG(pOD); in ntpOptionPrintVersion()
|