summaryrefslogtreecommitdiffstats
path: root/cpukit/httpd/rom.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-09-01 10:57:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-09-01 10:57:21 +0000
commita6b4c0df5f74d1238337f41d1d13f4f168ad01f1 (patch)
treeae171319a76a707e9f3aa638b7c690e40c9f5d5e /cpukit/httpd/rom.c
parent2000-08-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-a6b4c0df5f74d1238337f41d1d13f4f168ad01f1.tar.bz2
2000-08-30 Joel Sherrill <joel@OARcorp.com>
* Merged version 2.1 of GoAhead webserver. This update was submitted by Antti P Miettinen <antti.p.miettinen@nokia.com>. * NOTES, base64.c, ejIntrn.h, emfdb.c, emfdb.h, md5.h, md5c.c, um.c, um.h: New files. * wbase64.c: Removed. * Makefile.am, asp.c, balloc.c, default.c, ej.h, ejlex.c, ejparse.c, form.c, h.c, handler.c, mime.c, misc.c, ringq.c, rom.c, security.c, socket.c, sym.c, uemf.c, uemf.h, url.c, value.c, webcomp.c, webmain.c, webpage.c, webrom.c, webs.c, webs.h, websuemf.c, wsIntrn.h: Modified.
Diffstat (limited to 'cpukit/httpd/rom.c')
-rw-r--r--cpukit/httpd/rom.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/cpukit/httpd/rom.c b/cpukit/httpd/rom.c
index 4e6c8f1e93..6bb8a8da99 100644
--- a/cpukit/httpd/rom.c
+++ b/cpukit/httpd/rom.c
@@ -1,7 +1,7 @@
/*
* rom.c -- Support for ROMed page retrieval.
*
- * Copyright (c) Go Ahead Software Inc., 1995-1999. All Rights Reserved.
+ * Copyright (c) GoAhead Software Inc., 1995-2000. All Rights Reserved.
*
* See the file "license.txt" for usage and redistribution license requirements
*/
@@ -20,13 +20,6 @@
#include <stdlib.h>
-#if CE
-#define EINVAL 22
-#define EBADF 9
-#else
-#include <errno.h>
-#endif
-
#include "wsIntrn.h"
/******************************** Local Data **********************************/
@@ -46,7 +39,7 @@ int websRomOpen()
int nchars;
char_t name[SYM_MAX];
- romTab = symOpen(64);
+ romTab = symOpen(WEBS_SYM_INIT);
for (wip = websRomPageIndex; wip->path; wip++) {
gstrncpy(name, wip->path, SYM_MAX);
@@ -67,7 +60,7 @@ int websRomOpen()
void websRomClose()
{
- symClose(romTab, NULL);
+ symClose(romTab);
}
/******************************************************************************/
@@ -105,7 +98,7 @@ void websRomPageClose(int fd)
* Stat a web page
*/
-int websRomPageStat(char_t *path, websStatType* sbuf)
+int websRomPageStat(char_t *path, websStatType *sbuf)
{
websRomPageIndexType *wip;
sym_t *sp;
@@ -193,6 +186,6 @@ long websRomPageSeek(webs_t wp, long offset, int origin)
return (wip->pos = pos);
}
-#endif
+#endif /* WEBS_PAGE_ROM */
/******************************************************************************/