Home | History | Annotate | Download | only in X11

Lines Matching refs:hp

399 # define _XGethostbyname(h,hp)		gethostbyname((h))
400 # define _XGethostbyaddr(a,al,t,hp) gethostbyaddr((a),(al),(t))
424 # define _Xg_copyHostent(hp) \
425 (memcpy(&(hp).hent, (hp).hptr, sizeof(struct hostent)), \
426 strcpy((hp).h_name, (hp).hptr->h_name), \
427 ((hp).hent.h_name = (hp).h_name), \
428 ((hp).hptr = &(hp).hent), \
438 # define _XGethostbyname(h,hp) \
440 (((hp).hptr = gethostbyname((h))) ? _Xg_copyHostent(hp) : 0), \
442 (hp).hptr )
443 # define _XGethostbyaddr(a,al,t,hp) \
445 (((hp).hptr = gethostbyaddr((a),(al),(t))) ? _Xg_copyHostent(hp) : 0), \
447 (hp).hptr )
479 # define _XGethostbyname(h,hp) \
480 gethostbyname_r((h),&(hp).hent,(hp).hbuf,sizeof((hp).hbuf),&(hp).herr)
481 # define _XGethostbyaddr(a,al,t,hp) \
482 gethostbyaddr_r((a),(al),(t),&(hp).hent,(hp).hbuf,sizeof((hp).hbuf),&(hp).herr)
494 # define _XGethostbyname(h,hp) \
495 (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \
496 ((gethostbyname_r((h),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent))
497 # define _XGethostbyaddr(a,al,t,hp) \
498 (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \
499 ((gethostbyaddr_r((a),(al),(t),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent))
512 # define _XGethostbyname(h,hp) gethostbyname((h))
513 # define _XGethostbyaddr(a,al,t,hp) gethostbyaddr((a),(al),(t))