// Filename: bbshdr.h // Purpose: a general repository for standard and system includes // Author: Greg Shaw // Created: 6/1/93 /* This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. In addition to the permissions in the GNU General Public License, the Free Software Foundation gives you unlimited permission to link the compiled version of this file with other programs, and to distribute those programs without any restriction coming from the use of this file. (The General Public License restrictions do apply in other respects; for example, they cover modification of the file, and distribution when not linked into another program.) This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _BBSHDR_H_ #define _BBSHDR_H_ // bbs definitions // define the below if you're going to run the BBS program on multiple // machines. This will result in the name of the machine that the // information came from being included in the message. #undef MULTIPLE_MACHINE_BBS #define MAX_FILES 50 // maximum open files available #define MAX_LOCK_TRIES 3 // try 3 times for file lock #define MAX_FILENAMELENGTH 30 // max filename size // most filenames are < 30 chars #define MAX_DL_COMMANDS 15 // max number of dl protocols // found in $BBSDIR/config/protocols #define ERR_LOG_PATH "/bbs/admin/bbserr" // error logger file path // posix doesn't define the u_type shortcuts. internetworking does. So ... #ifndef u_short #define u_short unsigned short #define u_long unsigned long #define u_char unsigned char #define u_float unsigned float #endif // system includes #include // standard output #include // standard isxxxx functions #include // arguments from command line #include // file control #include // assert system call (for sanity checking) #include // non blocking read system calls #include // string functions #include // system data limits #include // system types #include // time and date #include // system rpc types #include // the stat() (status) system call #include // standard errors (+ perror) #include // signal handling routines #include // internet socket ipc interface #include // standard libraries #include // wait #include // system name #include // more socket definitions #include // ?? #include // standard unix (not covered elsewhere) #include // password file reading routines #include // directory reading routines #include // math (float) routines #include // getopt() // bbs specific includes #include "version.h" // bbs version #include "lang/strings.h" // all strings #include "bbsipc.h" // bbs ipc object #include "bbsinfo.h" // generic bbs information #include "ports.h" // port connection definitions #include "errlog.h" // error logger (object and daemon) #include "filelock.h" // automatic file locking #ifndef _SERVER_ #include "sysexec.h" // sub-process execution #include "bbsint.h" // bbs input/output interface #include "user.h" // user object definitions #include "menu.h" // menu system #include "bbs.h" // bbs top level definitions #include "dllist.h" // doubly linked list section #include "files.h" // files section #endif #include "moncon.h" // monitor connection object // definition below for gethostname. I don't define BSD, so it doesn't // get included in unistd.h. I'd rather have it POSIX than BSD. extern "C" int gethostname(char *__name, int __len); #endif // _BBSHDR_H_