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