/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 | 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() 78 mres = curl_multi_wait(m, NULL, 0, TEST_HANG_TIMEOUT, &num); in test() 86 multi_perform(m, &running); in test() 95 CURLMsg *msg = curl_multi_info_read(m, &numleft); in test() 111 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 124 curl_multi_remove_handle(m, c); in test() 125 curl_multi_cleanup(m); in test()
|
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 | 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 | 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 | 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 | 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 | lib2502.c | 40 CURLM *m = NULL; in test() local 63 multi_init(m); in test() 65 multi_setopt(m, CURLMOPT_MAXCONNECTS, 1L); in test() 99 multi_add_handle(m, curl[i]); in test() 109 multi_perform(m, &running); in test() 120 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 136 curl_multi_remove_handle(m, curl[i]); in test() 142 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 | lib1515.c | 41 static CURLcode do_one_request(CURLM *m, char *URL, char *resolve) in do_one_request() argument 64 multi_add_handle(m, curls); in do_one_request() 65 multi_perform(m, &still_running); in do_one_request() 80 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in do_one_request() 84 multi_perform(m, &still_running); in do_one_request() 90 msg = curl_multi_info_read(m, &msgs_left); in do_one_request() 99 curl_multi_remove_handle(m, curls); in do_one_request()
|
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 | lib530.c | 262 CURL *curl = NULL; CURLM *m = NULL; in testone() local 288 multi_init(m); in testone() 290 multi_setopt(m, CURLMOPT_SOCKETFUNCTION, curlSocketCallback); in testone() 291 multi_setopt(m, CURLMOPT_SOCKETDATA, &sockets); in testone() 293 multi_setopt(m, CURLMOPT_TIMERFUNCTION, curlTimerCallback); in testone() 294 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); in testone() 296 multi_add_handle(m, curl); in testone() 298 if(socket_action(m, CURL_SOCKET_TIMEOUT, 0, "timeout")) { in testone() 303 while(!checkForCompletion(m, &success)) { in testone() 356 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 | 43 struct tool_mime *m = (struct tool_mime *) calloc(1, sizeof(*m)); in tool_mime_new() local 45 if(m) { in tool_mime_new() 46 m->kind = kind; in tool_mime_new() 53 return m; in tool_mime_new() 70 if(!m) in tool_mime_new_data() 75 return m; in tool_mime_new_data() 92 if(!m) in tool_mime_new_filedata() 127 return m; in tool_mime_new_filedata() 144 if(!m) in tool_mime_new_filedata() 156 return m; in tool_mime_new_filedata() [all …]
|
/curl/tests/ |
H A D | test1139.pl | 72 my @m; 78 push @m, $w; 83 my @ms = sort @m; 85 if($ms[$i] ne $m[$i]) { 86 print STDERR "$file:1:ERROR: $m[$i] is not alphabetical (expected $ms[$i])\n"; 92 foreach my $m (@words) { 93 my @g = grep(/$m/, @m); 95 print STDERR "Missing mention of $m in $file\n";
|
H A D | test1488.pl | 63 my ($m) = @_; 65 open(my $mh, "<", "$m"); 78 print "$title is a duplicate symbol in file $m\n"; 95 for my $m (@mans) { 96 checkmanpage("$d/$m");
|
/curl/.github/scripts/ |
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 …]
|