Lines Matching refs:hstbuflen
1287 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1292 if (*hstbuflen == 0) {
1293 *hstbuflen = 1024;
1294 *tmphstbuf = (char *)malloc (*hstbuflen);
1298 gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&hp,&herr))
1301 *hstbuflen *= 2;
1302 *tmphstbuf = (char *)realloc (*tmphstbuf,*hstbuflen);
1313 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1318 if (*hstbuflen == 0) {
1319 *hstbuflen = 1024;
1320 *tmphstbuf = (char *)malloc (*hstbuflen);
1324 gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&herr)))
1327 *hstbuflen *= 2;
1328 *tmphstbuf = (char *)realloc (*tmphstbuf,*hstbuflen);
1334 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1336 if (*hstbuflen == 0) {
1337 *hstbuflen = sizeof(struct hostent_data);
1338 *tmphstbuf = (char *)malloc (*hstbuflen);
1340 if (*hstbuflen < sizeof(struct hostent_data)) {
1341 *hstbuflen = sizeof(struct hostent_data);
1342 *tmphstbuf = (char *)realloc(*tmphstbuf, *hstbuflen);
1345 memset((void *)(*tmphstbuf),0,*hstbuflen);