Lines Matching refs:state
66 fde->state & FDE_READ ? 'R' : ' ',
67 fde->state & FDE_WRITE ? 'W' : ' ',
68 fde->state & FDE_ERROR ? 'E' : ' ',
154 active = (fde->state & FDE_EVENTMASK) != 0;
164 fde->state = (fde->state & FDE_STATEMASK) | events;
223 if(fde->state & FDE_PENDING) continue;
224 fde->state |= FDE_PENDING;
290 fde->state = (fde->state & FDE_STATEMASK) | events;
307 // fde->state |= FDE_DONT_CLOSE;
408 D("got events fde->fd=%d events=%04x, state=%04x\n",
409 fde->fd, fde->events, fde->state);
410 if(fde->state & FDE_PENDING) continue;
411 fde->state |= FDE_PENDING;
459 if(!(fde->state & FDE_DONT_CLOSE)) {
502 if(!(fde->state & FDE_PENDING)) return;
503 fde->state &= (~FDE_PENDING);
556 D("subproc_fde.state=%04x\n", subproc_fde->state);
558 if(subproc_fde->state & FDE_PENDING) {
561 subproc_fde->state |= FDE_PENDING;
571 fde->state |= FDE_CREATED;
578 if(!(fde->state & FDE_CREATED)) {
587 fde->state = FDE_ACTIVE;
599 fde->state |= FDE_ACTIVE;
604 if(fde->state & FDE_PENDING) {
608 if(fde->state & FDE_ACTIVE) {
614 fde->state = 0;
623 if((fde->state & FDE_EVENTMASK) == events) return;
625 if(fde->state & FDE_ACTIVE) {
630 fde->state = (fde->state & FDE_STATEMASK) | events;
632 if(fde->state & FDE_PENDING) {
640 fde->state &= (~FDE_PENDING);
648 fde, (fde->state & FDE_EVENTMASK) | (events & FDE_EVENTMASK));
654 fde, (fde->state & FDE_EVENTMASK) & (~(events & FDE_EVENTMASK)));