]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man3/ptsname.3: VERSIONS: Document ptsname_r(3) incompatibility on FreeBSD
authorCollin Funk <collin.funk1@gmail.com>
Fri, 13 Jun 2025 05:28:50 +0000 (22:28 -0700)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 11:26:40 +0000 (12:26 +0100)
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 <collin.funk1@gmail.com>
Message-ID: <37f138bc5c5e6604f0a0afcc531694387d2cc424.1749792527.git.collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/ptsname.3

index aba9d7cc82d2ab806a85e2c6db100cc2fbbc6eab..8ed52caf55cc9d22f551044e604a0d031938b4bd 100644 (file)
@@ -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