xref: /illumos-gate/usr/src/lib/libresolv2/include/arpa/port_nameser.h (revision e5803b76927480e8f9b67b22201c484ccf4c2bcf)
1 /*
2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef _ARPA_PORT_NAMESER_H
7 #define	_ARPA_PORT_NAMESER_H
8 
9 /*
10  * ISC changed the ns_updrec structure. However, it's a public interface
11  * in Solaris, so we rename it here and wrap in sunw_updrec.c
12  */
13 #define	ns_updrec	__ISC_ns_updrec
14 
15 
16 /*
17  * Due to the above, the following functions need to be renamed and
18  * wrapped in sunw_updrec.c.
19  *
20  * For BIND 8.2.2, ISC removed the dynamic update functions, and the
21  * definition of the ns_updrec structure, from the public include files
22  * (<resolv.h>, <arpa/nameser.h>. However, res_update(), res_mkupdate(),
23  * and res_mkupdrec() are in the public libresolv interface in Solaris,
24  * so we can't easily remove them. Thus, ISC's new versions of res_mkupdate()
25  * etc. can't be exposed under their original names.
26  *
27  * res_nmkupdate() and res_nupdate are new. We could either change them
28  * to accept the <arpa/nameser.h> ns_updrec, or leave them unchanged and
29  * undocumented. Since ISC may change ns_updrec again, we pick the latter
30  * solution for now.
31  */
32 #define	res_mkupdate	__ISC_res_mkupdate
33 #define	res_update	__ISC_res_update
34 #define	res_mkupdrec	__ISC_res_mkupdrec
35 #define	res_freeupdrec	__ISC_res_freeupdrec
36 #define	res_nmkupdate	__ISC_res_nmkupdate
37 #define	res_nupdate	__ISC_res_nupdate
38 
39 
40 #endif /* _ARPA_PORT_NAMESER_H */
41