diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2001-02-22 22:53:56 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2001-02-22 22:53:56 +0000 |
commit | a04345c13769dd7faa967e2ee48233ef76043665 (patch) | |
tree | 8be47098b076f424f74c55426038e3030a9ee2fa /lib/libc/sys | |
parent | a41733be4827d26b792c21dd6d887cbc85d74e33 (diff) |
Add a caveat about our O_TRUNC paranoia; art@ ok
Diffstat (limited to 'lib/libc/sys')
-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 |