Lines Matching refs:hstbuflen
1263 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1268 if (*hstbuflen == 0) {
1269 *hstbuflen = 1024;
1270 *tmphstbuf = (char *)malloc (*hstbuflen);
1274 gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&hp,&herr))
1277 *hstbuflen *= 2;
1278 *tmphstbuf = (char *)realloc (*tmphstbuf,*hstbuflen);
1289 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1294 if (*hstbuflen == 0) {
1295 *hstbuflen = 1024;
1296 *tmphstbuf = (char *)malloc (*hstbuflen);
1300 gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&herr)))
1303 *hstbuflen *= 2;
1304 *tmphstbuf = (char *)realloc (*tmphstbuf,*hstbuflen);
1310 …tent * gethostname_re (const char *host,struct hostent *hostbuf,char **tmphstbuf,size_t *hstbuflen) argument
1312 if (*hstbuflen == 0) {
1313 *hstbuflen = sizeof(struct hostent_data);
1314 *tmphstbuf = (char *)malloc (*hstbuflen);
1316 if (*hstbuflen < sizeof(struct hostent_data)) {
1317 *hstbuflen = sizeof(struct hostent_data);
1318 *tmphstbuf = (char *)realloc(*tmphstbuf, *hstbuflen);
1321 memset((void *)(*tmphstbuf),0,*hstbuflen);