/illumos-gate/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 44 struct prt_opts opts; variable 115 ++opts.o_children; in main() 118 ++opts.o_pciid; in main() 121 ++opts.o_drv_name; in main() 124 ++opts.o_verbose; in main() 127 ++opts.o_memory; in main() 142 ++opts.o_fbname; in main() 169 if (opts.o_verbose || opts.o_pciid) { in main() 177 if (opts.o_fbname) in main() 191 opts.o_target = 0; in main() [all …]
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cputrack.c | 76 if (opts->debug) in cputrack_errfn() 110 opts->pgmname++; in main() 126 opts->dotitle = 1; in main() 147 opts->debug++; in main() 201 (opts->nsets = cpc_setgrp_numsets(opts->master)) == 0) { in main() 254 if (opts->dotick) in print_title() 270 if (opts->dotick) in print_exec() 283 if (opts->dotick) in print_fork() 301 if (opts->dotick) in print_sample() 668 (void) pctx_run(pctx, opts->mseconds, opts->nsamples, ptick); in pfork() [all …]
|
H A D | cpustat.c | 106 if (opts->debug) in cpustat_errfn() 137 opts->pgmname++; in main() 168 opts->dotitle = 1; in main() 178 opts->debug++; in main() 252 if (opts->nsamples == 0 || opts->mseconds == 0) in main() 256 (opts->nsets = cpc_setgrp_numsets(opts->master)) == 0) { in main() 285 (opts->mseconds * opts->nsets)); in main() 289 opts->nsamples *= opts->nsets; in main() 328 if (opts->dotick) in print_title() 349 if (opts->dotick) in print_sample() [all …]
|
/illumos-gate/usr/src/cmd/krb5/kinit/ |
H A D | kinit.c | 361 p = &opts->pa_opts[opts->num_pa_opts]; in add_preauth_opt() 522 if (opts->forwardable && opts->not_forwardable) 527 if (opts->proxiable && opts->not_proxiable) 532 if (opts->addresses && opts->no_addresses) 553 (opts->starttime || opts->rlife || opts->forwardable || 554 opts->proxiable || opts->addresses || opts->not_forwardable || 555 opts->not_proxiable || opts->no_addresses || 573 && (opts->service_name || opts->keytab_name || 952 opts->rlife = opts->rlife ? opts->rlife : krb5_max_duration; 1074 opts->k5_cache_name?opts->k5_cache_name:""); [all …]
|
/illumos-gate/usr/src/cmd/raidz_test/ |
H A D | raidz_test.c | 56 switch (opts->rto_v) { in print_opts() 202 int dcols = opts->rm_golden->rm_cols - raidz_parity(opts->rm_golden); in cmp_data() 267 fini_raidz_map(&opts->zio_golden, &opts->rm_golden); in init_raidz_golden_map() 273 opts->zio_golden->io_offset = zio_test->io_offset = opts->rto_offset; in init_raidz_golden_map() 274 opts->zio_golden->io_size = zio_test->io_size = opts->rto_dsize; in init_raidz_golden_map() 276 opts->zio_golden->io_abd = raidz_alloc(opts->rto_dsize); in init_raidz_golden_map() 284 opts->rm_golden = vdev_raidz_map_alloc(opts->zio_golden, in init_raidz_golden_map() 390 fini_raidz_map(&opts->zio_golden, &opts->rm_golden); in run_gen_check() 561 fini_raidz_map(&opts->zio_golden, &opts->rm_golden); in run_rec_check() 571 if (opts == NULL) in run_test() [all …]
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | opts.c | 49 struct opts { struct 133 opts = MALLOC(sizeof (*opts)); in opts_parse() 134 opts->op_raw = opts->op_ints = NULL; in opts_parse() 202 opts_free(struct opts *opts) in opts_free() argument 243 opts_count(struct opts *opts, const char *options) in opts_count() argument 261 opts_optarg(struct opts *opts, const char *o) in opts_optarg() argument 270 opts_optarg_int(struct opts *opts, const char *o) in opts_optarg_int() argument 284 opts_cmdargs(struct opts *opts) in opts_cmdargs() argument 301 opts_merge(struct opts *back, struct opts *front) in opts_merge() 303 struct opts *ret = MALLOC(sizeof (struct opts)); in opts_merge() [all …]
|
H A D | opts.h | 41 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);
|
H A D | main.c | 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); 67 static void docopytruncate(struct opts *opts, const char *file, 414 struct opts *opts = (struct opts *)arg; in doaftercmd() local 436 struct opts *opts = (struct opts *)arg; in do_delayed_gzip() local 578 rotatelog(struct fn *fnp, struct opts *opts) in rotatelog() argument 862 expirefiles(struct fn *fnp, struct opts *opts) in expirefiles() argument 988 dorm(struct opts *opts, const char *msg, struct fn *fnp) in dorm() argument [all …]
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prstat.c | 176 optdesc_t opts = { variable 383 if (((opts.o_outpmode & OPT_UDATE) || (opts.o_outpmode & OPT_DDATE)) && in list_print() 390 n = opts.o_cols; in list_print() 440 if ((opts.o_outpmode & OPT_TERMCAP) && n < opts.o_cols) in list_print() 1206 n = opts.o_ntop + opts.o_nbottom + 2; in setmovecur() 1213 if (((opts.o_outpmode & OPT_UDATE) || (opts.o_outpmode & OPT_DDATE))) in setmovecur() 1252 opts.o_nbottom = n - 1 - opts.o_ntop; in setsize() 1258 opts.o_ntop = n; in setsize() 1548 opts.o_nbottom = opts.o_ntop; in main() 1549 if (!(opts.o_outpmode & OPT_SPLIT) && opts.o_ntop == 0) in main() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipnat.c | 87 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() 152 opts |= OPT_REMOVE; in main() 155 opts |= OPT_STAT; in main() 159 opts |= OPT_VERBOSE; in main() [all …]
|
H A D | ippool.c | 68 int opts = 0; variable 155 opts |= OPT_DEBUG; 201 if (opts & OPT_DEBUG) 240 opts |= OPT_DEBUG; 280 if (opts & OPT_DEBUG) 335 opts |= OPT_DEBUG; 348 opts |= OPT_REMOVE; 403 opts |= OPT_DEBUG; 611 int opts; 658 opts |= OPT_DEBUG; [all …]
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_hostconf.c | 172 uchar_t *opts, *optmax, *subomax; in read_hostconf() local 200 opts = subomax; in read_hostconf() 213 opts = subomax; in read_hostconf() 216 (void) memcpy(&d6in, opts, in read_hostconf() 222 (void) memcpy(opts, &d6in, in read_hostconf() 224 opts += sizeof (d6in); in read_hostconf() 234 (void) memcpy(&d6o, opts, in read_hostconf() 242 opts += sizeof (d6o) + in read_hostconf() 252 (void) memcpy(&d6ia, opts, in read_hostconf() 258 (void) memcpy(opts, &d6ia, in read_hostconf() [all …]
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | form_opts.c | 37 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 D | field_opts.c | 37 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 D | scan.c | 91 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() 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() 149 if (pl->opts[CD_OPTION_OVERLOAD]->len != 1) { in dhcp_options_scan() 150 pl->opts[CD_OPTION_OVERLOAD] = NULL; in dhcp_options_scan() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_term.c | 196 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() 214 sp->opts->opts & TBL_OPT_DBOX) in term_tbl() 216 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) in term_tbl() 307 uvert = dvert = sp->opts->opts & TBL_OPT_DBOX ? 2 : in term_tbl() 308 sp->opts->opts & TBL_OPT_BOX ? 1 : 0; in term_tbl() 383 if (sp->opts->opts & TBL_OPT_ALLBOX) { in term_tbl() 495 sp->opts->opts & TBL_OPT_BOX ? 1 : 0; in term_tbl() 553 sp->opts->opts & TBL_OPT_DBOX) { in term_tbl() [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | attr_on.c | 50 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/tools/scripts/ |
H A D | cddlchk.py | 93 def check(filename, opts): argument 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']: 121 opts['status'] |= check(path, opts) [all …]
|
H A D | mapfilechk.py | 92 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/libxcurses/src/libc/xcurses/ |
H A D | attr_on.c | 43 (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 D | chgat.c | 45 (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/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 198 opts = 0; in server() 200 opts = (opts << 3) | (*cp++ - '0'); in server() 390 rmchk(opts); in sendf() 781 opts = 0; in recvf() 783 opts = (opts << 3) | (*cp++ - '0'); in recvf() 1053 opts = 0; in hardlink() 1055 opts = (opts << 3) | (*cp++ - '0'); in hardlink() 1218 rmchk(int opts) in rmchk() argument 1305 int len, opts; in clean() local 1307 opts = 0; in clean() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | ns_files.c | 343 opts = map; in loadmaster_files() 344 while (*opts && isspace(*opts)) in loadmaster_files() 345 opts++; in loadmaster_files() 349 opts++; in loadmaster_files() 353 if (strcspn(opts, " \t") == strlen(opts)) { in loadmaster_files() 367 while (*opts && !isspace(*opts)) in loadmaster_files() 368 opts++; in loadmaster_files() 371 while (*opts && isspace(*opts)) in loadmaster_files() 372 opts++; in loadmaster_files() 377 opts++; in loadmaster_files() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | switchout.c | 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() 435 if (!opts) in has_Nflag() 437 if (*opts == ',') in has_Nflag() 438 opts ++; in has_Nflag() 439 if (*opts == ' ') in has_Nflag() 440 opts ++; in has_Nflag() 456 cs = *opts; in match() 472 *opts = tmp_str; in match() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_lib.c | 55 if (opts == NULL) in pkinit_init_req_opts() 58 opts->require_eku = 1; in pkinit_init_req_opts() 60 opts->allow_upn = 0; in pkinit_init_req_opts() 67 *reqopts = opts; in pkinit_init_req_opts() 75 if (opts != NULL) in pkinit_fini_req_opts() 76 free(opts); in pkinit_fini_req_opts() 88 if (opts == NULL) in pkinit_init_plg_opts() 94 opts->allow_upn = 0; in pkinit_init_plg_opts() 99 *plgopts = opts; in pkinit_init_plg_opts() 107 if (opts != NULL) in pkinit_fini_plg_opts() [all …]
|