SMOLNET PORTAL home about changes
/********************************************************************
 * wilkinson
 * 3.10VMS
 * 1995/09/25 11:30
 * gopher_root1:[gopher.g2.vms2_13.gopher]gopherd.h,v
 * Exp
 *
 * Paul Lindner, University of Minnesota CIS.
 *
 * Copyright 1991, 1992 by the Regents of the University of Minnesota
 * see the file "Copyright" in the distribution for conditions of use.
 *********************************************************************
 * MODULE: gopherd.h
 * Header file for gopher server.
 *********************************************************************
 * Revision History:
 * gopherd.h,v
 * Revision 3.10VMS 1995/09/25 11:30    wilkinson
 * Consolodate VMS/Unix source code for server as well as client
 * - use __VMS instead of VMS as trigger for VMS items
 *
 * Revision 3.10  1994/09/29  19:58:50  lindner
 * Fix for including Locale.h
 *
 * Revision 3.9  1994/05/14  04:19:15  lindner
 * Use new locale.h
 *
 * Revision 3.8  1994/05/02  07:41:14  lindner
 * Mods to use setlocale()
 *
 * Revision 3.7  1994/04/14  18:00:38  lindner
 * Fix for AIX
 *
 * Revision 3.6  1994/04/08  21:09:50  lindner
 * Remove extraneous stat include
 *
 * Revision 3.5  1994/03/17  04:30:15  lindner
 * VMS fixes gopherd.h
 *
 * Revision 3.4  1993/06/14  22:23:02  lindner
 * status-->state:
 *
 * Revision 3.3  1993/04/15  21:59:08  lindner
 * Fix for newer hpux systems
 *
 * Revision 3.2  1993/02/19  21:21:32  lindner
 * Fixed problems with signals
 *
 * Revision 3.1.1.1  1993/02/11  18:02:51  lindner
 * Gopher+1.2beta release
 *
 * Revision 1.1  1992/12/10  23:13:27  lindner
 * gopher 1.1 release
 *
 *
 *********************************************************************/

#ifdef __VMS

#ifndef VMS_SERVER
#define VMS_SERVER
#endif

#define GOPHERD_VERSION "2.1VMS"

#define PATCH_LEVEL "3"

#ifndef SERVER
#define SERVER
#endif

#endif

#include "conf.h"

#include "Locale.h"
#include <ctype.h>
#include <stdio.h>

#ifdef VMS_SERVER
#include <perror.h>
#include <file.h>
#include <types.h>
#include <socket.h>
#include <in.h>
#include <netdb.h>
#include <psldef.h>
#include <lnmdef.h>
#include <descrip.h>
#include <rms.h>
#include <iodef.h>
#include <ssdef.h>
#endif

#ifndef VMS_SERVER
#  include <sys/types.h>
#  include <pwd.h>
#endif

#include <errno.h>

#include <signal.h>

/** For logfile locking... **/
#ifndef VMS_SERVER
#if !defined(NeXT) && !defined(mips) && !defined(UMAX43) && !defined(sequent) && !defined(sony_news)
#  include <unistd.h>
#  include <fcntl.h>
#else
#  include <fcntl.h>
#  include <sys/file.h>
#  ifndef SEEK_END
#    define SEEK_END L_XTND
#    define SEEK_SET L_SET
#  endif
#endif
#endif
extern int errno;

#include "String.h"

#include <time.h>


#include "GDgopherdir.h"
#include "Dirent.h"

/*
 * Make sure we don't accidentally use a library routine instead of our
 * private restricted version.  Need to avoid the stat in struct stat
 * getting clobbered by the #define for the routine.
 */
typedef struct stat STATSTR;
#include "openers.h"
#undef open
#define open	barf_ropen
#undef fopen
#define fopen	barf_rfopen
#undef stat
#define stat	barf_rstat
#undef opendir
#define opendir	barf_ropendir
#undef chdir
#define chdir	barf_rchdir

#include "compatible.h"
#include "util.h"
#include "gopherdconf.h"

/**  Make sure that we can find out the max pathname size **/
#ifndef MAXPATHLEN
#  if !defined(VMS_SERVER)
#    include <sys/param.h>
#  endif
#  ifndef MAXPATHLEN
#    define MAXPATHLEN 256
#  endif
#endif


/*** This one must be last ***/
#include "globals.h"
.
Response: text/plain
Original URLgopher://bitreich.org/9/gopher2007/2007-gopher-mirror/gop...
Content-Typetext/plain; charset=utf-8