apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/file_io/os2 pipe.c
Date Sat, 19 Oct 2002 03:20:44 GMT
bjh         2002/10/18 20:20:44

  Modified:    file_io/os2 pipe.c
  Log:
  OS/2: Add implementation of apr_os_pipe_put().
  
  Revision  Changes    Path
  1.37      +18 -0     apr/file_io/os2/pipe.c
  
  Index: pipe.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/os2/pipe.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- pipe.c	13 Oct 2002 03:34:32 -0000	1.36
  +++ pipe.c	19 Oct 2002 03:20:44 -0000	1.37
  @@ -58,6 +58,7 @@
   #include "apr_general.h"
   #include "apr_lib.h"
   #include "apr_strings.h"
  +#include "apr_portable.h"
   #include <string.h>
   #include <process.h>
   
  @@ -179,4 +180,21 @@
           return APR_SUCCESS;
       }
       return APR_EINVAL;
  +}
  +
  +
  +
  +APR_DECLARE(apr_status_t) apr_os_pipe_put(apr_file_t **file,
  +                                          apr_os_file_t *thefile,
  +                                          apr_pool_t *pool)
  +{
  +    (*file) = apr_pcalloc(pool, sizeof(apr_file_t));
  +    (*file)->pool = pool;
  +    (*file)->isopen = TRUE;
  +    (*file)->pipe = 1;
  +    (*file)->blocking = BLK_UNKNOWN; /* app needs to make a timeout call */
  +    (*file)->timeout = -1;
  +    (*file)->filedes = *thefile;
  +
  +    return APR_SUCCESS;
   }
  
  
  

Mime
View raw message