diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-11-15 23:51:39 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-11-15 23:51:39 +0000 |
commit | 2bc1d007fde4dd8275f9ed6254224963ced9f97f (patch) | |
tree | 031294004cc63e16f3e7e6965308dda63d3adf7d /lib | |
parent | 627cca26e92523fcba99bb18ff7fdb6cf1374358 (diff) |
do not open fifos with O_RDWR, either use O_RDONLY or O_WRONLY. okay aaron@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/open.2 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index a8acb4150f9..02c0c8cb5e6 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: open.2,v 1.18 2000/10/18 05:12:10 aaron Exp $ +.\" $OpenBSD: open.2,v 1.19 2000/11/15 23:51:38 provos Exp $ .\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -125,6 +125,14 @@ If the .Dv O_SYNC flag is set, all I/O operations on the file will be done syncronously. .Pp +A fifo should either be opened with +.Dv O_RDONLY +or with +.Dv O_WRONLY . +The behavior for opening a fifo with +.Dv O_RDWR +is undefined. +.Pp When opening a file, a lock with .Xr flock 2 semantics can be obtained by setting |