F_SETFL
fcntl(fStdOut, F_SETFL, flags);
fcntl(fStdErr, F_SETFL, flags);
if ( fcntl( listen_fd, F_SETFL, flags | O_NDELAY ) < 0 )
(void) fcntl( fd, F_SETFL, newflags );
(void) fcntl( fd, F_SETFL, newflags );
kFcntlTypeHandlers[F_SETFL] = new FlagsTypeHandler(kOpenFlags);
FCNTL_INFO_ENTRY(F_SETFL),
fcntl(pdata, F_SETFL, flags | O_NONBLOCK) == -1)
fcntl(pdata, F_SETFL, flags & ~O_NONBLOCK) == -1)
fcntl(STDIN_FILENO, F_SETFL, flags | O_NONBLOCK);
fcntl(ffd, F_SETFL, flags & ~O_NONBLOCK);
if (fcntl(fSocket, F_SETFL, flags) < 0) {
if (fcntl(fSocket->Socket(), F_SETFL, flags | O_NONBLOCK) != 0)
return (kernelFD ? _kern_fcntl : _user_fcntl)(fd, F_SETFL, argument);
case F_SETFL:
common_fcntl(fds[0], F_SETFL, flags & O_NONBLOCK, false);
#ifdef F_SETFL
if (_IO_fcntl (fd, F_SETFL, fd_flags | O_APPEND) == -1)
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
if (fcntl(fd, F_SETFL, 0) < 0) {
fcntl(fFDs[1], F_SETFL, O_NONBLOCK);
fcntl(fFDs[1], F_SETFL, 0);
fcntl(fClientSocket, F_SETFL, O_NONBLOCK);
fcntl(fClientSocket, F_SETFL, 0);
fcntl(fd, F_SETFL, O_NONBLOCK);
status = fcntl(sock, F_SETFL, O_NONBLOCK);
status = fcntl(sock1, F_SETFL, O_NONBLOCK);
status = fcntl(sock, F_SETFL, flags1 | O_NONBLOCK);
status = fcntl(sock1, F_SETFL, flags1 | O_NONBLOCK);