diff options
author | 2001-02-22 22:53:55 +0000 | |
---|---|---|
committer | 2001-02-22 22:53:55 +0000 | |
commit | 4e9b1861a87cececff05be0ec1b0f2b81197acf5 (patch) | |
tree | 5da94639683e362d5b00d2eb9f56da7d887a1705 | |
parent | ifdef sparc -> ifdef __sparc__ (diff) | |
download | wireguard-openbsd-4e9b1861a87cececff05be0ec1b0f2b81197acf5.tar.xz wireguard-openbsd-4e9b1861a87cececff05be0ec1b0f2b81197acf5.zip |
Add a caveat about our O_TRUNC paranoia; art@ ok
-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 |