F_SETFL
(void) fcntl(SHIN, F_SETFL, (flags & ~O_NONBLOCK));
if (fcntl(fd, F_SETFL, flags) == -1)
case F_SETFL:
return (fcntl(s, F_SETFL, flags | O_NONBLOCK) != -1);
return (fcntl(s, F_SETFL, flags & ~O_NONBLOCK) != -1);
#elif defined(F_SETFL) && defined(O_NDELAY)
if (fcntl(el->el_infd, F_SETFL, n|O_NDELAY) == -1)
if (fcntl(el->el_infd, F_SETFL, n))
if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) {
if (fcntl(p->fd, F_SETFL, fdflags) == -1) {
if (fcntl(hdl->fd, F_SETFL, nbio ? O_NONBLOCK : 0) == -1) {
fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK);
if (fcntl(fds[0], F_SETFL, O_NONBLOCK) != 0)
ATF_REQUIRE(fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1);
if (fcntl(pair[0], F_SETFL, O_NONBLOCK) == -1)
if (fcntl(pair[1], F_SETFL, O_NONBLOCK) == -1)
/*CHECKe*/(fcntl(STDOUT_FILENO, F_SETFL,
CHECKe(fcntl(tube[0], F_SETFL, O_NONBLOCK));
CHECKe(fcntl(tube[1], F_SETFL, O_NONBLOCK));
CHECKr(fcntl(fd, F_SETFL, flags | O_NONBLOCK));
CHECKr(fcntl(listen_fd, F_SETFL, flags |= O_NONBLOCK));
assert(fcntl(STDIN_FILENO, F_SETFL, new_flags) != -1);
assert(fcntl(STDERR_FILENO, F_SETFL, stdin_flags) != -1);
assert(fcntl(STDIN_FILENO, F_SETFL, stdin_flags) != -1);
ASS(fcntl(fd[1], F_SETFL, O_NONBLOCK) == 0,
if (fcntl(massa, F_SETFL, O_NONBLOCK) < 0)
if (fcntl(slave, F_SETFL, O_NONBLOCK) < 0)
ASS(fcntl(fd, F_SETFL, O_NONBLOCK) == 0,
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_APPEND))
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_APPEND))
assert(fcntl(fds[0], F_SETFL, flags | O_ASYNC) == 0);
assert(fcntl(fds[0], F_SETFL, flags | O_ASYNC) == 0);
assert(fcntl(fds[0], F_SETFL, flags | O_ASYNC | O_NONBLOCK) == 0);
assert(fcntl(fds[1], F_SETFL, flags | O_NONBLOCK) == 0);
assert(fcntl(sock, F_SETFL, flags | O_ASYNC) == 0);
fcntl(p[0], F_SETFL, O_NONBLOCK);
if (fcntl(0, F_SETFL, O_ASYNC) == -1)
if (fcntl(mfd, F_SETFL, O_NONBLOCK) == -1)
if(fcntl(s, F_SETFL, flag) == -1) {
if(fcntl(s, F_SETFL, flag) == -1) {
case F_SETFL:
if (fcntl(fd, F_SETFL, mode) == -1)
ret = fcntl(fd, F_SETFL, flags);
if (fcntl(s, F_SETFL, flags | O_NONBLOCK) == -1) {
if (fcntl(s, F_SETFL, flags) == -1) {
fcntl(fd, F_SETFL, O_NONBLOCK);
return (fcntl(fd, F_SETFL, flags | O_NONBLOCK));
else if (fcntl(fd, F_SETFL, fl|O_NONBLOCK) == -1)
if (fcntl(sock, F_SETFL, O_NONBLOCK) == -1) {
(void)fcntl(*fdp, F_SETFL, c->restore_flags[0]);
(void)fcntl(*fdp, F_SETFL, c->restore_flags[1]);
(void)fcntl(*fdp, F_SETFL, c->restore_flags[2]);
if (fcntl(fd, F_SETFL, val) == -1) {
if (fcntl(fd, F_SETFL, val) == -1) {
if (fcntl(sock, F_SETFL, r) == -1)
fcntl(fd, F_SETFL, mode);
fcntl(s->server_fd, F_SETFL, fc | O_NONBLOCK) == -1) {
if ((flags = fcntl(fd, F_SETFL, flags)) == -1)
if (fcntl(fd, F_SETFL, fl | O_APPEND) == -1)
if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) < 0) {
} else if (fcntl(_this->sock, F_SETFL, ival | O_NONBLOCK) < 0) {
} else if (fcntl(sock_gre, F_SETFL, ival | O_NONBLOCK) < 0) {
if(fcntl(sv[0], F_SETFL, O_NONBLOCK) == -1) {
if(fcntl(sv[1], F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(sv[0], F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(sv[1], F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1) {
if(fcntl(fd, F_SETFL, O_NONBLOCK) == -1) {
if(fcntl(fd, F_SETFL, 0) == -1) {
if (fcntl(s->c.ev_fd, F_SETFL, 0) == -1) { /* set blocking */
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(newfd, F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(sockets[1], F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(sockets[0], F_SETFL, O_NONBLOCK) == -1) {
if(fcntl(fd, F_SETFL, flag) == -1)
if(fcntl(fd, F_SETFL, flag) == -1)
if (fcntl(nsd->children[i].child_fd, F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(nsd->this_child->parent_fd, F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1) {
if(fcntl(sock->s, F_SETFL, O_NONBLOCK) == -1) {
if (fcntl(fderr, F_SETFL, flags | O_NONBLOCK) == -1) {
if(fcntl(fdout, F_SETFL, flags | O_NONBLOCK) == -1) {
if(fcntl(fd, F_SETFL, O_NONBLOCK) == -1) {
if ((flags = fcntl(fd, F_SETFL, flags)) == -1)
if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1)
if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1)
if (fcntl(0, F_SETFL, flags | O_NONBLOCK) == -1)
if (fcntl(0, F_SETFL, flags & ~O_NONBLOCK) == -1)
|| fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
|| fcntl(fd, F_SETFL, initfdflags | O_NONBLOCK) == -1) {
if (initfdflags != -1 && fcntl(fd, F_SETFL, initfdflags) == -1)
if (fcntl(loop_master, F_SETFL, flags | O_NONBLOCK) == -1)
if (fcntl(module->fd, F_SETFL, ival | O_NONBLOCK) == -1) {
if (fcntl(base->ibuf.fd, F_SETFL, ival | O_NONBLOCK) == -1)
if (fcntl(fd, F_SETFL, flags) == -1)
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1)
if ((flags = fcntl(fd[1], F_SETFL, flags)) == -1) {
fcntl(f->f_file, F_SETFL, i);
if(fcntl(s, F_SETFL, flag) == -1) {
if(fcntl(s, F_SETFL, flag) == -1) {
if (fcntl(con_fd, F_SETFL, O_NONBLOCK) == -1) {