diff options
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r-- | lib/libc/sys/open.2 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 02c0c8cb5e6..e8dedd86a54 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: open.2,v 1.19 2000/11/15 23:51:38 provos Exp $ +.\" $OpenBSD: open.2,v 1.20 2001/02/22 22:53:55 avsm Exp $ .\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -321,6 +321,16 @@ and .Dv O_NOFOLLOW flags are non-standard extensions and should not be used if portability is of concern. +.Sh CAVEATS +The +.Dv O_TRUNC +flag requires that +.Dv O_RDWR +or +.Dv O_WRONLY +are specified, or else +.Dv EINVAL +is returned. .Sh HISTORY An .Fn open |