Home
last modified time | relevance | path

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

12345678910>>...13

/titanic_50/usr/src/cmd/ssh/sshd/
H A Dauth-options.c67 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 …]
/titanic_50/usr/src/cmd/prtconf/
H A Dprtconf.c39 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 …]
/titanic_50/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 …]
/titanic_50/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()
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 Dcpustat.c84 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 …]
/titanic_50/usr/src/cmd/logadm/
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);
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.c56 static void dologname(struct fn *fnp, struct opts *clopts);
57 static boolean_t rotatelog(struct fn *fnp, struct opts *opts);
58 static void rotateto(struct fn *fnp, struct opts *opts, int n,
61 static void expirefiles(struct fn *fnp, struct opts *opts);
62 static void dorm(struct opts *opts, const char *msg, struct fn *fnp);
63 static void docmd(struct opts *opts, const char *msg, const char *cmd,
65 static void docopytruncate(struct opts *opts, const char *file,
161 struct opts *clopts; /* from parsing command line */ in main()
410 struct opts *opts = (struct opts *)arg; in doaftercmd() local
424 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); in doaftercmd()
[all …]
/titanic_50/usr/src/cmd/prstat/
H A Dprstat.c175 static optdesc_t opts = { variable
198 if (opts.o_outpmode & OPT_UDATE) { in print_timestamp()
200 } else if (opts.o_outpmode & OPT_DDATE) { in print_timestamp()
251 if (opts.o_outpmode & OPT_USERS) { in list_getsize()
258 } else if (opts.o_outpmode & OPT_TASKS) { in list_getsize()
262 } else if (opts.o_outpmode & OPT_PROJECTS) { in list_getsize()
269 } else if (opts.o_outpmode & OPT_ZONES) { in list_getsize()
276 opts.o_outpmode); in list_getsize()
287 if (getvmusage(flags, opts.o_interval, NULL, &nres) != 0) in list_getsize()
292 ret = getvmusage(flags, opts.o_interval, results, &nres); in list_getsize()
[all …]
/titanic_50/usr/src/cmd/ipf/tools/
H A Dipnat.c96 int opts; variable
117 opts = 0;
128 opts |= OPT_CLEAR;
131 opts |= OPT_DEBUG;
137 opts |= OPT_FLUSH;
143 opts |=OPT_HITS;
146 opts |= OPT_LIST;
156 opts |= OPT_DONOTHING;
160 opts |= OPT_NORESOLVE;
163 opts |= OPT_REMOVE;
[all …]
H A Dippool.c67 int opts = 0; variable
154 opts |= OPT_DEBUG;
182 opts |= OPT_DONOTHING;
190 opts |= OPT_NORESOLVE;
193 opts |= OPT_VERBOSE;
200 if (opts & OPT_DEBUG)
201 fprintf(stderr, "poolnodecommand: opts = %#x\n", opts);
239 opts |= OPT_DEBUG;
249 opts |= OPT_DONOTHING;
259 opts |= OPT_NORESOLVE;
[all …]
/titanic_50/usr/src/tools/onbld/hgext/
H A Dcdm.py232 def cdm_pdiffs(ui, repo, *pats, **opts): argument
243 act = wslist[repo].active(opts.get('parent'))
251 if pats or opts.get('include') or opts.get('exclude'):
252 matchfunc = wslist[repo].matcher(pats=pats, opts=opts)
256 opts = patch.diffopts(ui, opts)
258 match=matchfunc, opts=opts)
263 def cdm_list(ui, repo, **opts): argument
282 act = wslist[repo].active(opts['parent'])
283 wanted = set(x for x in ('added', 'modified', 'removed') if opts[x])
341 def cdm_comchk(ui, repo, **opts): argument
[all …]
/titanic_50/usr/src/lib/libeti/form/common/
H A Dform_opts.c39 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 Dfield_opts.c39 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()
/titanic_50/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c174 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 …]
/titanic_50/usr/src/common/net/dhcp/
H A Dscan.c93 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 …]
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dattr_on.c52 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()
/titanic_50/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 …]
/titanic_50/usr/src/cmd/mandoc/
H A Dtbl_term.c94 if (sp->opts->opts & TBL_OPT_CENTRE) { in term_tbl()
95 tsz = sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX) in term_tbl()
96 ? 2 : !!sp->opts->lvert + !!sp->opts->rvert; in term_tbl()
97 for (ic = 0; ic < sp->opts->cols; ic++) in term_tbl()
108 if (sp->opts->opts & TBL_OPT_DBOX) in term_tbl()
110 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) in term_tbl()
120 sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX)) in term_tbl()
122 else if (sp->opts->lvert) in term_tbl()
134 for (ic = 0; ic < sp->opts->cols; ic++) { in term_tbl()
148 tbl_data(tp, sp->opts, dp, tp->tbl.cols + ic); in term_tbl()
[all …]
/titanic_50/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dattr_on.c45 (attr_on)(attr_t at, void *opts)
48 __m_trace("attr_on(%x, %p)", at, opts);
57 (attr_off)(attr_t at, void *opts)
60 __m_trace("attr_off(%x, %p)", at, opts);
69 (attr_set)(attr_t at, short co, void *opts)
72 __m_trace("attr_set(%x, %d, %p)", at, co, opts);
82 (color_set)(short co, void *opts)
85 __m_trace("color_set(%d, %p)", co, opts);
94 (attr_get)(attr_t *at, short *co, void *opts)
97 __m_trace("attr_get(%p, %p, %p)", at, co, opts);
H A Dchgat.c47 (chgat)(int n, attr_t at, short co, const void *opts)
52 __m_trace("chgat(%d, %x, %d, %p)", n, at, co, opts);
55 code = wchgat(stdscr, n, at, co, opts);
61 (mvchgat)(int y, int x, int n, attr_t at, short co, const void *opts)
66 __m_trace("mvchgat(%d, %d, %d, %x, %d, %p)", y, x, n, at, co, opts);
70 code = wchgat(stdscr, n, at, co, opts);
77 WINDOW *w, int y, int x, int n, attr_t at, short co, const void *opts)
84 w, y, x, n, at, co, opts
89 code = wchgat(w, n, at, co, opts);
/titanic_50/usr/src/cmd/mdb/common/modules/smbsrv/
H A Dsmbsrv.c576 uint_t opts = 0; in smb_dcmd_list() local
580 if (smb_dcmd_getopt(&opts, argc, argv)) in smb_dcmd_list()
583 if (!(opts & ~(SMB_OPT_WALK | SMB_OPT_VERBOSE))) in smb_dcmd_list()
584 opts |= SMB_OPT_ALL_OBJ; in smb_dcmd_list()
586 opts |= SMB_OPT_WALK; in smb_dcmd_list()
588 new_argc = smb_dcmd_setopt(opts, SMB_MDB_MAX_OPTS, new_argv); in smb_dcmd_list()
642 uint_t opts; in smb_dcmd_server() local
645 if (smb_dcmd_getopt(&opts, argc, argv)) in smb_dcmd_server()
649 return (smb_obj_list("smb_server", opts | SMB_OPT_SERVER, in smb_dcmd_server()
652 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_SERVER)) || in smb_dcmd_server()
[all …]
/titanic_50/usr/src/cmd/fs.d/
H A Dswitchout.c48 static int match(char **opts, char *s);
49 static int has_Nflag(char *opts);
407 stat_snap(char *cmd, char *mountpoint, char *opts) in stat_snap() argument
428 fssnap_show_status(mountpoint, opts, 1, (opts ? 0 : 1)); in stat_snap()
431 has_Nflag(char *opts) in has_Nflag() argument
433 while (opts != NULL && *opts != '\0') { in has_Nflag()
434 if (match(&opts, "N")) { in has_Nflag()
437 if (!opts) in has_Nflag()
439 if (*opts == ',') in has_Nflag()
440 opts ++; in has_Nflag()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c68 static void sendf(char *rname, int opts);
69 static void rmchk(int opts);
197 opts = 0; in server()
199 opts = (opts << 3) | (*cp++ - '0'); in server()
204 install(cp, opts); in server()
233 install(src, dest, destdir, opts) in install() argument
235 int destdir, opts;
241 opts &= ~WHOLE; /* WHOLE mode only useful if renaming */
246 printf("%s%s%s%s%s %s %s\n", opts & VERIFY ? "verify":"install",
247 opts & WHOLE ? " -w" : "",
[all …]

12345678910>>...13