| /onnv-gate/usr/src/cmd/ssh/sshd/ |
| H A D | auth-options.c | 67 auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) in auth_parse_options() argument 75 if (!opts) in auth_parse_options() 78 while (*opts && *opts != ' ' && *opts != '\t') { in auth_parse_options() 80 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 83 opts += strlen(cp); in auth_parse_options() 87 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 90 opts += strlen(cp); in auth_parse_options() 94 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 97 opts += strlen(cp); in auth_parse_options() 101 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Pod/ |
| H A D | Usage.pm | 429 my %opts; 434 %opts = ($_, @_); 438 %opts = %{$_} if (ref($_) eq 'HASH'); 442 $opts{"-exitval"} = $_; 446 $_ and $opts{"-message"} = $_; 453 %opts = map { 454 my $val = $opts{$_}; 459 } (keys %opts); 462 if ((! defined $opts{"-exitval"}) && (! defined $opts{"-verbose"})) { 463 $opts{"-exitval"} = 2; [all …]
|
| /onnv-gate/usr/src/cmd/prtconf/ |
| H A D | prtconf.c | 39 struct prt_opts opts; variable 58 opts.o_progname = "prtconf"; in setpname() 60 opts.o_progname = (const char *) p + 1; in setpname() 62 opts.o_progname = name; in setpname() 182 opts.o_promdev = "/dev/openprom"; in main() 187 ++opts.o_ancestors; in main() 190 ++opts.o_productinfo; in main() 193 ++opts.o_children; in main() 196 ++opts.o_pciid; in main() 199 ++opts.o_drv_name; in main() [all …]
|
| /onnv-gate/usr/src/cmd/ntfsprogs/ |
| H A D | ntfscluster.c | 57 static struct options opts; variable 140 opts.action = act_none; in parse_options() 141 opts.range_begin = -1; in parse_options() 142 opts.range_end = -1; in parse_options() 147 if (!opts.device) { in parse_options() 148 opts.device = argv[optind-1]; in parse_options() 150 opts.device = NULL; in parse_options() 156 if ((opts.action == act_none) && in parse_options() 157 (utils_parse_range(optarg, &opts.range_begin, &opts.range_end, FALSE))) in parse_options() 158 opts.action = act_cluster; in parse_options() [all …]
|
| H A D | ntfscp.c | 75 static struct options opts; variable 151 opts.device = NULL; in parse_options() 152 opts.src_file = NULL; in parse_options() 153 opts.dest_file = NULL; in parse_options() 154 opts.attr_name = NULL; in parse_options() 155 opts.inode = 0; in parse_options() 156 opts.attribute = AT_DATA; in parse_options() 163 if (!opts.device) { in parse_options() 164 opts.device = argv[optind - 1]; in parse_options() 165 } else if (!opts.src_file) { in parse_options() [all …]
|
| H A D | ntfscat.c | 53 static struct options opts; variable 186 opts.inode = -1; in parse_options() 187 opts.attr = cpu_to_le32(-1); in parse_options() 188 opts.attr_name = NULL; in parse_options() 189 opts.attr_name_len = 0; in parse_options() 194 if (!opts.device) { in parse_options() 195 opts.device = argv[optind - 1]; in parse_options() 196 } else if (!opts.file) { in parse_options() 197 opts.file = argv[optind - 1]; in parse_options() 205 if (opts.attr != cpu_to_le32(-1)) { in parse_options() [all …]
|
| H A D | ntfsundelete.c | 96 static struct options opts; variable 466 opts.mode = MODE_NONE; in parse_options() 467 opts.uinode = -1; in parse_options() 468 opts.percent = -1; in parse_options() 469 opts.fillbyte = -1; in parse_options() 473 if (!opts.device) { in parse_options() 474 opts.device = argv[optind-1]; in parse_options() 476 opts.device = NULL; in parse_options() 481 if (opts.fillbyte == (char)-1) { in parse_options() 483 opts.fillbyte = strtol(optarg, &end, 0); in parse_options() [all …]
|
| H A D | ntfsls.c | 122 } opts; variable 222 memset(&opts, 0, sizeof(opts)); in parse_options() 223 opts.device = NULL; in parse_options() 224 opts.path = "/"; in parse_options() 229 if (!opts.device) in parse_options() 230 opts.device = optarg; in parse_options() 235 opts.path = optarg; in parse_options() 238 opts.force++; in parse_options() 250 opts.quiet++; in parse_options() 254 opts.verbose++; in parse_options() [all …]
|
| H A D | ntfslabel.c | 63 } opts; variable 137 if (!err && !opts.device) in parse_options() 138 opts.device = argv[optind-1]; in parse_options() 139 else if (!err && !opts.label) in parse_options() 140 opts.label = argv[optind-1]; in parse_options() 145 opts.force++; in parse_options() 157 opts.noaction++; in parse_options() 160 opts.quiet++; in parse_options() 164 opts.verbose++; in parse_options() 180 opts.verbose++; in parse_options() [all …]
|
| /onnv-gate/usr/src/cmd/krb5/kinit/ |
| H A D | kinit.c | 345 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 …]
|
| /onnv-gate/usr/src/cmd/logadm/ |
| 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 | opts.c | 46 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 D | main.c | 54 static void dologname(struct fn *fnp, struct opts *clopts); 55 static boolean_t rotatelog(struct fn *fnp, struct opts *opts); 56 static void rotateto(struct fn *fnp, struct opts *opts, int n, 59 static void expirefiles(struct fn *fnp, struct opts *opts); 60 static void dorm(struct opts *opts, const char *msg, struct fn *fnp); 61 static void docmd(struct opts *opts, const char *msg, const char *cmd, 63 static void docopytruncate(struct opts *opts, const char *file, 159 struct opts *clopts; /* from parsing command line */ in main() 408 struct opts *opts = (struct opts *)arg; in doaftercmd() local 422 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); in doaftercmd() [all …]
|
| /onnv-gate/usr/src/cmd/cpc/common/ |
| H A D | cputrack.c | 61 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() 101 struct options *opts = &__options; in main() local 111 if ((opts->pgmname = strrchr(argv[0], '/')) == NULL) in main() 112 opts->pgmname = argv[0]; in main() 114 opts->pgmname++; in main() 119 "counter library - %s\n"), opts->pgmname, errstr); in main() 129 opts->mseconds = 1000; in main() 130 opts->dotitle = 1; in main() [all …]
|
| H A D | cpustat.c | 84 static const struct options *opts = (const struct options *)&__options; variable 101 (void) fprintf(stderr, "%s: ", opts->pgmname); in cpustat_errfn() 102 if (opts->debug) in cpustat_errfn() 119 struct options *opts = &__options; in main() local 130 if ((opts->pgmname = strrchr(argv[0], '/')) == NULL) in main() 131 opts->pgmname = argv[0]; in main() 133 opts->pgmname++; in main() 141 opts->pgmname, errstr); in main() 147 "counters - %s\n"), opts->pgmname, errstr); in main() 162 opts->mseconds = 5000; in main() [all …]
|
| /onnv-gate/usr/src/cmd/prstat/ |
| H A D | prstat.c | 169 static optdesc_t opts = { variable 192 if (opts.o_outpmode & OPT_UDATE) { in print_timestamp() 194 } else if (opts.o_outpmode & OPT_DDATE) { in print_timestamp() 245 if (opts.o_outpmode & OPT_USERS) { in list_getsize() 252 } else if (opts.o_outpmode & OPT_TASKS) { in list_getsize() 256 } else if (opts.o_outpmode & OPT_PROJECTS) { in list_getsize() 263 } else if (opts.o_outpmode & OPT_ZONES) { in list_getsize() 270 opts.o_outpmode); in list_getsize() 281 if (getvmusage(flags, opts.o_interval, NULL, &nres) != 0) in list_getsize() 286 ret = getvmusage(flags, opts.o_interval, results, &nres); in list_getsize() [all …]
|
| /onnv-gate/usr/src/cmd/ipf/tools/ |
| H A D | ipnat.c | 93 int opts; variable 113 opts = 0; 124 opts |= OPT_CLEAR; 127 opts |= OPT_DEBUG; 133 opts |= OPT_FLUSH; 136 opts |=OPT_HITS; 139 opts |= OPT_LIST; 149 opts |= OPT_DONOTHING; 153 opts |= OPT_NORESOLVE; 156 opts |= OPT_REMOVE; [all …]
|
| H A D | ippool.c | 66 int opts = 0; variable 147 opts |= OPT_DEBUG; 172 opts |= OPT_DONOTHING; 180 opts |= OPT_NORESOLVE; 183 opts |= OPT_VERBOSE; 187 if (opts & OPT_DEBUG) 188 fprintf(stderr, "poolnodecommand: opts = %#x\n", opts); 226 opts |= OPT_DEBUG; 233 opts |= OPT_DONOTHING; 243 opts |= OPT_NORESOLVE; [all …]
|
| /onnv-gate/usr/src/lib/libeti/form/common/ |
| H A D | form_opts.c | 39 set_form_opts(FORM *f, OPTIONS opts) in set_form_opts() argument 41 Form(f)->opts = opts; in set_form_opts() 48 return (Form(f) -> opts); in form_opts() 52 form_opts_on(FORM *f, OPTIONS opts) in form_opts_on() argument 54 Form(f)->opts |= opts; in form_opts_on() 59 form_opts_off(FORM *f, OPTIONS opts) in form_opts_off() argument 61 Form(f)-> opts &= ~opts; in form_opts_off()
|
| H A D | field_opts.c | 39 set_field_opts(FIELD *f, OPTIONS opts) in set_field_opts() argument 41 return (_sync_opts(Field(f), opts)); in set_field_opts() 47 return (Field(f) -> opts); in field_opts() 51 field_opts_on(FIELD *f, OPTIONS opts) in field_opts_on() argument 54 return (_sync_opts(x, x->opts | opts)); in field_opts_on() 59 field_opts_off(FIELD *f, OPTIONS opts) in field_opts_off() argument 62 return (_sync_opts(x, x->opts & ~opts)); in field_opts_off()
|
| /onnv-gate/usr/src/lib/libdhcpagent/common/ |
| H A D | dhcp_hostconf.c | 174 uchar_t *opts, *optmax, *subomax; in read_hostconf() local 180 opts = (uchar_t *)pkt + sizeof (dhcpv6_message_t); in read_hostconf() 182 while (opts + sizeof (d6o) <= optmax) { in read_hostconf() 188 (void) memcpy(&d6o, opts, sizeof (d6o)); in read_hostconf() 191 subomax = opts + sizeof (d6o) + d6o.d6o_len; in read_hostconf() 202 opts = subomax; in read_hostconf() 211 opts += sizeof (dhcpv6_ia_ta_t); in read_hostconf() 214 if (opts + sizeof (d6in) > subomax) { in read_hostconf() 215 opts = subomax; in read_hostconf() 218 (void) memcpy(&d6in, opts, in read_hostconf() [all …]
|
| /onnv-gate/usr/src/common/net/dhcp/ |
| H A D | scan.c | 93 if (pl->opts[CD_VENDOR_SPEC] == NULL) in vendor_scan() 95 len = pl->opts[CD_VENDOR_SPEC]->len; in vendor_scan() 96 start = pl->opts[CD_VENDOR_SPEC]->value; in vendor_scan() 129 field_scan(pkt->options, &pkt->options[opt_size], pl->opts, in dhcp_options_scan() 137 if (scan_vendor && (pl->opts[CD_VENDOR_SPEC] != NULL)) in dhcp_options_scan() 140 if (pl->opts[CD_DHCP_TYPE] == NULL) in dhcp_options_scan() 143 if (pl->opts[CD_DHCP_TYPE]->len != 1) in dhcp_options_scan() 146 if (*pl->opts[CD_DHCP_TYPE]->value < DISCOVER || in dhcp_options_scan() 147 *pl->opts[CD_DHCP_TYPE]->value > INFORM) in dhcp_options_scan() 150 if (pl->opts[CD_OPTION_OVERLOAD]) { in dhcp_options_scan() [all …]
|
| /onnv-gate/usr/src/tools/onbld/hgext/ |
| H A D | cdm.py | 196 def cdm_pdiffs(ui, repo, *pats, **opts): argument 202 parent = opts['parent'] 204 diffs = wslist[repo].pdiff(pats, opts, parent=parent) 209 def cdm_list(ui, repo, **opts): argument 217 if opts['added']: 219 if opts['modified']: 221 if opts['removed']: 224 act = wslist[repo].active(opts['parent']) 292 def cdm_comchk(ui, repo, **opts): argument 297 active = wslist[repo].active(opts.get('parent')) [all …]
|
| /onnv-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
| H A D | attr_on.c | 52 attr_on(attr_t at, void *opts) in attr_on() argument 54 (void) wattr_on(stdscr, at, opts); in attr_on() 62 attr_off(attr_t at, void *opts) in attr_off() argument 64 (void) wattr_off(stdscr, at, opts); in attr_off() 72 attr_set(attr_t at, short co, void *opts) in attr_set() argument 74 (void) wattr_set(stdscr, at, co, opts); in attr_set() 82 color_set(short co, void *opts) in color_set() argument 84 (void) wcolor_set(stdscr, co, opts); in color_set() 92 attr_get(attr_t *at, short *co, void *opts) in attr_get() argument 94 (void) wattr_get(stdscr, at, co, opts); in attr_get()
|
| /onnv-gate/usr/src/tools/scripts/ |
| H A D | cddlchk.py | 92 def check(filename, opts): argument 100 return cddlchk(fh, verbose=opts['verbose'], 101 lenient=opts['lenient'], 104 def walker(opts, dirname, fnames): argument 109 if not path in opts['exclude']: 110 opts['status'] |= check(path, opts) 112 if path in opts['exclude']: 115 def walkpath(path, opts): argument 117 os.path.walk(path, walker, opts) 119 if not path in opts['exclude']: [all …]
|