Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c44 struct prt_opts opts; variable
59 opts.o_progname = "prtconf"; in setpname()
61 opts.o_progname = (const char *) p + 1; in setpname()
63 opts.o_progname = name; in setpname()
104 opts.o_promdev = "/dev/openprom"; in main()
109 ++opts.o_ancestors; in main()
112 ++opts.o_productinfo; in main()
115 ++opts.o_children; in main()
118 ++opts.o_pciid; in main()
121 ++opts.o_drv_name; in main()
[all …]
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcputrack.c61 static const struct options *opts = (const struct options *)&__options; variable
75 (void) fprintf(stderr, "%s: ", opts->pgmname); in cputrack_errfn()
76 if (opts->debug) in cputrack_errfn()
97 struct options *opts = &__options; in main() local
107 if ((opts->pgmname = strrchr(argv[0], '/')) == NULL) in main()
108 opts->pgmname = argv[0]; in main()
110 opts->pgmname++; in main()
115 "counter library - %s\n"), opts->pgmname, errstr); in main()
125 opts->mseconds = 1000; in main()
126 opts->dotitle = 1; in main()
[all …]
H A Dcpustat.c88 static const struct options *opts = (const struct options *)&__options; variable
105 (void) fprintf(stderr, "%s: ", opts->pgmname); in cpustat_errfn()
106 if (opts->debug) in cpustat_errfn()
123 struct options *opts = &__options; in main() local
134 if ((opts->pgmname = strrchr(argv[0], '/')) == NULL) in main()
135 opts->pgmname = argv[0]; in main()
137 opts->pgmname++; in main()
145 opts->pgmname, errstr); in main()
151 "counters - %s\n"), opts->pgmname, errstr); in main()
166 opts->mseconds = 5000; in main()
[all …]
/illumos-gate/usr/src/cmd/krb5/kinit/
H A Dkinit.c345 add_preauth_opt(struct k_opts *opts, char *av) in add_preauth_opt() argument
350 if (opts->num_pa_opts == 0) { in add_preauth_opt()
351 opts->pa_opts = malloc(sizeof(krb5_gic_opt_pa_data)); in add_preauth_opt()
352 if (opts->pa_opts == NULL) in add_preauth_opt()
355 size_t newsize = (opts->num_pa_opts + 1) * sizeof(krb5_gic_opt_pa_data); in add_preauth_opt()
356 x = realloc(opts->pa_opts, newsize); in add_preauth_opt()
359 opts->pa_opts = x; in add_preauth_opt()
361 p = &opts->pa_opts[opts->num_pa_opts]; in add_preauth_opt()
371 opts->num_pa_opts++; in add_preauth_opt()
376 parse_options(argc, argv, opts, progname) in parse_options() argument
[all …]
/illumos-gate/usr/src/cmd/raidz_test/
H A Draidz_test.c53 static void print_opts(raidz_test_opts_t *opts, boolean_t force) in print_opts() argument
56 switch (opts->rto_v) { in print_opts()
68 if (force || opts->rto_v >= D_INFO) { in print_opts()
76 opts->rto_ashift, /* -a */ in print_opts()
77 ilog2(opts->rto_offset), /* -o */ in print_opts()
78 opts->rto_dcols, /* -d */ in print_opts()
79 ilog2(opts->rto_dsize), /* -s */ in print_opts()
80 opts->rto_sweep ? "yes" : "no", /* -S */ in print_opts()
181 cmp_code(raidz_test_opts_t *opts, const raidz_map_t *rm, const int parity) in cmp_code() argument
188 if (abd_cmp(CODE_COL(rm, i), CODE_COL(opts->rm_golden, i), in cmp_code()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dopts.c46 static void opts_setcmdarg(struct opts *opts, const char *cmdarg);
49 struct opts { struct
126 struct opts *
127 opts_parse(struct opts *opts, char **argv, int flags) in opts_parse() argument
132 if (opts == NULL) { in opts_parse()
133 opts = MALLOC(sizeof (*opts)); in opts_parse()
134 opts->op_raw = opts->op_ints = NULL; in opts_parse()
135 opts->op_cmdargs = fn_list_new(NULL); in opts_parse()
140 return (opts); in opts_parse()
146 opts_setcmdarg(opts, ptr); in opts_parse()
[all …]
H A Dmain.c58 static void dologname(struct fn *fnp, struct opts *clopts);
59 static boolean_t rotatelog(struct fn *fnp, struct opts *opts);
60 static void rotateto(struct fn *fnp, struct opts *opts, int n,
63 static void expirefiles(struct fn *fnp, struct opts *opts);
64 static void dorm(struct opts *opts, const char *msg, struct fn *fnp);
65 static void docmd(struct opts *opts, const char *msg, const char *cmd,
67 static void docopytruncate(struct opts *opts, const char *file,
165 struct opts *clopts = NULL; /* from parsing command line */ in main()
414 struct opts *opts = (struct opts *)arg; in doaftercmd() local
428 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); in doaftercmd()
[all …]
H A Dopts.h41 struct opts;
57 struct opts *opts_parse(struct opts *, char **args, int flags);
58 void opts_free(struct opts *opts);
59 void opts_set(struct opts *opts, const char *o, const char *optarg);
60 int opts_count(struct opts *opts, const char *options);
61 const char *opts_optarg(struct opts *opts, const char *o);
62 off_t opts_optarg_int(struct opts *opts, const char *o);
63 struct fn_list *opts_cmdargs(struct opts *opts);
64 struct opts *opts_merge(struct opts *back, struct opts *front);
69 void opts_print(struct opts *opts, FILE *stream, char *exclude);
/illumos-gate/usr/src/cmd/prstat/
H A Dprstat.c176 optdesc_t opts = { variable
199 if (opts.o_outpmode & OPT_UDATE) { in print_timestamp()
201 } else if (opts.o_outpmode & OPT_DDATE) { in print_timestamp()
252 if (opts.o_outpmode & OPT_USERS) { in list_getsize()
259 } else if (opts.o_outpmode & OPT_TASKS) { in list_getsize()
263 } else if (opts.o_outpmode & OPT_PROJECTS) { in list_getsize()
270 } else if (opts.o_outpmode & OPT_ZONES) { in list_getsize()
277 opts.o_outpmode); in list_getsize()
288 if (getvmusage(flags, opts.o_interval, NULL, &nres) != 0) in list_getsize()
293 ret = getvmusage(flags, opts.o_interval, results, &nres); in list_getsize()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipnat.c87 int opts; variable
107 opts = 0; in main()
117 opts |= OPT_CLEAR; in main()
120 opts |= OPT_DEBUG; in main()
126 opts |= OPT_FLUSH; in main()
132 opts |= OPT_HITS; in main()
135 opts |= OPT_LIST; in main()
145 opts |= OPT_DONOTHING; in main()
149 opts |= OPT_NORESOLVE; in main()
152 opts |= OPT_REMOVE; in main()
[all …]
H A Dippool.c68 int opts = 0; variable
155 opts |= OPT_DEBUG;
183 opts |= OPT_DONOTHING;
191 opts |= OPT_NORESOLVE;
194 opts |= OPT_VERBOSE;
201 if (opts & OPT_DEBUG)
202 fprintf(stderr, "poolnodecommand: opts = %#x\n", opts);
240 opts |= OPT_DEBUG;
250 opts |= OPT_DONOTHING;
260 opts |= OPT_NORESOLVE;
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c172 uchar_t *opts, *optmax, *subomax; in read_hostconf() local
178 opts = (uchar_t *)pkt + sizeof (dhcpv6_message_t); in read_hostconf()
180 while (opts + sizeof (d6o) <= optmax) { in read_hostconf()
186 (void) memcpy(&d6o, opts, sizeof (d6o)); in read_hostconf()
189 subomax = opts + sizeof (d6o) + d6o.d6o_len; in read_hostconf()
200 opts = subomax; in read_hostconf()
209 opts += sizeof (dhcpv6_ia_ta_t); in read_hostconf()
212 if (opts + sizeof (d6in) > subomax) { in read_hostconf()
213 opts = subomax; in read_hostconf()
216 (void) memcpy(&d6in, opts, in read_hostconf()
[all …]
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dform_opts.c37 set_form_opts(FORM *f, OPTIONS opts) in set_form_opts() argument
39 Form(f)->opts = opts; in set_form_opts()
46 return (Form(f) -> opts); in form_opts()
50 form_opts_on(FORM *f, OPTIONS opts) in form_opts_on() argument
52 Form(f)->opts |= opts; in form_opts_on()
57 form_opts_off(FORM *f, OPTIONS opts) in form_opts_off() argument
59 Form(f)-> opts &= ~opts; in form_opts_off()
H A Dfield_opts.c37 set_field_opts(FIELD *f, OPTIONS opts) in set_field_opts() argument
39 return (_sync_opts(Field(f), opts)); in set_field_opts()
45 return (Field(f) -> opts); in field_opts()
49 field_opts_on(FIELD *f, OPTIONS opts) in field_opts_on() argument
52 return (_sync_opts(x, x->opts | opts)); in field_opts_on()
57 field_opts_off(FIELD *f, OPTIONS opts) in field_opts_off() argument
60 return (_sync_opts(x, x->opts & ~opts)); in field_opts_off()
/illumos-gate/usr/src/common/net/dhcp/
H A Dscan.c91 if (pl->opts[CD_VENDOR_SPEC] == NULL) in vendor_scan()
93 len = pl->opts[CD_VENDOR_SPEC]->len; in vendor_scan()
94 start = pl->opts[CD_VENDOR_SPEC]->value; in vendor_scan()
127 field_scan(pkt->options, &pkt->options[opt_size], pl->opts, in dhcp_options_scan()
135 if (scan_vendor && (pl->opts[CD_VENDOR_SPEC] != NULL)) in dhcp_options_scan()
138 if (pl->opts[CD_DHCP_TYPE] == NULL) in dhcp_options_scan()
141 if (pl->opts[CD_DHCP_TYPE]->len != 1) in dhcp_options_scan()
144 if (*pl->opts[CD_DHCP_TYPE]->value < DISCOVER || in dhcp_options_scan()
145 *pl->opts[CD_DHCP_TYPE]->value > INFORM) in dhcp_options_scan()
148 if (pl->opts[CD_OPTION_OVERLOAD]) { in dhcp_options_scan()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_term.c196 if (sp->opts->opts & TBL_OPT_CENTRE) { in term_tbl()
197 tsz = sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX) in term_tbl()
198 ? 2 : !!sp->opts->lvert + !!sp->opts->rvert; in term_tbl()
199 for (ic = 0; ic + 1 < sp->opts->cols; ic++) in term_tbl()
202 if (sp->opts->cols) in term_tbl()
203 tsz += tp->tbl.cols[sp->opts->cols - 1].width; in term_tbl()
214 sp->opts->opts & TBL_OPT_DBOX) in term_tbl()
216 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) in term_tbl()
232 term_setcol(tp, sp->opts->cols + 2); in term_tbl()
237 if (sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX) || in term_tbl()
[all …]
/illumos-gate/usr/src/tools/scripts/
H A Dcddlchk.py93 def check(filename, opts): argument
97 return cddlchk(fh, verbose=opts['verbose'],
98 lenient=opts['lenient'],
105 def walker(opts, dirname, fnames): argument
110 if not path in opts['exclude']:
111 opts['status'] |= check(path, opts)
113 if path in opts['exclude']:
116 def walkpath(path, opts): argument
118 os.path.walk(path, walker, opts)
120 if not path in opts['exclude']:
[all …]
H A Dmapfilechk.py92 def check(filename, opts): argument
96 return mapfilechk(fh, verbose=opts['verbose'],
103 def walker(opts, dirname, fnames): argument
108 if not path in opts['exclude']:
109 opts['status'] |= check(path, opts)
111 if path in opts['exclude']:
114 def walkpath(path, opts): argument
116 os.path.walk(path, walker, opts)
118 if not path in opts['exclude']:
119 opts['status'] |= check(path, opts)
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dattr_on.c50 attr_on(attr_t at, void *opts) in attr_on() argument
52 (void) wattr_on(stdscr, at, opts); in attr_on()
60 attr_off(attr_t at, void *opts) in attr_off() argument
62 (void) wattr_off(stdscr, at, opts); in attr_off()
70 attr_set(attr_t at, short co, void *opts) in attr_set() argument
72 (void) wattr_set(stdscr, at, co, opts); in attr_set()
80 color_set(short co, void *opts) in color_set() argument
82 (void) wcolor_set(stdscr, co, opts); in color_set()
90 attr_get(attr_t *at, short *co, void *opts) in attr_get() argument
92 (void) wattr_get(stdscr, at, co, opts); in attr_get()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c69 static void sendf(char *rname, int opts);
70 static void rmchk(int opts);
198 opts = 0; in server()
200 opts = (opts << 3) | (*cp++ - '0'); in server()
205 install(cp, opts); in server()
235 install(char *src, char *dest, int destdir, int opts) in install() argument
241 opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ in install()
246 printf("%s%s%s%s%s %s %s\n", opts & VERIFY ? "verify":"install", in install()
247 opts & WHOLE ? " -w" : "", in install()
248 opts & YOUNGER ? " -y" : "", in install()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dattr_on.c43 (attr_on)(attr_t at, void *opts)
46 __m_trace("attr_on(%x, %p)", at, opts);
55 (attr_off)(attr_t at, void *opts)
58 __m_trace("attr_off(%x, %p)", at, opts);
67 (attr_set)(attr_t at, short co, void *opts)
70 __m_trace("attr_set(%x, %d, %p)", at, co, opts);
80 (color_set)(short co, void *opts)
83 __m_trace("color_set(%d, %p)", co, opts);
92 (attr_get)(attr_t *at, short *co, void *opts)
95 __m_trace("attr_get(%p, %p, %p)", at, co, opts);
H A Dchgat.c45 (chgat)(int n, attr_t at, short co, const void *opts)
50 __m_trace("chgat(%d, %x, %d, %p)", n, at, co, opts);
53 code = wchgat(stdscr, n, at, co, opts);
59 (mvchgat)(int y, int x, int n, attr_t at, short co, const void *opts)
64 __m_trace("mvchgat(%d, %d, %d, %x, %d, %p)", y, x, n, at, co, opts);
68 code = wchgat(stdscr, n, at, co, opts);
75 WINDOW *w, int y, int x, int n, attr_t at, short co, const void *opts)
82 w, y, x, n, at, co, opts
87 code = wchgat(w, n, at, co, opts);
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c314 char *line, *dir, *map, *opts; in loadmaster_files() local
343 opts = map; in loadmaster_files()
344 while (*opts && isspace(*opts)) in loadmaster_files()
345 opts++; in loadmaster_files()
346 if (*opts != '-') in loadmaster_files()
347 opts = defopts; in loadmaster_files()
349 opts++; in loadmaster_files()
353 if (strcspn(opts, " \t") == strlen(opts)) { in loadmaster_files()
355 (void) loadmaster_map(dir, opts, stack, stkptr); in loadmaster_files()
366 opts = map; in loadmaster_files()
[all …]
/illumos-gate/usr/src/cmd/fs.d/
H A Dswitchout.c46 static int match(char **opts, char *s);
47 static int has_Nflag(char *opts);
405 stat_snap(char *cmd, char *mountpoint, char *opts) in stat_snap() argument
426 fssnap_show_status(mountpoint, opts, 1, (opts ? 0 : 1)); in stat_snap()
429 has_Nflag(char *opts) in has_Nflag() argument
431 while (opts != NULL && *opts != '\0') { in has_Nflag()
432 if (match(&opts, "N")) { in has_Nflag()
435 if (!opts) in has_Nflag()
437 if (*opts == ',') in has_Nflag()
438 opts ++; in has_Nflag()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_lib.c51 pkinit_req_opts *opts = NULL; in pkinit_init_req_opts() local
54 opts = (pkinit_req_opts *) calloc(1, sizeof(pkinit_req_opts)); in pkinit_init_req_opts()
55 if (opts == NULL) in pkinit_init_req_opts()
58 opts->require_eku = 1; in pkinit_init_req_opts()
59 opts->accept_secondary_eku = 0; in pkinit_init_req_opts()
60 opts->allow_upn = 0; in pkinit_init_req_opts()
61 opts->dh_or_rsa = DH_PROTOCOL; in pkinit_init_req_opts()
62 opts->require_crl_checking = 0; in pkinit_init_req_opts()
63 opts->dh_size = PKINIT_DEFAULT_DH_MIN_BITS; in pkinit_init_req_opts()
64 opts->win2k_target = 0; in pkinit_init_req_opts()
[all …]

12345678910>>...14