summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/include/port_resolv.h
blob: cd1a97d40cfd32ea376b0079742c9abe16bba62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifndef _PORT_RESOLV_H
#define	_PORT_RESOLV_H

#ifdef	__cplusplus
extern "C" {
#endif

/* RES_NSID has the same value as RES_NO_NIBBLE, which has been deleted  */
#define	RES_NSID	0x00040000	/* request name server ID */

/* RES_DEFAULT has a new value in libbind-6.0 */
#undef RES_DEFAULT
#define	RES_DEFAULT	(RES_RECURSE | RES_DEFNAMES | \
	RES_DNSRCH | RES_NO_NIBBLE2)

#ifndef __ultrix__
u_int16_t	_getshort __P((const uchar_t *));
u_int32_t	_getlong __P((const uchar_t *));
#endif

/* rename functions so they can be wrapped (see sunw/sunw_wrappers.c */
#define	p_option isc_p_option
const char *p_option(ulong_t option);
#define	p_secstodate isc_p_secstodate
char *p_secstodate(ulong_t secs);

/* prevent namespace pollution */
#define	res_protocolnumber	__res_protocolnumber
#define	res_servicenumber	__res_servicenumber



#ifdef	__cplusplus
}
#endif

#endif /* _PORT_RESOLV_H */