]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ptsname.3: accommodate upcoming POSIX Issue 8 ptsname_r
authorEd Maste <emaste@FreeBSD.org>
Fri, 13 Oct 2023 20:25:53 +0000 (16:25 -0400)
committerEd Maste <emaste@FreeBSD.org>
Sat, 14 Oct 2023 02:10:21 +0000 (22:10 -0400)
commita5ed6a815e38d6c622cd97a6020592ded579cf7a
tree9c6df46a6c146d5fd11a2247a54c92ceec26b563
parentc545a7b2c7db90b7647ef0a4f1fce05e4d7664a0
ptsname.3: accommodate upcoming POSIX Issue 8 ptsname_r

POSIX has accepted a proposal[1] to add glibc-compatible ptsname_r.  It
indicates an error by returning the error number, rather than returning
-1 and setting errno.  Update RETURN VALUES in ptsname_r's man page now
to encourage folks to test that the return value != 0 rather than == -1.

[1] https://www.austingroupbugs.net/bug_view_page.php?bug_id=508

Reported by: Collin Funk
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42204
lib/libc/stdlib/ptsname.3