/titanic_52/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 in main() [all...] |
/titanic_52/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 in add_preauth_opt() 376 parse_options(argc,argv,opts,progname) parse_options() argument 593 k5_begin(opts,k5,k4) k5_begin() argument 722 k4_begin(opts,k4) k4_begin() argument 854 k5_kinit(opts,k5) k5_kinit() argument 1111 k4_kinit(opts,k4,ctx) k4_kinit() argument 1303 struct k_opts opts; global() local [all...] |
/titanic_52/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 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 in main() [all...] |
/titanic_52/usr/src/cmd/logadm/ |
H A D | opts.h | 24 * logadm/opts.h -- public definitions for opts module 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 *opt [all...] |
H A D | opts.c | 27 * logadm/opts.c -- options handling routines 42 #include "opts.h" 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 in opts_parse() 55 op_cmdargsopts global() argument 202 opts_free(struct opts * opts) opts_free() argument 216 opts_set(struct opts * opts,const char * o,const char * optarg) opts_set() argument 234 opts_setcmdarg(struct opts * opts,const char * cmdarg) opts_setcmdarg() argument 243 opts_count(struct opts * opts,const char * options) opts_count() argument 261 opts_optarg(struct opts * opts,const char * o) opts_optarg() argument 270 opts_optarg_int(struct opts * opts,const char * o) opts_optarg_int() argument 284 opts_cmdargs(struct opts * opts) opts_cmdargs() argument 495 opts_print(struct opts * opts,FILE * stream,char * exclude) opts_print() argument 531 struct opts *opts; main() local [all...] |
H A D | main.c | 47 #include "opts.h" 56 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, cons 410 struct opts *opts = (struct opts *)arg; doaftercmd() local 432 struct opts *opts = (struct opts *)arg; do_delayed_gzip() local 573 rotatelog(struct fn * fnp,struct opts * opts) rotatelog() argument 779 rotateto(struct fn * fnp,struct opts * opts,int n,struct fn * recentlog,boolean_t isgz) rotateto() argument 857 expirefiles(struct fn * fnp,struct opts * opts) expirefiles() argument 982 dorm(struct opts * opts,const char * msg,struct fn * fnp) dorm() argument 1001 docmd(struct opts * opts,const char * msg,const char * cmd,const char * arg1,const char * arg2,const char * arg3) docmd() argument 1103 docopytruncate(struct opts * opts,const char * file,const char * file_copy) docopytruncate() argument [all...] |
/titanic_52/usr/src/cmd/prstat/ |
H A D | prstat.c | 175 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 in list_getsize() [all...] |
/titanic_52/usr/src/cmd/ipf/tools/ |
H A D | ipnat.c | 96 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 | 303 dostats(fd,nsp,opts,alive) dostats() argument 409 flushtable(fd,opts) flushtable() argument 434 dostats_live(fd,nsp,opts) dostats_live() argument [all...] |
H A D | ippool.c | 67 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 | 608 showpools_live(fd,role,plstp,poolname,opts) showpools_live() argument 876 showhashs_live(fd,role,htstp,poolname,opts) showhashs_live() argument [all...] |
/titanic_52/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...] |
/titanic_52/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() [all...] |
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()
|
/titanic_52/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() 107 * Load opts table in PKT_LIST entry with PKT's options. 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_TYP in dhcp_options_scan() [all...] |
/titanic_52/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() [all...] |
/titanic_52/usr/src/tools/scripts/ |
H A D | cddlchk.py | 93 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) [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['exclud [all...] |
/titanic_52/usr/src/cmd/mandoc/ |
H A D | tbl_term.c | 94 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 in term_tbl() 254 tbl_data(struct termp * tp,const struct tbl_opts * opts,const struct tbl_dat * dp,const struct roffcol * col) tbl_data() argument 368 tbl_number(struct termp * tp,const struct tbl_opts * opts,const struct tbl_dat * dp,const struct roffcol * col) tbl_number() argument [all...] |
/titanic_52/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | attr_on.c | 45 (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); [all...] |
H A D | chgat.c | 47 (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);
|
H A D | wattr_on.c | 47 wattr_on(WINDOW *w, attr_t at, void *opts) in wattr_on() argument 50 __m_trace("wattr_on(%p, %x, %p)", w, at, opts); in wattr_on() 61 wattr_off(WINDOW *w, attr_t at, void *opts) in wattr_off() argument 64 __m_trace("wattr_off(%p, %x, %p)", w, at, opts); in wattr_off() 75 wattr_set(WINDOW *w, attr_t at, short co, void *opts) in wattr_set() argument 78 __m_trace("wattr_set(%p, %x, %d, %p)", w, at, co, opts); in wattr_set() 90 wattr_get(WINDOW *w, attr_t *at, short *co, void *opts) in wattr_get() argument 93 __m_trace("wattr_get(%p, %p, %p, %p)", w, at, co, opts); in wattr_get() 108 wcolor_set(WINDOW *w, short co, void *opts) in wcolor_set() argument 111 __m_trace("wcolor_set(%p, %d, %p)", w, co, opts); in wcolor_set() [all...] |
/titanic_52/usr/src/cmd/mdb/common/modules/smbsrv/ |
H A D | smbsrv.c | 576 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 in smb_dcmd_server() 751 uint_t opts; smb_dcmd_session() local 871 uint_t opts; smb_dcmd_request() local 1050 uint_t opts; smb_dcmd_user() local 1160 uint_t opts; smb_dcmd_tree() local 1236 uint_t opts; smb_dcmd_odir() local 1307 uint_t opts; smb_dcmd_ofile() local 1375 uint_t *opts = arg; smb_kshare_cb() local 1422 uint_t opts = 0; smb_dcmd_kshare() local 2431 smb_dcmd_getopt(uint_t * opts,int argc,const mdb_arg_t * argv) smb_dcmd_getopt() argument 2461 smb_dcmd_setopt(uint_t opts,int max_argc,mdb_arg_t * argv) smb_dcmd_setopt() argument 2481 smb_obj_expand(uintptr_t addr,uint_t opts,const smb_exp_t * x,ulong_t indent) smb_obj_expand() argument 2520 smb_obj_list(const char * name,uint_t opts,uint_t flags) smb_obj_list() argument [all...] |
/titanic_52/usr/src/cmd/fs.d/ |
H A D | switchout.c | 48 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() 453 match(char ** opts,char * s) match() argument [all...] |
/titanic_52/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 68 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 313 sendf(rname,opts) sendf() argument 559 savelink(stp,opts) savelink() argument 602 update(rname,opts,stp) update() argument 781 int f, mode, opts, wrerr, olderrno; global() local 1060 int opts, exists = 0; global() local 1232 rmchk(opts) rmchk() argument 1321 int len, opts; global() local [all...] |
/titanic_52/usr/src/cmd/fs.d/autofs/ |
H A D | ns_files.c | 332 char *line, *dir, *map, *opts; local 362 opts = map; 363 while (*opts && isspace(*opts)) 364 opts++; 365 if (*opts != '-') 366 opts = defopts; 368 opts++; 372 if (strcspn(opts, " ") == strlen(opts)) { 417 loaddirect_files(map,local_map,opts,stack,stkptr) loaddirect_files() argument [all...] |