Lines Matching defs:str
332 svc_component_valid(const char *str)
334 if (str == NULL)
337 if (*str == '\0')
340 if (strpbrk(str, "@/:") != NULL)
520 char *str, *loc, val;
525 if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
528 if (strncmp(str, "svc://", 6) != 0)
534 str += 6;
535 if ((loc = strpbrk(str, "@/")) == NULL)
541 if (!svc_component_valid(str)) {
546 if (nvlist_add_string(fmri, FM_FMRI_SVC_AUTH_SCOPE, str) != 0) {
552 str = loc + 1;
553 if ((loc = strchr(str, '/')) == NULL)
557 if (loc != str) {
560 if (!svc_component_valid(str)) {
566 str) != 0) {
574 str = loc + 1;
575 loc = strpbrk(str, ":@");
577 if (str[0] == '\0' || loc == str)
586 if (nvlist_add_string(fmri, FM_FMRI_SVC_NAME, str) != 0) {
597 str = loc + 1;
598 if (str[0] == '\0' || str[0] == '@')
601 loc = strchr(str, '@');
606 str) != 0) {
619 str = loc + 1;
620 if (str[0] == '\0')
624 str) != 0) {