summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/open.2
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-10-24 09:04:24 +0000
committerderaadt <deraadt@openbsd.org>1997-10-24 09:04:24 +0000
commitdacb48d31cb0b36607cc2783e42455fd513e4253 (patch)
treecbf38ae41b425560ad848c8702711449d56134af /lib/libc/sys/open.2
parentnumeric updates. (diff)
downloadwireguard-openbsd-dacb48d31cb0b36607cc2783e42455fd513e4253.tar.xz
wireguard-openbsd-dacb48d31cb0b36607cc2783e42455fd513e4253.zip
prevent open() with wrong flags
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r--lib/libc/sys/open.22
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 8b76371e021..4716156aa92 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -180,6 +180,8 @@ Too many symbolic links were encountered in translating the pathname.
.It Bq Er EISDIR
The named file is a directory, and the arguments specify
it is to be opened for writing.
+.It Bq Er EINVAL
+The flags specified for opening the file are not valid.
.It Bq Er EROFS
The named file resides on a read-only file system,
and the file is to be modified.