apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apr/network_io/unix poll.c
Date Mon, 11 Dec 2000 19:39:21 GMT
trawick     00/12/11 11:39:20

  Modified:    network_io/unix poll.c
  Log:
  provide a no-HAVE_POLL version of apr_mask_poll_socket()
  it looks like the Win32 version but no promises about whether
  or not it works :)
  
  Revision  Changes    Path
  1.41      +16 -0     apr/network_io/unix/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/poll.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- poll.c	2000/11/14 06:40:06	1.40
  +++ poll.c	2000/12/11 19:39:15	1.41
  @@ -257,6 +257,22 @@
       return APR_SUCCESS;
   }
   
  +apr_status_t apr_mask_poll_socket(apr_pollfd_t *aprset, 
  +                                  apr_socket_t *sock, 
  +                                  apr_int16_t events)
  +{
  +    if (events & APR_POLLIN) {
  +        FD_CLR(sock->socketdes, aprset->read);
  +    }
  +    if (events & APR_POLLPRI) {
  +        FD_CLR(sock->socketdes, aprset->except);
  +    }
  +    if (events & APR_POLLOUT) {
  +        FD_CLR(sock->socketdes, aprset->write);
  +    }
  +    return APR_SUCCESS;
  +}
  +
   apr_status_t apr_poll(apr_pollfd_t *aprset, apr_int32_t *nsds, 
   		    apr_interval_time_t timeout)
   {
  
  
  

Mime
View raw message