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 #ifndef _PORT_RESOLV_H 7*11038SRao.Shoaib@Sun.COM #define _PORT_RESOLV_H 8*11038SRao.Shoaib@Sun.COM 9*11038SRao.Shoaib@Sun.COM #ifdef __cplusplus 10*11038SRao.Shoaib@Sun.COM extern "C" { 11*11038SRao.Shoaib@Sun.COM #endif 12*11038SRao.Shoaib@Sun.COM 13*11038SRao.Shoaib@Sun.COM /* RES_NSID has the same value as RES_NO_NIBBLE, which has been deleted */ 14*11038SRao.Shoaib@Sun.COM #define RES_NSID 0x00040000 /* request name server ID */ 15*11038SRao.Shoaib@Sun.COM 16*11038SRao.Shoaib@Sun.COM /* RES_DEFAULT has a new value in libbind-6.0 */ 17*11038SRao.Shoaib@Sun.COM #undef RES_DEFAULT 18*11038SRao.Shoaib@Sun.COM #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | \ 19*11038SRao.Shoaib@Sun.COM RES_DNSRCH | RES_NO_NIBBLE2) 20*11038SRao.Shoaib@Sun.COM 21*11038SRao.Shoaib@Sun.COM #ifndef __ultrix__ 22*11038SRao.Shoaib@Sun.COM u_int16_t _getshort __P((const uchar_t *)); 23*11038SRao.Shoaib@Sun.COM u_int32_t _getlong __P((const uchar_t *)); 24*11038SRao.Shoaib@Sun.COM #endif 25*11038SRao.Shoaib@Sun.COM 26*11038SRao.Shoaib@Sun.COM /* rename functions so they can be wrapped (see sunw/sunw_wrappers.c */ 27*11038SRao.Shoaib@Sun.COM #define p_option isc_p_option 28*11038SRao.Shoaib@Sun.COM const char *p_option(ulong_t option); 29*11038SRao.Shoaib@Sun.COM #define p_secstodate isc_p_secstodate 30*11038SRao.Shoaib@Sun.COM char *p_secstodate(ulong_t secs); 31*11038SRao.Shoaib@Sun.COM 32*11038SRao.Shoaib@Sun.COM /* prevent namespace pollution */ 33*11038SRao.Shoaib@Sun.COM #define res_protocolnumber __res_protocolnumber 34*11038SRao.Shoaib@Sun.COM #define res_servicenumber __res_servicenumber 35*11038SRao.Shoaib@Sun.COM 36*11038SRao.Shoaib@Sun.COM 37*11038SRao.Shoaib@Sun.COM 38*11038SRao.Shoaib@Sun.COM #ifdef __cplusplus 39*11038SRao.Shoaib@Sun.COM } 40*11038SRao.Shoaib@Sun.COM #endif 41*11038SRao.Shoaib@Sun.COM 42*11038SRao.Shoaib@Sun.COM #endif /* _PORT_RESOLV_H */ 43