Searched refs:tmphstbuf (Results 1 - 2 of 2) sorted by relevance
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
H A D | api_shell.c | 68 struct hostent *gethostnameinfo(const char *host, char *tmphstbuf, size_t hstbuflen); 252 struct hostent *gethostnameinfo(const char *host, char *tmphstbuf, size_t hstbuflen) in gethostnameinfo() argument 259 if (tmphstbuf == NULL) in gethostnameinfo() 261 res = lwip_gethostbyname_r(host, &hostbuf, tmphstbuf, hstbuflen, &hp, &herr); in gethostnameinfo() 274 char *tmphstbuf = NULL; in get_hostip() local 276 tmphstbuf = (char *)zalloc(sizeof(char) * hstbuflen); in get_hostip() 277 if (tmphstbuf == NULL) in get_hostip() 280 struct hostent *pent = gethostnameinfo(hname, tmphstbuf, hstbuflen); in get_hostip() 282 free(tmphstbuf); in get_hostip() 287 free(tmphstbuf); in get_hostip() [all...] |
/kernel/liteos_a/net/lwip-2.1/enhancement/src/ |
H A D | api_shell.c | 1578 char tmphstbuf[1024]; local 1582 res = lwip_gethostbyname_r(host, &hostbuf, tmphstbuf, hstbuflen, &hp, &herr);
|
Completed in 9 milliseconds