upload http
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / modules / arch / netware / libprews.c
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements.  See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License.  You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*------------------------------------------------------------------
18   These functions are to be called when the shared NLM starts and
19   stops.  By using these functions instead of defining a main()
20   and calling ExitThread(TSR_THREAD, 0), the load time of the
21   shared NLM is faster and memory size reduced.
22    
23   You may also want to override these in your own Apache module
24   to do any cleanup other than the mechanism Apache modules
25   provide.
26 ------------------------------------------------------------------*/
27 #include <netware.h>
28 //#include "stddef.h"
29 #include "novsock2.h"
30
31 int _NonAppStart
32 (
33     void        *NLMHandle,
34     void        *errorScreen,
35     const char  *cmdLine,
36     const char  *loadDirPath,
37     size_t      uninitializedDataLength,
38     void        *NLMFileHandle,
39     int         (*readRoutineP)( int conn, void *fileHandle, size_t offset,
40                     size_t nbytes, size_t *bytesRead, void *buffer ),
41     size_t      customDataOffset,
42     size_t      customDataSize,
43     int         messageCount,
44     const char  **messages
45 )
46 {
47 #pragma unused(cmdLine)
48 #pragma unused(loadDirPath)
49 #pragma unused(uninitializedDataLength)
50 #pragma unused(NLMFileHandle)
51 #pragma unused(readRoutineP)
52 #pragma unused(customDataOffset)
53 #pragma unused(customDataSize)
54 #pragma unused(messageCount)
55 #pragma unused(messages)
56
57     WSADATA wsaData;
58     
59     return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData);
60 }
61
62 void _NonAppStop( void )
63 {
64     WSACleanup();
65 }
66
67 int  _NonAppCheckUnload( void )
68 {
69         return 0;
70 }