home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / gopherd / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-11  |  2.7 KB  |  100 lines

  1. /********************************************************************
  2.  * lindner
  3.  * 3.1.1.1
  4.  * 1993/02/11 18:02:51
  5.  * /home/mudhoney/GopherSrc/CVS/gopher+/gopherd/globals.h,v
  6.  * Exp
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: globals.h
  14.  * Global variables for gopher server
  15.  *********************************************************************
  16.  * Revision History:
  17.  * globals.h,v
  18.  * Revision 3.1.1.1  1993/02/11  18:02:51  lindner
  19.  * Gopher+1.2beta release
  20.  *
  21.  * Revision 1.3  1993/01/30  23:57:44  lindner
  22.  * New global "ASKfile
  23.  *
  24.  * Revision 1.2  1992/12/16  05:07:23  lindner
  25.  * Removed SortDir, moved it into listdir() where it belongs.
  26.  *
  27.  * Revision 1.1  1992/12/10  23:13:27  lindner
  28.  * gopher 1.1 release
  29.  *
  30.  *
  31.  *********************************************************************/
  32.  
  33. /*
  34.  * This is some funky defines that assures that global variables are
  35.  * declared only once.  (when globals.c includes this file with EXTERN
  36.  * defined.
  37.  */
  38.  
  39. #ifndef EXTERN
  40. #define EXTERN extern
  41. #define INIT(x)
  42. #else
  43. #define EXTERN
  44. #define INIT(x) = (x)
  45. #endif
  46.  
  47. #include "boolean.h"
  48.  
  49. /**** Defines ****/
  50. #define MAXLINE 512
  51.  
  52. /**** Globals.  ****/
  53.  
  54. EXTERN GDCobj    *Config;
  55. EXTERN boolean   DEBUG INIT(FALSE);
  56. EXTERN boolean   RunFromInetd INIT(FALSE);
  57. EXTERN boolean   Caching INIT(TRUE);
  58. EXTERN boolean   UsingHTML INIT(FALSE);
  59. EXTERN int       LOGFileDesc INIT(-1);
  60. EXTERN char      Data_Dir[256];
  61. EXTERN char      *pname INIT(NULL);
  62.  
  63. EXTERN int       dochroot INIT(TRUE);   /*** Should we use chroot?? ***/
  64. EXTERN char      *Zehostname INIT(NULL);      /** Holds name and domain **/
  65. EXTERN int       GopherPort INIT(GOPHER_PORT);
  66. EXTERN char      *EXECargs INIT(NULL);   /** used with exec type **/
  67. EXTERN boolean   MacIndex      INIT(FALSE);
  68.  
  69. /*** What's being run ***/
  70. EXTERN boolean   RunLS         INIT(FALSE);
  71. EXTERN boolean   RunServer     INIT(TRUE);  /** Run server as default **/
  72. EXTERN boolean   RunIndex      INIT(FALSE); /** Index server (gindexd) **/
  73.  
  74. /*** Incoming data from the client ***/
  75. EXTERN char *ASKfile           INIT(NULL);
  76.  
  77. /*** Prototypes n' externals ****/
  78.  
  79. extern char *parse_input();
  80. extern int do_command();
  81. void intro_mesg(/* int */);
  82. void listdir();
  83. void printfile();
  84. void echosound();
  85. FILE *specialfile();
  86. extern void LOGGopher();
  87. char *fixfile();
  88. char *mtm_basename(/* (char *) */);
  89. /*** From index.c ***/
  90. void NeXTIndexQuery();
  91. void WaisIndexQuery();
  92. void GrepIndexQuery();
  93. void ShellIndexQuery();
  94. /*** from serverutil.c ***/
  95. void Abortoutput();
  96. int is_mail_from_line();
  97. /*** from ftp.c ***/
  98. void TranslateResults();
  99. void SendFtpQuery();
  100.