rbb         99/06/15 10:43:49

  Modified:    apr/file_io/win32 file_io.def
               apr/misc/win32 misc.dsp misc.h start.c
               apr/test testfile.dsp testproc.dsp testsock.c
               apr/threadproc/win32 proc.c
               include  apr_general.h apr_thread_proc.h
  Added:       apr/test client.dsp server.dsp test.dsw testsock.dsp
  Log:
  Final changes to get network tests working on Windows.  Also added a few new
  functions on Windows.  Lastly, cleanup up some of the files to make compiling
  cleaner.
  
  Revision  Changes    Path
  1.2       +1 -1      apache-apr/apr/file_io/win32/file_io.def
  
  Index: file_io.def
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/file_io/win32/file_io.def,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- file_io.def       1999/06/03 19:43:44     1.1
  +++ file_io.def       1999/06/15 17:43:06     1.2
  @@ -28,6 +28,6 @@
        ap_create_pipe   @21
        ap_read   @22
        ap_write   @23
  -     ap_seek   @24\
  +     ap_seek   @24
   
        
  
  
  
  1.2       +1 -1      apache-apr/apr/misc/win32/misc.dsp
  
  Index: misc.dsp
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/misc/win32/misc.dsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- misc.dsp  1999/06/07 12:10:37     1.1
  +++ misc.dsp  1999/06/15 17:43:14     1.2
  @@ -77,7 +77,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 
/pdbtype:sept
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\..\lib\Debug\lib.lib /nologo /subsystem:windows /dll /debug 
/machine:I386 /pdbtype:sept
  +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ws2_32.lib ..\..\lib\Debug\lib.lib /nologo /subsystem:windows /dll 
/debug /machine:I386 /pdbtype:sept
   
   !ENDIF 
   
  
  
  
  1.2       +3 -0      apache-apr/apr/misc/win32/misc.h
  
  Index: misc.h
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/misc/win32/misc.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- misc.h    1999/06/07 12:10:37     1.1
  +++ misc.h    1999/06/15 17:43:15     1.2
  @@ -67,5 +67,8 @@
       void *prog_data;
   };
   
  +#define WSAHighByte 2
  +#define WSALowByte 0
  +
   #endif  /* ! MISC_H */
   
  
  
  
  1.4       +24 -1     apache-apr/apr/misc/win32/start.c
  
  Index: start.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/misc/win32/start.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- start.c   1999/06/08 17:05:48     1.3
  +++ start.c   1999/06/15 17:43:16     1.4
  @@ -61,8 +61,18 @@
   #include "apr_lib.h"
   #include <string.h>
   
  +ap_status_t clean_cont(void *data)
  +{
  +    WSACleanup();
  +    return APR_SUCCESS;
  +}
  +    
  +
   ap_status_t ap_create_context(ap_context_t *cont, void *data, ap_context_t 
**newcont)
   {
  +    int iVersionRequested;
  +    WSADATA wsaData;
  +    int err;
       ap_context_t *new;
       ap_pool_t *pool;
   
  @@ -98,7 +108,20 @@
           new->signal_safe = 0;
           new->cancel_safe = 0;
       }
  - 
  +
  +    iVersionRequested = MAKEWORD(WSAHighByte, WSALowByte);
  +    err = WSAStartup((WORD) iVersionRequested, &wsaData);
  +    if (err) {
  +        return APR_EEXIST;
  +    }
  +    if (LOBYTE(wsaData.wVersion) != WSAHighByte ||
  +        HIBYTE(wsaData.wVersion) != WSALowByte) {
  +         WSACleanup();
  +         return APR_EEXIST;
  +    }
  +
  +    ap_register_cleanup(new, NULL, clean_cont, NULL);
  +
       *newcont = new;
       return APR_SUCCESS;
   }
  
  
  
  1.3       +3 -3      apache-apr/apr/test/testfile.dsp
  
  Index: testfile.dsp
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/test/testfile.dsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testfile.dsp      1999/06/08 15:35:24     1.2
  +++ testfile.dsp      1999/06/15 17:43:23     1.3
  @@ -42,7 +42,7 @@
   # PROP Ignore_Export_Lib 0
   # PROP Target_Dir ""
   # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D 
