Home
last modified time | relevance | path

Searched refs:od (Results 1 – 25 of 81) sorted by relevance

1234

/freebsd/contrib/ntp/sntp/libopts/
H A Dmakeshell.c250 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od) in text_to_var() argument
294 if (od->fOptState & OPTST_ALLOC_ARG) { in text_to_var()
295 AGFREE(od->optArg.argString); in text_to_var()
296 od->fOptState &= ~OPTST_ALLOC_ARG; in text_to_var()
298 od->optArg.argString = "c"; in text_to_var()
299 optionPrintVersion(opts, od); in text_to_var()
399 tOptDesc * od = opts->pOptDesc; in emit_wrapup() local
404 for (;opt_ct > 0; od++, --opt_ct) { in emit_wrapup()
409 if (SKIP_OPT(od) || (od->pz_NAME == NULL)) in emit_wrapup()
415 if ((od->optMinCt == 0) && ((od->fOptState & OPTST_MUST_SET) == 0)) in emit_wrapup()
[all …]
H A Dsave.c215 prt_entry(FILE * fp, tOptDesc * od, char const * l_arg, save_flags_mask_t save_fl) in prt_entry() argument
220 fprintf(fp, ao_name_use_fmt, od->pz_Name, od->pzText); in prt_entry()
221 if (UNUSED_OPT(od) && (save_fl & SVFL_DEFAULT)) in prt_entry()
232 (od->pz_DisableName == NULL) in prt_entry()
233 ? od->pz_Name in prt_entry()
234 : (DISABLED_OPT(od) in prt_entry()
235 ? od->pz_DisableName in prt_entry()
236 : ((od->optEquivIndex == NO_EQUIVALENT) in prt_entry()
237 ? od->pz_Name : od->pz_DisableName) in prt_entry()
245 && (OPTST_GET_ARGTYPE(od->fOptState) != OPARG_TYPE_NUMERIC)) in prt_entry()
[all …]
H A Dusage.c238 tOptDesc * od = opts->pOptDesc + ix; in print_offer_usage() local
239 while (od->optUsage != AOUSE_HELP) { in print_offer_usage()
242 od++; in print_offer_usage()
247 help[1] = od->optValue; in print_offer_usage()
254 strncpy(help + 2, od->pz_Name, 20); in print_offer_usage()
258 strncpy(help, od->pz_Name, 20); in print_offer_usage()
589 prt_conflicts(tOptions * opts, tOptDesc * od) in prt_conflicts() argument
597 if (od->pOptMust != NULL) { in prt_conflicts()
598 opt_no = od->pOptMust; in prt_conflicts()
613 if (od->pOptCant != NULL) in prt_conflicts()
[all …]
H A Dautoopts.c108 tOptDesc * od = o_st->pOD; in handle_opt() local
109 tOptProc * opt_proc = od->pOptProc; in handle_opt()
110 if (od->fOptState & OPTST_ALLOC_ARG) in handle_opt()
111 AGFREE(od->optArg.argString); in handle_opt()
113 od->optArg.argString = o_st->pzOptArg; in handle_opt()
120 && ((od->fOptState & OPTST_NO_INIT) != 0) in handle_opt()
132 if (od->optEquivIndex != NO_EQUIVALENT) { in handle_opt()
133 tOptDesc * eqv_od = opts->pOptDesc + od->optEquivIndex; in handle_opt()
140 if ((od->fOptState & OPTST_DEFINED) != 0) { in handle_opt()
149 if (eqv_od->optActualIndex != od->optIndex) { in handle_opt()
[all …]
H A Dtime.c41 optionTimeVal(tOptions * opts, tOptDesc * od) in optionTimeVal() argument
45 if (INQUERY_CALL(opts, od)) in optionTimeVal()
48 val = parse_duration(od->optArg.argString); in optionTimeVal()
50 fprintf(stderr, zNotDuration, opts->pzProgName, od->optArg.argString); in optionTimeVal()
55 if (od->fOptState & OPTST_ALLOC_ARG) { in optionTimeVal()
56 AGFREE(od->optArg.argString); in optionTimeVal()
57 od->fOptState &= ~OPTST_ALLOC_ARG; in optionTimeVal()
60 od->optArg.argInt = (long)val; in optionTimeVal()
74 optionTimeDate(tOptions * opts, tOptDesc * od) in optionTimeDate() argument
77 if (INQUERY_CALL(opts, od)) in optionTimeDate()
[all …]
H A Dstack.c48 optionUnstackArg(tOptions * opts, tOptDesc * od) in optionUnstackArg() argument
52 if (INQUERY_CALL(opts, od)) in optionUnstackArg()
55 arg_list = (tArgList *)od->optCookie; in optionUnstackArg()
62 od->fOptState &= OPTST_PERSISTENT_MASK; in optionUnstackArg()
63 if ((od->fOptState & OPTST_INITENABLED) == 0) in optionUnstackArg()
64 od->fOptState |= OPTST_DISABLED; in optionUnstackArg()
73 if (regcomp(&re, od->optArg.argString, REG_NOSUB) != 0) in optionUnstackArg()
137 if (strcmp(pzSrc, od->optArg.argString) == 0) { in optionUnstackArg()
165 od->fOptState &= OPTST_PERSISTENT_MASK; in optionUnstackArg()
166 if ((od->fOptState & OPTST_INITENABLED) == 0) in optionUnstackArg()
[all …]
H A Dboolean.c48 optionBooleanVal(tOptions * opts, tOptDesc * od) in optionBooleanVal() argument
53 if (INQUERY_CALL(opts, od)) in optionBooleanVal()
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()
82 if (od->fOptState & OPTST_ALLOC_ARG) { in optionBooleanVal()
83 AGFREE(od->optArg.argString); in optionBooleanVal()
84 od->fOptState &= ~OPTST_ALLOC_ARG; in optionBooleanVal()
[all …]
H A Dnumeric.c107 optionNumericVal(tOptions * opts, tOptDesc * od) in optionNumericVal() argument
116 if (INQUERY_CALL(opts, od) || (od->optArg.argString == NULL)) in optionNumericVal()
125 if ( (od == NULL) in optionNumericVal()
126 || (od->optArg.argString == NULL) in optionNumericVal()
127 || ((od->fOptState & OPTST_RESET) != 0) in optionNumericVal()
132 val = strtol(od->optArg.argString, &pz, 0); in optionNumericVal()
133 if ((pz == od->optArg.argString) || (errno != 0)) in optionNumericVal()
136 if ((od->fOptState & OPTST_SCALED_NUM) != 0) in optionNumericVal()
155 if (od->fOptState & OPTST_ALLOC_ARG) { in optionNumericVal()
156 AGFREE(od->optArg.argString); in optionNumericVal()
[all …]
H A Denum.c232 tOptDesc od = { 0 }; in optionKeywordName() local
233 od.optArg.argEnum = enum_val; in optionKeywordName()
235 (*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, &od ); in optionKeywordName()
236 return od.optArg.argString; in optionKeywordName()
344 set_memb_names(tOptions * opts, tOptDesc * od, char const * const * nm_list, in set_memb_names() argument
349 uintptr_t bits = (uintptr_t)od->optCookie & mask; in set_memb_names()
364 od->optArg.argString = pz = AGALOC(len, "enum"); in set_memb_names()
365 bits = (uintptr_t)od->optCookie & mask; in set_memb_names()
406 check_membership_start(tOptDesc * od, char const ** argp, bool * invert) in check_membership_start() argument
408 uintptr_t res = (uintptr_t)od->optCookie; in check_membership_start()
[all …]
H A Dversion.c138 print_ver(tOptions * opts, tOptDesc * od, FILE * fp, bool call_exit) in print_ver() argument
150 if ( (od->fOptState & OPTST_ARG_OPTIONAL) in print_ver()
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()
156 else if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_STATIC) { in print_ver()
157 ch = od->optArg.argString[0]; in print_ver()
194 optionPrintVersion(tOptions * opts, tOptDesc * od) in optionPrintVersion() argument
196 print_ver(opts, od, print_exit ? stderr : stdout, true); in optionPrintVersion()
212 optionPrintVersionAndReturn(tOptions * opts, tOptDesc * od) in optionPrintVersionAndReturn() argument
[all …]
H A Dproto.h14 too_many_occurrences(tOptions * opts, tOptDesc * od);
41 has_conflict(tOptions * pOpts, tOptDesc * od);
126 set_memb_names(tOptions * opts, tOptDesc * od, char const * const * nm_list,
130 check_membership_start(tOptDesc * od, char const ** argp, bool * invert);
133 find_member_bit(tOptions * opts, tOptDesc * od, char const * pz, int len,
266 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od);
278 emit_action(tOptions * opts, tOptDesc * od);
281 emit_inaction(tOptions * opts, tOptDesc * od);
459 prt_entry(FILE * fp, tOptDesc * od, char const * l_arg, save_flags_mask_t save_fl);
462 prt_value(FILE * fp, int depth, tOptDesc * od, tOptionValue const * ovp);
[all …]
H A Dcheck.c35 has_conflict(tOptions * pOpts, tOptDesc * od) in has_conflict() argument
37 if (od->pOptMust != NULL) { in has_conflict()
38 int const * must = od->pOptMust; in has_conflict()
45 od->pz_Name, ood->pz_Name); in has_conflict()
51 if (od->pOptCant != NULL) { in has_conflict()
52 int const * cant = od->pOptCant; in has_conflict()
59 od->pz_Name, ood->pz_Name); in has_conflict()
H A Dalias.c35 too_many_occurrences(tOptions * opts, tOptDesc * od) in too_many_occurrences() argument
38 char const * eqv = (od->optEquivIndex != NO_EQUIVALENT) ? zequiv : zNil; in too_many_occurrences()
42 if (od->optMaxCt > 1) in too_many_occurrences()
43 fprintf(stderr, zat_most, od->optMaxCt, od->pz_Name, eqv); in too_many_occurrences()
45 fprintf(stderr, zonly_one, od->pz_Name, eqv); in too_many_occurrences()
H A Dinit.c190 tOptDesc * od = NULL; in do_presets() local
202 od = opts->pOptDesc + opts->specOptIdx.save_opts + 1; in do_presets()
203 if (DISABLED_OPT(od)) in do_presets()
224 if ((od != NULL) && ! DISABLED_OPT(od)) in do_presets()
H A Dpgusage.c110 optionPagedUsage(tOptions * opts, tOptDesc * od) in optionPagedUsage() argument
113 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
129 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
H A Dnested.c793 optionNestedVal(tOptions * opts, tOptDesc * od) in optionNestedVal() argument
798 if (od->fOptState & OPTST_RESET) { in optionNestedVal()
799 tArgList * arg_list = od->optCookie; in optionNestedVal()
813 AGFREE(od->optCookie); in optionNestedVal()
817 od->optArg.argString, od->pz_Name, strlen(od->pz_Name)); in optionNestedVal()
820 addArgListEntry(&(od->optCookie), VOIDP(opt_val)); in optionNestedVal()
/freebsd/stand/common/
H A Ddisk.c84 struct open_disk *od; in ptblread() local
87 od = (struct open_disk *)dev->dd.d_opendata; in ptblread()
94 offset *= (od->sectorsize / 512); in ptblread()
100 blocks * od->sectorsize, (char *)buf, NULL)); in ptblread()
108 struct open_disk *od; in ptable_print() local
116 od = (struct open_disk *)pa->dev->dd.d_opendata; in ptable_print()
117 sectsize = od->sectorsize; in ptable_print()
165 struct open_disk *od; in disk_print() local
169 od = (struct open_disk *)dev->dd.d_opendata; in disk_print()
173 return (ptable_iterate(od->table, &pa, ptable_print)); in disk_print()
[all …]
/freebsd/crypto/openssh/
H A Dsftp-glob.c65 fudge_readdir(struct SFTP_OPENDIR *od) in fudge_readdir() argument
74 if (od->dir[od->offset] == NULL) in fudge_readdir()
84 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); in fudge_readdir()
86 strlcpy(ret->d_name, od->dir[od->offset++]->filename, in fudge_readdir()
104 fudge_closedir(struct SFTP_OPENDIR *od) in fudge_closedir() argument
106 sftp_free_dirents(od->dir); in fudge_closedir()
107 free(od); in fudge_closedir()
/freebsd/contrib/netbsd-tests/lib/libppath/
H A Dt_ppath.c432 prop_dictionary_t d, od; in ATF_TC_BODY() local
442 od = prop_dictionary_copy(d); in ATF_TC_BODY()
444 if (!dictionary_equals(od, d)) { in ATF_TC_BODY()
445 oext = prop_dictionary_externalize(od); in ATF_TC_BODY()
510 if (!dictionary_equals(od, d)) { in ATF_TC_BODY()
511 oext = prop_dictionary_externalize(od); in ATF_TC_BODY()
519 if (dictionary_equals(od, nd)) { in ATF_TC_BODY()
520 oext = prop_dictionary_externalize(od); in ATF_TC_BODY()
528 rc = ppath_set_bool(od, p, false); in ATF_TC_BODY()
531 rc = ppath_set_string(od, p2, "Martha Doe"); in ATF_TC_BODY()
[all …]
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsections.c824 Elf_Data *od; in update_reloc() local
829 if (gelf_get##REL(od, i, &REL) != &REL) \ in update_reloc()
834 if (!gelf_update_##REL(od, i, &REL)) \ in update_reloc()
847 if ((od = elf_getdata(s->os, NULL)) == NULL) in update_reloc()
863 Elf_Data *od; in pad_section() local
873 if ((od = elf_newdata(s->os)) == NULL) in pad_section()
876 od->d_align = 1; in pad_section()
877 od->d_off = s->sz; in pad_section()
878 od->d_buf = s->pad; in pad_section()
879 od->d_type = ELF_T_BYTE; in pad_section()
[all …]
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c2599 ztest_lookup(ztest_ds_t *zd, ztest_od_t *od, int count) in ztest_lookup() argument
2607 for (i = 0; i < count; i++, od++) { in ztest_lookup()
2608 od->od_object = 0; in ztest_lookup()
2609 error = zap_lookup(zd->zd_os, od->od_dir, od->od_name, in ztest_lookup()
2610 sizeof (uint64_t), 1, &od->od_object); in ztest_lookup()
2613 ASSERT0(od->od_object); in ztest_lookup()
2620 ASSERT3U(od->od_object, !=, 0); in ztest_lookup()
2623 ztest_object_lock(zd, od->od_object, ZTRL_READER); in ztest_lookup()
2624 VERIFY0(dmu_bonus_hold(zd->zd_os, od->od_object, in ztest_lookup()
2629 od->od_type = doi.doi_type; in ztest_lookup()
[all …]
/freebsd/usr.sbin/prometheus_sysctl_exporter/
H A Dprometheus_sysctl_exporter.c458 oid_get_description(const struct oid *o, struct oiddescription *od) in oid_get_description() argument
467 odlen = sizeof(od->description); in oid_get_description()
468 if (sysctl(lookup, 2 + o->len, &od->description, &odlen, 0, 0) != 0) { in oid_get_description()
474 newline = strchr(od->description, '\n'); in oid_get_description()
478 return (*od->description != '\0'); in oid_get_description()
483 oiddescription_print(const struct oiddescription *od, FILE *fp) in oiddescription_print() argument
486 fprintf(fp, "%s", od->description); in oiddescription_print()
495 struct oiddescription od; in oid_print() local
511 has_desc = oid_get_description(o, &od); in oid_print()
516 if (has_desc && strnstr(od.description, "(LEGACY)", BUFSIZ) != NULL) in oid_print()
[all …]
/freebsd/usr.bin/hexdump/tests/
H A Dod_test.sh40 od -c d_od_cflag.in
43 od -c d_od_cflag.in
/freebsd/usr.bin/hexdump/
H A DMakefile5 MAN= hexdump.1 od.1
7 LINKS= ${BINDIR}/hexdump ${BINDIR}/od
/freebsd/sbin/ipfw/
H A Dnat64lsn.c87 ipfw_obj_data *od; in nat64lsn_print_states() local
95 od = (ipfw_obj_data *)(oh + 1); in nat64lsn_print_states()
96 stg = (ipfw_nat64lsn_stg_v1 *)(od + 1); in nat64lsn_print_states()
97 sz = od->head.length - sizeof(*od); in nat64lsn_print_states()
162 ipfw_obj_data *od; in nat64lsn_states_cb() local
180 od = (ipfw_obj_data *)(oh + 1); in nat64lsn_states_cb()
182 od->head.type = IPFW_TLV_OBJDATA; in nat64lsn_states_cb()
183 od->head.length = sizeof(*od) + sizeof(next_idx); in nat64lsn_states_cb()
184 *((uint64_t *)(od + 1)) = next_idx; in nat64lsn_states_cb()

1234