Lines Matching refs:wanted
1293 int wanted; /* wanted event flags */
1318 hook->wanted = 0;
1336 hook->wanted = 0;
1355 fde->events |= hook->wanted;
1404 if ( (node->wanted & events) != events ) {
1407 fd, node->wanted, events);
1408 f->clazz->_fh_hook( f, events & ~node->wanted, node );
1409 node->wanted |= events;
1411 D("event_looper_hook: ignoring events %x for %d wanted=%x)\n",
1412 events, fd, node->wanted);
1424 int events2 = events & node->wanted;
1429 node->wanted &= ~events2;
1430 if (!node->wanted) {
1902 ** is no longer wanted.
1949 if (hook->wanted & (FDE_READ|FDE_WRITE)) {
1951 hook->ready |= hook->wanted & (FDE_READ|FDE_WRITE);
1957 return (hook->wanted & (FDE_READ|FDE_WRITE));
1973 if (hook->wanted & FDE_READ)
1975 if ((evts->iErrorCode[FD_READ] != 0) && hook->wanted & FDE_ERROR)
1979 if (hook->wanted & FDE_WRITE)
1981 if ((evts->iErrorCode[FD_WRITE] != 0) && hook->wanted & FDE_ERROR)
1985 if (hook->wanted & FDE_ERROR)
1999 static int _socket_wanted_to_flags( int wanted )
2002 if (wanted & FDE_READ)
2005 if (wanted & FDE_WRITE)
2008 if (wanted & FDE_ERROR)
2018 long flags = _socket_wanted_to_flags( hook->wanted );
2027 D( "_event_socket_start: hooking %s for %x (flags %ld)\n", hook->fh->name, hook->wanted, flags );
2100 if (hook->wanted & FDE_READ && rbip->can_read)
2103 if (hook->wanted & FDE_WRITE && wbip->can_write)
2114 if (hook->wanted == FDE_READ)
2117 else if (hook->wanted == FDE_WRITE)
2124 D( "_event_socketpair_start: hook %s for %x wanted=%x\n",
2125 hook->fh->name, _fh_to_int(fh), hook->wanted);