Home | History | Annotate | Download | only in lib

Lines Matching refs:source

134 static bool countcheck(const char *func, int line, const char *source)
136 /* if source is NULL, then the call is made internally and this check
138 if(memlimit && source) {
140 if(source) {
143 source, line, func);
146 source, line, func);
161 void *curl_dbg_malloc(size_t wantedsize, int line, const char *source)
168 if(countcheck("malloc", line, source))
181 if(source)
183 source, line, wantedsize,
190 int line, const char *source)
198 if(countcheck("calloc", line, source))
209 if(source)
211 source, line, wanted_elements, wanted_size,
217 char *curl_dbg_strdup(const char *str, int line, const char *source)
224 if(countcheck("strdup", line, source))
233 if(source)
235 source, line, (const void *)str, len, (const void *)mem);
241 wchar_t *curl_dbg_wcsdup(const wchar_t *str, int line, const char *source)
248 if(countcheck("wcsdup", line, source))
258 if(source)
260 source, line, (void *)str, bsiz, (void *)mem);
269 int line, const char *source)
277 if(countcheck("realloc", line, source))
294 if(source)
296 source, line, (void *)ptr, wantedsize,
307 void curl_dbg_free(void *ptr, int line, const char *source)
332 if(source)
333 curl_dbg_log("MEM %s:%d free(%p)\n", source, line, (void *)ptr);
337 int line, const char *source)
347 if(countcheck("socket", line, source))
352 if(source && (sockfd != CURL_SOCKET_BAD))
353 curl_dbg_log(fmt, source, line, sockfd);
361 const char *source)
364 if(countcheck("send", line, source))
367 if(source)
369 source, line, (unsigned long)len, (long)rc);
375 const char *source)
378 if(countcheck("recv", line, source))
381 if(source)
383 source, line, (unsigned long)len, (long)rc);
390 int line, const char *source)
400 if(source && (0 == res))
401 curl_dbg_log(fmt, source, line, socket_vector[0], socket_vector[1]);
408 int line, const char *source)
421 if(source && (sockfd != CURL_SOCKET_BAD))
422 curl_dbg_log(fmt, source, line, sockfd);
428 void curl_dbg_mark_sclose(curl_socket_t sockfd, int line, const char *source)
436 if(source)
437 curl_dbg_log(fmt, source, line, sockfd);
441 int curl_dbg_sclose(curl_socket_t sockfd, int line, const char *source)
444 curl_dbg_mark_sclose(sockfd, line, source);
449 int line, const char *source)
453 if(source)
455 source, line, file, mode, (void *)res);
460 int curl_dbg_fclose(FILE *file, int line, const char *source)
466 if(source)
468 source, line, (void *)file);