Lines Matching refs:state
74 fde->state & FDE_READ ? 'R' : ' ', in dump_fde()
75 fde->state & FDE_WRITE ? 'W' : ' ', in dump_fde()
76 fde->state & FDE_ERROR ? 'E' : ' ', in dump_fde()
163 active = (fde->state & FDE_EVENTMASK) != 0; in fdevent_update()
173 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update()
232 if(fde->state & FDE_PENDING) continue; in fdevent_process()
233 fde->state |= FDE_PENDING; in fdevent_process()
299 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update()
418 fde->fd, fde->events, fde->state); in fdevent_process()
419 if(fde->state & FDE_PENDING) continue; in fdevent_process()
420 fde->state |= FDE_PENDING; in fdevent_process()
468 if(!(fde->state & FDE_DONT_CLOSE)) { in fdevent_unregister()
511 if(!(fde->state & FDE_PENDING)) return; in fdevent_call_fdfunc()
512 fde->state &= (~FDE_PENDING); in fdevent_call_fdfunc()
565 D("subproc_fde.state=%04x\n", subproc_fde->state); in fdevent_subproc_event_func()
567 if(subproc_fde->state & FDE_PENDING) { in fdevent_subproc_event_func()
570 subproc_fde->state |= FDE_PENDING; in fdevent_subproc_event_func()
580 fde->state |= FDE_CREATED; in fdevent_create()
587 if(!(fde->state & FDE_CREATED)) { in fdevent_destroy()
596 fde->state = FDE_ACTIVE; in fdevent_install()
608 fde->state |= FDE_ACTIVE; in fdevent_install()
613 if(fde->state & FDE_PENDING) { in fdevent_remove()
617 if(fde->state & FDE_ACTIVE) { in fdevent_remove()
623 fde->state = 0; in fdevent_remove()
632 if((fde->state & FDE_EVENTMASK) == events) return; in fdevent_set()
634 if(fde->state & FDE_ACTIVE) { in fdevent_set()
639 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_set()
641 if(fde->state & FDE_PENDING) { in fdevent_set()
649 fde->state &= (~FDE_PENDING); in fdevent_set()
657 fde, (fde->state & FDE_EVENTMASK) | (events & FDE_EVENTMASK)); in fdevent_add()
663 fde, (fde->state & FDE_EVENTMASK) & (~(events & FDE_EVENTMASK))); in fdevent_del()