Lines Matching refs:cp

568 hpdelim2(char **cp, char *delim)  in hpdelim2()  argument
572 if (cp == NULL || *cp == NULL) in hpdelim2()
575 old = s = *cp; in hpdelim2()
582 s = *cp + strlen(*cp); /* skip to end (see first case below) */ in hpdelim2()
586 *cp = NULL; /* no more fields*/ in hpdelim2()
594 *cp = s + 1; in hpdelim2()
605 hpdelim(char **cp) in hpdelim() argument
607 return hpdelim2(cp, NULL); in hpdelim()
621 colon(char *cp) in colon() argument
625 if (*cp == ':') /* Leading colon is part of file name. */ in colon()
627 if (*cp == '[') in colon()
630 for (; *cp; ++cp) { in colon()
631 if (*cp == '@' && *(cp+1) == '[') in colon()
633 if (*cp == ']' && *(cp+1) == ':' && flag) in colon()
634 return (cp+1); in colon()
635 if (*cp == ':' && !flag) in colon()
636 return (cp); in colon()
637 if (*cp == '/') in colon()
723 char *sdup, *cp, *tmp; in parse_user_host_port() local
737 if ((cp = strrchr(tmp, '@')) != NULL) { in parse_user_host_port()
738 *cp = '\0'; in parse_user_host_port()
743 tmp = cp + 1; in parse_user_host_port()
746 if ((cp = hpdelim(&tmp)) == NULL || *cp == '\0') in parse_user_host_port()
748 host = xstrdup(cleanhostname(cp)); in parse_user_host_port()
848 char *uridup, *cp, *tmp, ch; in parse_uri() local
870 if ((cp = strchr(tmp, '@')) != NULL) { in parse_uri()
873 *cp = '\0'; in parse_uri()
885 tmp = cp + 1; in parse_uri()
889 if ((cp = hpdelim2(&tmp, &ch)) == NULL || *cp == '\0') in parse_uri()
891 host = xstrdup(cleanhostname(cp)); in parse_uri()
898 if ((cp = strchr(tmp, '/')) != NULL) in parse_uri()
899 *cp = '\0'; in parse_uri()
902 tmp = cp ? cp + 1 : NULL; in parse_uri()
940 char *cp; in addargs() local
945 r = vasprintf(&cp, fmt, ap); in addargs()
959 args->list[args->num++] = cp; in addargs()
967 char *cp; in replacearg() local
971 r = vasprintf(&cp, fmt, ap); in replacearg()
980 args->list[which] = cp; in replacearg()
1530 parse_ipqos(const char *cp) in parse_ipqos() argument
1536 if (cp == NULL) in parse_ipqos()
1539 if (strcasecmp(cp, ipqos[i].name) == 0) in parse_ipqos()
1543 val = strtol(cp, &ep, 0); in parse_ipqos()
1544 if (*cp == '\0' || *ep != '\0' || val < 0 || val > 255) in parse_ipqos()
1856 char *cp; in safe_path() local
1881 if ((cp = dirname(buf)) == NULL) { in safe_path()
1885 strlcpy(buf, cp, sizeof(buf)); in safe_path()
2046 const char *cp; in valid_env_name() local
2050 for (cp = name; *cp != '\0'; cp++) { in valid_env_name()
2051 if (!isalnum((u_char)*cp) && *cp != '_') in valid_env_name()
2134 char *cp; in skip_space() local
2136 for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++) in skip_space()
2138 *cpp = cp; in skip_space()