Lines Matching refs:svc_userfds
163 static _svc_user_fd_head *svc_userfds = NULL;
293 node = svc_userfds[fd].lnk.next;
296 if (0 == (revents & svc_userfds[fd].mask)) {
301 while ((svc_userfds[fd].mask != 0) &&
302 ((_svc_user_link *)node != &(svc_userfds[fd].lnk))) {
351 return ((svc_userfds[fd].mask == 0x0000)? FALSE:TRUE);
362 if (svc_userfds != NULL) {
366 node = svc_userfds[one_fd].lnk.next;
368 != (_svc_user_link *) &(svc_userfds[one_fd])) {
379 free(svc_userfds);
380 svc_userfds = NULL;
397 one_node = svc_userfds[fd].lnk.next;
399 != (_svc_user_link *) &(svc_userfds[fd].lnk)) {
405 LIST_CLR(svc_userfds[fd]);
406 svc_userfds[fd].mask = 0;
435 (svc_userfds[user_fd].mask & events) != 0) {
449 svc_userfds = (_svc_user_fd_head *)
450 realloc(svc_userfds,
453 if (svc_userfds == NULL) {
461 LIST_CLR(svc_userfds[i]);
462 svc_userfds[i].mask = 0;
483 if (LIST_ISEMPTY(svc_userfds[user_fd])) {
484 svc_userfds[user_fd].lnk.previous = new_node;
486 new_node->lnk.next = svc_userfds[user_fd].lnk.next;
487 new_node->lnk.previous = (_svc_user_fd_node *)&(svc_userfds[user_fd]);
489 svc_userfds[user_fd].lnk.next = new_node;
492 svc_userfds[user_fd].mask |= events;
495 add_pollfd(user_fd, (svc_userfds[user_fd].mask));
533 svc_userfds[fd].mask ^= node->events;
536 if (svc_userfds[fd].mask == 0) {
537 LIST_CLR(svc_userfds[fd]);
538 assert(LIST_ISEMPTY(svc_userfds[fd]));