Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

ares_free_hostent (3)

Name

ares_free_hostent - Free host structure allocated by ares functions

Synopsis

#include <ares.h>

void ares_free_hostent(struct hostent *host)

Description

ARES_FREE_HOSTENT(3)       Library Functions Manual       ARES_FREE_HOSTENT(3)



NAME
       ares_free_hostent - Free host structure allocated by ares functions

SYNOPSIS
       #include <ares.h>

       void ares_free_hostent(struct hostent *host)

DESCRIPTION
       The  ares_free_hostent function frees a struct hostent allocated by one
       of the functions  ares_parse_a_reply(3),  ares_parse_aaaa_reply(3),  or
       ares_parse_ptr_reply(3).


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/libcares |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+

NOTES
       It  is  not  necessary  (and is not correct) to free the host structure
       passed  to  the  callback  functions   for   ares_gethostbyname(3)   or
       ares_gethostbyaddr(3).  c-ares will automatically free such host struc-
       tures when the callback returns.

       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source   was   downloaded   from     https://c-ares.haxx.se/download/c-
       ares-1.17.2.tar.gz.

       Further information about this software can be found on the open source
       community website at https://c-ares.haxx.se/.

SEE ALSO
       ares_parse_a_reply(3),                        ares_parse_aaaa_reply(3),
       ares_parse_ptr_reply(3), ares_parse_ns_reply(3)

AUTHOR
       Greg Hudson, MIT Information Systems
       Copyright 1998 by the Massachusetts Institute of Technology.




                                 23 July 1998             ARES_FREE_HOSTENT(3)