From 56728a2905a9e10014e3db050d7f68fe321e5bcf Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 22 Oct 1997 07:29:13 +0000 Subject: [PATCH] Document EINVAL as a possible return value from open(2). --- lib/libc/sys/open.2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 11d290628a4..73435287d16 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -268,6 +268,13 @@ and were specified and the file exists. .It Bq Er EOPNOTSUPP An attempt was made to open a socket (not currently implemented). +.It Bq Er EINVAL +An attempt was made to open a descriptor with an illegal combination +of +.Dv O_RDONLY , +.Dv O_WRONLY , +and +.Dv O_RDWR . .El .Sh SEE ALSO .Xr chmod 2 ,