summaryrefslogtreecommitdiffstats
path: root/innbbsd/innbbsconf.h
blob: 6521dde6cc1d89ac81ce13b9c9599eff66ca166c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#ifndef INNBBSCONF_H
#define INNBBSCONF_H
#include <stdio.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/un.h>
#include <sys/param.h>
#include <sys/wait.h>

#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>
#ifndef BSD44
# include <malloc.h>
#endif
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/file.h>

/*#include "bbs.h"*/
#if defined(AIX)
# include <sys/select.h>
#endif

/*
    BBS home directory
    It has been overridden in Makefile
*/
#ifndef _PATH_BBSHOME
# define _PATH_BBSHOME "/u/staff/bbsroot/csie_util/bntpd/home"
/*# define _PATH_BBSHOME "/home/bbs"*/
#endif

#ifndef EXPIREDAYS
#  define EXPIREDAYS 7
#endif

#ifndef DEFAULT_HIST_SIZE
#  define DEFAULT_HIST_SIZE 100000
#endif

/*
    Maximum number of connections accepted by innbbsd
*/
#ifndef MAXCLIENT
#  define MAXCLIENT 500
#endif

/*
   Maximum number of articles received for a newsgroup by bbsnnrp each time 
*/
#ifndef MAX_ARTS
# define MAX_ARTS 100
#endif

/*
   Maximum size of articles received 
*/
#ifndef MAX_ART_SIZE
# define MAX_ART_SIZE 1000000L
#endif


/*
   Maximum number of articles stated for a newsgroup by bbsnnrp each time 
*/
#ifndef MAX_STATS
# define MAX_STATS 1000
#endif

/*
    Mininum wait interval for bbsnnrp
*/
#ifndef MIN_WAIT
# define MIN_WAIT 60
#endif


#ifndef DefaultINNBBSPort
# define DefaultINNBBSPort "7777"
#endif

/*
   time to maintain history database 
*/
#ifndef HIS_MAINT
# define HIS_MAINT
# define HIS_MAINT_HOUR 4
# define HIS_MAINT_MIN  30
#endif

#ifndef ChannelSize
#  define ChannelSize 4096
#endif

#ifndef ReadSize
#  define ReadSize 1024
#endif

#ifndef MAXPATHLEN
#  define MAXPATHLEN 1024
#endif

#ifndef CLX_IOCTL
#  define CLX_IOCTL
#endif

#define DEFAULTSERVER "your.favorite.news.server"
#define DEFAULTPORT "nntp"
#define DEFAULTPROTOCOL "tcp"
#define DEFAULTPATH ".innbbsd"

#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif

/*
# ifndef ARG
#  ifdef __STDC__
#   define ARG(x) (x) 
#  else
#   define ARG(x) () 
#  endif
# endif
*/
/* machine dependend */
#if defined(__linux)
# ifndef LINUX
#  define LINUX
# endif
#endif

#if !defined(__svr4__) || defined(sun)
#  define WITH_TM_GMTOFF  
#endif
#if (defined(__svr4__) && defined(sun)) || defined(SOLARIS)
# ifndef SOLARIS
#  define SOLARIS
# endif
#  define NO_getdtablesize
#  define NO_bcopy
#  define NO_bzero
#  define NO_flock
#  define WITH_lockf
#endif

#if defined(AIX)
#  define NO_flock
#  define WITH_lockf
#endif

#if defined(HPUX)
#  define NO_getdtablesize
#  define NO_flock
#  define WITH_lockf
#endif

#ifdef NO_bcopy
# ifndef bcopy
#    define bcopy(a,b,c) memcpy(b,a,c)
# endif
#endif

#ifdef NO_bzero
# ifndef bzero
#   define bzero(mem, size) memset(mem,'\0',size)
# endif
#endif

#ifndef LOCK_EX
# define LOCK_EX         2       /* exclusive lock */
# define LOCK_UN         8       /* unlock */
#endif

#ifdef DEC_ALPHA
#  define ULONG unsigned int
#else
#  define ULONG unsigned long
#endif

#ifdef PalmBBS
#undef WITH_RECORD_O
#endif

#endif