Be more specific in ENXIO description:

- O_NONBLOCK flag has to be set, if it is not set, open(2) will wait for
  another process opening the fifo for reading,
- Use O_WRONLY which implies that the file has to be opened _only_ for write.
This commit is contained in:
Pawel Jakub Dawidek 2007-01-07 23:06:53 +00:00
parent bc87da10b6
commit 155d1456f5

View File

@ -274,9 +274,10 @@ The named file is a character special or block
special file, and the device associated with this special file
does not exist.
.It Bq Er ENXIO
The named file is a fifo, no process has
it open for reading, and the arguments specify it is
to be opened for writing.
.Dv O_NONBLOCK
is set, the named file is a fifo,
.Dv O_WRONLY
is set, and no process has the file open for reading.
.It Bq Er EINTR
The
.Fn open