httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/os2 readwrite.c
Date Sat, 27 May 2000 18:01:01 GMT
bjh         00/05/27 11:01:01

  Modified:    src/lib/apr/file_io/os2 readwrite.c
  Log:
  OS/2: Add an implementation of ap_file_check_read().
  
  Revision  Changes    Path
  1.27      +15 -0     apache-2.0/src/lib/apr/file_io/os2/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/readwrite.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- readwrite.c	2000/05/27 17:52:01	1.26
  +++ readwrite.c	2000/05/27 18:01:00	1.27
  @@ -345,3 +345,18 @@
   }
   
   
  +
  +ap_status_t ap_file_check_read(ap_file_t *fd)
  +{
  +    int rc;
  +
  +    if (!fd->pipe)
  +        return APR_SUCCESS; /* Not a pipe, assume no waiting */
  +
  +    rc = DosWaitEventSem(fd->pipeSem, SEM_IMMEDIATE_RETURN);
  +
  +    if (rc == ERROR_TIMEOUT)
  +        return APR_TIMEUP;
  +
  +    return APR_OS2_STATUS(rc);
  +}
  
  
  

Mime
View raw message