Home
last modified time | relevance | path

Searched refs:hnd (Results 1 – 25 of 42) sorted by relevance

12

/external/curl/lib/
Dcurl_threads.c83 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()
117 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
119 CloseHandle(hnd); in Curl_thread_destroy()
[all …]
Dcurl_threads.h56 void Curl_thread_destroy(curl_thread_t hnd);
58 int Curl_thread_join(curl_thread_t *hnd);
/external/curl/docs/examples/
Dhttp2-upload.c53 static int hnd2num(CURL *hnd) in hnd2num() argument
57 if(curl_hnd[i] == hnd) in hnd2num()
169 CURL *hnd; member
182 static void setup(CURL *hnd, int num, const char *upload) in setup() argument
200 indata[num].hnd = hnd; in setup()
203 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
206 curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); in setup()
208 curl_easy_setopt(hnd, CURLOPT_READDATA, &indata[num]); in setup()
210 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); in setup()
213 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup()
[all …]
Dhttp2-download.c51 static int hnd2num(CURL *hnd) in hnd2num() argument
55 if(curl_hnd[i] == hnd) in hnd2num()
147 static void setup(CURL *hnd, int num) in setup() argument
157 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
160 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
163 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
164 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup()
167 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
170 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup()
171 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup()
[all …]
Dhttp2-serverpush.c128 static void setup(CURL *hnd) in setup() argument
133 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
136 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
139 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
140 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup()
143 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
146 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup()
147 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup()
151 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
/external/curl/tests/data/
Dtest140172 CURL *hnd;
79 hnd = curl_easy_init();
80 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1401");
81 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
82 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user");
83 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA");
84 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1);
85 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
86 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC);
87 curl_easy_setopt(hnd, CURLOPT_COOKIE, "chocolate=chip");
[all …]
Dtest140754 CURL *hnd;
56 hnd = curl_easy_init();
57 curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/1407");
58 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
59 curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L);
60 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
61 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
62 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
63 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
64 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
[all …]
Dtest140667 CURL *hnd;
74 hnd = curl_easy_init();
75 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, (curl_off_t)38);
76 curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/1406");
77 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
78 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L);
79 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
80 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
81 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
82 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
[all …]
Dtest142060 CURL *hnd;
62 hnd = curl_easy_init();
63 curl_easy_setopt(hnd, CURLOPT_URL, "imap://%HOSTIP:%IMAPPORT/1420/;UID=1");
64 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
65 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
66 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
67 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
68 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
69 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
91 ret = curl_easy_perform(hnd);
[all …]
Dtest140270 CURL *hnd;
72 hnd = curl_easy_init();
73 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1402");
74 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
75 curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "foo=bar&baz=quux");
76 curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)16);
77 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
78 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
79 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
80 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
[all …]
Dtest140065 CURL *hnd;
67 hnd = curl_easy_init();
68 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1400");
69 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
70 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
71 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
72 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
73 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
95 ret = curl_easy_perform(hnd);
97 curl_easy_cleanup(hnd);
[all …]
Dtest140367 CURL *hnd;
69 hnd = curl_easy_init();
70 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1403?foo=bar&baz=quux");
71 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
72 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
73 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
74 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
75 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
97 ret = curl_easy_perform(hnd);
99 curl_easy_cleanup(hnd);
[all …]
Dtest140568 CURL *hnd;
82 hnd = curl_easy_init();
83 curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405");
84 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
85 curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1);
86 curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
87 curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
88 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
89 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
111 ret = curl_easy_perform(hnd);
[all …]
Dtest1404102 CURL *hnd;
122 hnd = curl_easy_init();
123 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1404");
124 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
125 curl_easy_setopt(hnd, CURLOPT_HTTPPOST, post1);
126 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
127 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
128 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
129 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
151 ret = curl_easy_perform(hnd);
[all …]
/external/curl/src/
Dtool_cb_see.c95 # 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/
Dunit1396.c24 CURL *hnd; variable
33 if(hnd) in unit_stop()
34 curl_easy_cleanup(hnd); in unit_stop()
78 hnd = curl_easy_init();
79 abort_unless(hnd != NULL, "returned NULL!");
82 char *out = curl_easy_unescape(hnd,
98 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
/external/selinux/policycoreutils/setfiles/
Drestorecon_xattr.c46 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()
Drestore.c25 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/
Dselabel_lookup.c38 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()
Dselabel_partial_match.c33 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()
Dselabel_lookup_best_match.c60 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()
Dselabel_digest.c72 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/
Dmatchpathcon.c68 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/c-ares/
Dwindows_port.c13 WINAPI DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved) in DllMain() argument
15 (void) hnd; in DllMain()
/external/selinux/restorecond/
Drestore.c25 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()

12