00001
00002
00003
00004
00005
00006 #include "common.h"
00007 #include "portable.h"
00008 #include "portimpl.h"
00009 #include "obscure.h"
00010
00011 static char const rcsid[] = "$Id: servpws.c,v 1.6 2006/06/19 22:02:57 hiram Exp $";
00012
00013 static char *__trashDir = "..\\trash";
00014
00015 static void _makeTempName(struct tempName *tn, char *base, char *suffix)
00016
00017 {
00018 long tempIx = incCounterFile("tcounter");
00019 sprintf(tn->forCgi, "%s\\%s%ld%s", __trashDir, base, tempIx, suffix);
00020 sprintf(tn->forHtml, "%s\\%s%ld%s", __trashDir, base, tempIx, suffix);
00021 }
00022
00023 static char *_cgiDir()
00024 {
00025 return "../cgi-bin/";
00026 }
00027
00028 static char *_trashDir()
00029 {
00030 return __trashDir;
00031 }
00032
00033 static double _speed()
00034 {
00035 return 1.25;
00036 }
00037
00038 struct webServerSpecific wssMicrosoftPWS =
00039 {
00040 "Microsoft-PWS",
00041 _makeTempName,
00042 _cgiDir,
00043 _speed,
00044 _trashDir,
00045 };