xref: /titanic_51/usr/src/lib/libresolv2/include/conf/sunoptions.h (revision 52ccf843e173e2a4a657360b0a22853fd413905f)
1 /*
2  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef	_SUNOPTIONS_H
7 #define	_SUNOPTIONS_H
8 
9 #pragma ident	"%Z%%M%	%I%	%E% SMI"
10 
11 /*
12  * The following options are PP flags available in the reference implementation
13  * but do not get compiled due to the elimination of the options.h file
14  * This section selectively reintroduces them
15  */
16 
17 #define	HAVE_GETRUSAGE
18 
19 /*
20  * The following options are PP flags introduced as part of the Sun/Solaris
21  * port.
22  */
23 
24 /* We may have to pull this out */
25 #define	SUNW_LIBNSL	/* conflicts for inet_addr, inet_ntoa */
26 
27 /* Additions for Solaris 2 */
28 #define	SUNW_NSSEARCH	/* fix nslookup domain search */
29 #define	SUNW_AVOIDOVERFLOW	/* Avoid buffer overflows */
30 #define	SUNW_INITCHKIF	/* Check if any non-loopback interface is up */
31 #define	SUNW_DOMAINFROMNIS	/* Default domain name from NIS/NIS+ */
32 #define	USELOOPBACK	/* Resolver library defaults to 127.0.0.1 */
33 #define	SUNW_CONFCHECK	/* Abort quickly if no /etc/resolv.conf or local */
34 			/* named */
35 #define	SUNW_AREWEINNAMED	/* Override _confcheck if proc is in.named */
36 #define	SUNW_OPENFDOFFSET	/* Open non-stdio fd:s with offset */
37 #define	SUNW_POLL	/* Use poll(2) instead of select(3) */
38 #define	SUNW_HOSTS_FALLBACK	/* Configurable /etc/hosts fallback */
39 #define	SUNW_LISTEN_BACKLOG	/* Configurable listen(3N) backlog (named) */
40 #define	SUNW_REJECT_BOGUS_H_LENGTH	/* (libresolv) */
41 #define	SUNW_HNOK_UNDERSCORE	/* Allow underscore in hostnames (libresolv) */
42 #define	SUNW_MT_RESOLVER	/* MT hot extensions (libresolv) */
43 #define	SUNW_QSTREAM_CLEANUP	/* Avoid using free()d struct qstreams */
44 #define	SUNW_SETHERRNO		/* ISC does not set h_errno in gethostbyname */
45 #define	SUNW_OVERRIDE_RETRY	/* Allow NS switch to override res->retry */
46 #define	SUNW_CLOSEFROM		/* closefrom(3C) per PSARC 2000/193 */
47 #define	SUNW_AVOIDSTDIO_FDLIMIT	/* Avoid 256 file descriptor limit in stdio */
48 #define	SUNW_LIBMD5	/* Use md5(3EXT) instead of internal implementation */
49 
50 /* If compiling an MT warm libresolv, we also need reentrancy */
51 #if	defined(SUNW_MT_RESOLVER) && !defined(_REENTRANT)
52 #define	_REENTRANT
53 #endif
54 
55 /* SUNW_AREWEINNAMED and SUNW_CONFCHECCK are mutually inclusive */
56 #if	defined(SUNW_AREWEINNAMED) && !defined(SUNW_CONFCHECK)
57 #define	SUNW_CONFCHECK
58 #endif
59 
60 /* End additions for Solaris 2 */
61 
62 #endif /* _SUNOPTIONS_H */
63