From f340434d23308ac82a0e44cf338cddbd0f871d54 Mon Sep 17 00:00:00 2001 From: ad Date: Sun, 23 Feb 2020 20:41:41 +0000 Subject: [PATCH] +EINVAL --- lib/libc/sys/_lwp_wait.2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/libc/sys/_lwp_wait.2 b/lib/libc/sys/_lwp_wait.2 index 44d96bad04dd..5f2fd21b2937 100644 --- a/lib/libc/sys/_lwp_wait.2 +++ b/lib/libc/sys/_lwp_wait.2 @@ -1,6 +1,6 @@ -.\" $NetBSD: _lwp_wait.2,v 1.4 2008/04/30 13:10:51 martin Exp $ +.\" $NetBSD: _lwp_wait.2,v 1.5 2020/02/23 20:41:41 ad Exp $ .\" -.\" Copyright (c) 2003 The NetBSD Foundation, Inc. +.\" Copyright (c) 2003, 2020 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 13, 2003 +.Dd February 23, 2020 .Dt _LWP_WAIT 2 .Os .Sh NAME @@ -67,7 +67,7 @@ Otherwise, an error code is returned to indicate the error. will fail if: .Bl -tag -width [EDEADLK] .It Bq Er ESRCH -No undetached LWP can be found in the current process corresponding to that +No LWP can be found in the current process corresponding to that specified by .Fa wlwp . .It Bq Er EDEADLK @@ -76,6 +76,10 @@ The calling LWP is the only LWP in the process. The LWP ID specified by .Fa wlwp is the LWP ID of the calling LWP. +.It Bq Er EINVAL +The LWP specified by +.Fa wlwp +is detached. .It Bq Er EINTR .Fn _lwp_wait was interrupted by a caught signal, or the signal did not