~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to modules/arch/netware/libprews.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#ifdef USE_WINSOCK
 
30
#include "novsock2.h"
 
31
#endif
 
32
 
 
33
int _NonAppStart
 
34
(
 
35
    void        *NLMHandle,
 
36
    void        *errorScreen,
 
37
    const char  *cmdLine,
 
38
    const char  *loadDirPath,
 
39
    size_t      uninitializedDataLength,
 
40
    void        *NLMFileHandle,
 
41
    int         (*readRoutineP)( int conn, void *fileHandle, size_t offset,
 
42
                    size_t nbytes, size_t *bytesRead, void *buffer ),
 
43
    size_t      customDataOffset,
 
44
    size_t      customDataSize,
 
45
    int         messageCount,
 
46
    const char  **messages
 
47
)
 
48
{
 
49
#pragma unused(cmdLine)
 
50
#pragma unused(loadDirPath)
 
51
#pragma unused(uninitializedDataLength)
 
52
#pragma unused(NLMFileHandle)
 
53
#pragma unused(readRoutineP)
 
54
#pragma unused(customDataOffset)
 
55
#pragma unused(customDataSize)
 
56
#pragma unused(messageCount)
 
57
#pragma unused(messages)
 
58
 
 
59
#ifdef USE_WINSOCK
 
60
    WSADATA wsaData;
 
61
 
 
62
    return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData);
 
63
#else
 
64
    return 0;
 
65
#endif
 
66
}
 
67
 
 
68
void _NonAppStop( void )
 
69
{
 
70
#ifdef USE_WINSOCK
 
71
    WSACleanup();
 
72
#else
 
73
    return;0;
 
74
#endif
 
75
}
 
76
 
 
77
int  _NonAppCheckUnload( void )
 
78
{
 
79
        return 0;
 
80
}