1: /*
2: ** Random stuff needed for nntpxmit
3: **
4: ** This file also contains a lot of assumptions about what features
5: ** are available on the local system - if something is not working
6: ** to your liking, look them over carefully.
7: */
8:
9: typedef int (*ifunp)(); /* pointer to function that returns int */
10:
11: #define dprintf if (Debug) fprintf
12:
13: #define TIMEOUT 3600 /* seconds to read timeout in sfgets */
14:
15: #ifndef TRUE
16: #define TRUE 1
17: #define FALSE 0
18: #endif
19:
20: /* in goodbye() wait (or not) for QUIT response */
21: #define WAIT TRUE
22: #define DONT_WAIT FALSE
23:
24: /* in lockfd(), blocking, or non_blocking */
25: #define BLOCK FALSE
26: #define DONT_BLOCK TRUE
27:
28: #ifndef FAIL
29: #define FAIL (-1)
30: #endif
31:
32:
33: /* DECNET support is only there if the DECNET compile-time option defined */
34: #define T_IP_TCP 1 /* transport is IP/TCP */
35: #define T_DECNET 2 /* transport is DECNET */
36: #define T_FD 3 /* transport is a descriptor */
37:
38: /* for syslog, if we compile it in */
39: #define L_DEBUG 1
40: #define L_INFO 2
41: #define L_NOTICE 3
42: #define L_WARNING 4
43:
44: #if (DECNET && !BSD4_2) /* if we have DECNET, we're an Ultrix */
45: #define BSD4_2
46: #undef USG
47: #endif
48:
49: #if (EXCELAN && !USG) /* if we have EXCELAN, we're an Uglix */
50: #define USG
51: #undef BSD4_2
52: #endif
53:
54: #ifdef USG /* USG pinheadedness */
55: #define index strchr
56: #define rindex strrchr
57: #define u_long unsigned long
58: #define u_short unsigned short
59: #endif
60:
61: #ifdef BSD4_2 /* look at all these goodies we get! */
62: #define FTRUNCATE
63: #define SYSLOG
64: #define RELSIG
65: #endif BSD4_2
66:
67: #ifdef apollo
68: #undef SYSLOG /* Apollos don't have this by default */
69: #endif
Defined macros
BLOCK
defined in line
25;
never used
FAIL
defined in line
29; used 2 times
FALSE
defined in line
17; used 39 times
- in line 22-25(2)
- in /usr/src/new/nntp/xmit/nntpxmit.c line
120,
227,
376,
386,
395,
468,
486,
510,
609,
637-659(9),
669,
675-682(3),
690-697(3),
703,
719-726(3),
735,
1122,
1132
- in /usr/src/new/nntp/xmit/remote.c line
269,
389-392(2),
408,
414
L_WARNING
defined in line
42; used 21 times
- in /usr/src/new/nntp/xmit/nntpxmit.c line
375,
508,
824,
856,
918,
955-960(2),
971-976(2),
985-989(2),
1005,
1011,
1120,
1130
- in /usr/src/new/nntp/xmit/remote.c line
187,
200-204(2),
215,
222,
230
TRUE
defined in line
16; used 18 times
- in line 15,
21-26(2)
- in /usr/src/new/nntp/xmit/nntpxmit.c line
121-122(2),
167,
418,
426,
512,
609,
651-658(3),
729,
1136
- in /usr/src/new/nntp/xmit/remote.c line
64,
382,
403
T_FD
defined in line
36; used 2 times
USG
defined in line
50; used 6 times
WAIT
defined in line
21; used 2 times
dprintf
defined in line
11; used 12 times
- in /usr/src/new/nntp/xmit/nntpxmit.c line
838,
851,
875,
882,
911,
929,
939,
945,
998,
1014
- in /usr/src/new/nntp/xmit/remote.c line
65,
108
index
defined in line
55; used 6 times
Usage of this include