1: /* pathalias -- by steve bellovin, as told to peter honeyman */
   2: 
   3: #undef STRCHR       /* have strchr -- system v and many others */
   4: 
   5: #undef UNAME        /* have uname() -- probably system v or 8th ed. */
   6: #undef MEMSET       /* have memset() -- probably system v or 8th ed. */
   7: 
   8: #define GETHOSTNAME /* have gethostname() -- probably bsd */
   9: #define BZERO       /* have bzero() -- probably bsd */
  10: 
  11: /* default place for dbm output of makedb (or use -o at run-time) */
  12: #define ALIASDB "/usr/new/lib/news/paths"
  13: 
  14: #define TMPFILES    /* use scratch files to reduce memory requirements. */
  15: 
  16: 
  17: /**************************************************************************
  18:  *									  *
  19:  * +--------------------------------------------------------------------+ *
  20:  * |									| *
  21:  * |			END OF CONFIGURATION SECTION			| *
  22:  * |									| *
  23:  * |				EDIT NO MORE				| *
  24:  * |									| *
  25:  * +--------------------------------------------------------------------+ *
  26:  *									  *
  27:  **************************************************************************/
  28: 
  29: #ifdef MAIN
  30: #ifndef lint
  31: static char *c_sccsid = "@(#)config.h	9.1 87/10/04";
  32: #endif /*lint*/
  33: #endif /*MAIN*/
  34: 
  35: /*
  36:  * malloc/free fine tuned for pathalias.
  37:  *
  38:  * MYMALLOC should work everwhere, so it's not a configuration
  39:  * option (anymore).  nonetheless, if you're getting strange
  40:  * core dumps (or panics!), comment out the following manifest,
  41:  * and use the inferior C library malloc/free.
  42:  *
  43:  * please report problems to citi!honey or honey@citi.umich.edu.
  44:  */
  45: #ifndef TMPFILES    /* don't use MYMALLOC with TMPFILES. */
  46: #define MYMALLOC    /**/
  47: #endif /*TMPFILES*/
  48: 
  49: #ifdef MYMALLOC
  50: #define malloc mymalloc
  51: #define calloc(n, s) malloc ((n)*(s))
  52: #define free(s)
  53: #define cfree(s)
  54: extern char *memget();
  55: #else /* !MYMALLOC */
  56: extern char *calloc();
  57: #endif /* MYMALLOC */
  58: 
  59: #ifdef STRCHR
  60: #define index strchr
  61: #define rindex strrchr
  62: #else
  63: #define strchr index
  64: #define strrchr rindex
  65: #endif
  66: 
  67: #ifdef BZERO
  68: #define strclear(s, n)  ((void) bzero((s), (n)))
  69: #else /*!BZERO*/
  70: 
  71: #ifdef MEMSET
  72: extern char *memset();
  73: #define strclear(s, n)  ((void) memset((s), 0, (n)))
  74: #else /*!MEMSET*/
  75: extern void strclear();
  76: #endif /*MEMSET*/
  77: 
  78: #endif /*BZERO*/
  79: 
  80: extern char *malloc();
  81: extern char *strcpy(), *index(), *rindex();

Defined variables

c_sccsid defined in line 31; never used

Defined macros

ALIASDB defined in line 12; used 1 times
BZERO defined in line 9; used 1 times
  • in line 67
GETHOSTNAME defined in line 8; used 1 times
MYMALLOC defined in line 46; used 3 times
calloc defined in line 51; used 7 times
cfree defined in line 53; never used
free defined in line 52; used 2 times
malloc defined in line 50; used 7 times
rindex defined in line 61; used 3 times
strchr defined in line 63; used 1 times
  • in line 60
strclear defined in line 73; used 6 times
strrchr defined in line 64; used 1 times
  • in line 61

Usage of this include

Last modified: 1988-07-14
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3072
Valid CSS Valid XHTML 1.0 Strict