Lines Matching refs:sp
537 char *url, *p, *sp; in parse_url() local
590 sp = strchr(h->host, '/'); in parse_url()
591 p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p; in parse_url()
592 p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p; in parse_url()
593 if (!sp) { in parse_url()
595 } else if (*sp == '/') { in parse_url()
596 *sp = '\0'; in parse_url()
597 h->path = sp + 1; in parse_url()
604 *sp++ = '\0'; in parse_url()
605 h->path = sp; in parse_url()
608 sp = strrchr(h->host, '@'); in parse_url()
609 if (sp != NULL) { in parse_url()
615 *sp = '\0'; in parse_url()
618 h->host = sp + 1; in parse_url()
682 int sp[2]; in spawn_https_helper_openssl() local
686 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) != 0) in spawn_https_helper_openssl()
702 close(sp[0]); in spawn_https_helper_openssl()
703 xmove_fd(sp[1], 0); in spawn_https_helper_openssl()
757 close(sp[1]); in spawn_https_helper_openssl()
760 close(sp[0]); in spawn_https_helper_openssl()
764 return sp[0]; in spawn_https_helper_openssl()
771 int sp[2]; in spawn_ssl_client() local
784 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) != 0) in spawn_ssl_client()
792 close(sp[0]); in spawn_ssl_client()
793 xmove_fd(sp[1], 0); in spawn_ssl_client()
820 close(sp[1]); in spawn_ssl_client()
821 xmove_fd(sp[0], network_fd); in spawn_ssl_client()