Home
last modified time | relevance | path

Searched refs:fOptState (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-13.1/contrib/ntp/sntp/libopts/
H A Drestore.c52 switch (OPTST_GET_ARGTYPE(pOD->fOptState)) { in fixupSavedOptionArgs()
54 if (pOD->fOptState & OPTST_STACKED) { in fixupSavedOptionArgs()
58 if (pOD->fOptState & OPTST_ALLOC_ARG) { in fixupSavedOptionArgs()
178 if (p->fOptState & OPTST_ALLOC_ARG) { in optionFree()
181 p->fOptState &= ~OPTST_ALLOC_ARG; in optionFree()
184 switch (OPTST_GET_ARGTYPE(p->fOptState)) { in optionFree()
187 if ( (p->fOptState & OPTST_STACKED) in optionFree()
H A Dalias.c83 new_od->fOptState &= OPTST_PERSISTENT_MASK; in optionAlias()
84 new_od->fOptState |= (old_od->fOptState & ~OPTST_PERSISTENT_MASK); in optionAlias()
91 if ( (new_od->fOptState & OPTST_DEFINED) in optionAlias()
98 old_od->fOptState &= OPTST_PERSISTENT_MASK; in optionAlias()
H A Dstack.c62 od->fOptState &= OPTST_PERSISTENT_MASK; in optionUnstackArg()
63 if ((od->fOptState & OPTST_INITENABLED) == 0) in optionUnstackArg()
64 od->fOptState |= OPTST_DISABLED; in optionUnstackArg()
165 od->fOptState &= OPTST_PERSISTENT_MASK; in optionUnstackArg()
166 if ((od->fOptState & OPTST_INITENABLED) == 0) in optionUnstackArg()
167 od->fOptState |= OPTST_DISABLED; in optionUnstackArg()
241 if ((od->fOptState & OPTST_RESET) != 0) { in optionStackArg()
H A Dputshell.c284 if (pOD->fOptState & OPTST_ALLOC_ARG) in print_enumeration()
380 if ((pOD->fOptState & OPTST_NO_OUTPUT_MASK) != 0) in optionPutShell()
401 p->fOptState &= OPTST_PERSISTENT_MASK; in optionPutShell()
402 p->fOptState |= pOD->fOptState & ~OPTST_PERSISTENT_MASK; in optionPutShell()
412 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_MEMBERSHIP) { in optionPutShell()
429 if ( (pOD->fOptState & OPTST_STACKED) in optionPutShell()
439 if ((pOD->fOptState & OPTST_DISABLED) != 0) { in optionPutShell()
450 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_NUMERIC) { in optionPutShell()
461 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_ENUMERATION) { in optionPutShell()
470 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_BOOLEAN) { in optionPutShell()
H A Dautoopts.c116 if (od->fOptState & OPTST_ALLOC_ARG) in handle_opt()
126 && ((od->fOptState & OPTST_NO_INIT) != 0) in handle_opt()
146 if ((od->fOptState & OPTST_DEFINED) != 0) { in handle_opt()
192 od->fOptState &= OPTST_PERSISTENT_MASK; in handle_opt()
193 od->fOptState |= (o_st->flags & ~OPTST_PERSISTENT_MASK); in handle_opt()
199 if ( (od->fOptState & OPTST_DEFINED) in handle_opt()
230 && ((o_st->pOD->fOptState & OPTST_NO_COMMAND) != 0)) { in next_opt()
H A Dnumeric.c65 if (pOD->fOptState & OPTST_SCALED_NUM) in optionShowRange()
127 || ((od->fOptState & OPTST_RESET) != 0)) in optionNumericVal()
135 if ((od->fOptState & OPTST_SCALED_NUM) != 0) in optionNumericVal()
154 if (od->fOptState & OPTST_ALLOC_ARG) { in optionNumericVal()
156 od->fOptState &= ~OPTST_ALLOC_ARG; in optionNumericVal()
H A Dfile.c109 if ((pOD->fOptState & OPTST_ALLOC_ARG) != 0) in open_file_fd()
115 pOD->fOptState &= ~OPTST_ALLOC_ARG; in open_file_fd()
133 if ((pOD->fOptState & OPTST_ALLOC_ARG) != 0) in fopen_file_fp()
139 pOD->fOptState &= ~OPTST_ALLOC_ARG; in fopen_file_fp()
178 if ((pOD->fOptState & OPTST_RESET) != 0) { in optionFileCheck()
H A Dusage.c714 if (od->fOptState & OPTST_ARG_OPTIONAL) { in prt_one_vendor()
737 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_one_vendor()
797 if ( ((od->fOptState & not_vended_mask) != 0) in prt_vendor_opts()
842 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_extd_usage()
863 if (od->fOptState & OPTST_INITENABLED) in prt_extd_usage()
884 if ( ((od->fOptState & OPTST_NO_INIT) != 0) in prt_extd_usage()
1043 if (od->fOptState & OPTST_ARG_OPTIONAL) { in prt_one_usage()
1071 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_one_usage()
1102 if ((od->fOptState & OPTST_NO_USAGE_MASK) != 0) { in prt_opt_usage()
1123 if ((od->fOptState & OPTST_DOCUMENT) != 0) { in prt_opt_usage()
[all …]
H A Dtime.c55 if (od->fOptState & OPTST_ALLOC_ARG) { in optionTimeVal()
57 od->fOptState &= ~OPTST_ALLOC_ARG; in optionTimeVal()
120 if (od->fOptState & OPTST_ALLOC_ARG) { in optionTimeDate()
122 od->fOptState &= ~OPTST_ALLOC_ARG; in optionTimeDate()
H A Dgenshell.h96 #define STATE_GENSHELL_OPT(n) (GENSHELL_DESC(n).fOptState & OPTST_SET_MASK)
113 GENSHELL_DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
114 if ((GENSHELL_DESC(n).fOptState & OPTST_INITENABLED) == 0) \
115 GENSHELL_DESC(n).fOptState |= OPTST_DISABLED; \
H A Dreset.c35 pOD->fOptState &= OPTST_PERSISTENT_MASK; in optionReset()
36 pOD->fOptState |= OPTST_RESET; in optionReset()
42 pOD->fOptState &= OPTST_PERSISTENT_MASK; in optionReset()
H A Denv.c125 os->flags = OPTST_PRESET | OPTST_ALLOC_ARG | os->pOD->fOptState; in do_env_opt()
163 if (OPTST_GET_ARGTYPE(os->pOD->fOptState) == OPARG_TYPE_NONE) { in do_env_opt()
174 if ((os->pOD->fOptState & OPTST_ARG_OPTIONAL) == 0) in do_env_opt()
221 if ( ((st.pOD->fOptState & OPTST_NO_INIT) != 0) in env_presets()
H A Dsave.c298 && (OPTST_GET_ARGTYPE(od->fOptState) != OPARG_TYPE_NUMERIC)) in prt_entry()
308 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_NUMERIC) in prt_entry()
361 uint32_t opt_state = pOD->fOptState; in prt_value()
385 pOD->fOptState = opt_state; in prt_value()
598 if (pOD->fOptState & OPTST_STACKED) { in prt_str_arg()
607 pOD->fOptState &= ~OPTST_DISABLED; in prt_str_arg()
747 if ((od->fOptState & OPTST_DO_NOT_SAVE_MASK) != 0) in optionSaveFile()
759 p = ((od->fOptState & OPTST_EQUIVALENCE) != 0) in optionSaveFile()
762 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in optionSaveFile()
H A Dboolean.c82 if (od->fOptState & OPTST_ALLOC_ARG) { in optionBooleanVal()
84 od->fOptState &= ~OPTST_ALLOC_ARG; in optionBooleanVal()
H A Dsort.c143 if (OPTST_GET_ARGTYPE(pOS->pOD->fOptState) == OPARG_TYPE_NONE) { in short_opt_ck()
146 } else if (pOS->pOD->fOptState & OPTST_ARG_OPTIONAL) { in short_opt_ck()
284 if (OPTST_GET_ARGTYPE(os.pOD->fOptState) == OPARG_TYPE_NONE) { in optionSort()
297 } else if (os.pOD->fOptState & OPTST_ARG_OPTIONAL) { in optionSort()
H A Denum.c165 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_MEMBERSHIP) { in enum_err()
328 if ((pOD->fOptState & OPTST_RESET) != 0) in optionEnumerationVal()
333 if (pOD->fOptState & OPTST_ALLOC_ARG) { in optionEnumerationVal()
335 pOD->fOptState &= ~OPTST_ALLOC_ARG; in optionEnumerationVal()
570 if ((od->fOptState & OPTST_RESET) != 0) in optionSetMembers()
H A Dpgusage.c113 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
129 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
H A Dcheck.c87 if ( (pOD->fOptState & OPTST_MUST_SET) in occurs_enough()
88 && (pOD->fOptState & (OPTST_PRESET | OPTST_SET)) ) in occurs_enough()
H A Dfind.c150 && (pOD->fOptState != (OPTST_OMITTED | OPTST_NO_INIT))) in opt_match_ct()
325 if ((pOD->fOptState & OPTST_RESET) != 0) in optionVendorOption()
328 if ((pOD->fOptState & OPTPROC_IMMEDIATE) == 0) in optionVendorOption()
425 if ( (pRes->fOptState == (OPTST_OMITTED | OPTST_NO_INIT)) in opt_find_short()
654 o_st->flags |= (o_st->pOD->fOptState & OPTST_PERSISTENT_MASK); in get_opt_arg()
/freebsd-13.1/contrib/ntp/sntp/
H A Dsntp-opts.h112 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
129 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
130 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
131 DESC(n).fOptState |= OPTST_DISABLED; \
280 DESC(WAIT).fOptState &= OPTST_PERSISTENT_MASK; \
281 DESC(WAIT).fOptState |= OPTST_SET )
283 DESC(WAIT).fOptState &= OPTST_PERSISTENT_MASK; \
284 DESC(WAIT).fOptState |= OPTST_SET | OPTST_DISABLED; \
297 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
298 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd-13.1/contrib/ntp/ntpsnmpd/
H A Dntpsnmpd-opts.h97 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
114 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
115 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
116 DESC(n).fOptState |= OPTST_DISABLED; \
170 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
171 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd-13.1/contrib/ntp/ntpdc/
H A Dntpdc-opts.h104 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
121 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
122 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
123 DESC(n).fOptState |= OPTST_DISABLED; \
221 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
222 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd-13.1/contrib/ntp/ntpq/
H A Dntpq-opts.h105 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
122 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
123 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
124 DESC(n).fOptState |= OPTST_DISABLED; \
234 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
235 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd-13.1/contrib/ntp/util/
H A Dntp-keygen-opts.h115 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
132 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
133 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
134 DESC(n).fOptState |= OPTST_DISABLED; \
313 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
314 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd-13.1/contrib/ntp/sntp/libopts/autoopts/
H A Doptions.h318 #define SELECTED_OPT(_od) ((_od)->fOptState & OPTST_SELECTED_MASK)
319 #define UNUSED_OPT( _od) (((_od)->fOptState & OPTST_SET_MASK) == 0)
320 #define DISABLED_OPT(_od) ((_od)->fOptState & OPTST_DISABLED)
321 #define OPTION_STATE(_od) ((_od)->fOptState)
539 opt_state_mask_t fOptState; member

12