/curl/lib/ |
H A D | curl_threads.h | 33 # define Curl_mutex_init(m) pthread_mutex_init(m, NULL) argument 34 # define Curl_mutex_acquire(m) pthread_mutex_lock(m) argument 35 # define Curl_mutex_release(m) pthread_mutex_unlock(m) argument 36 # define Curl_mutex_destroy(m) pthread_mutex_destroy(m) argument 44 # define Curl_mutex_init(m) InitializeCriticalSection(m) argument 46 # define Curl_mutex_init(m) InitializeCriticalSectionEx(m, 0, 1) argument 48 # define Curl_mutex_acquire(m) EnterCriticalSection(m) argument 49 # define Curl_mutex_release(m) LeaveCriticalSection(m) argument 50 # define Curl_mutex_destroy(m) DeleteCriticalSection(m) argument
|
H A D | easy_lock.h | 42 #define curl_simple_lock_lock(m) AcquireSRWLockExclusive(m) argument 43 #define curl_simple_lock_unlock(m) ReleaseSRWLockExclusive(m) argument 102 #define curl_simple_lock_lock(m) pthread_mutex_lock(m) argument 103 #define curl_simple_lock_unlock(m) pthread_mutex_unlock(m) argument
|
/curl/tests/libtest/ |
H A D | lib526.c | 60 CURLM *m = NULL; in test() local 80 multi_init(m); in test() 82 multi_add_handle(m, curl[current]); in test() 94 multi_perform(m, &running); in test() 120 multi_add_handle(m, curl[0]); in test() 122 multi_add_handle(m, curl[current]); in test() 134 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 151 curl_multi_remove_handle(m, curl[i]); in test() 154 curl_multi_cleanup(m); in test() 170 curl_multi_cleanup(m); in test() [all …]
|
H A D | lib502.c | 39 CURLM *m = NULL; in test() local 51 multi_init(m); in test() 53 multi_add_handle(m, c); in test() 63 multi_perform(m, &running); in test() 74 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 87 curl_multi_remove_handle(m, c); in test() 88 curl_multi_cleanup(m); in test()
|
H A D | lib504.c | 43 CURLM *m = NULL; in test() local 60 multi_init(m); in test() 62 multi_add_handle(m, c); in test() 73 multi_perform(m, &running); in test() 80 CURLMsg *msg = curl_multi_info_read(m, &numleft); in test() 96 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 109 curl_multi_remove_handle(m, c); in test() 110 curl_multi_cleanup(m); in test()
|
H A D | lib533.c | 41 CURLM *m = NULL; in test() local 54 multi_init(m); in test() 56 multi_add_handle(m, curl); in test() 68 multi_perform(m, &running); in test() 76 curl_multi_remove_handle(m, curl); in test() 86 multi_add_handle(m, curl); in test() 96 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 110 curl_multi_cleanup(m); in test()
|
H A D | lib503.c | 43 CURLM *m = NULL; in test() local 62 multi_init(m); in test() 64 multi_add_handle(m, c); in test() 74 multi_perform(m, &running); in test() 85 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 98 curl_multi_remove_handle(m, c); in test() 99 curl_multi_cleanup(m); in test()
|
H A D | lib525.c | 41 CURLM *m = NULL; in test() local 110 multi_init(m); in test() 112 multi_add_handle(m, curl); in test() 122 multi_perform(m, &running); in test() 133 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 147 curl_multi_remove_handle(m, curl); in test() 148 curl_multi_cleanup(m); in test() 154 curl_multi_remove_handle(m, curl); in test() 156 curl_multi_cleanup(m); in test()
|
H A D | lib573.c | 40 CURLM *m = NULL; in test() local 66 multi_init(m); in test() 68 multi_add_handle(m, c); in test() 78 multi_perform(m, &running); in test() 89 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 109 curl_multi_remove_handle(m, c); in test() 110 curl_multi_cleanup(m); in test()
|
H A D | lib1939.c | 42 CURLMcode m; in test() local 54 m = curl_multi_add_handle(multi, easy); in test() 56 if(!m) in test() 59 m = curl_multi_perform(multi, &running_handles); in test() 61 if(m) in test()
|
H A D | lib564.c | 39 CURLM *m = NULL; in test() local 52 multi_init(m); in test() 54 multi_add_handle(m, curl); in test() 66 multi_perform(m, &running); in test() 77 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 91 curl_multi_cleanup(m); in test()
|
H A D | lib2502.c | 39 CURLM *m = NULL; in test() local 62 multi_init(m); in test() 64 multi_setopt(m, CURLMOPT_MAXCONNECTS, 1L); in test() 94 multi_add_handle(m, curl[i]); in test() 104 multi_perform(m, &running); in test() 115 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 131 curl_multi_remove_handle(m, curl[i]); in test() 137 curl_multi_cleanup(m); in test()
|
H A D | lib2402.c | 39 CURLM *m = NULL; in test() local 62 multi_init(m); in test() 64 multi_setopt(m, CURLMOPT_MAXCONNECTS, 1L); in test() 95 multi_add_handle(m, curl[i]); in test() 105 multi_perform(m, &running); in test() 116 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 132 curl_multi_remove_handle(m, curl[i]); in test() 138 curl_multi_cleanup(m); in test()
|
H A D | lib1506.c | 39 CURLM *m = NULL; in test() local 66 multi_init(m); in test() 68 multi_setopt(m, CURLMOPT_MAXCONNECTS, 3L); in test() 92 multi_add_handle(m, curl[i]); in test() 102 multi_perform(m, &running); in test() 113 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 129 curl_multi_remove_handle(m, curl[i]); in test() 135 curl_multi_cleanup(m); in test()
|
H A D | lib2404.c | 39 CURLM *m = NULL; in test() local 62 multi_init(m); in test() 64 multi_setopt(m, CURLMOPT_MAXCONNECTS, 1L); in test() 97 multi_add_handle(m, curl[i]); in test() 107 multi_perform(m, &running); in test() 118 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 134 curl_multi_remove_handle(m, curl[i]); in test() 140 curl_multi_cleanup(m); in test()
|
H A D | lib555.c | 84 CURLM *m = NULL; in test() local 114 multi_init(m); in test() 116 multi_add_handle(m, curl); in test() 126 multi_perform(m, &running); in test() 137 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 150 curl_multi_remove_handle(m, curl); in test() 151 curl_multi_cleanup(m); in test()
|
H A D | lib1508.c | 33 CURLM *m = NULL; in test() local 39 multi_init(m); in test() 45 curl_multi_cleanup(m); in test()
|
H A D | lib1515.c | 52 static CURLcode do_one_request(CURLM *m, char *URL, char *resolve) in do_one_request() argument 71 multi_add_handle(m, curls); in do_one_request() 72 multi_perform(m, &still_running); in do_one_request() 87 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in do_one_request() 91 multi_perform(m, &still_running); in do_one_request() 97 msg = curl_multi_info_read(m, &msgs_left); in do_one_request() 106 curl_multi_remove_handle(m, curls); in do_one_request()
|
H A D | lib530.c | 264 CURL *curl = NULL; CURLM *m = NULL; in testone() local 290 multi_init(m); in testone() 292 multi_setopt(m, CURLMOPT_SOCKETFUNCTION, curlSocketCallback); in testone() 293 multi_setopt(m, CURLMOPT_SOCKETDATA, &sockets); in testone() 295 multi_setopt(m, CURLMOPT_TIMERFUNCTION, curlTimerCallback); in testone() 296 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); in testone() 298 multi_add_handle(m, curl); in testone() 300 if(socket_action(m, CURL_SOCKET_TIMEOUT, 0, "timeout")) { in testone() 305 while(!checkForCompletion(m, &success)) { in testone() 358 curl_multi_remove_handle(m, curl); in testone() [all …]
|
/curl/tests/http/ |
H A D | test_15_tracing.py | 59 m = re.match(r'^\[0-[0x]] .+', line) 60 if m is None: 72 m = re.match(r'^([0-9:.]+) \[0-[0x]] .+', line) 73 if m is None: 86 m = re.match(r'^([0-9:.]+) \[0-[0x]] .+', line) 87 if m is None: 90 if m is not None: 105 m = re.match(r'^\[0-[0x]] .+', line) 106 if m is None: 108 m = re.match(r'^\[0-[0x]] . \[TCP].+', line) [all …]
|
/curl/src/ |
H A D | tool_formparse.c | 45 struct tool_mime *m = (struct tool_mime *) calloc(1, sizeof(*m)); in tool_mime_new() local 47 if(m) { in tool_mime_new() 48 m->kind = kind; in tool_mime_new() 55 return m; in tool_mime_new() 72 if(!m) in tool_mime_new_data() 77 return m; in tool_mime_new_data() 94 if(!m) in tool_mime_new_filedata() 129 return m; in tool_mime_new_filedata() 146 if(!m) in tool_mime_new_filedata() 158 return m; in tool_mime_new_filedata() [all …]
|
/curl/.github/scripts/ |
H A D | verify-synopsis.pl | 75 for my $m (@files) { 76 print "Verify $m\n"; 77 extract($m); 78 $error |= testcompile($m);
|
H A D | verify-examples.pl | 95 for my $m (@files) { 97 my $out = extract($m); 99 $error |= testcompile($m); 100 $error |= checksrc($m);
|
/curl/scripts/ |
H A D | cijobs.pl | 48 my $m = -1; 85 $m = 0; 91 elsif($m >= 0) { 96 $j += ($m?$m:1); 109 if($m) { 129 $m++; 133 $m = -1; 160 my $m = -1; 193 $m = 0; 196 elsif($m >= 0) { [all …]
|
/curl/tests/ |
H A D | test1477.pl | 96 for my $m (sort @mnames) { 97 if(!$wherefrom{$m}) { 98 printf "$m from %s, not in any header\n", $manfrom{$m};
|