home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / gopherd / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-21  |  2.5 KB  |  89 lines

  1. /********************************************************************
  2.  * $Author: lindner $
  3.  * $Revision: 1.1 $
  4.  * $Date: 1992/12/10 23:13:27 $
  5.  * $Source: /home/mudhoney/GopherSrc/release1.11/gopherd/RCS/globals.h,v $
  6.  * $Status: $
  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.  * $Log: globals.h,v $
  18.  * Revision 1.1  1992/12/10  23:13:27  lindner
  19.  * gopher 1.1 release
  20.  *
  21.  *
  22.  *********************************************************************/
  23.  
  24. /*
  25.  * This is some funky defines that assures that global variables are
  26.  * declared only once.  (when globals.c includes this file with EXTERN
  27.  * defined.
  28.  */
  29.  
  30. #ifndef EXTERN
  31. #define EXTERN extern
  32. #define INIT(x)
  33. #else
  34. #define EXTERN
  35. #define INIT(x) = (x)
  36. #endif
  37.  
  38. #include "boolean.h"
  39.  
  40. /**** Defines ****/
  41. #define MAXLINE 512
  42.  
  43. /**** Globals.  ****/
  44.  
  45. EXTERN GDCobj    *Config;
  46. EXTERN boolean   DEBUG INIT(FALSE);
  47. EXTERN boolean   RunFromInetd INIT(FALSE);
  48. EXTERN boolean   Caching INIT(TRUE);
  49. EXTERN boolean   UsingHTML INIT(FALSE);
  50. EXTERN int       LOGFileDesc INIT(-1);
  51. EXTERN char      Data_Dir[256];
  52. EXTERN char      *pname INIT(NULL);
  53. EXTERN GopherDirObj *SortDir;
  54.  
  55. EXTERN int       dochroot INIT(TRUE);   /*** Should we use chroot?? ***/
  56. EXTERN char      *Zehostname INIT(NULL);      /** Holds name and domain **/
  57. EXTERN int       GopherPort INIT(GOPHER_PORT);
  58. EXTERN char      *EXECargs INIT(NULL);   /** used with exec type **/
  59. EXTERN boolean   MacIndex      INIT(FALSE);
  60.  
  61. /*** What's being run ***/
  62. EXTERN boolean   RunLS         INIT(FALSE);
  63. EXTERN boolean   RunServer     INIT(TRUE);  /** Run server as default **/
  64. EXTERN boolean   RunIndex      INIT(FALSE); /** Index server (gindexd) **/
  65.  
  66. /*** Prototypes n' externals ****/
  67.  
  68. extern char *parse_input();
  69. extern int do_command();
  70. void intro_mesg(/* int */);
  71. void listdir();
  72. void printfile();
  73. void echosound();
  74. FILE *specialfile();
  75. extern void LOGGopher();
  76. char *fixfile();
  77. char *mtm_basename(/* (char *) */);
  78. /*** From index.c ***/
  79. void NeXTIndexQuery();
  80. void WaisIndexQuery();
  81. void GrepIndexQuery();
  82. void ShellIndexQuery();
  83. /*** from serverutil.c ***/
  84. void Abortoutput();
  85. int is_mail_from_line();
  86. /*** from ftp.c ***/
  87. void TranslateResults();
  88. void SendFtpQuery();
  89.