Hi

While looking at the recent YP changes I noticed that the RETURN
VALUES section of the man page is incorrect.  Here is an update (I
just copied the text from socket(2) and adjusted the function name).

Best,

Martin

Index: ypconnect.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/ypconnect.2,v
retrieving revision 1.2
diff -u -p -r1.2 ypconnect.2
--- ypconnect.2 17 Jul 2022 05:48:26 -0000      1.2
+++ ypconnect.2 21 Jul 2022 17:08:57 -0000
@@ -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:

Reply via email to