PageRenderTime 87ms CodeModel.GetById 20ms RepoModel.GetById 11ms app.codeStats 0ms

/win32build/include/options.h

https://github.com/cuiplay/dezend
C Header | 160 lines | 53 code | 8 blank | 99 comment | 1 complexity | 0e73383d106966d6c274114567dcd7d6 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-2.1, BSD-3-Clause
  1. /* options.h - specify the conditionally-compiled features
  2. * vix 28mar92 [moved out of the Makefile because they were getting too big]
  3. *
  4. * $Id: options.h,v 8.12 1996/11/11 06:36:43 vixie Exp $
  5. */
  6. /*
  7. * ++Copyright++
  8. * -
  9. * Copyright (c)
  10. * The Regents of the University of California. All rights reserved.
  11. *
  12. * Redistribution and use in source and binary forms, with or without
  13. * modification, are permitted provided that the following conditions
  14. * are met:
  15. * 1. Redistributions of source code must retain the above copyright
  16. * notice, this list of conditions and the following disclaimer.
  17. * 2. Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the distribution.
  20. * 3. All advertising materials mentioning features or use of this software
  21. * must display the following acknowledgement:
  22. * This product includes software developed by the University of
  23. * California, Berkeley and its contributors.
  24. * 4. Neither the name of the University nor the names of its contributors
  25. * may be used to endorse or promote products derived from this software
  26. * without specific prior written permission.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  29. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  32. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38. * SUCH DAMAGE.
  39. * -
  40. * Portions Copyright (c) 1993 by Digital Equipment Corporation.
  41. *
  42. * Permission to use, copy, modify, and distribute this software for any
  43. * purpose with or without fee is hereby granted, provided that the above
  44. * copyright notice and this permission notice appear in all copies, and that
  45. * the name of Digital Equipment Corporation not be used in advertising or
  46. * publicity pertaining to distribution of the document or software without
  47. * specific, written prior permission.
  48. *
  49. * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
  50. * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  51. * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
  52. * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  53. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  54. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  55. * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  56. * SOFTWARE.
  57. * -
  58. * --Copyright--
  59. */
  60. /* Key:
  61. * ucb = U C Berkeley 4.8.3 release
  62. * vix = Paul Vixie of Digital
  63. * del = Don Lewis of Harris
  64. * mcsun = Piet Beertema of EUNet
  65. * asp = Andrew Partan of UUNet
  66. * pma = Paul Albitz of Hewlett Packard
  67. * bb = Bryan Beecher of UMich
  68. * mpa = Mark Andrews of CSIRO - DMS
  69. * rossc = Ross Cartlidge of The Univeritsy of Sydney
  70. * mtr = Marshall Rose of TPC.INT
  71. * bg = Benoit Grange of INRIA
  72. * ckd = Christopher Davis of Kapor Enterprises
  73. * gns = Greg Shapiro of WPI
  74. */
  75. #define DEBUG /* enable -d flag and SIGUSR[12] support (ucb) */
  76. /*#define ALLOW_T_UNSPEC /* enable the "unspec" RR type for old athena (ucb) */
  77. /*#define INVQ /* enable inverse queries (nslookup) (ucb/vix) */
  78. /*#define DSTORAGE /* debug malloc overruns using storage.o (ucb/vix) */
  79. /*#define DMALLOC /* trace malloc orphans using dmalloc.o (vix) */
  80. #define XFRNETS /* enable "xfrnets" command in named.boot (vix) */
  81. #define PID_FIX /* be careful about overwriting named.pid file (del) */
  82. #define FWD_LOOP /* try to break out of forwarding loops (del) */
  83. #define NO_GLUE /* don't accept or send out-of-zone glue (del) */
  84. #define BOGUSNS /* detect bogus nameservers (mcsun) */
  85. #define QRYLOG /* enable SIGWINCH for query logging (bb) */
  86. /*#define YPKLUDGE /* deal effectively with broken "ypserv -i" (mcsun) */
  87. #define TRACEROOT /* trace bogus root servers and ignore them (pma,bb) */
  88. /*#define LOCALDOM /* permit "domain" directive in named.boot (ucb) */
  89. #define FORCED_RELOAD /* refresh secondary zones on SIGHUP (pma) */
  90. #define SLAVE_FORWARD /* use sensible timeouts on slave forwarders (pma) */
  91. #define WANT_PIDFILE /* if you want the named.pid file (ucb/arc) */
  92. #define DOTTED_SERIAL /* if you want to be able to specify dotted serial#s */
  93. #define SENSIBLE_DOTS /* if you want dotted serial#s to make numeric sense */
  94. #define NCACHE /* negative caching (anant@isi.edu) */
  95. /*#define VALIDATE /* validation procedure (anant@isi.edu) (BUGGY!) */
  96. /*#define SHORT_FNAMES /* file names used in named-xfer need to be short */
  97. #define RESOLVSORT /* allow sorting of addresses in gethostbyname (mpa) */
  98. #define STUBS /* allow transfers of NS only for a zone (mpa) */
  99. #ifndef LOGFAC
  100. #define LOGFAC LOG_DAEMON /* what syslog facility should named use? */
  101. #endif
  102. #define SECURE_ZONES /* if you want to inhibit world access to zones (gns)*/
  103. #define ROUND_ROBIN /* rotate databuf list after each access (mtr) */
  104. #define ADDAUTH /* return NS and glue w/ authorative answers (mpa) */
  105. #define RFC1535 /* use RFC 1535 default for "search" list (vix) */
  106. #define GEN_AXFR /* distinct zones within each class */
  107. #define LAME_DELEGATION /* lame delegations (original-del,reworked-bb&del)*/
  108. #define LAME_LOGGING LOG_DEBUG /* log lame delegations, set log level */
  109. #define GETSER_LOGGING LOG_INFO /* log errors/timeouts getting serial number */
  110. #define RETURNSOA /* good code that the world might be ready for now */
  111. #define CLEANCACHE /* useful and necessary in the face of NCACHE */
  112. #define PURGE_ZONE /* remove all traces of a zone when reloading (mpa) */
  113. #define STATS /* keep nameserver statistics; uses more memory */
  114. #ifndef WINNT
  115. #define RENICE /* named-xfer should run at normal priority */
  116. #endif
  117. #define XSTATS /* extended statistics, syslogged periodically (bg) */
  118. /*#define BIND_NOTIFY /* experimental - do not enable in customer products */
  119. #define LOC_RR /* support for LOC record parsing (ckd/vix) */
  120. #define SORT_RESPONSE /* should we try to sort responses optimally? (vix) */
  121. /*--------------------------------------------*
  122. * no user-servicable parts beyond this point *
  123. *--------------------------------------------*/
  124. /* if DSTORAGE is defined, we need to disable DMALLOC and remap
  125. * malloc and free to storage.o's exported names. storage.o also
  126. * includes a calloc and a realloc, but once we drag in its malloc
  127. * and free we'll get the others automatically and so will never
  128. * pull in those routines from libc.a.
  129. */
  130. #ifdef DSTORAGE
  131. # ifdef DMALLOC
  132. # undef DMALLOC
  133. # endif /*DMALLOC*/
  134. # define malloc rt_malloc
  135. # define free rt_free
  136. #endif /*DSTORAGE*/
  137. /* if DMALLOC is defined, grab the header file which will remap
  138. * all the malloc-style names to those exported by dmalloc.o. note
  139. * that DMALLOC also changes the function signatures of several
  140. * functions in private named source modules, and that this file
  141. * (options.h) must be included before any other private *.h files
  142. * since those *.h files have some conditional remapping to do.
  143. */
  144. #ifdef DMALLOC
  145. # include "dmalloc.h"
  146. #endif
  147. #ifdef LAME_LOGGING
  148. # define LAME_DELEGATION
  149. #endif
  150. #if defined(XSTATS) && !defined(STATS)
  151. # define STATS
  152. #endif