void curl_dofreeaddrinfo(struct addrinfo *freethis, int line, const char *source) { (freeaddrinfo)(freethis); curl_memlog("ADDR %s:%d freeaddrinfo(%p)\n", source, line, (void *)freethis); }
int curl_dogetaddrinfo(const char *hostname, const char *service, const struct addrinfo *hints, struct addrinfo **result, int line, const char *source) { int res=(getaddrinfo)(hostname, service, hints, result); if(0 == res) /* success */ curl_memlog("ADDR %s:%d getaddrinfo() = %p\n", source, line, (void *)*result); else curl_memlog("ADDR %s:%d getaddrinfo() failed\n", source, line); return res; }
static void internalSetEnv(const char * name, char * value) { /* Add your OS-specific code here. */ #ifdef __riscos__ _kernel_setenv(name, value); #elif defined (CURLDEBUG) curl_memlog("ENV %s = %s\n", name, value); #endif return; }
int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, GETNAMEINFO_TYPE_ARG2 salen, char *host, GETNAMEINFO_TYPE_ARG46 hostlen, char *serv, GETNAMEINFO_TYPE_ARG46 servlen, GETNAMEINFO_TYPE_ARG7 flags, int line, const char *source) { int res = (getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags); if(0 == res) /* success */ curl_memlog("GETNAME %s:%d getnameinfo()\n", source, line); else curl_memlog("GETNAME %s:%d getnameinfo() failed = %d\n", source, line, res); return res; }
void curl_dofreeaddrinfo(struct addrinfo *freethis, int line, const char *source) { #ifdef USE_LWIPSOCK lwip_freeaddrinfo(freethis); #else (freeaddrinfo)(freethis); #endif curl_memlog("ADDR %s:%d freeaddrinfo(%p)\n", source, line, (void *)freethis); }