Thread (2 messages) 2 messages, 2 authors, 2025-06-13

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

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
quoted hunk ↗ jump to hunk
---
 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/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help