Open System Services Library Calls Reference Manual (G06.27+, H06.04+)
OSS Library Calls (e - f) freehostent(3)
NAME
freehostent - Frees address information structure and storage for IPv6 socket
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <netdb.h>
void freehostent(
struct hostent *ptr);
PARAMETERS
ptr Specifies the host entity information structure (hostent) to be freed
DESCRIPTION
The freehostent() function frees a specified host entity information structure previously created
by the getipnodebyaddr() or getipnodebyname( ) function. Any dynamic storage pointed to by
the structure is also freed.
NOTES
Call this function once for each structure created by calls to getipnodebyaddr( ) or getipnode-
byname( ) before closing a socket.
RETURN VALUES
Upon successful completion, this function does not return a value. The address information
structure and associated storage have been returned to the system. Otherwise, an invalid address
reference causes application failure and results in a signal.
ERRORS
This function does not set errno.
RELATED INFORMATION
Functions: freeaddrinfo(3), gai_strerror(3), getaddrinfo(3), getnameinfo(3),
if_freenameindex(3), if_indextoname(3), if_nameindex(3), if_nametoindex(3), inet_pton(3),
inet_ntop(3).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 specification.
527187-004 Hewlett-Packard Company 2−85