Searched +defs:val +defs:opt (Results 1 - 23 of 23) sorted by relevance

/osnet-11/usr/src/lib/libshare/common/
H A Dsharetab.c158 * Return the value after "=" for option "opt"
163 getshareopt(char *optlist, char *opt) argument
169 char *val = NULL; local
179 if (strcmp(opt, p) == 0) {
180 val = strdup(pe + 1);
184 if (strcmp(opt, p) == 0) {
185 val = strdup("");
191 return (val);
/osnet-11/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_create.c90 char *opt = NULL, *val = NULL; local
92 if ((status = krb5_ldap_get_db_opt(*t_ptr, &opt, &val)) != 0) {
95 if (opt && !strcmp(opt, "binddn")) {
97 free (opt);
98 free (val);
103 if (val == NULL) {
106 free(opt);
[all...]
H A Dkdb_ldap.c55 krb5_ldap_get_db_opt(char *input, char **opt, char **val) argument
59 *val = NULL;
61 *opt = strdup(input);
62 if (*opt == NULL) {
67 *opt = malloc((unsigned) len + 1);
68 if (!*opt) {
71 memcpy(*opt, input, (unsigned) len);
73 while (isblank((*opt)[len-1]))
75 (*opt)[le
335 char *opt = NULL, *val = NULL; local
[all...]
/osnet-11/usr/src/lib/libsasl/lib/
H A Dconfig.c252 int opt; local
255 for (opt = 0; opt < gctx->nconfiglist; opt++) {
256 if (*key == clist[opt].key[0] &&
257 !strcmp(key, clist[opt].key))
258 return clist[opt].value;
265 int opt; local
267 for (opt = 0; opt < nconfiglis
283 const char *val = sasl_config_getstring(gctx, key, (char *)0); local
300 const char *val = sasl_config_getstring(gctx, key, (char *)0); local
[all...]
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_trace.c72 set_option(char *name, char *val) argument
74 struct option *opt; local
79 for (opt = options; opt->name; opt++) {
80 if (strcasecmp(name, opt->name) == 0) {
81 switch (opt->type) {
83 p = strdup(val);
84 *((char **)opt->address) = p;
87 if (val
[all...]
/osnet-11/usr/src/lib/libdisasm/sparc/
H A Ddis_sparc.c114 char *opt = NULL; local
137 opt = getenv("_LIBDISASM_DEBUG");
138 if (opt == NULL)
141 opt2 = strdup(opt);
293 uint32_t mask, val; local
301 val = instr & mask;
303 val = val >> (offset - length + 1);
305 return (val);
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Denum.c131 static void put_enum(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
136 if(!val)
141 nv_putv(np, val, flags,fp);
146 nv_putv(np,val,flags,fp);
152 n = strcasecmp(v,val);
154 n = strcmp(v,val);
163 error(ERROR_exit(1), "%s: invalid value %s",nv_name(np),val); local
197 Optdisc_t opt; member in struct:__anon2503
266 optdisc.opt.infof = enuminfo;
268 nv_addtype(tp, enum_type, &optdisc.opt, sizeo
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dbash.c153 static void put_globignore(register Namval_t* np, const char *val, int flags, Namfun_t *fp) argument
155 if(val)
160 nv_putv(np,val,flags,fp);
172 static void put_funcname(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
176 if(val && !(flags&NV_RDONLY))
179 nv_putv(np,val,flags,fp);
194 Shopt_t newflags=shp->options, opt; local
197 memset(&opt,0,sizeof(opt));
240 opt
[all...]
H A Dnvtype.c230 static void put_chtype(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
232 if(!val && nv_isattr(np,NV_REF))
234 nv_putv(np,val,flag,fp);
235 if(!val)
545 static void put_type(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
548 if(val && (nq=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)))
561 nv_putv(np,val,flag,fp);
562 if(!val)
834 Optdisc_t opt; member in struct:__anon2516
1009 char *val=nv_getval(np); local
1310 char *val=0; local
1547 put_stat(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
[all...]
H A Dinit.c168 char *val; member in struct:match
249 static void put_ed(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
256 if(!(cp=val) && (*name=='E' || !(cp=nv_getval(sh_scoped(shp,EDITNOD)))))
274 nv_putv(np, val, flags, fp);
278 static void put_history(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
283 if(val && histopen)
285 if(np==HISTFILE && (cp=nv_getval(np)) && strcmp(val,cp)==0)
287 if(np==HISTSIZE && sh_arith(shp,val)==nv_getnum(HISTSIZE))
291 nv_putv(np, val, flags, fp);
294 if(val)
302 put_optindex(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
327 put_restricted(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
371 put_cdpath(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
404 put_lang(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
503 put_ifs(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
582 put_seconds(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
631 put_rand(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
689 put_lineno(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
724 put_lastarg(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
795 char *val; local
866 put_vpath(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
946 char *val; local
1144 put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
1516 Shopt_t opt; local
1984 char *val = nv_getval(np); local
2042 DISABLE(int opt) argument
2047 DISABLE(int opt) argument
2052 DISABLE(int opt) argument
2079 put_trans(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
[all...]
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_pragma.c325 char *opt, *val; local
329 "malformed #pragma %s <option>=<val>\n", prname);
337 opt = strdupa(dnp->dn_string);
339 if ((val = strchr(opt, '=')) != NULL)
340 *val++ = '\0';
342 if (dtrace_setopt(dtp, opt, val) == -1) {
343 if (val
[all...]
H A Ddt_options.c162 const char *opt = (const char *)option; local
164 if (opt == NULL || arg == NULL)
170 len = strlen(opt) + strlen(arg) + 1;
173 (void) strcpy(buf, opt);
517 dtrace_optval_t val = 0; local
535 val = DTRACEOPT_UNSET;
541 val = 1;
546 val = DTRACEOPT_UNSET;
552 val = strtoull(arg, &end, 0);
554 if (*end != '\0' || errno != 0 || val <
607 dtrace_optval_t val = 0; local
621 dtrace_optval_t mul = 1, val = 0; local
683 dtrace_optval_t val = dtp->dt_options[option]; local
825 dof_optdesc_t *opt = (dof_optdesc_t *)(uintptr_t) local
960 dtrace_getopt(dtrace_hdl_t *dtp, const char *opt, dtrace_optval_t *val) argument
989 dtrace_setopt(dtrace_hdl_t *dtp, const char *opt, const char *val) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dargp-parse.c61 #define USER_BITS ((sizeof ((struct option *)0)->val * CHAR_BIT) - GROUP_BITS)
304 const struct argp_option *opt;
307 for (opt = real; !__option_is_end (opt); opt++)
309 if (! (opt->flags & OPTION_ALIAS))
311 real = opt;
316 if (__option_is_short (opt))
319 *cvt->short_end++ = opt->key;
329 if (opt
298 const struct argp_option *opt; local
432 const struct argp_option *opt = argp->options; local
665 parser_parse_arg(struct parser *parser, char *val) argument
716 parser_parse_opt(struct parser *parser, int opt, char *val) argument
779 int opt; local
[all...]
H A Dargp-help.c124 { "short-opt-col", 0, offsetof (struct uparams, short_opt_col) },
125 { "long-opt-col", 0, offsetof (struct uparams, long_opt_col) },
126 { "doc-opt-col", 0, offsetof (struct uparams, doc_opt_col) },
127 { "opt-doc-col", 0, offsetof (struct uparams, opt_doc_col) },
178 int unspec = 0, val = 0;
199 val = 0;
204 val = 1;
208 val = atoi (arg);
224 else if (val < 0)
231 *(int *)((char *)&new_params + un->uparams_offs) = val;
177 int unspec = 0, val = 0; local
355 const struct argp_option *opt; member in struct:hol_entry
548 hol_entry_short_iterate(const struct hol_entry *entry, int (*func)(const struct argp_option *opt, const struct argp_option *real, const char *domain, void *cookie), const char *domain, void *cookie) argument
555 int val = 0; local
556 const struct argp_option *opt, *real = entry->opt; local
574 hol_entry_long_iterate(const struct hol_entry *entry, int (*func)(const struct argp_option *opt, const struct argp_option *real, const char *domain, void *cookie), const char *domain, void *cookie) argument
581 int val = 0; local
582 const struct argp_option *opt, *real = entry->opt; local
598 until_short(const struct argp_option *opt, const struct argp_option *real, const char *domain, void *cookie) argument
616 const struct argp_option *opt; local
634 const struct argp_option *opt = entry->opt; local
901 const struct argp_option *opt; local
1100 const struct argp_option *real = entry->opt, *opt; local
1265 add_argless_short_opt(const struct argp_option *opt, const struct argp_option *real, const char *domain, void *cookie) argument
1279 usage_argful_short_opt(const struct argp_option *opt, const struct argp_option *real, const char *domain, void *cookie) argument
1311 usage_long_opt(const struct argp_option *opt, const struct argp_option *real, const char *domain, void *cookie) argument
[all...]
/osnet-11/usr/src/lib/libdtrace_jni/common/
H A Ddtj_consume.c2318 const char *opt; local
2319 const char *val; local
2328 opt = dtj_string_list_first(r->dtjr_args);
2329 val = dtj_string_list_last(r->dtjr_args);
2330 if (dtrace_setopt(jc->dtjj_consumer->dtjc_dtp, opt,
2331 val) == -1) {
2334 "failed to set %s: %s", opt,
H A Ddtrace_jni.c619 * Returns B_TRUE if opt is a recognized compile flag, B_FALSE otherwise.
622 dtj_cflag(dtj_java_consumer_t *jc, const char *opt, boolean_t *get, argument
629 if (strcmp(opt, "argref") == 0) {
631 } else if (strcmp(opt, "cpp") == 0) {
633 } else if (strcmp(opt, "defaultargs") == 0) {
635 } else if (strcmp(opt, "empty") == 0) {
637 } else if (strcmp(opt, "errtags") == 0) {
639 } else if (strcmp(opt, "knodefs") == 0) {
641 } else if (strcmp(opt, "nolibs") == 0) {
643 } else if (strcmp(opt, "pspe
927 const char *opt; local
928 const char *val; local
1021 const char *opt; local
[all...]
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_db2.c152 krb5_db2_get_db_opt(char *input, char **opt, char **val) argument
156 *opt = NULL;
157 *val = strdup(input);
158 if (*val == NULL) {
162 *opt = malloc((pos - input) + 1);
163 *val = strdup(pos + 1);
164 if (!*opt || !*val) {
165 free(*opt);
1303 char *opt = NULL, *val = NULL; local
1377 char *opt = NULL, *val = NULL; local
1481 char *opt = NULL, *val = NULL; local
1595 char *opt = NULL, *val = NULL; local
[all...]
/osnet-11/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c930 char opt[MBUFSZ]; local
931 char val[MBUFSZ]; local
959 (void) strncpy(opt, prev, fnd_equal - prev);
960 opt[fnd_equal - prev] = '\0';
961 (void) strncpy(val, fnd_equal + 1,
963 val[fnd_comma - fnd_equal -1 ] = '\0';
964 if (strcmp(opt, "MTMAXCACHE") == 0) {
965 MAX_CACHED_SHIFT = atoi(val);
966 } else if (strcmp(opt, "MTEXCLUSIVE") == 0) {
967 if (val[
[all...]
/osnet-11/usr/src/cmd/ldap/ns_ldap/
H A Dldapclient.c252 static int multival_add(multival_t *list, char *opt);
3157 multival_add(multival_t *list, char *opt) argument
3159 if (opt == NULL) {
3178 list->optlist[list->count] = opt;
3277 multival_list(char *opt, multival_t *list) argument
3284 (void) puts(opt);
3323 #define CLIENT_PRINT(opt, str) if (str) \
3324 (void) printf("%s%s\n", (opt), (str))
3394 char *val = NULL; local
3401 val
[all...]
/osnet-11/usr/src/lib/libbrand/common/
H A Dlibbrand.c96 #define DTD_ATTR_OPT ((const xmlChar *) "opt")
843 const char *val)
877 streq((char *)value, val))
908 const char *val)
910 return (brand_disabled_cfg(bh, res, prop, val));
974 xmlChar *special, *dir, *type, *opt; local
990 opt = xmlGetProp(node, DTD_ATTR_OPT);
992 (opt == NULL)) {
1003 /* opt might not be defined */
1004 if (strlen((const char *)opt)
842 brand_disabled_cfg(brand_handle_t bh, const char *res, const char *prop, const char *val) argument
907 brand_disabled_prop_val(brand_handle_t bh, const char *res, const char *prop, const char *val) argument
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dnss_common.c818 set_option(struct option *opt, char *name, char *val) argument
826 for (; opt->name; opt++) {
827 if (strcmp(name, opt->name) == 0) {
828 switch (opt->type) {
830 p = libc_strdup(val);
831 *((char **)opt->address) = p;
835 if (strcmp(val, "") == 0)
838 n = atoi(val);
855 __parse_environment(struct option *opt, char *p) argument
[all...]
/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdlstat.c434 const char *flowname, int opt)
441 if ((opt != LINK_REPORT) && (opt != FLOW_REPORT))
461 if (opt == FLOW_REPORT)
466 if (opt == LINK_REPORT)
475 if (opt == LINK_REPORT) {
487 } else if (opt == FLOW_REPORT) {
541 const char *flowname, int interval, int opt)
557 stat_report(handle, kcp, linkid, flowname, opt);
701 const char *name, uint8_t type, void *val)
433 stat_report(dladm_handle_t handle, kstat_ctl_t *kcp, datalink_id_t linkid, const char *flowname, int opt) argument
540 dladm_continuous(dladm_handle_t handle, datalink_id_t linkid, const char *flowname, int interval, int opt) argument
700 dladm_get_single_mac_stat(dladm_handle_t handle, datalink_id_t linkid, const char *name, uint8_t type, void *val) argument
1277 uint64_t *val = (void *) local
3113 uint64_t *val = (void *) local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dutil.c1443 /* since we've already done strlen() for both nam and val
1445 * sprintf(s, "%s=%s", nam, val)
1447 #define my_setenv_format(s, nam, nlen, val, vlen) \
1450 Copy(val, s+(nlen+1), vlen, char); \
1457 Perl_my_setenv(pTHX_ char *nam, char *val) argument
1485 if (!val) {
1500 vlen = strlen(val);
1504 my_setenv_format(environ[i], nam, nlen, val, vlen);
1508 setenv(nam, val, 1);
1512 if (!val) {
1528 Perl_my_setenv(pTHX_ char *nam,char *val) argument
4252 U32 opt = 0; local
[all...]

Completed in 107 milliseconds