lib/servcis.c

Go to the documentation of this file.
00001 /* Stuff that's specific for Comp Science dept. web server goes here. 
00002  *
00003  * This file is copyright 2002 Jim Kent, but license is hereby
00004  * granted for all use - public, private or commercial. */
00005 
00006 #include "common.h"
00007 #include "portable.h"
00008 #include "portimpl.h"
00009 #include "obscure.h"
00010 #include "hash.h"
00011 
00012 static char const rcsid[] = "$Id: servcis.c,v 1.10 2006/06/19 22:02:57 hiram Exp $";
00013 
00014 static char *__trashDir = "../trash";
00015 
00016 static void _makeTempName(struct tempName *tn, char *base, char *suffix)
00017 /* Figure out a temp name, and how CGI and HTML will access it. */
00018 {
00019 char *tname;
00020 
00021 tname = rTempName(__trashDir, base, suffix);
00022 strcpy(tn->forCgi, tname);
00023 strcpy(tn->forHtml, tname);
00024 }
00025 
00026 static char *_cgiDir()
00027 {
00028 return "../cgi-bin/";
00029 }
00030 
00031 static char *_trashDir()
00032 {
00033 return __trashDir;
00034 }
00035 
00036 static double _speed()
00037 {
00038 return 3.0;
00039 }
00040 
00041     
00042 struct webServerSpecific wssDefault =
00043     {
00044     "default",
00045     _makeTempName,
00046     _cgiDir,
00047     _speed,
00048     _trashDir,
00049     };

Generated on Tue Dec 25 18:39:31 2007 for blat by  doxygen 1.5.2