/freebsd/contrib/ntp/sntp/libopts/ |
H A D | restore.c | 52 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 D | putshell.c | 268 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 D | stack.c | 62 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 D | alias.c | 83 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 D | autoopts.c | 110 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 D | numeric.c | 65 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 D | usage.c | 314 || ((opts->pOptDesc->fOptState & OPTST_DOCUMENT) == 0) ) in print_usage_details() 663 if (od->fOptState & OPTST_ARG_OPTIONAL) { in prt_one_vendor() 666 } else switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_one_vendor() 686 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in prt_one_vendor() 728 if ( ((od->fOptState & not_vended_mask) != 0) in prt_vendor_opts() 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() 845 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_MEMBERSHIP) in prt_extd_usage() [all …]
|
H A D | file.c | 109 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 D | time.c | 55 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 D | genshell.h | 104 #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 D | env.c | 119 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 D | reset.c | 35 pOD->fOptState &= OPTST_PERSISTENT_MASK; in optionReset() 36 pOD->fOptState |= OPTST_RESET; in optionReset() 42 pOD->fOptState &= OPTST_PERSISTENT_MASK; in optionReset()
|
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 | save.c | 245 && (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 D | boolean.c | 82 if (od->fOptState & OPTST_ALLOC_ARG) { in optionBooleanVal() 84 od->fOptState &= ~OPTST_ALLOC_ARG; in optionBooleanVal()
|
H A D | enum.c | 141 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 D | pgusage.c | 113 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage() 129 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
|
H A D | check.c | 87 if ( (pOD->fOptState & OPTST_MUST_SET) in occurs_enough() 88 && (pOD->fOptState & (OPTST_PRESET | OPTST_SET)) ) in occurs_enough()
|
H A D | find.c | 120 && (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 D | sntp-opts.h | 120 #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 | [all...] |
/freebsd/contrib/ntp/ntpsnmpd/ |
H A D | ntpsnmpd-opts.h | 105 #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 D | ntpdc-opts.h | 113 #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 D | ntpq-opts.h | 114 #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 D | ntp-keygen-opts.h | 123 #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 D | options.h | 319 #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
|