Lines Matching refs:status
42 reg int *status, *check;
47 if(!(status = (int*)malloc(2*n*sizeof(int))) )
49 check = status+n; /* streams that need polling */
62 status[r] = 0;
73 status[r] |= SF_READ;
76 status[r] |= SF_WRITE;
78 if((f->flags&SF_RDWR) == status[r])
86 { status[r] = m&SF_RDWR;
95 status[r] |= SF_READ;
97 status[r] |= SF_WRITE;
151 status[check[r]] |= SF_WRITE;
158 status[check[r]] |= SF_READ;
213 status[check[r]] |= SF_WRITE;
219 status[check[r]] |= SF_READ;
223 status[check[r]] |= SF_READ;
231 { if(status[c] == 0)
235 f->val = (ssize_t)status[c];
237 /* announce status */
239 (*f->disc->exceptf)(f,SF_READY,(Void_t*)(long)status[c],f->disc);
248 free((Void_t*)status);