home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.muug.mb.ca
/
2014.06.ftp.muug.mb.ca.tar
/
ftp.muug.mb.ca
/
pub
/
src
/
gopher
/
gopher1.01
/
gopherd
/
globals.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-03
|
2KB
|
60 lines
/*
* This is some funky defines that assures that global variables are
* declared only once. (when globals.c includes this file with EXTERN
* defined.
*/
#ifndef EXTERN
#define EXTERN extern
#define INIT(x)
#else
#define EXTERN
#define INIT(x) = (x)
#endif
#include "boolean.h"
/**** Defines ****/
#define MAXLINE 512
/**** Globals. ****/
EXTERN boolean DEBUG INIT(FALSE);
EXTERN boolean RunFromInetd INIT(FALSE);
EXTERN boolean Caching INIT(TRUE);
EXTERN boolean UsingHTML INIT(FALSE);
EXTERN char LOGFile[256];
EXTERN int LOGFileDesc INIT(-1);
EXTERN char SecurityFile[256];
EXTERN FILE *SECFileHandle INIT(NULL);
EXTERN char Data_Dir[256];
EXTERN char *pname INIT(NULL);
EXTERN GopherDirObj *SortDir;
EXTERN int dochroot INIT(TRUE); /*** Should we use chroot?? ***/
EXTERN char *Zehostname INIT(NULL); /** Holds name and domain **/
EXTERN int GopherPort INIT(GOPHER_PORT);
EXTERN char *EXECargs INIT(NULL); /** used with exec type **/
EXTERN boolean MacIndex INIT(FALSE);
/*** What's being run ***/
EXTERN boolean RunLS INIT(FALSE);
EXTERN boolean RunServer INIT(TRUE); /** Run server as default **/
EXTERN boolean RunIndex INIT(FALSE); /** Index server (gindexd) **/
/*** Prototypes n' externals ****/
extern char *parse_input();
extern int do_command();
void intro_mesg(/* int */);
void listdir();
void printfile();
void echosound();
FILE *specialfile();
extern void LOGGopher();
char *fixfile();
void NeXTIndexQuery();
void WaisIndexQuery();
/*** from serverutil.c ***/
void Abortoutput();
int is_mail_from_line();