Re: open() and named pipes

2009-12-09 Thread Christopher Faylor
On Wed, Dec 09, 2009 at 05:29:01PM +0100, Corinna Vinschen wrote: >On Dec 9 10:41, Christopher Faylor wrote: >> On Wed, Dec 09, 2009 at 03:43:41PM +0100, Enrico Forestieri wrote: >> >Sorry for the very late reply and thanks for fixing the return code >> >from open(). However, this is still not pos

Re: open() and named pipes

2009-12-09 Thread Enrico Forestieri
On Wed, Dec 09, 2009 at 10:41:09AM -0500, Christopher Faylor wrote: > On Wed, Dec 09, 2009 at 03:43:41PM +0100, Enrico Forestieri wrote: > >Sorry for the very late reply and thanks for fixing the return code > >from open(). However, this is still not posix compliant as errno is > >set to ENOENT in

Re: open() and named pipes

2009-12-09 Thread Corinna Vinschen
On Dec 9 10:41, Christopher Faylor wrote: > On Wed, Dec 09, 2009 at 03:43:41PM +0100, Enrico Forestieri wrote: > >Sorry for the very late reply and thanks for fixing the return code > >from open(). However, this is still not posix compliant as errno is > >set to ENOENT instead of ENXIO. Indeed, th

Re: open() and named pipes

2009-12-09 Thread Christopher Faylor
On Wed, Dec 09, 2009 at 03:43:41PM +0100, Enrico Forestieri wrote: >Sorry for the very late reply and thanks for fixing the return code >from open(). However, this is still not posix compliant as errno is >set to ENOENT instead of ENXIO. Indeed, the attached test case prints >"No process is reading

Re: open() and named pipes

2009-12-09 Thread Enrico Forestieri
On Wed, Nov 26, 2008 at 12:38:49PM -0500, Christopher Faylor wrote: > On Wed, Nov 26, 2008 at 03:50:52PM +0100, Enrico Forestieri wrote: > >According to > >http://www.opengroup.org/onlinepubs/95399/functions/open.html > >the open() function shall fail and sets errno to ENXIO if > >O_WRONLY | O_

Re: open() and named pipes

2008-11-26 Thread Christopher Faylor
On Wed, Nov 26, 2008 at 03:50:52PM +0100, Enrico Forestieri wrote: >According to >http://www.opengroup.org/onlinepubs/95399/functions/open.html >the open() function shall fail and sets errno to ENXIO if >O_WRONLY | O_NONBLOCK is set, the named file is a FIFO, and no >process has the file open f

open() and named pipes

2008-11-26 Thread Enrico Forestieri
According to http://www.opengroup.org/onlinepubs/95399/functions/open.html the open() function shall fail and sets errno to ENXIO if O_WRONLY | O_NONBLOCK is set, the named file is a FIFO, and no process has the file open for reading. This is not the case on Cygwin, as demonstrated by the atta