On 5/9/2011 1:45 PM, Eric S. Eberhard wrote:
> int setblock(fd, mode) > int fd; > int mode; /* True - blocking, False - non blocking */ > { > int flags; > int prevmode; > > flags = fcntl(fd, F_GETFL, 0); > prevmode = !(flags & O_NDELAY); > if (mode) > flags &= ~O_NDELAY; /* turn blocking on */ > else > flags |= O_NDELAY; /* turn blocking off */ > fcntl(fd, F_SETFL, flags); > > return prevmode; > }
This code is ancient and is in desperate need of being made to conform to modern standards before being used.
DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org