/external/curl/lib/ |
D | curl_threads.c | 83 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument 85 if(hnd != curl_thread_t_null) { in Curl_thread_destroy() 86 pthread_detach(*hnd); in Curl_thread_destroy() 87 free(hnd); in Curl_thread_destroy() 91 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument 93 int ret = (pthread_join(**hnd, NULL) == 0); in Curl_thread_join() 95 free(*hnd); in Curl_thread_join() 96 *hnd = curl_thread_t_null; in Curl_thread_join() 125 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument 127 CloseHandle(hnd); in Curl_thread_destroy() [all …]
|
D | curl_threads.h | 57 void Curl_thread_destroy(curl_thread_t hnd); 59 int Curl_thread_join(curl_thread_t *hnd);
|
/external/curl/docs/examples/ |
D | http2-upload.c | 53 static int hnd2num(CURL *hnd) in hnd2num() argument 57 if(curl_hnd[i] == hnd) in hnd2num() 172 CURL *hnd; member 185 static void setup(CURL *hnd, int num, const char *upload) in setup() argument 203 indata[num].hnd = hnd; in setup() 206 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup() 209 curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); in setup() 211 curl_easy_setopt(hnd, CURLOPT_READDATA, &indata[num]); in setup() 213 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); in setup() 216 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup() [all …]
|
D | http2-download.c | 51 static int hnd2num(CURL *hnd) in hnd2num() argument 55 if(curl_hnd[i] == hnd) in hnd2num() 150 static void setup(CURL *hnd, int num) in setup() argument 160 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup() 163 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup() 166 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() 167 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup() 170 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() 173 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup() 174 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup() [all …]
|
D | http2-serverpush.c | 131 static void setup(CURL *hnd) in setup() argument 136 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup() 139 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup() 142 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() 143 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup() 146 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() 149 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup() 150 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup() 154 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
|
/external/curl/tests/data/ |
D | test1401 | 75 CURL *hnd; 82 hnd = curl_easy_init(); 83 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 84 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1401"); 85 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 86 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user"); 87 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC); 88 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1); 89 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA"); 90 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); [all …]
|
D | test1406 | 70 CURL *hnd; 77 hnd = curl_easy_init(); 78 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 79 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, (curl_off_t)38); 80 curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/1406"); 81 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 82 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); 83 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 84 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 85 curl_easy_setopt(hnd, CURLOPT_MAIL_FROM, "sender@example.com"); [all …]
|
D | test1402 | 73 CURL *hnd; 75 hnd = curl_easy_init(); 76 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 77 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1402"); 78 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 79 curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "foo=bar&baz=quux"); 80 curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)16); 81 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 82 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 83 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); [all …]
|
D | test1400 | 68 CURL *hnd; 70 hnd = curl_easy_init(); 71 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 72 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1400"); 73 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 74 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 75 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 76 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 77 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 99 ret = curl_easy_perform(hnd); [all …]
|
D | test1407 | 57 CURL *hnd; 59 hnd = curl_easy_init(); 60 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 61 curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/1407"); 62 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 63 curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L); 64 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret"); 65 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 66 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 88 ret = curl_easy_perform(hnd); [all …]
|
D | test1403 | 70 CURL *hnd; 72 hnd = curl_easy_init(); 73 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 74 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1403?foo=bar&baz=quux"); 75 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 76 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 77 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 78 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 79 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 101 ret = curl_easy_perform(hnd); [all …]
|
D | test1405 | 71 CURL *hnd; 85 hnd = curl_easy_init(); 86 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 87 curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405"); 88 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 89 curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1); 90 curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2); 91 curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3); 92 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 93 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); [all …]
|
D | test1420 | 63 CURL *hnd; 65 hnd = curl_easy_init(); 66 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 67 curl_easy_setopt(hnd, CURLOPT_URL, "imap://%HOSTIP:%IMAPPORT/1420/;UID=1"); 68 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 69 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret"); 70 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 71 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 93 ret = curl_easy_perform(hnd); 95 curl_easy_cleanup(hnd); [all …]
|
D | test1404 | 108 CURL *hnd; 121 hnd = curl_easy_init(); 122 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 123 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1404"); 124 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 125 mime1 = curl_mime_init(hnd); 130 mime2 = curl_mime_init(hnd); 144 curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1); 145 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 146 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); [all …]
|
/external/curl/src/ |
D | tool_cb_see.c | 95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument 101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence) argument 103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) argument 110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
|
/external/curl/tests/unit/ |
D | unit1396.c | 24 static CURL *hnd; variable 36 if(hnd) in unit_stop() 37 curl_easy_cleanup(hnd); in unit_stop() 82 hnd = curl_easy_init(); 83 abort_unless(hnd != NULL, "returned NULL!"); 86 char *out = curl_easy_unescape(hnd, 102 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
|
/external/selinux/policycoreutils/setfiles/ |
D | restorecon_xattr.c | 46 struct selabel_handle *hnd = NULL; in main() local 110 hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 2); in main() 111 if (!hnd) { in main() 125 selinux_restorecon_set_sehandle(hnd); in main() 128 if (selabel_digest(hnd, &fc_digest, &fc_digest_len, in main() 132 selabel_close(hnd); in main() 141 selabel_close(hnd); in main() 218 selabel_close(hnd); in main()
|
D | restore.c | 25 r_opts->hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 3); in restore_init() 26 if (!r_opts->hnd) { in restore_init() 42 selinux_restorecon_set_sehandle(r_opts->hnd); in restore_init()
|
/external/selinux/libselinux/utils/ |
D | selabel_lookup.c | 38 struct selabel_handle *hnd; in main() local 91 hnd = selabel_open(backend, selabel_option, 2); in main() 92 if (!hnd) { in main() 100 rc = selabel_lookup_raw(hnd, &context, key, type); in main() 103 rc = selabel_lookup(hnd, &context, key, type); in main() 105 selabel_close(hnd); in main()
|
D | selabel_partial_match.c | 33 struct selabel_handle *hnd; in main() local 61 hnd = selabel_open(SELABEL_CTX_FILE, selabel_option, 2); in main() 62 if (!hnd) { in main() 68 partial_match = selabel_partial_match(hnd, path); in main() 73 selabel_close(hnd); in main()
|
D | selabel_lookup_best_match.c | 60 struct selabel_handle *hnd; in main() local 117 hnd = selabel_open(SELABEL_CTX_FILE, options, 2); in main() 118 if (!hnd) { in main() 126 rc = selabel_lookup_best_match_raw(hnd, &context, path, in main() 129 rc = selabel_lookup_best_match(hnd, &context, path, in main() 132 selabel_close(hnd); in main()
|
D | selabel_digest.c | 72 struct selabel_handle *hnd; in main() local 126 hnd = selabel_open(backend, selabel_option, 3); in main() 127 if (!hnd) { in main() 140 rc = selabel_digest(hnd, &sha1_digest, &digest_len, &specfiles, in main() 188 selabel_close(hnd); in main()
|
/external/selinux/libselinux/src/ |
D | matchpathcon.c | 68 static __thread struct selabel_handle *hnd; variable 350 hnd = selabel_open(SELABEL_CTX_FILE, options, SELABEL_NOPT); in matchpathcon_init_prefix() 351 return hnd ? 0 : -1; in matchpathcon_init_prefix() 365 if (hnd) { in matchpathcon_fini() 366 selabel_close(hnd); in matchpathcon_fini() 367 hnd = NULL; in matchpathcon_fini() 435 if (!hnd && (matchpathcon_init_prefix(NULL, NULL) < 0)) in matchpathcon() 448 selabel_lookup_raw(hnd, con, path, mode) : in matchpathcon() 449 selabel_lookup(hnd, con, path, mode); in matchpathcon() 464 selabel_stats(hnd); in matchpathcon_checkmatches() [all …]
|
/external/selinux/restorecond/ |
D | restore.c | 25 r_opts->hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 3); in restore_init() 26 if (!r_opts->hnd) { in restore_init() 41 selinux_restorecon_set_sehandle(r_opts->hnd); in restore_init()
|
/external/libpcap/msdos/ |
D | ndis2.c | 209 #define MAC_DISPATCH(hnd) ((struct _MacUpperDispatch*)(hnd)->common->upperDispatchTable) argument 210 #define MAC_STATUS(hnd) ((struct _MacStatusTable*) (hnd)->common->serviceStatus) argument 211 #define MAC_CHAR(hnd) ((struct _MacChars*) (hnd)->common->serviceChars) argument
|