/freebsd/contrib/ntp/sntp/libopts/ |
H A D | time.c | 48 val = parse_duration(od->optArg.argString); in optionTimeVal() 50 fprintf(stderr, zNotDuration, opts->pzProgName, od->optArg.argString); in optionTimeVal() 56 AGFREE(od->optArg.argString); in optionTimeVal() 60 od->optArg.argInt = (long)val; in optionTimeVal() 112 if (getdate_r(od->optArg.argString, &stm) != 0) { in optionTimeDate() 114 od->optArg.argString); in optionTimeDate() 123 AGFREE(od->optArg.argString); in optionTimeDate() 127 od->optArg.argInt = tm; in optionTimeDate() 135 if (od->optArg.argInt != BAD_TIME) in optionTimeDate() 136 od->optArg.argInt += (long)time(NULL); in optionTimeDate()
|
H A D | file.c | 43 char const * fname = pOD->optArg.argString; in check_existence() 104 int fd = open(pOD->optArg.argString, mode.file_flags); in open_file_fd() 106 fserr_exit(pOpts->pzProgName, "open", pOD->optArg.argString); in open_file_fd() 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() 128 FILE * fp = fopen(pOD->optArg.argString, mode.file_mode); in fopen_file_fp() 130 fserr_exit(pOpts->pzProgName, "fopen", pOD->optArg.argString); in fopen_file_fp() 134 pOD->optCookie = VOIDP(pOD->optArg.argString); in fopen_file_fp() 136 AGDUPSTR(pOD->optCookie, pOD->optArg.argString, "file name"); in fopen_file_fp() [all …]
|
H A D | boolean.c | 56 if (od->optArg.argString == NULL) { in optionBooleanVal() 57 od->optArg.argBool = false; in optionBooleanVal() 61 switch (*(od->optArg.argString)) { in optionBooleanVal() 64 long val = strtol(od->optArg.argString, &pz, 0); in optionBooleanVal() 77 if (od->optArg.argString[1] != 'f') in optionBooleanVal() 83 AGFREE(od->optArg.argString); in optionBooleanVal() 86 od->optArg.argBool = res; in optionBooleanVal()
|
H A D | numeric.c | 61 pOD->pz_Name, pOD->optArg.argInt); in optionShowRange() 116 if (INQUERY_CALL(opts, od) || (od->optArg.argString == NULL)) in optionNumericVal() 126 || (od->optArg.argString == NULL) in optionNumericVal() 132 val = strtol(od->optArg.argString, &pz, 0); in optionNumericVal() 133 if ((pz == od->optArg.argString) || (errno != 0)) in optionNumericVal() 156 AGFREE(od->optArg.argString); in optionNumericVal() 160 od->optArg.argInt = val; in optionNumericVal() 165 fprintf( stderr, zNotNumber, opts->pzProgName, od->optArg.argString ); in optionNumericVal() 170 od->optArg.argInt = ~0; in optionNumericVal()
|
H A D | putshell.c | 260 uintptr_t e_val = pOD->optArg.argEnum; in print_enumeration() 267 printf(QUOT_ARG_FMT, pOD->optArg.argString); in print_enumeration() 269 AGFREE(pOD->optArg.argString); in print_enumeration() 270 pOD->optArg.argEnum = e_val; in print_enumeration() 278 char const * svstr = pOD->optArg.argString; 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() 384 p->optArg = pOD->optArg; in optionPutShell() 436 (int)pOD->optArg.argInt); in optionPutShell() [all …]
|
H A D | enum.c | 50 pOD->optArg.argString, pOD->pz_Name); in enum_err() 233 od.optArg.argEnum = enum_val; in optionKeywordName() 236 return od.optArg.argString; in optionKeywordName() 278 unsigned int ix = (unsigned int)pOD->optArg.argEnum; in optionEnumerationVal() 292 unsigned int ix = (unsigned int)pOD->optArg.argEnum; in optionEnumerationVal() 299 pOD->optArg.argString = paz_names[ix]; in optionEnumerationVal() 307 res = find_name(pOD->optArg.argString, pOpts, pOD, paz_names, name_ct); in optionEnumerationVal() 310 AGFREE(pOD->optArg.argString); in optionEnumerationVal() 312 pOD->optArg.argString = NULL; in optionEnumerationVal() 364 od->optArg.argString = pz = AGALOC(len, "enum"); in set_memb_names() [all …]
|
H A D | save.c | 50 dir = opts->pOptDesc[ opts->specOptIdx.save_opts ].optArg.argString; in find_dir_name() 313 uintptr_t val = od->optArg.argEnum; in prt_value() 324 if (od->optArg.argString != NULL) { in prt_value() 325 fputs(od->optArg.argString, fp); in prt_value() 331 AGFREE(od->optArg.argString); in prt_value() 335 od->optArg.argEnum = val; in prt_value() 688 char const * arg = od->optArg.argString; in prt_str_arg() 721 uintptr_t val = od->optArg.argEnum; in prt_enum_arg() 728 prt_entry(fp, od, VOIDP(od->optArg.argString), save_fl); in prt_enum_arg() 730 od->optArg.argEnum = val; in prt_enum_arg() [all …]
|
H A D | restore.c | 60 AGDUPSTR(q->optArg.argString, pOD->optArg.argString, "arg"); in fixupSavedOptionArgs() 179 AGFREE(p->optArg.argString); in optionFree() 180 p->optArg.argString = NULL; in optionFree() 189 p->optArg.argString = ".*"; in optionFree()
|
H A D | stack.c | 73 if (regcomp(&re, od->optArg.argString, REG_NOSUB) != 0) in optionUnstackArg() 137 if (strcmp(pzSrc, od->optArg.argString) == 0) { in optionUnstackArg() 253 if (od->optArg.argString == NULL) in optionStackArg() 256 AGDUPSTR(pz, od->optArg.argString, "stack arg"); in optionStackArg()
|
H A D | version.c | 151 && (od->optArg.argString != NULL) in print_ver() 152 && (od->optArg.argString[0] != NUL)) in print_ver() 154 ch = od->optArg.argString[0]; in print_ver() 157 ch = od->optArg.argString[0]; in print_ver()
|
H A D | autoopts.c | 111 AGFREE(od->optArg.argString); in handle_opt() 113 od->optArg.argString = o_st->pzOptArg; in handle_opt() 178 eqv_od->optArg.argString = od->optArg.argString; in handle_opt()
|
H A D | makeshell.c | 295 AGFREE(od->optArg.argString); in text_to_var() 298 od->optArg.argString = "c"; in text_to_var() 459 def_val = od->optArg.argString; in emit_setup() 467 (int)od->optArg.argInt); in emit_setup() 473 (unsigned long)od->optArg.argIntptr); in emit_setup() 478 def_val = (od->optArg.argBool) ? TRUE_STR : FALSE_STR; in emit_setup() 482 if (od->optArg.argString == NULL) { in emit_setup() 488 def_val = od->optArg.argString; in emit_setup()
|
H A D | alias.c | 85 new_od->optArg.argString = old_od->optArg.argString; in optionAlias()
|
H A D | reset.c | 39 pOD->optArg.argString = in optionReset() 79 char const * pzArg = pOD->optArg.argString; in optionResetOpt()
|
H A D | configfile.c | 1133 if (stat(odesc->optArg.argString, &sb) != 0) { in optionLoadOpt() 1137 fserr_exit(opts->pzProgName, "stat", odesc->optArg.argString); in optionLoadOpt() 1145 fserr_exit(opts->pzProgName, "stat", odesc->optArg.argString); in optionLoadOpt() 1149 file_preset(opts, odesc->optArg.argString, DIRECTION_CALLED); in optionLoadOpt()
|
H A D | genshell.h | 99 #define GENSHELL_OPT_ARG(n) (GENSHELL_DESC(n).optArg.argString)
|
/freebsd/contrib/ntp/sntp/ |
H A D | sntp-opts.h | 115 #define OPT_ARG(n) (DESC(n).optArg.argString) 258 #define OPT_VALUE_AUTHENTICATION (DESC(AUTHENTICATION).optArg.argInt) 264 #define OPT_VALUE_SET_DEBUG_LEVEL (DESC(SET_DEBUG_LEVEL).optArg.argInt) 267 #define OPT_VALUE_GAP (DESC(GAP).optArg.argInt) 273 #define OPT_VALUE_STEPLIMIT (DESC(STEPLIMIT).optArg.argInt) 276 #define OPT_VALUE_NTPVERSION (DESC(NTPVERSION).optArg.argInt) 282 #define OPT_VALUE_TIMEOUT (DESC(TIMEOUT).optArg.argInt) 293 DESC(WAIT).optArg.argString = NULL ) 307 DESC(SAVE_OPTS).optArg.argString = (char const*)(a))
|
H A D | sntp-opts.c | 933 if (pOptDesc->optArg.argInt < rng[ix].rmin) in doOptSteplimit() 935 if (pOptDesc->optArg.argInt == rng[ix].rmin) in doOptSteplimit() 939 if (pOptDesc->optArg.argInt <= rng[ix].rmax) in doOptSteplimit() 969 if (pOptDesc->optArg.argInt < rng[ix].rmin) in doOptNtpversion() 971 if (pOptDesc->optArg.argInt == rng[ix].rmin) in doOptNtpversion() 975 if (pOptDesc->optArg.argInt <= rng[ix].rmax) in doOptNtpversion()
|
/freebsd/contrib/ntp/util/ |
H A D | ntp-keygen-opts.h | 118 #define OPT_ARG(n) (DESC(n).optArg.argString) 274 #define OPT_VALUE_IMBITS (DESC(IMBITS).optArg.argInt) 281 #define OPT_VALUE_SET_DEBUG_LEVEL (DESC(SET_DEBUG_LEVEL).optArg.argInt) 289 #define OPT_VALUE_LIFETIME (DESC(LIFETIME).optArg.argInt) 293 #define OPT_VALUE_MODULUS (DESC(MODULUS).optArg.argInt) 304 #define OPT_VALUE_MV_PARAMS (DESC(MV_PARAMS).optArg.argInt) 308 #define OPT_VALUE_MV_KEYS (DESC(MV_KEYS).optArg.argInt) 323 DESC(SAVE_OPTS).optArg.argString = (char const*)(a))
|
H A D | ntp-keygen-opts.c | 1043 if (pOptDesc->optArg.argInt < rng[ix].rmin) in doOptImbits() 1045 if (pOptDesc->optArg.argInt == rng[ix].rmin) in doOptImbits() 1049 if (pOptDesc->optArg.argInt <= rng[ix].rmax) in doOptImbits() 1102 if (pOptDesc->optArg.argInt < rng[ix].rmin) in doOptModulus() 1104 if (pOptDesc->optArg.argInt == rng[ix].rmin) in doOptModulus() 1108 if (pOptDesc->optArg.argInt <= rng[ix].rmax) in doOptModulus()
|
/freebsd/contrib/ntp/ntpq/ |
H A D | ntpq-opts.h | 109 #define OPT_ARG(n) (DESC(n).optArg.argString) 224 #define OPT_VALUE_SET_DEBUG_LEVEL (DESC(SET_DEBUG_LEVEL).optArg.argInt) 235 #define OPT_VALUE_REFID (DESC(REFID).optArg.argEnum) 251 DESC(SAVE_OPTS).optArg.argString = (char const*)(a))
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntpd-opts.h | 130 #define OPT_ARG(n) (DESC(n).optArg.argString) 362 #define OPT_VALUE_SET_DEBUG_LEVEL (DESC(SET_DEBUG_LEVEL).optArg.argInt) 377 #define OPT_VALUE_PRIORITY (DESC(PRIORITY).optArg.argInt) 386 #define OPT_VALUE_UPDATEINTERVAL (DESC(UPDATEINTERVAL).optArg.argInt) 391 #define OPT_VALUE_WAIT_SYNC (DESC(WAIT_SYNC).optArg.argInt)
|
/freebsd/contrib/ntp/ntpdc/ |
H A D | ntpdc-opts.h | 108 #define OPT_ARG(n) (DESC(n).optArg.argString) 218 #define OPT_VALUE_SET_DEBUG_LEVEL (DESC(SET_DEBUG_LEVEL).optArg.argInt) 238 DESC(SAVE_OPTS).optArg.argString = (char const*)(a))
|
/freebsd/contrib/ntp/ntpsnmpd/ |
H A D | ntpsnmpd-opts.h | 100 #define OPT_ARG(n) (DESC(n).optArg.argString) 180 DESC(SAVE_OPTS).optArg.argString = (char const*)(a))
|
/freebsd/contrib/ntp/sntp/libopts/autoopts/ |
H A D | options.h | 494 #define pzLastArg optArg.argString 544 opt_arg_union_t optArg; member
|