From daecb992d9fe7c05c3f0c8a267f8d75734945abe Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 21 Jul 2022 22:45:06 +0000 Subject: [PATCH] repair error section; Martin Vahlensieck --- lib/libc/sys/ypconnect.2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/ypconnect.2 b/lib/libc/sys/ypconnect.2 index 44b5b7eafdf..8ca33ace464 100644 --- a/lib/libc/sys/ypconnect.2 +++ b/lib/libc/sys/ypconnect.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ypconnect.2,v 1.2 2022/07/17 05:48:26 jmc Exp $ +.\" $OpenBSD: ypconnect.2,v 1.3 2022/07/21 22:45:06 deraadt Exp $ .\" .\" Copyright (c) 2022 Theo de Raadt .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 17 2022 $ +.Dd $Mdocdate: July 21 2022 $ .Dt YPCONNECT 2 .Os .Sh NAME @@ -45,7 +45,12 @@ general purpose. .Nm is only intended for use by internal libc YP functions. .Sh RETURN VALUES -.Rv -std +If successful, +.Fn ypconnect +returns a non-negative integer, the socket file descriptor. +Otherwise, a value of \-1 is returned and +.Va errno +is set to indicate the error. .Sh ERRORS .Fn ypconnect will fail if: -- 2.20.1