Re: [PATCH] man/man3/ptsname.3: Document ptsname_r incompatibility on FreeBSD.
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-06-13 08:12:07
Attachments
- signature.asc [application/pgp-signature] 833 bytes
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-06-13 08:12:07
Hi Collin, On Thu, Jun 12, 2025 at 10:28:50PM -0700, Collin Funk wrote:
The FreeBSD implementation of ptsname_r 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 <redacted>
Thanks! I've applied the patch to the posix24 branch. Have a lovely day! Alex
--- 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 748f1e19a..3254e7809 100644 --- a/man/man3/ptsname.3 +++ b/man/man3/ptsname.3@@ -110,7 +110,7 @@ .SH ATTRIBUTES .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.49.0
-- <https://www.alejandro-colomar.es/>