"_MBCS" /YX /FD /c
  -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D 
"_MBCS" /YX /FD /c
  +# ADD CPP /nologo /W3 /GX /O2 /I "..\include" /I "..\..\include" /D "WIN32" 
/D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
   # ADD BASE RSC /l 0x409 /d "NDEBUG"
   # ADD RSC /l 0x409 /d "NDEBUG"
   BSC32=bscmake.exe
  @@ -50,7 +50,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
  -# ADD LINK32 ..\file_io\win32\Debug\file_io.lib ..\lib\Debug\lib.lib 
..\misc\win32\Debug\misc.lib ..\threadproc\win32\Debug\threadproc.lib 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo 
/subsystem:console /debug /machine:I386
  +# ADD LINK32 ..\file_io\win32\Debug\file_io.lib ..\lib\Debug\lib.lib 
..\misc\win32\Debug\misc.lib ..\threadproc\win32\Debug\threadproc.lib 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
..\network_io\win32\Debug /nologo /subsystem:console /debug /machine:I386
   
   !ELSEIF  "$(CFG)" == "testfile - Win32 Debug"
   
  @@ -74,7 +74,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 
/pdbtype:sept
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
  +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console /debug 
/machine:I386 /pdbtype:sept
   
   !ENDIF 
   
  
  
  
  1.2       +2 -2      apache-apr/apr/test/testproc.dsp
  
  Index: testproc.dsp
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/test/testproc.dsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testproc.dsp      1999/06/08 15:35:26     1.1
  +++ testproc.dsp      1999/06/15 17:43:24     1.2
  @@ -50,7 +50,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\file_io\win32\Debug\file_io.lib ..\threadproc\win32\Debug\threadproc.lib 
/nologo /subsystem:console /machine:I386
  +# ADD LINK32 ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\file_io\win32\Debug\file_io.lib ..\threadproc\win32\Debug\threadproc.lib 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
..\network_io\win32\Debug /nologo /subsystem:console /machine:I386
   
   !ELSEIF  "$(CFG)" == "testproc - Win32 Debug"
   
  @@ -74,7 +74,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 
/pdbtype:sept
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
  +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console /debug 
/machine:I386 /pdbtype:sept
   
   !ENDIF 
   
  
  
  
  1.13      +5 -0      apache-apr/apr/test/testsock.c
  
  Index: testsock.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/test/testsock.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- testsock.c        1999/06/02 18:44:57     1.12
  +++ testsock.c        1999/06/15 17:43:25     1.13
  @@ -94,6 +94,9 @@
           fprintf(stderr, "Problem creating proc attrs\n");
           exit(-1);
       }
  +
  +    ap_setprocattr_detach(attr1, FALSE); 
  +    ap_setprocattr_detach(attr2, FALSE); 
    
       args[0] = ap_pstrdup(context, "server");
       args[1] = NULL; 
  @@ -121,4 +124,6 @@
           ap_wait_proc(proc1, APR_WAIT);
       }
       fprintf(stdout, "Network test completed.\n");   
  +
  +    return 1;
   }
  
  
  
  1.1                  apache-apr/apr/test/client.dsp
  
  Index: client.dsp
  ===================================================================
  # Microsoft Developer Studio Project File - Name="client" - Package Owner=<4>
  # Microsoft Developer Studio Generated Build File, Format Version 5.00
  # ** DO NOT EDIT **
  
  # TARGTYPE "Win32 (x86) Console Application" 0x0103
  
  CFG=client - Win32 Debug
  !MESSAGE This is not a valid makefile. To build this project using NMAKE,
  !MESSAGE use the Export Makefile command and run
  !MESSAGE 
  !MESSAGE NMAKE /f "client.mak".
  !MESSAGE 
  !MESSAGE You can specify a configuration when running NMAKE
  !MESSAGE by defining the macro CFG on the command line. For example:
  !MESSAGE 
  !MESSAGE NMAKE /f "client.mak" CFG="client - Win32 Debug"
  !MESSAGE 
  !MESSAGE Possible choices for configuration are:
  !MESSAGE 
  !MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application")
  !MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application")
  !MESSAGE 
  
  # Begin Project
  # PROP Scc_ProjName ""
  # PROP Scc_LocalPath ""
  CPP=cl.exe
  RSC=rc.exe
  
  !IF  "$(CFG)" == "client - Win32 Release"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 0
  # PROP BASE Output_Dir "Release"
  # PROP BASE Intermediate_Dir "Release"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 0
  # PROP Output_Dir "Release"
  # PROP Intermediate_Dir "Release"
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D 
"_MBCS" /YX /FD /c
  # ADD CPP /nologo /W3 /GX /O2 /I "..\include" /I "..\..\include" /D "WIN32" 
