Lines Matching refs:cg
320 _cups_globals_t *cg = _cupsGlobals(); in httpAddrLookup() local
369 if (cg->need_res_init) in httpAddrLookup()
373 cg->need_res_init = 0; in httpAddrLookup()
392 cg->need_res_init = 1; in httpAddrLookup()
418 cg->need_res_init = 1; in httpAddrLookup()
680 _cups_globals_t *cg = _cupsGlobals(); in httpGetHostByName() local
714 cg->hostent.h_name = (char *)name; in httpGetHostByName()
715 cg->hostent.h_aliases = NULL; in httpGetHostByName()
716 cg->hostent.h_addrtype = AF_LOCAL; in httpGetHostByName()
717 cg->hostent.h_length = (int)strlen(name) + 1; in httpGetHostByName()
718 cg->hostent.h_addr_list = cg->ip_ptrs; in httpGetHostByName()
719 cg->ip_ptrs[0] = (char *)name; in httpGetHostByName()
720 cg->ip_ptrs[1] = NULL; in httpGetHostByName()
724 return (&cg->hostent); in httpGetHostByName()
743 cg->ip_addr = htonl((((((((unsigned)ip[0] << 8) | (unsigned)ip[1]) << 8) | in httpGetHostByName()
751 cg->hostent.h_name = (char *)name; in httpGetHostByName()
752 cg->hostent.h_aliases = NULL; in httpGetHostByName()
753 cg->hostent.h_addrtype = AF_INET; in httpGetHostByName()
754 cg->hostent.h_length = 4; in httpGetHostByName()
755 cg->hostent.h_addr_list = cg->ip_ptrs; in httpGetHostByName()
756 cg->ip_ptrs[0] = (char *)&(cg->ip_addr); in httpGetHostByName()
757 cg->ip_ptrs[1] = NULL; in httpGetHostByName()
761 return (&cg->hostent); in httpGetHostByName()