/src/share/examples/refuse/ian/libfetch/ |
fetch.h | 40 struct url { struct 92 FILE *fetchXGetFile(struct url *, struct url_stat *, const char *); 93 FILE *fetchGetFile(struct url *, const char *); 94 FILE *fetchPutFile(struct url *, const char *); 95 int fetchStatFile(struct url *, struct url_stat *, const char *); 96 struct url_ent *fetchListFile(struct url *, const char *); 99 FILE *fetchXGetHTTP(struct url *, struct url_stat *, const char *); 100 FILE *fetchGetHTTP(struct url *, const char *); 101 FILE *fetchPutHTTP(struct url *, const char *); 102 int fetchStatHTTP(struct url *, struct url_stat *, const char *) [all...] |
common.h | 92 int _fetch_netrc_auth(struct url *url); 114 FILE *_http_request(struct url *, const char *, 115 struct url_stat *, struct url *, const char *); 116 FILE *_ftp_request(struct url *, const char *, 117 struct url_stat *, struct url *, const char *);
|
http.c | 680 _http_connect(struct url *URL, struct url *purl, const char *flags) 700 if (purl && strcasecmp(URL->scheme, SCHEME_HTTPS) != 0) { 701 URL = purl; 702 } else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0) { 708 if ((conn = _fetch_connect(URL->host, URL->port, af, verbose)) == NULL) 711 if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && 732 static struct url * 807 struct url *url, *new; local in function:_http_request [all...] |
ftp.c | 104 static struct url cached_host; 908 _ftp_authenticate(conn_t *conn, struct url *url, struct url *purl) 917 if (url->user[0] == '\0') 918 _fetch_netrc_auth(url); 919 user = url->user; 924 if (purl && url->port == _fetch_default_port(url->scheme)) 925 e = _ftp_cmd(conn, "USER %s@%s", user, url->host) [all...] |
file.c | 45 fetchXGetFile(struct url *u, struct url_stat *us, const char *flags) 66 fetchGetFile(struct url *u, const char *flags) 72 fetchPutFile(struct url *u, const char *flags) 111 fetchStatFile(struct url *u, struct url_stat *us, const char *flags __unused) 118 fetchListFile(struct url *u, const char *flags __unused)
|
fetch.c | 62 { URL_MALFORMED, FETCH_URL, "Malformed URL" }, 63 { URL_BAD_SCHEME, FETCH_URL, "Invalid URL scheme" }, 72 * Select the appropriate protocol for the URL scheme, and return a 73 * read-only stream connected to the document referenced by the URL. 77 fetchXGet(struct url *URL, struct url_stat *us, const char *flags) 83 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0) 84 return (fetchXGetFile(URL, us, flags)); 85 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0) 86 return (fetchXGetFTP(URL, us, flags)) [all...] |
common.c | 665 * Get authentication data for a URL from .netrc 668 _fetch_netrc_auth(struct url *url) 702 strcasecmp(word, url->host) == 0) { 713 if (snprintf(url->user, sizeof(url->user), 714 "%s", word) > (int)sizeof(url->user)) { 716 url->user[0] = '\0'; 721 if (snprintf(url->pwd, sizeof(url->pwd) [all...] |
/src/usr.bin/ftp/ |
fetch.c | 129 #define FILE_URL "file://" /* file URL prefix */ 130 #define FTP_URL "ftp://" /* ftp URL prefix */ 131 #define HTTP_URL "http://" /* http URL prefix */ 133 #define HTTPS_URL "https://" /* https URL prefix */ 383 url_decode(char *url) 387 if (EMPTYSTRING(url)) 389 p = q = (unsigned char *)url; 442 * Parse URL of form (per RFC 3986): 453 * leading `/' unless it's an ftp:// URL, as this makes things easier 455 * host and the URL-path removed, but any additional leading slashe [all...] |
/src/lib/librumpuser/ |
rumpfiber_sp.c | 45 rumpuser_sp_init(const char *url,
|
sp_common.c | 747 parseurl(const char *url, struct sockaddr **sap, unsigned *idxp, 757 * Parse the url 760 p = url;
|
rumpuser_sp.c | 1306 rumpuser_sp_init(const char *url, 1316 p = strdup(url); 1353 fprintf(stderr, "rump_sp: failed to bind to URL %s\n", url);
|
/src/share/examples/refuse/ian/ian/ |
ian.c | 59 getfile(const char *url) 62 struct url *newurlp; 74 if ((cp = strchr(url, ':')) == NULL) { 75 warn("malformed URL `%s'", url + 1); 79 (int)(cp - url), url + 1, cp + 1);
|
/src/libexec/httpd/ |
cgi-bozo.c | 203 append_index_html(bozohttpd_t *httpd, char **url) 205 *url = bozorealloc(httpd, *url, 206 strlen(*url) + strlen(httpd->index_html) + 1); 207 strcat(*url, httpd->index_html); 209 "append_index_html: url adjusted to `%s'", *url)); 378 char *query, *s, *t, *path, *env, *command, *file, *url; local in function:bozo_process_cgi 411 bozoasprintf(httpd, &url, "%s%s%s", 415 debug((httpd, DEBUG_NORMAL, "%s: url `%s'", __func__, url)) [all...] |
bozohttpd.h | 291 char *bozo_escape_rfc3986(bozohttpd_t *httpd, const char *url, int absolute); 292 char *bozo_escape_html(bozohttpd_t *httpd, const char *url);
|
bozohttpd.c | 332 "url: method: \"%s\" file: \"%s\" query: \"%s\" proto: \"%s\"", 761 * can more properly parse the method and the url. 898 debug((httpd, DEBUG_FAT, "bozo_read_request returns url %s in request", 990 * given an url, encode it ala rfc 3986. ie, escape ? and friends. 996 bozo_escape_rfc3986(bozohttpd_t *httpd, const char *url, int absolute) 1004 len = strlen(url); 1010 for (s = url, d = buf; *s;) { 1056 * the URL we will tack these on to the new (redirected) URL. 1059 handle_redirect(bozo_httpreq_t *request, const char *url, int absolute [all...] |
/src/tests/lib/libbluetooth/ |
t_sdp_get.c | 605 char *url; local in function:ATF_TC_BODY 609 * sdp_get_url expects a URL type 612 ATF_REQUIRE(sdp_get_url(&test, &url, &len)); 613 ATF_CHECK(len == 4 && strncmp(url, "URL8", 4) == 0); 615 ATF_REQUIRE_EQ(sdp_get_url(&test, &url, &len), false); /* not url */ 619 ATF_REQUIRE(sdp_get_url(&test, &url, &len)); 620 ATF_CHECK(len == 5 && strncmp(url, "URL16", 5) == 0); 622 ATF_REQUIRE(sdp_get_url(&test, &url, &len)); 623 ATF_CHECK(len == 5 && strncmp(url, "URL32", 5) == 0) [all...] |
/src/sys/rump/kern/lib/libsysproxy/ |
sysproxy.c | 60 rump_init_server(const char *url) 63 return rumpuser_sp_init(url, ostype, osrelease, MACHINE);
|
/src/lib/libbluetooth/ |
sdp_put.c | 364 sdp_put_url(sdp_data_t *data, const char *url, ssize_t len) 368 len = strlen(url); 373 memcpy(data->next, url, (size_t)len);
|
sdp_get.c | 361 sdp_get_url(sdp_data_t *data, char **url, size_t *len) 368 *url = (char *)u.next;
|
/src/sys/arch/playstation2/conf/ |
DEBUG | 84 url* at uhub? port ? # Realtek RTL8150L based adapters
|
/src/sys/dev/usb/ |
if_url.c | 72 CFATTACH_DECL_NEW(url, sizeof(struct usbnet), url_match, url_attach, 728 USBNET_MODULE(url)
|
/src/share/man/man4/ |
Makefile | 95 upgt.4 upl.4 uplcom.4 ure.4 url.4 urndis.4 urtw.4 urtwn.4 \ 251 MLINKS+=url.4 urlphy.4
|
/src/usr.sbin/sysinst/ |
net.c | 101 /* URL encode unsafe characters. */ 121 * URL encode unsafe characters. See RFC 1738. 130 * URL like "ftp://username:password@host/path", the username, password, 134 * In most ordinary use, the path portion of a URL does not start with 139 * represent a password, or a path part of a URL that the user really 175 * used unencoded within a URL. 926 * that need to be encoded in the URL (for example, 986 char url[STRSIZE]; local in function:do_ftp_fetch 999 make_url(url, f, set_dir_for_set(set_name)); 1002 ftp_opt, url, set_name [all...] |
/src/sys/arch/hpcmips/conf/ |
TX3922 | 232 url* at uhub? port ? # Realtek RTL8150L based adapters
|
/src/usr.bin/sdpquery/ |
print.c | 887 char *url; local in function:print_url 890 if (!sdp_get_url(data, &url, &len)) 893 printf("\"%s\"\n", string_vis(url, len));
|