/D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD BASE RSC /l 0x409 /d "NDEBUG"
  # ADD RSC /l 0x409 /d "NDEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib /nologo /subsystem:console /machine:I386
  # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console 
/machine:I386
  
  !ELSEIF  "$(CFG)" == "client - Win32 Debug"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 1
  # PROP BASE Output_Dir "client__"
  # PROP BASE Intermediate_Dir "client__"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 1
  # PROP Output_Dir "client"
  # PROP Intermediate_Dir "client"
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D 
"_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\include" /I "..\..\include" /D 
"WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "HAVE_STDIO_H" /YX /FD /c
  # ADD BASE RSC /l 0x409 /d "_DEBUG"
  # ADD RSC /l 0x409 /d "_DEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
  # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console /debug 
/machine:I386 /pdbtype:sept
  
  !ENDIF 
  
  # Begin Target
  
  # Name "client - Win32 Release"
  # Name "client - Win32 Debug"
  # Begin Source File
  
  SOURCE=.\client.c
  # End Source File
  # End Target
  # End Project
  
  
  
  1.1                  apache-apr/apr/test/server.dsp
  
  Index: server.dsp
  ===================================================================
  # Microsoft Developer Studio Project File - Name="server" - Package Owner=<4>
  # Microsoft Developer Studio Generated Build File, Format Version 5.00
  # ** DO NOT EDIT **
  
  # TARGTYPE "Win32 (x86) Console Application" 0x0103
  
  CFG=server - Win32 Debug
  !MESSAGE This is not a valid makefile. To build this project using NMAKE,
  !MESSAGE use the Export Makefile command and run
  !MESSAGE 
  !MESSAGE NMAKE /f "server.mak".
  !MESSAGE 
  !MESSAGE You can specify a configuration when running NMAKE
  !MESSAGE by defining the macro CFG on the command line. For example:
  !MESSAGE 
  !MESSAGE NMAKE /f "server.mak" CFG="server - Win32 Debug"
  !MESSAGE 
  !MESSAGE Possible choices for configuration are:
  !MESSAGE 
  !MESSAGE "server - Win32 Release" (based on "Win32 (x86) Console Application")
  !MESSAGE "server - Win32 Debug" (based on "Win32 (x86) Console Application")
  !MESSAGE 
  
  # Begin Project
  # PROP Scc_ProjName ""
  # PROP Scc_LocalPath ""
  CPP=cl.exe
  RSC=rc.exe
  
  !IF  "$(CFG)" == "server - Win32 Release"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 0
  # PROP BASE Output_Dir "Release"
  # PROP BASE Intermediate_Dir "Release"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 0
  # PROP Output_Dir "Release"
  # PROP Intermediate_Dir "Release"
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D 
"_MBCS" /YX /FD /c
  # ADD CPP /nologo /W3 /GX /O2 /I "..\include" /I "..\..\include" /D "WIN32" 
/D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD BASE RSC /l 0x409 /d "NDEBUG"
  # ADD RSC /l 0x409 /d "NDEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib /nologo /subsystem:console /machine:I386
  # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console 
/machine:I386
  
  !ELSEIF  "$(CFG)" == "server - Win32 Debug"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 1
  # PROP BASE Output_Dir "server__"
  # PROP BASE Intermediate_Dir "server__"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 1
  # PROP Output_Dir "server"
  # PROP Intermediate_Dir "server"
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D 
"_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\include" /I "..\..\include" /D 
"WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "HAVE_STDIO_H" /YX /FD /c
  # ADD BASE RSC /l 0x409 /d "_DEBUG"
  # ADD RSC /l 0x409 /d "_DEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
  # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console /debug 
