lib/servBrcMcw.c

Go to the documentation of this file.
00001 /* Stuff that's specific for .brc.mcw.edu server goes here. 
00002  *
00003  * This file is copyright 2004 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: servBrcMcw.c,v 1.3 2006/06/19 22:02:56 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 struct webServerSpecific wssBrcMcw =
00042     {
00043     "default",
00044     _makeTempName,
00045     _cgiDir,
00046     _speed,
00047     _trashDir,
00048     };

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