2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 /***************************************************************************
19 * Description: Netware Wrapper *
20 * Author: Mike Anderson <mmander@novell.com> *
21 * Version: $Revision: 466585 $ *
22 ***************************************************************************/
35 /* Apache 2/APR uses NOVELL_LIBC which has a different way of handling
36 * "library" nlms. If we aren't on LIBC, use the old method
39 #ifndef __NOVELL_LIBC__
47 * Main entry point -- don't do much more than I've provided
56 ExitThread(TSR_THREAD, 0);
58 #else /* __NOVELL_LIBC__ */
60 /* Since we are on LibC, we need to handle our own startup and shutdown */
69 const char *loadDirPath,
70 size_t uninitializedDataLength,
72 int (*readRoutineP) (int conn, void *fileHandle, size_t offset,
73 size_t nbytes, size_t * bytesRead, void *buffer),
74 size_t customDataOffset,
75 size_t customDataSize, int messageCount, const char **messages)
77 #pragma unused(cmdLine)
78 #pragma unused(loadDirPath)
79 #pragma unused(uninitializedDataLength)
80 #pragma unused(NLMFileHandle)
81 #pragma unused(readRoutineP)
82 #pragma unused(customDataOffset)
83 #pragma unused(customDataSize)
84 #pragma unused(messageCount)
85 #pragma unused(messages)
89 return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData);
92 void _NonAppStop(void)
97 int _NonAppCheckUnload(void)
101 #endif /* __NOVELL_LIBC__ */