You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2002/02/12 02:37:47 UTC

cvs commit: apr/file_io/win32 pipe.c

wrowe       02/02/11 17:37:47

  Modified:    file_io/win32 pipe.c
  Log:
    Another unfortunate shortcoming of WinCE - no pipe support yet.
    Submitted by Mladen Turk <mt...@mappingsoft.com>
  
  Revision  Changes    Path
  1.41      +14 -0     apr/file_io/win32/pipe.c
  
  Index: pipe.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/pipe.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- pipe.c	28 Dec 2001 23:50:48 -0000	1.40
  +++ pipe.c	12 Feb 2002 01:37:47 -0000	1.41
  @@ -56,11 +56,17 @@
   #include "apr_file_io.h"
   #include "apr_general.h"
   #include "apr_strings.h"
  +#if APR_HAVE_ERRNO_H
   #include <errno.h>
  +#endif
   #include <string.h>
   #include <stdio.h>
  +#if APR_HAVE_SYS_TYPES_H
   #include <sys/types.h>
  +#endif
  +#if APR_HAVE_SYS_STAT_H
   #include <sys/stat.h>
  +#endif
   #include "misc.h"
   
   APR_DECLARE(apr_status_t) apr_file_pipe_timeout_set(apr_file_t *thepipe, apr_interval_time_t timeout)
  @@ -83,6 +89,9 @@
   
   APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out, apr_pool_t *p)
   {
  +#ifdef _WIN32_WCE
  +    return APR_ENOTIMPL;
  +#else
       SECURITY_ATTRIBUTES sa;
   
       sa.nLength = sizeof(sa);
  @@ -122,6 +131,7 @@
       apr_pool_cleanup_register((*out)->cntxt, (void *)(*out), file_cleanup,
                           apr_pool_cleanup_null);
       return APR_SUCCESS;
  +#endif
   }
   
   /* apr_create_nt_pipe()
  @@ -148,6 +158,9 @@
                                   BOOLEAN bAsyncRead, BOOLEAN bAsyncWrite, 
                                   apr_pool_t *p)
   {
  +#ifdef _WIN32_WCE
  +    return APR_ENOTIMPL;
  +#else
       SECURITY_ATTRIBUTES sa;
       static unsigned long id = 0;
       DWORD dwPipeMode;
  @@ -234,4 +247,5 @@
       apr_pool_cleanup_register((*out)->cntxt, (void *)(*out), file_cleanup,
                           apr_pool_cleanup_null);
       return APR_SUCCESS;
  +#endif /* _WIN32_WCE */
   }