/******************************************************************** * wilkinson * 3.3VMS * 1995/09/06 13:00 * gopher_root1:[gopher.g2.vms2_13.gopherd]serverutil.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: serverutil.h * declarations of utility functions ********************************************************************* * Revision History: * serverutil.h,v * Revision 3.3VMS 1995/09/06 13:00 wilkinson * Consolodate VMS/Unix source code for server as well as client * * Revision 3.3 1995/02/07 08:37:38 lindner * Rewrite of mailfile/multifile parsing * * Revision 3.2 1994/12/20 17:20:56 lindner * Put environment variable setter here.. * * Revision 3.1 1993/06/22 07:06:58 lindner * New header file.. * * *********************************************************************/ #ifndef G_SERVERUTIL_H #define G_SERVERUTIL_H typedef int Splittype; #define SPLIT_MAIL -1 #define SPLIT_UNKNOWN -2 void GplusError( /* sockfd, errclass, text, moretext */); void Abortoutput( /* sockfd, errmsg */); #ifndef VMS_SERVER boolean Setuid_username( /*username */); #else void str_tolower(char *); void LOGGopher(/* int sockfd, char *fmt, ... */); void VMS$DisableAllPrivs(); char *VMS$Validate_Filespec(char *); int VMS$Continuation(char *, FILE *, int, char); int VMS$system(char *command); char *VMS$WWW_to_VMS(char *WWWname, char GType); char *VMS$FormatTokens(char *fmt, char *path, off_t *size, time_t *tstamp, int Port, char *Host, int Type, char *Admin, CMDobj *Cmd); #endif void inet_netnames(/* sockfd, host_name, ipnum*/); #ifndef VMS_SERVER int is_mail_from_line( /* line */); #endif char *mtm_basename( /* string */); boolean Cachetimedout(); boolean isadir(); #ifndef VMS_SERVER void SetEnvironmentVariable(); Splittype is_multipartfile(); #else void VMS$SetEnv(); #endif #endif .