/machine:I386 /pdbtype:sept
  
  !ENDIF 
  
  # Begin Target
  
  # Name "server - Win32 Release"
  # Name "server - Win32 Debug"
  # Begin Source File
  
  SOURCE=.\server.c
  # End Source File
  # End Target
  # End Project
  
  
  
  1.1                  apache-apr/apr/test/test.dsw
  
  Index: test.dsw
  ===================================================================
  Microsoft Developer Studio Workspace File, Format Version 5.00
  # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
  
  
###############################################################################
  
  Project: "client"=".\client.dsp" - Package Owner=<4>
  
  Package=<5>
  {{{
  }}}
  
  Package=<4>
  {{{
  }}}
  
  
###############################################################################
  
  Project: "server"=".\server.dsp" - Package Owner=<4>
  
  Package=<5>
  {{{
  }}}
  
  Package=<4>
  {{{
  }}}
  
  
###############################################################################
  
  Project: "testfile"=".\testfile.dsp" - Package Owner=<4>
  
  Package=<5>
  {{{
  }}}
  
  Package=<4>
  {{{
  }}}
  
  
###############################################################################
  
  Project: "testproc"=".\testproc.dsp" - Package Owner=<4>
  
  Package=<5>
  {{{
  }}}
  
  Package=<4>
  {{{
  }}}
  
  
###############################################################################
  
  Project: "testsock"=".\testsock.dsp" - Package Owner=<4>
  
  Package=<5>
  {{{
  }}}
  
  Package=<4>
  {{{
      Begin Project Dependency
      Project_Dep_Name client
      End Project Dependency
      Begin Project Dependency
      Project_Dep_Name server
      End Project Dependency
  }}}
  
  
###############################################################################
  
  Global:
  
  Package=<5>
  {{{
  }}}
  
  Package=<3>
  {{{
  }}}
  
  
###############################################################################
  
  
  
  
  1.1                  apache-apr/apr/test/testsock.dsp
  
  Index: testsock.dsp
  ===================================================================
  # Microsoft Developer Studio Project File - Name="testsock" - Package 
Owner=<4>
  # Microsoft Developer Studio Generated Build File, Format Version 5.00
  # ** DO NOT EDIT **
  
  # TARGTYPE "Win32 (x86) Console Application" 0x0103
  
  CFG=testsock - Win32 Debug
  !MESSAGE This is not a valid makefile. To build this project using NMAKE,
  !MESSAGE use the Export Makefile command and run
  !MESSAGE 
  !MESSAGE NMAKE /f "testsock.mak".
  !MESSAGE 
  !MESSAGE You can specify a configuration when running NMAKE
  !MESSAGE by defining the macro CFG on the command line. For example:
  !MESSAGE 
  !MESSAGE NMAKE /f "testsock.mak" CFG="testsock - Win32 Debug"
  !MESSAGE 
  !MESSAGE Possible choices for configuration are:
  !MESSAGE 
  !MESSAGE "testsock - Win32 Release" (based on\
   "Win32 (x86) Console Application")
  !MESSAGE "testsock - Win32 Debug" (based on "Win32 (x86) Console Application")
  !MESSAGE 
  
  # Begin Project
  # PROP Scc_ProjName ""
  # PROP Scc_LocalPath ""
  CPP=cl.exe
  RSC=rc.exe
  
  !IF  "$(CFG)" == "testsock - Win32 Release"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 0
  # PROP BASE Output_Dir "Release"
  # PROP BASE Intermediate_Dir "Release"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 0
  # PROP Output_Dir "Release"
  # PROP Intermediate_Dir "Release"
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D 
"_MBCS" /YX /FD /c
  # ADD CPP /nologo /W3 /GX /O2 /I "..\include" /I "..\..\include" /D "WIN32" 
