1 /*
   2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 
   6 /*
   7  *
   8  * All rights reserved.
   9  */
  10 
  11 #ifndef _ARPA_PORT_INET_H
  12 #define _ARPA_PORT_INET_H
  13 
  14 #ifdef  __cplusplus
  15 extern "C" {
  16 #endif
  17 
  18 /*
  19  * these are libresolv2 functions that were made local in previous versions
  20  * we rename them res_* because they conflict with libnsl or libsocket
  21  */
  22 
  23 #define inet_lnaof res_inet_lnaof  /* libsocket */
  24 ulong_t inet_lnaof(struct in_addr in);
  25 
  26 #define inet_makeaddr res_inet_makeaddr  /* libsocket */
  27 struct in_addr inet_makeaddr(ulong_t net, ulong_t host);
  28 
  29 #define inet_netof res_inet_netof  /* libnsl */
  30 ulong_t inet_netof(struct in_addr in);
  31 
  32 #define inet_network res_inet_network  /* libsocket */
  33 ulong_t inet_network(register const char *cp);
  34 
  35 #ifdef  __cplusplus
  36 }
  37 #endif
  38 
  39 
  40 
  41 #endif /* _ARPA_PORT_INET_H */