summaryrefslogtreecommitdiff
path: root/doc/posix-functions/ptsname.texi
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-10-02 12:22:19 -0600
committerEric Blake <eblake@redhat.com>2012-10-02 12:28:25 -0600
commitb5b92d84e19423e7de0935abd79a2b7c6df213c2 (patch)
tree55e0fabc0c02cd256ceda7c458b654e1686c8060 /doc/posix-functions/ptsname.texi
parent064a0470a540a6e98af12c4bc1d1f98b423b4660 (diff)
downloadgnulib-b5b92d84e19423e7de0935abd79a2b7c6df213c2.tar.gz
ptsname: reject invalid file descriptors
POSIX left errno undefined on ptsname() failure, although there has at least been an effort to specify reasonable values to use: http://www.austingroupbugs.net/view.php?id=503 However, our tests for ptsname and ptsname_r already require errno to be set to useful values (as in glibc), so it is worth replacing ptsname on FreeBSD 8.2 in order to get better QoI and pass the test. * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness. * modules/stdlib (Makefile.am): Replace witness. * lib/stdlib.in.h (ptsname): Allow for replacement. * modules/ptsname (configure.ac): Trigger replacement. * doc/posix-functions/ptsname.texi (ptsname): Document this.
Diffstat (limited to 'doc/posix-functions/ptsname.texi')
-rw-r--r--doc/posix-functions/ptsname.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/posix-functions/ptsname.texi b/doc/posix-functions/ptsname.texi
index c19ad4fe0e..f145aed335 100644
--- a/doc/posix-functions/ptsname.texi
+++ b/doc/posix-functions/ptsname.texi
@@ -11,6 +11,9 @@ Portability problems fixed by Gnulib:
@item
This function is missing on some platforms:
Mac OS X 10.3, OpenBSD 3.8, Minix 3.1.8, mingw, MSVC 9, BeOS.
+@item
+This function fails to set errno on failure on some platforms:
+FreeBSD 8.2.
@end itemize
Portability problems not fixed by Gnulib: