diff options
author | pjd <pjd@FreeBSD.org> | 2007-01-07 23:06:53 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-01-07 23:06:53 +0000 |
commit | c3ed4409e68f12ae2680d645a9d88286aeb63e8a (patch) | |
tree | f0ee6557ceee9d6608c19fa2aff7a73b03da1052 /lib/libc/sys/open.2 | |
parent | 78c4023bc4a7414a4205826ed53e8c4848830b31 (diff) | |
download | FreeBSD-src-c3ed4409e68f12ae2680d645a9d88286aeb63e8a.zip FreeBSD-src-c3ed4409e68f12ae2680d645a9d88286aeb63e8a.tar.gz |
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.
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r-- | lib/libc/sys/open.2 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index b7e40f8..7e36c24 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -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 |