/D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD BASE RSC /l 0x409 /d "NDEBUG"
  # ADD RSC /l 0x409 /d "NDEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib /nologo /subsystem:console /machine:I386
  # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug /nologo /subsystem:console /machine:I386
  
  !ELSEIF  "$(CFG)" == "testsock - Win32 Debug"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 1
  # PROP BASE Output_Dir "testsock"
  # PROP BASE Intermediate_Dir "testsock"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 1
  # PROP Output_Dir "testsock"
  # PROP Intermediate_Dir "testsock"
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D 
"_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\include" /I "..\..\include" /D 
"WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
  # ADD BASE RSC /l 0x409 /d "_DEBUG"
  # ADD RSC /l 0x409 /d "_DEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
  # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib ..\lib\Debug\lib.lib ..\misc\win32\Debug\misc.lib 
..\threadproc\win32\Debug\threadproc.lib ..\file_io\win32\Debug\file_io.lib 
..\network_io\win32\Debug\network_io.lib /nologo /subsystem:console /debug 
/machine:I386 /pdbtype:sept
  
  !ENDIF 
  
  # Begin Target
  
  # Name "testsock - Win32 Release"
  # Name "testsock - Win32 Debug"
  # Begin Source File
  
  SOURCE=.\testsock.c
  # End Source File
  # End Target
  # End Project
  
  
  
  1.2       +18 -11    apache-apr/apr/threadproc/win32/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/threadproc/win32/proc.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- proc.c    1999/06/08 15:38:11     1.1
  +++ proc.c    1999/06/15 17:43:33     1.2
  @@ -155,19 +155,26 @@
        (*new)->attr = attr;
   
        attr->si.cb = sizeof(attr->si);
  -     attr->si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
  -     attr->si.wShowWindow = SW_HIDE;
  -     if (attr->child_in) {
  -             attr->si.hStdInput = attr->child_in->filehand;
  -     }
  +    if (attr->detached) {
  +        /* If we are creating ourselves detached, Then we should hide the
  +         * window we are starting in.  And we had better redfine our
  +         * handles for STDIN, STDOUT, and STDERR.
  +         */
  +        attr->si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
  +         attr->si.wShowWindow = SW_HIDE;
   
  -     if (attr->child_out) {
  -             attr->si.hStdOutput = attr->child_out->filehand;
  -     }
  +        if (attr->child_in) {
  +            attr->si.hStdInput = attr->child_in->filehand;
  +        }
   
  -     if (attr->child_err) {
  -             attr->si.hStdError = attr->child_err->filehand;
  -     }
  +        if (attr->child_out) {
  +            attr->si.hStdOutput = attr->child_out->filehand;
  +        }
  +
  +        if (attr->child_err) {
  +            attr->si.hStdError = attr->child_err->filehand;
  +        }
  +    }
   
        cmdline = args[0];
        i = 1;
  
  
  
  1.17      +0 -5      apache-apr/include/apr_general.h
  
  Index: apr_general.h
  ===================================================================
  RCS file: /home/cvs/apache-apr/include/apr_general.h,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- apr_general.h     1999/06/14 19:26:37     1.16
  +++ apr_general.h     1999/06/15 17:43:38     1.17
  @@ -60,11 +60,6 @@
   #ifdef HAVE_STDIO_H
   #include <stdio.h>
   #endif
  -
  -#ifdef HAVE_UNISTD_H
  -#include <unistd.h>
  -#endif
  -
   #ifdef HAVE_MALLOC_H
   #include <malloc.h>
   #endif
  
  
  
  1.14      +1 -0      apache-apr/include/apr_thread_proc.h
  
  Index: apr_thread_proc.h
  ===================================================================
  RCS file: /home/cvs/apache-apr/include/apr_thread_proc.h,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- apr_thread_proc.h 1999/05/26 13:47:03     1.13
  +++ apr_thread_proc.h 1999/06/15 17:43:42     1.14
  @@ -107,6 +107,7 @@
                                 ap_int32_t);
   ap_status_t ap_setprocattr_dir(ap_procattr_t *, char *);
   ap_status_t ap_setprocattr_cmdtype(ap_procattr_t *, ap_cmdtype_e);
  +ap_status_t ap_setprocattr_detach(ap_procattr_t *, ap_int32_t);
   
   ap_status_t ap_get_childin(ap_proc_t *, ap_file_t **);
   ap_status_t ap_get_childout(ap_proc_t *, ap_file_t **);
  
  
  

Reply via email to