summaryrefslogtreecommitdiffstats
path: root/cpukit/httpd/wsIntrn.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-04-11 14:46:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-04-11 14:46:55 +0000
commitee3afa2e2ae017b22156164763a4099702ca472d (patch)
treed41c03f7bf2396e7e01147a9ffd75c7a0a71232c /cpukit/httpd/wsIntrn.h
parent2003-04-10 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-ee3afa2e2ae017b22156164763a4099702ca472d.tar.bz2
2002-04-10 Mike Siers <mikes@poliac.com>
* rtems_webserver/NOTES, rtems_webserver/asp.c, rtems_webserver/balloc.c, rtems_webserver/default.c, rtems_webserver/ej.h, rtems_webserver/ejIntrn.h, rtems_webserver/ejlex.c, rtems_webserver/ejparse.c, rtems_webserver/emfdb.c, rtems_webserver/emfdb.h, rtems_webserver/form.c, rtems_webserver/h.c, rtems_webserver/handler.c, rtems_webserver/license.txt, rtems_webserver/md5.h, rtems_webserver/md5c.c, rtems_webserver/mime.c, rtems_webserver/misc.c, rtems_webserver/ringq.c, rtems_webserver/rom.c, rtems_webserver/security.c, rtems_webserver/sock.c, rtems_webserver/sym.c, rtems_webserver/uemf.c, rtems_webserver/uemf.h, rtems_webserver/um.c, rtems_webserver/um.h, rtems_webserver/url.c, rtems_webserver/value.c, rtems_webserver/wbase64.c, rtems_webserver/webcomp.c, rtems_webserver/webpage.c, rtems_webserver/webrom.c, rtems_webserver/webs.c, rtems_webserver/webs.h, rtems_webserver/websuemf.c, rtems_webserver/wsIntrn.h: Update to GoAhead Webserver 2.1.4. The following URL is the release notes from GoAhead. http://data.goahead.com/Software/Webserver/2.1.4/release.htm I have only done a minimal amount of testing (i.e. the network demo program works fine). Please try this out and let me know if it works. The patch needs to be applied on the c/src/libnetworking/rtems_webserver directory.
Diffstat (limited to 'cpukit/httpd/wsIntrn.h')
-rw-r--r--cpukit/httpd/wsIntrn.h42
1 files changed, 25 insertions, 17 deletions
diff --git a/cpukit/httpd/wsIntrn.h b/cpukit/httpd/wsIntrn.h
index 8f230d6fbe..9fb11f9937 100644
--- a/cpukit/httpd/wsIntrn.h
+++ b/cpukit/httpd/wsIntrn.h
@@ -4,6 +4,8 @@
* Copyright (c) GoAhead Software Inc., 1992-2000. All Rights Reserved.
*
* See the file "license.txt" for information on usage and redistribution
+ *
+ * $Id$
*/
#ifndef _h_WEBS_INTERNAL
@@ -19,7 +21,7 @@
/*********************************** Defines **********************************/
/*
- * Define this to enable login of web accesses to a file
+ * Define this to enable logging of web accesses to a file
* #define WEBS_LOG_SUPPORT 1
*
* Define this to enable HTTP/1.1 keep alive support
@@ -46,45 +48,52 @@
#include <string.h>
#include <stdarg.h>
-#if WIN
+#ifdef NETWARE
+ #include <fcntl.h>
+ #include <sys/stat.h>
+ #include <signal.h>
+ #include <io.h>
+#endif
+
+#ifdef WIN
#include <fcntl.h>
#include <sys/stat.h>
#include <io.h>
#endif
-#if CE
-#if ! UEMF
+#ifdef CE
+#ifndef UEMF
#include <io.h>
#endif
#endif
-#if NW
+#ifdef NW
#include <fcntl.h>
#include <sys/stat.h>
#endif
-#if SCOV5
+#ifdef SCOV5
#include <fcntl.h>
#include <sys/stat.h>
#include <signal.h>
#include <unistd.h>
#endif
-#if LYNX
+#ifdef LYNX
#include <fcntl.h>
#include <sys/stat.h>
#include <signal.h>
#include <unistd.h>
#endif
-#if UNIX
+#ifdef UNIX
#include <fcntl.h>
#include <sys/stat.h>
#include <signal.h>
#include <unistd.h>
#endif
-#if QNX4
+#ifdef QNX4
#include <fcntl.h>
#include <sys/stat.h>
#include <signal.h>
@@ -92,24 +101,24 @@
#include <unix.h>
#endif
-#if UW
+#ifdef UW
#include <fcntl.h>
#include <sys/stat.h>
#endif
-#if VXWORKS
+#ifdef VXWORKS
#include <vxWorks.h>
#include <fcntl.h>
#include <sys/stat.h>
#endif
-#if SOLARIS
+#ifdef SOLARIS
#include <macros.h>
#include <fcntl.h>
#include <sys/stat.h>
#endif
-#if UEMF
+#ifdef UEMF
#include "uemf.h"
#include "ejIntrn.h"
#else
@@ -134,7 +143,6 @@
#define PAGE_READ_BUFSIZE 512 /* bytes read from page files */
#define MAX_PORT_LEN 10 /* max digits in port number */
#define WEBS_SYM_INIT 64 /* initial # of sym table entries */
-#define WEBS_VERSION_STR T("2.1.3") /* version of web server s/w */
/*
* URL handler structure. Stores the leading URL path and the handler
@@ -201,7 +209,7 @@ typedef struct {
*/
typedef struct {
char_t *path; /* Web page URL path */
- const unsigned char *page; /* Web page data */
+ unsigned char *page; /* Web page data */
int size; /* Size of web page in bytes */
int pos; /* Current read position */
} websRomPageIndexType;
@@ -285,13 +293,13 @@ extern int strcmpci(char_t* s1, char_t* s2);
* Prototypes for functions available when running as part of the
* GoAhead Embedded Management Framework (EMF)
*/
-#if EMF
+#ifdef EMF
extern int websEmfOpen();
extern void websEmfClose();
extern void websSetEmfEnvironment(webs_t wp);
#endif
-#if CE
+#ifdef CE
extern int writeUniToAsc(int fid, void *buf, unsigned int len);
extern int readAscToUni(int fid, void **buf, unsigned int len);
#endif