Lines Matching refs:stat
420 int stat, fd = p ? p->fd_in : STDIN_FILENO;
423 stat = fcntl(fd, F_GETFL, 0);
424 if (stat > 0) {
425 stat |= O_NONBLOCK;
426 fcntl(fd, F_SETFL, stat);
454 int stat;
462 stat = fcntl(p->fd_in, F_GETFL, 0);
463 if (stat > 0) {
464 stat |= O_NONBLOCK;
465 fcntl(p->fd_in, F_SETFL, stat);
477 int stat;
482 stat = fcntl(p->fd_in, F_GETFL, 0);
483 if (stat > 0) {
484 stat &= ~O_NONBLOCK;
485 fcntl(p->fd_in, F_SETFL, stat);
493 int stat;
495 stat = fcntl(p->fd_in, F_GETFL, 0);
496 if (stat > 0) {
497 stat &= ~O_NONBLOCK;
498 fcntl(p->fd_in, F_SETFL, stat);