From 99ee97d45654e8e634ace797279992b73e76a1c2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 11 Jul 2002 19:21:09 +0000 Subject: Back out revision 1.3; we return EWOULDBLOCK on lock failure, not EAGAIN. --- lib/libc/sys/open.2 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index c6724865ba3..47a42d721ee 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: open.2,v 1.26 2002/04/30 16:31:42 mpech Exp $ +.\" $OpenBSD: open.2,v 1.27 2002/07/11 19:21:08 millert Exp $ .\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -247,7 +247,7 @@ and one of .Dv O_SHLOCK or .Dv O_EXLOCK -is specified and the file is locked. +is specified and the file is already locked. .It Bq Er ENOSPC .Dv O_CREAT is specified, @@ -294,13 +294,6 @@ 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 EAGAIN -.Dv O_NONBLOCK -and either -.Dv O_EXLOCK -or -.Dv O_SHLOCK -are set and the file is already locked. .El .Sh SEE ALSO .Xr chmod 2 , -- cgit v1.2.3