apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: apr/network_io/win32 sendrecv.c
Date Thu, 20 Dec 2001 20:22:20 GMT
stoddard    01/12/20 12:22:20

  Modified:    .        CHANGES
               network_io/win32 sendrecv.c
  Log:
  Win32: apr_sendfile() should return APR_ENOTIMPL if oslevel < WINNT
  
  Revision  Changes    Path
  1.198     +2 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.197
  retrieving revision 1.198
  diff -u -r1.197 -r1.198
  --- CHANGES	2001/12/14 10:06:19	1.197
  +++ CHANGES	2001/12/20 20:22:19	1.198
  @@ -1,4 +1,6 @@
   Changes with APR b1  
  +  *) Win32: apr_sendfile() should return APR_ENOTIMPL if
  +     oslevel < WINNT. [Bill Stoddard]
   
     *) Put new pools code in place which allows applications to
        switch off locking on pools operations in case a pool is
  
  
  
  1.44      +5 -0      apr/network_io/win32/sendrecv.c
  
  Index: sendrecv.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/win32/sendrecv.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- sendrecv.c	2001/08/19 02:05:04	1.43
  +++ sendrecv.c	2001/12/20 20:22:20	1.44
  @@ -253,6 +253,11 @@
       TRANSMIT_FILE_BUFFERS tfb, *ptfb = NULL;
       int ptr = 0;
       int bytes_to_send = *len;   /* Bytes to send out of the file (not including headers)
*/
  +    apr_oslevel_e os_level;
  +
  +    if (!apr_get_oslevel(NULL, &os_level) && os_level < APR_WIN_NT) {
  +        return APR_ENOTIMPL;
  +    }
   
       /* Use len to keep track of number of total bytes sent (including headers) */
       *len = 0;
  
  
  

Mime
View raw message