Lines Matching refs:cp

580 hpdelim2(char **cp, char *delim)  in hpdelim2()  argument
584 if (cp == NULL || *cp == NULL) in hpdelim2()
587 old = s = *cp; in hpdelim2()
594 s = *cp + strlen(*cp); /* skip to end (see first case below) */ in hpdelim2()
598 *cp = NULL; /* no more fields*/ in hpdelim2()
606 *cp = s + 1; in hpdelim2()
617 hpdelim(char **cp) in hpdelim() argument
619 return hpdelim2(cp, NULL); in hpdelim()
633 colon(char *cp) in colon() argument
637 if (*cp == ':') /* Leading colon is part of file name. */ in colon()
639 if (*cp == '[') in colon()
642 for (; *cp; ++cp) { in colon()
643 if (*cp == '@' && *(cp+1) == '[') in colon()
645 if (*cp == ']' && *(cp+1) == ':' && flag) in colon()
646 return (cp+1); in colon()
647 if (*cp == ':' && !flag) in colon()
648 return (cp); in colon()
649 if (*cp == '/') in colon()
735 char *sdup, *cp, *tmp; in parse_user_host_port() local
749 if ((cp = strrchr(tmp, '@')) != NULL) { in parse_user_host_port()
750 *cp = '\0'; in parse_user_host_port()
755 tmp = cp + 1; in parse_user_host_port()
758 if ((cp = hpdelim(&tmp)) == NULL || *cp == '\0') in parse_user_host_port()
760 host = xstrdup(cleanhostname(cp)); in parse_user_host_port()
860 char *uridup, *cp, *tmp, ch; in parse_uri() local
882 if ((cp = strchr(tmp, '@')) != NULL) { in parse_uri()
885 *cp = '\0'; in parse_uri()
897 tmp = cp + 1; in parse_uri()
901 if ((cp = hpdelim2(&tmp, &ch)) == NULL || *cp == '\0') in parse_uri()
903 host = xstrdup(cleanhostname(cp)); in parse_uri()
910 if ((cp = strchr(tmp, '/')) != NULL) in parse_uri()
911 *cp = '\0'; in parse_uri()
914 tmp = cp ? cp + 1 : NULL; in parse_uri()
952 char *cp; in addargs() local
957 r = vasprintf(&cp, fmt, ap); in addargs()
971 args->list[args->num++] = cp; in addargs()
979 char *cp; in replacearg() local
983 r = vasprintf(&cp, fmt, ap); in replacearg()
992 args->list[which] = cp; in replacearg()
1570 parse_ipqos(const char *cp) in parse_ipqos() argument
1576 if (cp == NULL) in parse_ipqos()
1579 if (strcasecmp(cp, ipqos[i].name) == 0) in parse_ipqos()
1583 val = strtol(cp, &ep, 0); in parse_ipqos()
1584 if (*cp == '\0' || *ep != '\0' || val < 0 || val > 255) in parse_ipqos()
1896 char *cp; in safe_path() local
1921 if ((cp = dirname(buf)) == NULL) { in safe_path()
1925 strlcpy(buf, cp, sizeof(buf)); in safe_path()
2086 const char *cp; in valid_env_name() local
2090 for (cp = name; *cp != '\0'; cp++) { in valid_env_name()
2091 if (!isalnum((u_char)*cp) && *cp != '_') in valid_env_name()
2174 char *cp; in skip_space() local
2176 for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++) in skip_space()
2178 *cpp = cp; in skip_space()