Lines Matching defs:curStatus
257 int curStatus;
263 curStatus = fcntl(fd, F_GETFL, 0);
265 curStatus &= (~(O_NONBLOCK));
267 curStatus |= O_NONBLOCK;
269 if (fcntl(fd, F_SETFL, curStatus) < 0) {
272 curStatus = fcntl(fd, F_GETFL, 0);
276 curStatus = fcntl(fd, F_GETFL, 0);
278 curStatus &= (~(O_NONBLOCK));
280 curStatus |= O_NONBLOCK;
282 if (fcntl(fd, F_SETFL, curStatus) < 0) {
292 curStatus = 0;
294 curStatus = 1;
296 if (ioctl(fd, (int) FIONBIO, &curStatus) < 0) {
303 curStatus = 0;
305 curStatus = 1;
307 if (ioctl(fd, (int) FIONBIO, &curStatus) < 0) {
722 int curStatus;
728 curStatus = fcntl(fd, F_GETFL, 0);
730 curStatus &= (~(O_NONBLOCK));
732 curStatus |= O_NONBLOCK;
734 if (fcntl(fd, F_SETFL, curStatus) < 0) {
737 curStatus = fcntl(fd, F_GETFL, 0);
741 curStatus = fcntl(fd, F_GETFL, 0);
743 curStatus &= (~(O_NONBLOCK));
745 curStatus |= O_NONBLOCK;
747 if (fcntl(fd, F_SETFL, curStatus) < 0) {
757 curStatus = 0;
759 curStatus = 1;
761 if (ioctl(fd, (int) FIONBIO, &curStatus) < 0) {
768 curStatus = 0;
770 curStatus = 1;
772 if (ioctl(fd, (int) FIONBIO, &curStatus) < 0) {