Lines Matching refs:hstbuflen
1256 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1261 if (*hstbuflen == 0) {
1262 *hstbuflen = 1024;
1263 *tmphstbuf = (char *)malloc (*hstbuflen);
1267 gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&hp,&herr))
1270 *hstbuflen *= 2;
1271 *tmphstbuf = (char *)realloc (*tmphstbuf,*hstbuflen);
1282 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1287 if (*hstbuflen == 0) {
1288 *hstbuflen = 1024;
1289 *tmphstbuf = (char *)malloc (*hstbuflen);
1293 gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&herr)))
1296 *hstbuflen *= 2;
1297 *tmphstbuf = (char *)realloc (*tmphstbuf,*hstbuflen);
1303 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1305 if (*hstbuflen == 0) {
1306 *hstbuflen = sizeof(struct hostent_data);
1307 *tmphstbuf = (char *)malloc (*hstbuflen);
1309 if (*hstbuflen < sizeof(struct hostent_data)) {
1310 *hstbuflen = sizeof(struct hostent_data);
1311 *tmphstbuf = (char *)realloc(*tmphstbuf, *hstbuflen);
1314 memset((void *)(*tmphstbuf),0,*hstbuflen);