Home
last modified time | relevance | path

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

12

/freebsd/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.c268 if (pOD->fOptState & OPTST_ALLOC_ARG) in print_enumeration()
364 if ((pOD->fOptState & OPTST_NO_OUTPUT_MASK) != 0) in optionPutShell()
385 p->fOptState &= OPTST_PERSISTENT_MASK; in optionPutShell()
386 p->fOptState |= pOD->fOptState & ~OPTST_PERSISTENT_MASK; in optionPutShell()
396 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_MEMBERSHIP) { in optionPutShell()
413 if ( (pOD->fOptState & OPTST_STACKED) in optionPutShell()
423 if ((pOD->fOptState & OPTST_DISABLED) != 0) { in optionPutShell()
434 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_NUMERIC) { in optionPutShell()
445 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_ENUMERATION) { in optionPutShell()
454 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_BOOLEAN) { in optionPutShell()
H A Dautoopts.c110 if (od->fOptState & OPTST_ALLOC_ARG) in handle_opt()
120 && ((od->fOptState & OPTST_NO_INIT) != 0) in handle_opt()
140 if ((od->fOptState & OPTST_DEFINED) != 0) { in handle_opt()
186 od->fOptState &= OPTST_PERSISTENT_MASK; in handle_opt()
187 od->fOptState |= (o_st->flags & ~OPTST_PERSISTENT_MASK); in handle_opt()
193 if ( (od->fOptState & OPTST_DEFINED) in handle_opt()
224 && ((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()
136 if ((od->fOptState & OPTST_SCALED_NUM) != 0) in optionNumericVal()
155 if (od->fOptState & OPTST_ALLOC_ARG) { in optionNumericVal()
157 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.c663 if (od->fOptState & OPTST_ARG_OPTIONAL) { in prt_one_vendor()
686 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_one_vendor()
746 if ( ((od->fOptState & not_vended_mask) != 0) in prt_vendor_opts()
791 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_extd_usage()
812 if (od->fOptState & OPTST_INITENABLED) in prt_extd_usage()
833 if ( ((od->fOptState & OPTST_NO_INIT) != 0) in prt_extd_usage()
992 if (od->fOptState & OPTST_ARG_OPTIONAL) { in prt_one_usage()
1020 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_one_usage()
1051 if ((od->fOptState & OPTST_NO_USAGE_MASK) != 0) { in prt_opt_usage()
1072 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()
122 if (od->fOptState & OPTST_ALLOC_ARG) { in optionTimeDate()
124 od->fOptState &= ~OPTST_ALLOC_ARG; in optionTimeDate()
H A Dgenshell.h104 #define STATE_GENSHELL_OPT(n) (GENSHELL_DESC(n).fOptState & OPTST_SET_MASK)
121 GENSHELL_DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
122 if ((GENSHELL_DESC(n).fOptState & OPTST_INITENABLED) == 0) \
123 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.c119 os->flags = OPTST_PRESET | OPTST_ALLOC_ARG | os->pOD->fOptState; in do_env_opt()
157 if (OPTST_GET_ARGTYPE(os->pOD->fOptState) == OPARG_TYPE_NONE) { in do_env_opt()
168 if ((os->pOD->fOptState & OPTST_ARG_OPTIONAL) == 0) in do_env_opt()
215 if ( ((st.pOD->fOptState & OPTST_NO_INIT) != 0) in env_presets()
H A Dsort.c129 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 Dboolean.c82 if (od->fOptState & OPTST_ALLOC_ARG) { in optionBooleanVal()
84 od->fOptState &= ~OPTST_ALLOC_ARG; in optionBooleanVal()
H A Dsave.c245 && (OPTST_GET_ARGTYPE(od->fOptState) != OPARG_TYPE_NUMERIC)) in prt_entry()
255 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_NUMERIC) in prt_entry()
312 uint32_t opt_state = od->fOptState; in prt_value()
336 od->fOptState = opt_state; in prt_value()
687 if (UNUSED_OPT(od) || ((od->fOptState & OPTST_STACKED) == 0)) { in prt_str_arg()
702 od->fOptState &= ~OPTST_DISABLED; in prt_str_arg()
875 if ((od->fOptState & OPTST_DO_NOT_SAVE_MASK) != 0) in optionSaveFile()
890 vod = ((od->fOptState & OPTST_EQUIVALENCE) != 0) in optionSaveFile()
893 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in optionSaveFile()
H A Denum.c141 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_MEMBERSHIP) { in enum_err()
304 if ((pOD->fOptState & OPTST_RESET) != 0) in optionEnumerationVal()
309 if (pOD->fOptState & OPTST_ALLOC_ARG) { in optionEnumerationVal()
311 pOD->fOptState &= ~OPTST_ALLOC_ARG; in optionEnumerationVal()
546 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.c120 && (pOD->fOptState != (OPTST_OMITTED | OPTST_NO_INIT))) in opt_match_ct()
295 if ((pOD->fOptState & OPTST_RESET) != 0) in optionVendorOption()
298 if ((pOD->fOptState & OPTPROC_IMMEDIATE) == 0) in optionVendorOption()
395 if ( (pRes->fOptState == (OPTST_OMITTED | OPTST_NO_INIT)) in opt_find_short()
625 o_st->flags |= (o_st->pOD->fOptState & OPTST_PERSISTENT_MASK); in get_opt_arg()
/freebsd/contrib/ntp/sntp/
H A Dsntp-opts.h120 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
137 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
138 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
139 DESC(n).fOptState |= OPTST_DISABLED; \
288 DESC(WAIT).fOptState &= OPTST_PERSISTENT_MASK; \
289 DESC(WAIT).fOptState |= OPTST_SET )
291 DESC(WAIT).fOptState &= OPTST_PERSISTENT_MASK; \
292 DESC(WAIT).fOptState |= OPTST_SET | OPTST_DISABLED; \
305 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
306 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd/contrib/ntp/ntpsnmpd/
H A Dntpsnmpd-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; \
178 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
179 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd/contrib/ntp/ntpdc/
H A Dntpdc-opts.h113 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
130 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
131 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
132 DESC(n).fOptState |= OPTST_DISABLED; \
236 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
237 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd/contrib/ntp/ntpq/
H A Dntpq-opts.h114 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
131 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
132 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
133 DESC(n).fOptState |= OPTST_DISABLED; \
249 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
250 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd/contrib/ntp/util/
H A Dntp-keygen-opts.h123 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
140 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
141 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
142 DESC(n).fOptState |= OPTST_DISABLED; \
321 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
322 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/freebsd/contrib/ntp/sntp/libopts/autoopts/
H A Doptions.h319 #define SELECTED_OPT(_od) ((_od)->fOptState & OPTST_SELECTED_MASK)
320 #define UNUSED_OPT( _od) (((_od)->fOptState & OPTST_SET_MASK) == 0)
321 #define DISABLED_OPT(_od) ((_od)->fOptState & OPTST_DISABLED)
322 #define OPTION_STATE(_od) ((_od)->fOptState)
540 opt_state_mask_t fOptState; member

12