From 17472bafcb856eead23b3a42e780986d9c3bffaa Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Thu, 12 Jun 2025 22:28:50 -0700 Subject: [PATCH] man/man3/ptsname.3: VERSIONS: Document ptsname_r(3) incompatibility on FreeBSD The FreeBSD implementation of ptsname_r(2) returns -1 on error and sets errno, instead of just returning the errno. Document this issue for programs written with portability in mind. Signed-off-by: Collin Funk Message-ID: <37f138bc5c5e6604f0a0afcc531694387d2cc424.1749792527.git.collin.funk1@gmail.com> Signed-off-by: Alejandro Colomar --- man/man3/ptsname.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/man3/ptsname.3 b/man/man3/ptsname.3 index 5b4c007f8..3390323b1 100644 --- a/man/man3/ptsname.3 +++ b/man/man3/ptsname.3 @@ -110,7 +110,7 @@ T} Thread safety MT-Safe .SH VERSIONS A version of .BR ptsname_r () -is documented on Tru64 and HP-UX, +is documented on Tru64, HP-UX, and FreeBSD, but on those implementations, \-1 is returned on error, with .I errno -- 2.47.2