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