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