From: Bradley Nicholes Date: Fri, 2 Nov 2001 17:59:58 +0000 (+0000) Subject: Added the .def files for building the external modules for NetWare. Also X-Git-Tag: 2.0.28~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af2d217c32d5776b3243171e4c33ea240cb9bcf6;p=apache Added the .def files for building the external modules for NetWare. Also added the NLM startup code for NLMs that require Winsock support. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91729 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/netware/libprews.c b/modules/arch/netware/libprews.c new file mode 100644 index 0000000000..efa475fc69 --- /dev/null +++ b/modules/arch/netware/libprews.c @@ -0,0 +1,54 @@ +/*------------------------------------------------------------------ + These functions are to be called when the shared NLM starts and + stops. By using these functions instead of defining a main() + and calling ExitThread(TSR_THREAD, 0), the load time of the + shared NLM is faster and memory size reduced. + + You may also want to override these in your own Apache module + to do any cleanup other than the mechanism Apache modules + provide. +------------------------------------------------------------------*/ +#include +//#include "stddef.h" +#include "ws2nlm.h" + +int _NonAppStart +( + void *NLMHandle, + void *errorScreen, + const char *cmdLine, + const char *loadDirPath, + size_t uninitializedDataLength, + void *NLMFileHandle, + int (*readRoutineP)( int conn, void *fileHandle, size_t offset, + size_t nbytes, size_t *bytesRead, void *buffer ), + size_t customDataOffset, + size_t customDataSize, + int messageCount, + const char **messages +) +{ +#pragma unused(cmdLine) +#pragma unused(loadDirPath) +#pragma unused(uninitializedDataLength) +#pragma unused(NLMFileHandle) +#pragma unused(readRoutineP) +#pragma unused(customDataOffset) +#pragma unused(customDataSize) +#pragma unused(messageCount) +#pragma unused(messages) + + WSADATA wsaData; + + return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData); +} + +void _NonAppStop( void ) +{ + WSACleanup(); +} + +int _NonAppCheckUnload( void ) +{ + return 0; +} diff --git a/modules/arch/netware/mod_auth_anon.def b/modules/arch/netware/mod_auth_anon.def new file mode 100644 index 0000000000..ab6b138f81 --- /dev/null +++ b/modules/arch/netware/mod_auth_anon.def @@ -0,0 +1 @@ +EXPORT auth_anon_module diff --git a/modules/arch/netware/mod_auth_dbm.def b/modules/arch/netware/mod_auth_dbm.def new file mode 100644 index 0000000000..830f194d11 --- /dev/null +++ b/modules/arch/netware/mod_auth_dbm.def @@ -0,0 +1 @@ +EXPORT auth_dbm_module diff --git a/modules/arch/netware/mod_auth_digest.def b/modules/arch/netware/mod_auth_digest.def new file mode 100644 index 0000000000..6a3aa085d2 --- /dev/null +++ b/modules/arch/netware/mod_auth_digest.def @@ -0,0 +1 @@ +EXPORT auth_digest_module diff --git a/modules/arch/netware/mod_cern_meta.def b/modules/arch/netware/mod_cern_meta.def new file mode 100644 index 0000000000..5638325bbd --- /dev/null +++ b/modules/arch/netware/mod_cern_meta.def @@ -0,0 +1 @@ +EXPORT cern_meta_module diff --git a/modules/arch/netware/mod_echo.def b/modules/arch/netware/mod_echo.def new file mode 100644 index 0000000000..694135a52c --- /dev/null +++ b/modules/arch/netware/mod_echo.def @@ -0,0 +1,2 @@ +EXPORT echo_module + diff --git a/modules/arch/netware/mod_expires.def b/modules/arch/netware/mod_expires.def new file mode 100644 index 0000000000..bc416630b0 --- /dev/null +++ b/modules/arch/netware/mod_expires.def @@ -0,0 +1 @@ +EXPORT expires_module diff --git a/modules/arch/netware/mod_file_cache.def b/modules/arch/netware/mod_file_cache.def new file mode 100644 index 0000000000..8ab98cfb22 --- /dev/null +++ b/modules/arch/netware/mod_file_cache.def @@ -0,0 +1,2 @@ +EXPORT file_cache_module + diff --git a/modules/arch/netware/mod_headers.def b/modules/arch/netware/mod_headers.def new file mode 100644 index 0000000000..2fe35a858b --- /dev/null +++ b/modules/arch/netware/mod_headers.def @@ -0,0 +1 @@ +EXPORT headers_module diff --git a/modules/arch/netware/mod_info.def b/modules/arch/netware/mod_info.def new file mode 100644 index 0000000000..ce71cb37cf --- /dev/null +++ b/modules/arch/netware/mod_info.def @@ -0,0 +1 @@ +EXPORT info_module diff --git a/modules/arch/netware/mod_mime_magic.def b/modules/arch/netware/mod_mime_magic.def new file mode 100644 index 0000000000..95307476de --- /dev/null +++ b/modules/arch/netware/mod_mime_magic.def @@ -0,0 +1 @@ +EXPORT mime_magic_module diff --git a/modules/arch/netware/mod_proxy.def b/modules/arch/netware/mod_proxy.def new file mode 100644 index 0000000000..6e51eedb50 --- /dev/null +++ b/modules/arch/netware/mod_proxy.def @@ -0,0 +1 @@ +EXPORT proxy_module diff --git a/modules/arch/netware/mod_rewrite.def b/modules/arch/netware/mod_rewrite.def new file mode 100644 index 0000000000..cfdcf6b132 --- /dev/null +++ b/modules/arch/netware/mod_rewrite.def @@ -0,0 +1 @@ +EXPORT rewrite_module diff --git a/modules/arch/netware/mod_speling.def b/modules/arch/netware/mod_speling.def new file mode 100644 index 0000000000..3d45a6aa1a --- /dev/null +++ b/modules/arch/netware/mod_speling.def @@ -0,0 +1 @@ +EXPORT speling_module diff --git a/modules/arch/netware/mod_status.def b/modules/arch/netware/mod_status.def new file mode 100644 index 0000000000..9a5a32d46c --- /dev/null +++ b/modules/arch/netware/mod_status.def @@ -0,0 +1,2 @@ +EXPORT status_module + diff --git a/modules/arch/netware/mod_unique_id.def b/modules/arch/netware/mod_unique_id.def new file mode 100644 index 0000000000..0b72c1ecc0 --- /dev/null +++ b/modules/arch/netware/mod_unique_id.def @@ -0,0 +1 @@ +EXPORT unique_id_module diff --git a/modules/arch/netware/mod_usertrack.def b/modules/arch/netware/mod_usertrack.def new file mode 100644 index 0000000000..7264c41ecf --- /dev/null +++ b/modules/arch/netware/mod_usertrack.def @@ -0,0 +1 @@ +EXPORT usertrack_module diff --git a/modules/arch/netware/mod_vhost_alias.def b/modules/arch/netware/mod_vhost_alias.def new file mode 100644 index 0000000000..574b85f987 --- /dev/null +++ b/modules/arch/netware/mod_vhost_alias.def @@ -0,0 +1,2 @@ +EXPORT vhost_alias_module +