/reactos/sdk/lib/dnslib/ |
H A D | hostent.c | 23 PHOSTENT Hostent; in Hostent_Init() local 35 Hostent->h_aliases = (PCHAR*)((ULONG_PTR)(Hostent + 1) & ~3); in Hostent_Init() 41 Hostent->h_addr_list = (PCHAR*) in Hostent_Init() 53 return Hostent; in Hostent_Init() 74 if (Hostent->h_name) in Hostent_ConvertToOffsets() 77 Hostent->h_name -= (ULONG_PTR)Hostent; in Hostent_ConvertToOffsets() 81 if (Hostent->h_aliases) in Hostent_ConvertToOffsets() 84 Hostent->h_aliases -= (ULONG_PTR)Hostent; in Hostent_ConvertToOffsets() 87 Dns_PtrArrayToOffsetArray(Hostent->h_aliases, (ULONG_PTR)Hostent); in Hostent_ConvertToOffsets() 91 if (Hostent->h_addr_list) in Hostent_ConvertToOffsets() [all …]
|
H A D | sablob.c | 148 PHOSTENT Hostent = NULL; in SaBlob_CreateHostent() local 218 Hostent = Hostent_Init((PVOID)&HostentPtr, in SaBlob_CreateHostent() 233 Hostent->h_addr_list[i] = (PCHAR)HostentPtr; in SaBlob_CreateHostent() 249 Hostent->h_name = (LPSTR)HostentPtr; in SaBlob_CreateHostent() 267 Hostent->h_aliases[i] = (LPSTR)HostentPtr; in SaBlob_CreateHostent() 286 if(Relative) Hostent_ConvertToOffsets(Hostent); in SaBlob_CreateHostent() 289 return Hostent; in SaBlob_CreateHostent()
|
/reactos/dll/win32/ws2_32/src/ |
H A D | async.c | 48 BytesInHostent(PHOSTENT Hostent) in BytesInHostent() argument 60 for (i = 0; Hostent->h_aliases[i]; i++) in BytesInHostent() 131 IN PHOSTENT Hostent) in CopyHostentToBuffer() argument 140 BufferSize = BytesInHostent(Hostent); in CopyHostentToBuffer() 168 while (Hostent->h_aliases[Aliases]) in CopyHostentToBuffer() 179 Hostent->h_aliases = NULL; in CopyHostentToBuffer() 188 while (Hostent->h_addr_list[Names]) in CopyHostentToBuffer() 199 Hostent->h_addr_list = NULL; in CopyHostentToBuffer() 216 CopyMemory(p, Hostent->h_addr_list[i], Hostent->h_length); in CopyHostentToBuffer() 638 PHOSTENT Hostent; in WsAsyncGetHost() local [all …]
|
H A D | getxbyxx.c | 61 UnpackHostEnt(PHOSTENT Hostent) in UnpackHostEnt() argument 66 if (Hostent->h_name) Hostent->h_name = (PCHAR)(Hostent->h_name + HostentPtr); in UnpackHostEnt() 223 PHOSTENT Hostent; in gethostbyname() local 280 if (Hostent) UnpackHostEnt(Hostent); in gethostbyname() 285 Hostent = NULL; in gethostbyname() 298 if (Hostent) WSNoteSuccessfulHostentLookup(name, *Hostent->h_addr); in gethostbyname() 301 return Hostent; in gethostbyname() 314 PHOSTENT Hostent; in gethostbyaddr() local 371 if (Hostent) UnpackHostEnt(Hostent); in gethostbyaddr() 376 Hostent = NULL; in gethostbyaddr() [all …]
|
H A D | dthread.c | 208 if (Thread->Hostent) HeapFree(WsSockHeap, 0, Thread->Hostent); in WsThreadDelete() 323 HeapFree(WsSockHeap, 0, Thread->Hostent); in WsThreadBlobToHostent() 324 Thread->Hostent = HeapAlloc(WsSockHeap, 0, Blob->cbSize); in WsThreadBlobToHostent() 331 if (Thread->Hostent) in WsThreadBlobToHostent() 334 RtlMoveMemory(Thread->Hostent, Blob->pBlobData, Blob->cbSize); in WsThreadBlobToHostent() 344 return (PHOSTENT)Thread->Hostent; in WsThreadBlobToHostent()
|
H A D | addrinfo.c | 254 PHOSTENT Hostent = NULL; in QueryDNS() local 262 Hostent = gethostbyname(NodeName); in QueryDNS() 263 if (Hostent) in QueryDNS() 266 if ((Hostent->h_addrtype == AF_INET) && in QueryDNS() 267 (Hostent->h_length == sizeof(IN_ADDR))) in QueryDNS() 270 for (Addresses = Hostent->h_addr_list; *Addresses; Addresses++) in QueryDNS() 285 strcpy(Alias, Hostent->h_name); in QueryDNS()
|
/reactos/modules/rostests/apitests/wininet/ |
H A D | InternetOpen.c | 50 struct hostent *Hostent; in IsWinsockInitialized() local 55 Hostent = pgethostbyname("localhost"); in IsWinsockInitialized() 56 if (!Hostent) in IsWinsockInitialized() 58 return Hostent != NULL; in IsWinsockInitialized()
|
/reactos/modules/rostests/apitests/ws2_32/ |
H A D | getaddrinfo.c | 206 struct hostent *Hostent; in START_TEST() local 234 Hostent = gethostbyname(LocalHostName); in START_TEST() 235 ok(Hostent != NULL, "gethostbyname failed with %d\n", WSAGetLastError()); in START_TEST() 236 if (Hostent && Hostent->h_addr_list[0] && Hostent->h_length == sizeof(IN_ADDR)) in START_TEST() 239 memcpy(&Address, Hostent->h_addr_list[0], sizeof(Address)); in START_TEST()
|
H A D | bind.c | 135 struct hostent *Hostent; in START_TEST() local 158 Hostent = gethostbyname(LocalHostName); in START_TEST() 159 ok(Hostent != NULL, "gethostbyname failed with %d\n", WSAGetLastError()); in START_TEST() 160 if (Hostent && Hostent->h_addr_list[0] && Hostent->h_length == sizeof(IN_ADDR)) in START_TEST() 162 memcpy(&Address, Hostent->h_addr_list[0], sizeof(Address)); in START_TEST()
|
H A D | WSAStartup.c | 58 struct hostent *Hostent; in IsWinsockInitialized() local 60 Hostent = gethostbyname("localhost"); in IsWinsockInitialized() 61 if (!Hostent) in IsWinsockInitialized() 63 return Hostent != NULL; in IsWinsockInitialized()
|
/reactos/modules/rostests/apitests/winhttp/ |
H A D | WinHttpOpen.c | 57 struct hostent *Hostent; in IsWinsockInitialized() local 62 Hostent = pgethostbyname("localhost"); in IsWinsockInitialized() 63 if (!Hostent) in IsWinsockInitialized() 65 return Hostent != NULL; in IsWinsockInitialized()
|
/reactos/sdk/lib/dnslib/inc/ |
H A D | dnslib.h | 67 PHOSTENT Hostent; member 184 Hostent_ConvertToOffsets(IN PHOSTENT Hostent);
|
/reactos/dll/win32/ws2_32/inc/ |
H A D | ws2_32p.h | 186 PCHAR Hostent; member
|