Home
last modified time | relevance | path

Searched refs:optArg (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/ntp/sntp/libopts/
H A Dtime.c48 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 Dfile.c43 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 Dboolean.c56 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 Dnumeric.c61 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 Dputshell.c260 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 Denum.c50 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 Dsave.c50 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 Drestore.c60 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 Dstack.c73 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 Dversion.c151 && (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 Dautoopts.c111 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 Dmakeshell.c295 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 Dalias.c85 new_od->optArg.argString = old_od->optArg.argString; in optionAlias()
H A Dreset.c39 pOD->optArg.argString = in optionReset()
79 char const * pzArg = pOD->optArg.argString; in optionResetOpt()
H A Dconfigfile.c1133 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 Dgenshell.h99 #define GENSHELL_OPT_ARG(n) (GENSHELL_DESC(n).optArg.argString)
/freebsd/contrib/ntp/sntp/
H A Dsntp-opts.h115 #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 Dsntp-opts.c933 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 Dntp-keygen-opts.h118 #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 Dntp-keygen-opts.c1043 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 Dntpq-opts.h109 #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 Dntpd-opts.h130 #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 Dntpdc-opts.h108 #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 Dntpsnmpd-opts.h100 #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 Doptions.h494 #define pzLastArg optArg.argString
544 opt_arg_union_t optArg; member

12