summaryrefslogtreecommitdiffstats
path: root/modules/arch/win32/mod_isapi.h
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-07-21 11:19:19 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-07-21 11:19:19 +0200
commit0ecf0cce280db90e5c41460e784dbb5e6da6bd68 (patch)
tree3662194fe25ac369e832b5917b664771f733f154 /modules/arch/win32/mod_isapi.h
parent Cut-n-paste error (diff)
downloadapache2-0ecf0cce280db90e5c41460e784dbb5e6da6bd68.tar.xz
apache2-0ecf0cce280db90e5c41460e784dbb5e6da6bd68.zip
A half hour to waste waiting for builds... this is what you get.
mod_isapi will build and run on OSX... presume others as well unless I choose some awful errno values for portability. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch/win32/mod_isapi.h')
-rw-r--r--modules/arch/win32/mod_isapi.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/modules/arch/win32/mod_isapi.h b/modules/arch/win32/mod_isapi.h
index 3a4ffd951b..6c96db4ba6 100644
--- a/modules/arch/win32/mod_isapi.h
+++ b/modules/arch/win32/mod_isapi.h
@@ -78,7 +78,8 @@ typedef (APR_THREAD_FUNC *PFN_GETEXTENSIONVERSION)(HSE_VERSION_INFO *ver_info);
/* Our internal 'HCONN' representation, always opaque to the user.
*/
-typedef struct isapi_cid isapi_cid, *HCONN;
+typedef struct isapi_cid isapi_cid;
+typedef struct isapi_cid *HCONN;
/* Prototypes of the essential functions exposed by mod_isapi
* for the module to communicate with Apache.
@@ -201,7 +202,7 @@ typedef struct HSE_TF_INFO {
} HSE_TF_INFO;
typedef struct HSE_URL_MAPEX_INFO {
- char lpszPath[MAX_PATH];
+ char lpszPath[260];
apr_uint32_t dwFlags;
apr_uint32_t cchMatchingPath;
apr_uint32_t cchMatchingURL;
@@ -251,6 +252,27 @@ typedef apr_uint32_t (APR_THREAD_FUNC
#define HSE_STATUS_PENDING 3 /* Emulated (thread lock) */
#define HSE_STATUS_ERROR 4
+/* Anticipated error code for common faults within mod_isapi itself
+ */
+#ifndef ERROR_INSUFFICIENT_BUFFER
+#define ERROR_INSUFFICIENT_BUFFER ENOBUFS
+#endif
+#ifndef ERROR_INVALID_INDEX
+#define ERROR_INVALID_INDEX EINVAL
+#endif
+#ifndef ERROR_INVALID_PARAMETER
+#define ERROR_INVALID_PARAMETER EINVAL
+#endif
+#ifndef ERROR_READ_FAULT
+#define ERROR_READ_FAULT EIO
+#endif
+#ifndef ERROR_WRITE_FAULT
+#define ERROR_WRITE_FAULT EIO
+#endif
+#ifndef ERROR_SUCCESS
+#define ERROR_SUCCESS 0
+#endif
+
/* Valid flags passed with TerminateExtension()
*/
#define HSE_TERM_MUST_UNLOAD 1