diff options
Diffstat (limited to 'innbbsd/innbbsconf.h')
-rw-r--r-- | innbbsd/innbbsconf.h | 134 |
1 files changed, 64 insertions, 70 deletions
diff --git a/innbbsd/innbbsconf.h b/innbbsd/innbbsconf.h index 6521dde6..4e068443 100644 --- a/innbbsd/innbbsconf.h +++ b/innbbsd/innbbsconf.h @@ -18,98 +18,97 @@ #include <errno.h> #include <time.h> #ifndef BSD44 -# include <malloc.h> +#include <malloc.h> #endif #include <sys/time.h> #include <sys/stat.h> #include <sys/file.h> -/*#include "bbs.h"*/ +/* #include "bbs.h" */ #if defined(AIX) -# include <sys/select.h> +#include <sys/select.h> #endif /* - BBS home directory - It has been overridden in Makefile -*/ + * 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"*/ +#define _PATH_BBSHOME "/u/staff/bbsroot/csie_util/bntpd/home" +/* # define _PATH_BBSHOME "/home/bbs" */ #endif #ifndef EXPIREDAYS -# define EXPIREDAYS 7 +#define EXPIREDAYS 7 #endif #ifndef DEFAULT_HIST_SIZE -# define DEFAULT_HIST_SIZE 100000 +#define DEFAULT_HIST_SIZE 100000 #endif /* - Maximum number of connections accepted by innbbsd -*/ + * Maximum number of connections accepted by innbbsd + */ #ifndef MAXCLIENT -# define MAXCLIENT 500 +#define MAXCLIENT 500 #endif /* - Maximum number of articles received for a newsgroup by bbsnnrp each time -*/ + * Maximum number of articles received for a newsgroup by bbsnnrp each time + */ #ifndef MAX_ARTS -# define MAX_ARTS 100 +#define MAX_ARTS 100 #endif /* - Maximum size of articles received -*/ + * Maximum size of articles received + */ #ifndef MAX_ART_SIZE -# define MAX_ART_SIZE 1000000L +#define MAX_ART_SIZE 1000000L #endif /* - Maximum number of articles stated for a newsgroup by bbsnnrp each time -*/ + * Maximum number of articles stated for a newsgroup by bbsnnrp each time + */ #ifndef MAX_STATS -# define MAX_STATS 1000 +#define MAX_STATS 1000 #endif /* - Mininum wait interval for bbsnnrp -*/ + * Mininum wait interval for bbsnnrp + */ #ifndef MIN_WAIT -# define MIN_WAIT 60 +#define MIN_WAIT 60 #endif #ifndef DefaultINNBBSPort -# define DefaultINNBBSPort "7777" +#define DefaultINNBBSPort "7777" #endif /* - time to maintain history database -*/ + * time to maintain history database + */ #ifndef HIS_MAINT -# define HIS_MAINT -# define HIS_MAINT_HOUR 4 -# define HIS_MAINT_MIN 30 +#define HIS_MAINT +#define HIS_MAINT_HOUR 4 +#define HIS_MAINT_MIN 30 #endif #ifndef ChannelSize -# define ChannelSize 4096 +#define ChannelSize 4096 #endif #ifndef ReadSize -# define ReadSize 1024 +#define ReadSize 1024 #endif #ifndef MAXPATHLEN -# define MAXPATHLEN 1024 +#define MAXPATHLEN 1024 #endif #ifndef CLX_IOCTL -# define CLX_IOCTL +#define CLX_IOCTL #endif #define DEFAULTSERVER "your.favorite.news.server" @@ -122,67 +121,62 @@ #endif /* -# ifndef ARG -# ifdef __STDC__ -# define ARG(x) (x) -# else -# define ARG(x) () -# endif -# 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 +#ifndef LINUX +#define LINUX +#endif #endif #if !defined(__svr4__) || defined(sun) -# define WITH_TM_GMTOFF +#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 +#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 +#define NO_flock +#define WITH_lockf #endif #if defined(HPUX) -# define NO_getdtablesize -# define NO_flock -# define WITH_lockf +#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 +#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 +#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 */ +#define LOCK_EX 2 /* exclusive lock */ +#define LOCK_UN 8 /* unlock */ #endif #ifdef DEC_ALPHA -# define ULONG unsigned int +#define ULONG unsigned int #else -# define ULONG unsigned long +#define ULONG unsigned long #endif #ifdef PalmBBS |