Searched refs:fOptState (Results 1 - 25 of 30) sorted by relevance

12

/netbsd-current/external/bsd/ntp/dist/sntp/libopts/
H A Dalias.c85 new_od->fOptState &= OPTST_PERSISTENT_MASK;
86 new_od->fOptState |= (old_od->fOptState & ~OPTST_PERSISTENT_MASK);
93 if ( (new_od->fOptState & OPTST_DEFINED)
100 old_od->fOptState &= OPTST_PERSISTENT_MASK;
H A Dboolean.c84 if (od->fOptState & OPTST_ALLOC_ARG) {
86 od->fOptState &= ~OPTST_ALLOC_ARG;
H A Dtime.c57 if (od->fOptState & OPTST_ALLOC_ARG) {
59 od->fOptState &= ~OPTST_ALLOC_ARG;
122 if (od->fOptState & OPTST_ALLOC_ARG) {
124 od->fOptState &= ~OPTST_ALLOC_ARG;
H A Dfile.c111 if ((pOD->fOptState & OPTST_ALLOC_ARG) != 0)
117 pOD->fOptState &= ~OPTST_ALLOC_ARG;
135 if ((pOD->fOptState & OPTST_ALLOC_ARG) != 0)
141 pOD->fOptState &= ~OPTST_ALLOC_ARG;
180 if ((pOD->fOptState & OPTST_RESET) != 0) {
H A Dnumeric.c67 if (pOD->fOptState & OPTST_SCALED_NUM)
129 || ((od->fOptState & OPTST_RESET) != 0))
137 if ((od->fOptState & OPTST_SCALED_NUM) != 0)
156 if (od->fOptState & OPTST_ALLOC_ARG) {
158 od->fOptState &= ~OPTST_ALLOC_ARG;
H A Dstack.c64 od->fOptState &= OPTST_PERSISTENT_MASK;
65 if ((od->fOptState & OPTST_INITENABLED) == 0)
66 od->fOptState |= OPTST_DISABLED;
167 od->fOptState &= OPTST_PERSISTENT_MASK;
168 if ((od->fOptState & OPTST_INITENABLED) == 0)
169 od->fOptState |= OPTST_DISABLED;
243 if ((od->fOptState & OPTST_RESET) != 0) {
H A Drestore.c54 switch (OPTST_GET_ARGTYPE(pOD->fOptState)) {
56 if (pOD->fOptState & OPTST_STACKED) {
60 if (pOD->fOptState & OPTST_ALLOC_ARG) {
180 if (p->fOptState & OPTST_ALLOC_ARG) {
183 p->fOptState &= ~OPTST_ALLOC_ARG;
186 switch (OPTST_GET_ARGTYPE(p->fOptState)) {
189 if ( (p->fOptState & OPTST_STACKED)
H A Dreset.c37 pOD->fOptState &= OPTST_PERSISTENT_MASK;
38 pOD->fOptState |= OPTST_RESET;
44 pOD->fOptState &= OPTST_PERSISTENT_MASK;
H A Dgenshell.h98 #define STATE_GENSHELL_OPT(n) (GENSHELL_DESC(n).fOptState & OPTST_SET_MASK)
115 GENSHELL_DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
116 if ((GENSHELL_DESC(n).fOptState & OPTST_INITENABLED) == 0) \
117 GENSHELL_DESC(n).fOptState |= OPTST_DISABLED; \
H A Dputshell.c286 if (pOD->fOptState & OPTST_ALLOC_ARG)
382 if ((pOD->fOptState & OPTST_NO_OUTPUT_MASK) != 0)
403 p->fOptState &= OPTST_PERSISTENT_MASK;
404 p->fOptState |= pOD->fOptState & ~OPTST_PERSISTENT_MASK;
414 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_MEMBERSHIP) {
431 if ( (pOD->fOptState & OPTST_STACKED)
441 if ((pOD->fOptState & OPTST_DISABLED) != 0) {
452 if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_NUMERIC) {
463 if (OPTST_GET_ARGTYPE(pOD->fOptState)
[all...]
H A Dautoopts.c118 if (od->fOptState & OPTST_ALLOC_ARG)
128 && ((od->fOptState & OPTST_NO_INIT) != 0)
148 if ((od->fOptState & OPTST_DEFINED) != 0) {
194 od->fOptState &= OPTST_PERSISTENT_MASK;
195 od->fOptState |= (o_st->flags & ~OPTST_PERSISTENT_MASK);
201 if ( (od->fOptState & OPTST_DEFINED)
232 && ((o_st->pOD->fOptState & OPTST_NO_COMMAND) != 0)) {
H A Denv.c127 os->flags = OPTST_PRESET | OPTST_ALLOC_ARG | os->pOD->fOptState;
165 if (OPTST_GET_ARGTYPE(os->pOD->fOptState) == OPARG_TYPE_NONE) {
176 if ((os->pOD->fOptState & OPTST_ARG_OPTIONAL) == 0)
223 if ( ((st.pOD->fOptState & OPTST_NO_INIT) != 0)
H A Dcheck.c89 if ( (pOD->fOptState & OPTST_MUST_SET)
90 && (pOD->fOptState & (OPTST_PRESET | OPTST_SET)) )
H A Dpgusage.c115 if ((od->fOptState & OPTST_RESET) != 0)
131 if ((od->fOptState & OPTST_RESET) != 0)
H A Dusage.c367 || ((opts->pOptDesc->fOptState & OPTST_DOCUMENT) == 0) )
716 if (od->fOptState & OPTST_ARG_OPTIONAL) {
719 } else switch (OPTST_GET_ARGTYPE(od->fOptState)) {
739 switch (OPTST_GET_ARGTYPE(od->fOptState)) {
781 if ( ((od->fOptState & not_vended_mask) != 0)
799 if ( ((od->fOptState & not_vended_mask) != 0)
844 switch (OPTST_GET_ARGTYPE(od->fOptState)) {
865 if (od->fOptState & OPTST_INITENABLED)
886 if ( ((od->fOptState & OPTST_NO_INIT) != 0)
898 if (OPTST_GET_ARGTYPE(od->fOptState)
[all...]
H A Dsort.c145 if (OPTST_GET_ARGTYPE(pOS->pOD->fOptState) == OPARG_TYPE_NONE) {
148 } else if (pOS->pOD->fOptState & OPTST_ARG_OPTIONAL) {
286 if (OPTST_GET_ARGTYPE(os.pOD->fOptState) == OPARG_TYPE_NONE) {
299 } else if (os.pOD->fOptState & OPTST_ARG_OPTIONAL) {
H A Dsave.c300 && (OPTST_GET_ARGTYPE(od->fOptState) != OPARG_TYPE_NUMERIC))
310 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_NUMERIC)
363 uint32_t opt_state = pOD->fOptState;
387 pOD->fOptState = opt_state;
600 if (pOD->fOptState & OPTST_STACKED) {
609 pOD->fOptState &= ~OPTST_DISABLED;
749 if ((od->fOptState & OPTST_DO_NOT_SAVE_MASK) != 0)
761 p = ((od->fOptState & OPTST_EQUIVALENCE) != 0)
764 switch (OPTST_GET_ARGTYPE(od->fOptState)) {
H A Dautoopts.h136 #define SKIP_OPT(p) (((p)->fOptState & OPTST_IMMUTABLE_MASK) != 0)
400 || (((_d)->fOptState & OPTST_RESET) != 0) )
H A Dfind.c152 && (pOD->fOptState != (OPTST_OMITTED | OPTST_NO_INIT)))
327 if ((pOD->fOptState & OPTST_RESET) != 0)
330 if ((pOD->fOptState & OPTPROC_IMMEDIATE) == 0)
427 if ( (pRes->fOptState == (OPTST_OMITTED | OPTST_NO_INIT))
656 o_st->flags |= (o_st->pOD->fOptState & OPTST_PERSISTENT_MASK);
/netbsd-current/external/bsd/ntp/dist/ntpsnmpd/
H A Dntpsnmpd-opts.h99 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
116 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
117 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
118 DESC(n).fOptState |= OPTST_DISABLED; \
172 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
173 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/netbsd-current/external/bsd/ntp/dist/sntp/
H A Dsntp-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; \
282 DESC(WAIT).fOptState &= OPTST_PERSISTENT_MASK; \
283 DESC(WAIT).fOptState |= OPTST_SET )
285 DESC(WAIT).fOptState &= OPTST_PERSISTENT_MASK; \
286 DESC(WAIT).fOptState |= OPTST_SET | OPTST_DISABLED; \
299 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
300 DESC(SAVE_OPTS).fOptState |
[all...]
/netbsd-current/external/bsd/ntp/dist/ntpq/
H A Dntpq-opts.h107 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
124 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
125 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
126 DESC(n).fOptState |= OPTST_DISABLED; \
236 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
237 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/netbsd-current/external/bsd/ntp/dist/ntpdc/
H A Dntpdc-opts.h106 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
123 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
124 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
125 DESC(n).fOptState |= OPTST_DISABLED; \
223 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
224 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/netbsd-current/external/bsd/ntp/dist/util/
H A Dntp-keygen-opts.h117 #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
134 DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
135 if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
136 DESC(n).fOptState |= OPTST_DISABLED; \
315 DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
316 DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
/netbsd-current/external/bsd/ntp/dist/sntp/libopts/autoopts/
H A Doptions.h129 * field of the fOptState field of an option descriptor (tOptDesc).
205 * Bits in the fOptState option descriptor field.
320 #define SELECTED_OPT(_od) ((_od)->fOptState & OPTST_SELECTED_MASK)
321 #define UNUSED_OPT( _od) (((_od)->fOptState & OPTST_SET_MASK) == 0)
322 #define DISABLED_OPT(_od) ((_od)->fOptState & OPTST_DISABLED)
323 #define OPTION_STATE(_od) ((_od)->fOptState)
480 * (fOptState & OPTST_ARG_TYPE_MASK) >> OPTST_ARG_TYPE_SHIFT
541 opt_state_mask_t fOptState; member in struct:opt_desc

Completed in 325 milliseconds

12