From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. J. Farrell" To: michele_liberi@it.ibm.com Cc: cygwin@sourceware.cygnus.com Subject: Re: B20.1 under NT4.0, non blocking I/O Date: Wed, 10 Mar 1999 14:09:00 -0000 Message-id: <199903102209.OAA06244@aleph.ssd.hal.com> In-reply-to: < C1256730.002B5549.00@d14mta01.it.ibm.com > from "michele_liberi@it.ibm.com" at Mar 10, 99 08:53:13 am References: X-SW-Source: 1999-03/msg00330.html > From: michele_liberi@it.ibm.com > > In the UNIX world the statement > "fcntl(fd,F_SETFL,FNDELAY|fcntl(fd,F_GETFL,0));" may be used to set "non > blocking io" flag on a given file descriptor. This is true of some parts of the UNIX world, but it's not the Standard way to do it. The preferred name for the FNDELAY flag in user-level code is O_NDELAY, but the Standard way to achieve this effect is to use O_NONBLOCK. There are usually small differences between the meaning of O_NDELAY and O_NONBLOCK in implementations which support both, but O_NONBLOCK is the only one you can reasonably expect to be supported on all UNIX-like systems. > In cygwin B20.1 under NT4.0 > it is completely inoperative. Having said that, I've no idea if O_NONBLOCK works any better than O_NDELAY under cygwin! -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. J. Farrell" To: michele_liberi@it.ibm.com Cc: cygwin@sourceware.cygnus.com Subject: Re: B20.1 under NT4.0, non blocking I/O Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <199903102209.OAA06244@aleph.ssd.hal.com> References: X-SW-Source: 1999-03n/msg00330.html Message-ID: <19990331194500.7UcNJjVU6hDl7WLyu-lUFk3sDqiFLT6-vMr6zRzCLpA@z> > From: michele_liberi@it.ibm.com > > In the UNIX world the statement > "fcntl(fd,F_SETFL,FNDELAY|fcntl(fd,F_GETFL,0));" may be used to set "non > blocking io" flag on a given file descriptor. This is true of some parts of the UNIX world, but it's not the Standard way to do it. The preferred name for the FNDELAY flag in user-level code is O_NDELAY, but the Standard way to achieve this effect is to use O_NONBLOCK. There are usually small differences between the meaning of O_NDELAY and O_NONBLOCK in implementations which support both, but O_NONBLOCK is the only one you can reasonably expect to be supported on all UNIX-like systems. > In cygwin B20.1 under NT4.0 > it is completely inoperative. Having said that, I've no idea if O_NONBLOCK works any better than O_NDELAY under cygwin! -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com