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
Defined macros
BZERO
defined in line
9; used 1 times
TMPFILES
defined in line
14; used 32 times
- in line 45
- in /usr/src/new/pathalias/addlink.c line
21
- in /usr/src/new/pathalias/addnode.c line
19,
51,
70,
185
- in /usr/src/new/pathalias/def.h line
12,
21,
37,
81,
137,
158,
174
- in /usr/src/new/pathalias/getstruct.c line
4
- in /usr/src/new/pathalias/main.c line
32,
61,
108,
162,
185
- in /usr/src/new/pathalias/mapaux.c line
17,
331,
357,
367
- in /usr/src/new/pathalias/mapit.c line
22
- in /usr/src/new/pathalias/mem.c line
18,
30,
74,
81,
182
- in /usr/src/new/pathalias/parse.y line
17
- in /usr/src/new/pathalias/printit.c line
19,
35
cfree
defined in line
53;
never used
free
defined in line
52; used 2 times
index
defined in line
60; used 9 times
Usage of this include