summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/open.210
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