Home
last modified time | relevance | path

Searched refs:strval (Results 1 – 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_principal2.c461 char **values=NULL, *strval[10]={NULL}, errbuf[1024]; local
818 memset(strval, 0, sizeof(strval));
819 if ((strval[0]=getstringtime(entries->last_success)) == NULL)
821 …if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastSuccessfulAuth", LDAP_MOD_REPLACE, strval)) != 0)…
822 free (strval[0]);
825 free (strval[0]);
829 memset(strval, 0, sizeof(strval));
830 if ((strval[0]=getstringtime(entries->last_failed)) == NULL)
832 … if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastFailedAuth", LDAP_MOD_REPLACE, strval)) != 0) {
833 free (strval[0]);
[all …]
H A Dldap_tkt_policy.c50 char *strval[3]={NULL}, *policy_dn = NULL; local
69 memset(strval, 0, sizeof(strval));
70 strval[0] = policy->policy;
71 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
74 memset(strval, 0, sizeof(strval));
75 strval[0] = "krbTicketPolicy";
76 strval[1] = "krbTicketPolicyaux";
77 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
127 … *attrvalues[]={"krbTicketPolicy", "krbTicketPolicyAux", NULL}, *strval[2]={NULL}; local
152 memset(strval, 0, sizeof(strval));
[all …]
H A Dldap_services.c54 char **rdns=NULL, *realmattr=NULL, *strval[3]={NULL}; local
72 memset(strval, 0, sizeof(strval));
73 strval[0] = "krbService";
75 strval[1] = "krbKdcService";
78 strval[1] = "krbAdmService";
81 strval[1] = "krbPwdService";
84 strval[1] = "krbKdcService";
87 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
95 memset(strval, 0, sizeof(strval));
96 strval[0] = rdns[0];
[all …]
H A Dldap_realm.c396 char **strval=NULL, *strvalprc[5]={NULL}; local
472 strval = rparams->subtree;
474 strval)) != 0) {
785 char *strval[2]={NULL}, *kerberoscontdn=NULL, **rdns=NULL; local
814 strval[0] = "krbContainer";
815 strval[1] = NULL;
816 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
826 strval[0] = rdns[0];
827 strval[1] = NULL;
828 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
[all …]
H A Dldap_principal.c262 char *user=NULL, *DN=NULL, *strval[10] = {NULL}; local
309 memset(strval, 0, sizeof(strval));
310 strval[0] = user;
312 strval)) != 0)
350 memset(strval, 0, sizeof(strval));
353 strval[r++] = attrvalues[q];
354 strval[r] = NULL;
357 strval)) != 0)
H A Dldap_pwd_policy.c60 char **rdns=NULL, *strval[2]={NULL}, *policy_dn; local
84 strval[0] = rdns[0];
85 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
88 strval[0] = "krbPwdPolicy";
89 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
/illumos-gate/usr/src/lib/libadm/common/
H A Dckkeywd.c40 match(char *strval, char *set[]) in match() argument
45 len = (int)strlen(strval); in match()
49 if (strncmp(set[i], strval, len) == 0) { in match()
57 (void) strcpy(strval, found); in match()
64 ckkeywd(char *strval, char *keyword[], char *defstr, char *error, char *help, in ckkeywd() argument
92 (void) strcpy(strval, defstr); in ckkeywd()
103 (void) strcpy(strval, input); in ckkeywd()
115 (void) strcpy(strval, input); in ckkeywd()
H A Dckitem.c131 char strval[MAX_INPUT]; in ckitem() local
164 if (n = getstr(strval, defstr, error, help, prompt)) { in ckitem()
169 if (strcmp(strval, "??") == 0) { in ckitem()
172 if ((defstr) && (strcmp(strval, defstr) == 0)) { in ckitem()
176 list = match(menup, strval, (int)max); in ckitem()
191 getnum(char *strval, int max, int *begin, int *end) in getnum() argument
197 pt = strval; in getnum()
232 match(CKMENU *menup, char *strval, int max) argument
244 if (pt = strpbrk(strval, " \t,")) {
255 isdigit((unsigned char)*strval)) {
[all …]
H A Dgetvol.c290 char strval[16], prmpt[BUFSIZ]; in insert() local
409 if (n = ckkeywd(strval, keyword, NULL, NULL, NULL, pt)) in insert()
413 if (*strval == 'f') { in insert()
419 } else if (*strval == 'm') { in insert()
422 } else if (*strval == 'e' || *strval == 'u') { in insert()
425 } else if (*strval == 'w') { in insert()
428 } else if (*strval == 'o') in insert()
H A Dckstr.c142 ckstr(char *strval, char *regexp[], int length, char *defstr, char *error, in ckstr() argument
163 (void) strcpy(strval, defstr); in ckstr()
176 (void) strcpy(strval, input); in ckstr()
185 (void) strcpy(strval, input); in ckstr()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_get.c228 char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in get_special_prop() local
252 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop()
283 dsl_dir_get_origin(ds->ds_dir, strval); in get_special_prop()
294 error = get_objset_type_name(ds, strval); in get_special_prop()
297 error = dsl_get_prev_snap(ds, strval); in get_special_prop()
300 dsl_dataset_name(ds, strval); in get_special_prop()
303 error = dsl_get_mountpoint(ds, dsname, strval, setpoint); in get_special_prop()
349 VERIFY3U(strlcpy(strval, token, ZAP_MAXVALUELEN), <, in get_special_prop()
352 if (strcmp(strval, "") == 0) { in get_special_prop()
354 VERIFY3U(strlcpy(strval, token, ZAP_MAXVALUELEN), <, in get_special_prop()
[all …]
/illumos-gate/usr/src/cmd/captoinfo/
H A Dcaptoinfo.c124 static char **strval[2]; /* dynamic array of string pointers */ variable
318 strval[uselevel][i] = otgetstr(strcodes[i], &nextstring); in filltables()
322 if (strval[uselevel][i]) { in filltables()
324 tpr(trace, strval[uselevel][i]); in filltables()
331 if (strval[uselevel][i] && (strval[uselevel][i][0] == '\0')) { in filltables()
335 strval[uselevel][i] = NULL; in filltables()
444 tpr(trace, strval[uselevel][i]); in getcapstr()
447 return (strval[uselevel][i]); in getcapstr()
504 tpr(trace, strval[uselevel][i]); in getinfostr()
507 return (strval[uselevel][i]); in getinfostr()
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPV1SSrvMsg.java1041 String strval = valTok.toString().trim(); in parseValue() local
1045 if (strval.startsWith(WILDCARD)) { in parseValue()
1047 strval = strval.substring(1, strval.length()); in parseValue()
1051 if (strval.endsWith(WILDCARD)) { in parseValue()
1053 strval = strval.substring(0, strval.length()-1); in parseValue()
1060 ServiceLocationAttributeV1.evaluate(strval, charCode); in parseValue()
1065 strval = in parseValue()
1072 strval = WILDCARD + strval; in parseValue()
1077 strval = strval + WILDCARD; in parseValue()
1082 strval = val.toString(); in parseValue()
[all …]
/illumos-gate/usr/src/cmd/valtools/
H A Dckkeywd.c82 char *strval; in main() local
167 strval = (char *)malloc(len); in main()
168 if (!strval) { in main()
173 n = ckkeywd(strval, keyword, deflt, error, help, prompt); in main()
179 (void) fputs(strval, stdout); in main()
H A Dckuid.c114 char *strval; in main() local
218 strval = (char *)malloc(len); in main()
219 if (!strval) { in main()
224 n = ckuid(strval, disp, deflt, error, help, prompt); in main()
230 (void) fputs(strval, stdout); in main()
H A Dckstr.c113 char *strval; in main() local
254 strval = (char *)malloc(len); in main()
255 if (!strval) { in main()
260 n = ckstr(strval, regexp, length, deflt, error, help, prompt); in main()
266 (void) fputs(strval, stdout); in main()
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l357 yylval.strval = create_token(yytext);
362 yylval.strval = create_token(yytext);
367 yylval.strval = create_token(yytext);
372 yylval.strval = create_token(yytext + 1);
373 if (yylval.strval[yyleng - 2] == '"')
374 yylval.strval[yyleng - 2] = 0;
379 yylval.strval = create_token(yytext + 1);
380 if (yylval.strval[yyleng - 2] == '"')
381 yylval.strval[yyleng - 2] = 0;
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c1294 char strval[IPMGMT_STRSIZE]; in i_ipmgmt_node2nvl() local
1308 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_lnum); in i_ipmgmt_node2nvl()
1309 if ((err = nvlist_add_string(*nvl, IPADM_NVP_LIFNUM, strval)) != 0) in i_ipmgmt_node2nvl()
1312 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_family); in i_ipmgmt_node2nvl()
1313 if ((err = nvlist_add_string(*nvl, IPADM_NVP_FAMILY, strval)) != 0) in i_ipmgmt_node2nvl()
1316 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_flags); in i_ipmgmt_node2nvl()
1317 if ((err = nvlist_add_string(*nvl, FLAGS, strval)) != 0) in i_ipmgmt_node2nvl()
1320 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_atype); in i_ipmgmt_node2nvl()
1321 if ((err = nvlist_add_string(*nvl, ATYPE, strval)) != 0) in i_ipmgmt_node2nvl()
1336 if (inet_ntop(AF_INET6, &in6->sin6_addr, strval, in i_ipmgmt_node2nvl()
[all …]
/illumos-gate/usr/src/cmd/infocmp/
H A Dinfocmp.c630 register char *strval; in check_nth_terminal() local
793 strval = tgetstr(str[i].capname, (char **)0); in check_nth_terminal()
795 if (str[i].seenagain && (strval != NULL)) { in check_nth_terminal()
796 if (!EQUAL(strval, str[i].secondval)) { in check_nth_terminal()
806 PR(stderr, strval); in check_nth_terminal()
810 if (strval != NULL) { in check_nth_terminal()
812 str[i].secondval = strval; in check_nth_terminal()
814 if (!EQUAL(str[i].val, strval)) in check_nth_terminal()
821 if (strval != NULL) { in check_nth_terminal()
824 str[i].fullname, strval); in check_nth_terminal()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg_lex.l222 yylval.strval = safe_strdup(yytext);
227 yylval.strval = safe_strdup(yytext);
232 yylval.strval = safe_strdup(yytext);
237 yylval.strval = safe_strdup(yytext);
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dllp.c297 char *strval; in upgrade_llp_config() local
374 strval = wp->llp_ipv4addrstr; in upgrade_llp_config()
375 if ((err = nwamd_set_ncu_string(ip_ncu, &strval, 1, in upgrade_llp_config()
391 strval = wp->llp_ipv6addrstr; in upgrade_llp_config()
392 if ((err = nwamd_set_ncu_string(ip_ncu, &strval, 1, in upgrade_llp_config()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c965 char *strval; in zfs_valid_proplist() local
1005 (void) nvpair_value_string(elem, &strval); in zfs_valid_proplist()
1006 if (nvlist_add_string(ret, propname, strval) != 0) { in zfs_valid_proplist()
1056 (void) nvpair_value_string(elem, &strval); in zfs_valid_proplist()
1057 if (strcmp(strval, "none") == 0) { in zfs_valid_proplist()
1060 strval, &intval) != 0) { in zfs_valid_proplist()
1132 &strval, &intval, errbuf) != 0) in zfs_valid_proplist()
1230 if (strcasecmp(strval, ZFS_MLSLABEL_DEFAULT) == 0) in zfs_valid_proplist()
1235 (str_to_label(strval, &new_sl, MAC_LABEL, in zfs_valid_proplist()
1250 if (strcmp(strval, hex) == 0) { in zfs_valid_proplist()
[all …]
H A Dlibzfs_pool.c257 const char *strval; in zpool_get_prop() local
391 if (zpool_prop_index_to_string(prop, intval, &strval) in zpool_get_prop()
394 (void) strlcpy(buf, strval, len); in zpool_get_prop()
451 char *strval; in zpool_valid_proplist() local
488 (void) nvpair_value_string(elem, &strval); in zpool_valid_proplist()
489 if (strcmp(strval, ZFS_FEATURE_ENABLED) != 0 && in zpool_valid_proplist()
490 strcmp(strval, ZFS_FEATURE_DISABLED) != 0) { in zpool_valid_proplist()
523 &strval, &intval, errbuf) != 0) in zpool_valid_proplist()
585 if (!bootfs_name_valid(poolname, strval)) { in zpool_valid_proplist()
587 "is an invalid name"), strval); in zpool_valid_proplist()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldapsearch.c46 static void write_string_attr_value( char *attrname, char *strval,
1093 write_string_attr_value( char *attrname, char *strval, unsigned long opts ) in write_string_attr_value() argument
1095 if ( strval == NULL ) { in write_string_attr_value()
1096 strval = ""; in write_string_attr_value()
1099 write_ldif_value( attrname, strval, strlen( strval ), 0 ); in write_string_attr_value()
1101 printf( "%s\n", strval ); in write_string_attr_value()
1103 printf( "%s%s%s\n", attrname, sep, strval ); in write_string_attr_value()
/illumos-gate/usr/src/lib/scsi/libscsi/common/
H A Dscsi_engine.c154 const char *strval; in scsi_parse_mtbf() local
157 if ((strval = getenv(envvar)) != NULL && in scsi_parse_mtbf()
158 (intval = atoi(strval)) > 0) { in scsi_parse_mtbf()

123