Lines Matching refs:str
323 svc_component_valid(const char *str)
325 if (str == NULL)
328 if (*str == '\0')
331 if (strpbrk(str, "@/:") != NULL)
511 char *str, *loc, val;
516 if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
519 if (strncmp(str, "svc://", 6) != 0)
525 str += 6;
526 if ((loc = strpbrk(str, "@/")) == NULL)
532 if (!svc_component_valid(str)) {
537 if (nvlist_add_string(fmri, FM_FMRI_SVC_AUTH_SCOPE, str) != 0) {
543 str = loc + 1;
544 if ((loc = strchr(str, '/')) == NULL)
548 if (loc != str) {
551 if (!svc_component_valid(str)) {
557 str) != 0) {
565 str = loc + 1;
566 loc = strpbrk(str, ":@");
568 if (str[0] == '\0' || loc == str)
577 if (nvlist_add_string(fmri, FM_FMRI_SVC_NAME, str) != 0) {
588 str = loc + 1;
589 if (str[0] == '\0' || str[0] == '@')
592 loc = strchr(str, '@');
597 str) != 0) {
610 str = loc + 1;
611 if (str[0] == '\0')
615 str) != 0) {