xref: /titanic_41/usr/src/lib/libresolv2/include/conf/sunoptions.h (revision 355b4669e025ff377602b6fc7caaf30dbc218371)
1 /*
2  * Copyright 2004 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_SYNONYMS	/* Include synonyms.h (libresolv) */
39 #define	SUNW_HOSTS_FALLBACK	/* Configurable /etc/hosts fallback */
40 #define	SUNW_LISTEN_BACKLOG	/* Configurable listen(3N) backlog (named) */
41 #define	SUNW_REJECT_BOGUS_H_LENGTH	/* (libresolv) */
42 #define	SUNW_HNOK_UNDERSCORE	/* Allow underscore in hostnames (libresolv) */
43 #define	SUNW_MT_RESOLVER	/* MT hot extensions (libresolv) */
44 #define	SUNW_QSTREAM_CLEANUP	/* Avoid using free()d struct qstreams */
45 #define	SUNW_SETHERRNO		/* ISC does not set h_errno in gethostbyname */
46 #define	SUNW_OVERRIDE_RETRY	/* Allow NS switch to override res->retry */
47 #define	SUNW_CLOSEFROM		/* closefrom(3C) per PSARC 2000/193 */
48 #define	SUNW_AVOIDSTDIO_FDLIMIT	/* Avoid 256 file descriptor limit in stdio */
49 #define	SUNW_LIBMD5	/* Use md5(3EXT) instead of internal implementation */
50 
51 /* If compiling an MT warm libresolv, we also need reentrancy */
52 #if	defined(SUNW_MT_RESOLVER) && !defined(_REENTRANT)
53 #define	_REENTRANT
54 #endif
55 
56 /* SUNW_AREWEINNAMED and SUNW_CONFCHECCK are mutually inclusive */
57 #if	defined(SUNW_AREWEINNAMED) && !defined(SUNW_CONFCHECK)
58 #define	SUNW_CONFCHECK
59 #endif
60 
61 /* End additions for Solaris 2 */
62 
63 #endif /* _SUNOPTIONS_H */
64