00001
00002
00003
00004
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
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 };