apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/misc/netware libprews.c
Date Tue, 23 Oct 2001 23:38:55 GMT
bnicholes    01/10/23 16:38:55

  Modified:    misc/netware libprews.c
  Log:
  Updated to the LibC NLM startup code
  
  Revision  Changes    Path
  1.2       +33 -4     apr/misc/netware/libprews.c
  
  Index: libprews.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/netware/libprews.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- libprews.c	2001/10/19 19:42:14	1.1
  +++ libprews.c	2001/10/23 23:38:55	1.2
  @@ -8,18 +8,47 @@
     to do any cleanup other than the mechanism Apache modules
     provide.
   ------------------------------------------------------------------*/
  -#include "stddef.h"
  +#include <netware.h>
  +//#include "stddef.h"
   #include "ws2nlm.h"
   
  -int _lib_start_ws()
  +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);
   }
   
  -int _lib_stop_ws()
  +void _NonAppStop( void )
   {
       WSACleanup();
  -    return 0;
  +}
  +
  +int  _NonAppCheckUnload( void )
  +{
  +	return 0;
   }
  
  
  

Mime
View raw message