You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by dr...@apache.org on 2001/01/12 18:49:34 UTC
cvs commit: apr/network_io/beos poll.c
dreid 01/01/12 09:49:33
Modified: network_io/beos poll.c
Log:
Add a missing function to the beos poll... Thought I'd done this a
while back but apparently I hadn't...
Revision Changes Path
1.24 +16 -0 apr/network_io/beos/poll.c
Index: poll.c
===================================================================
RCS file: /home/cvs/apr/network_io/beos/poll.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- poll.c 2000/11/18 16:53:18 1.23
+++ poll.c 2001/01/12 17:49:30 1.24
@@ -102,6 +102,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)
{