Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

gethostbyaddr_r(3) OSS Library Calls Reference Manual
NAME
gethostbyaddr_r - Gets a network host entry by address (AF_INET only) (reentrant)
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
32-bit H-series and J-series OSS processes that do not use the Standard POSIX Thread library: |
/G/system/zdllnnn/zinetdll (INET Sockets library) or |
/G/system/zdllnnn/zlwrdll (Light Weight Resolver library) |
64-bit H-series and J-series OSS processes that do not use the Standard POSIX Thread library: |
/G/system/zdllnnn/yinetdll (INET Sockets library) or |
/G/system/zdllnnn/ylwrdll (Light Weight Resolver library) |
H-series and J-series OSS processes that use the Standard POSIX Thread library:
/G/system/zdllnnn/zsptdll
(See NOTES)
SYNOPSIS
Synopsis for INET Sockets library
[#include <sys/socket.h>]
#include <netdb.h>
[#include <spthread.h>] /* Required if using Standard POSIX Threads Library */
struct hostent *gethostbyaddr_r (
const char *addr,
int length,
int type,
struct hostent *host,
char *buffer,
int buflen,
int *h_errnop);
Synopsis for Light Weight Resolver library
#define LWRES
#include <netdb.h>
struct hostent *gethostbyaddr_r (
const char *addr,
int length,
int type,
struct hostent *host,
char *buffer,
int buflen,
int *h_errnop);
PARAMETERS
addr Points to the Internet address of the host whose name is to be found. This
address is in binary format in network byte order, and is in the same format and
order as the return value of the inet_addr( ) function.
length The length in bytes of the Internet address pointed to by the addr parameter.
type Specifies the Internet domain address format. The value AF_INET must be
used.
352 Hewlett-Packard Company 527187-017