From fb0e2ad380d980bd9dcd88da7c748dabb532c809 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 20 Jan 2021 09:08:50 +0100 Subject: [PATCH] doc: Document ptsname_r bug on Cygwin. * doc/glibc-functions/ptsname_r.texi: Mention Cygwin bug. --- ChangeLog | 5 +++++ doc/glibc-functions/ptsname_r.texi | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3b53236bd4..88063510f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2021-01-20 Bruno Haible + doc: Document ptsname_r bug on Cygwin. + * doc/glibc-functions/ptsname_r.texi: Mention Cygwin bug. + +2021-01-20 Bruno Haible + sethostname tests: Avoid test failure on Cygwin. * tests/test-sethostname2.c (main): Treat errno EACCESS like EPERM. diff --git a/doc/glibc-functions/ptsname_r.texi b/doc/glibc-functions/ptsname_r.texi index 0bfd05b797..a79e751d65 100644 --- a/doc/glibc-functions/ptsname_r.texi +++ b/doc/glibc-functions/ptsname_r.texi @@ -25,13 +25,17 @@ Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 6.7, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11.4, Cygwin 1.7.9, mingw, MSVC 14. @item -When this functions fails, it returns -1 instead of the error code +When this function fails, it returns -1 instead of the error code on some platforms: Mac OS X 10.13, Android 4.3. @end itemize Portability problems not fixed by Gnulib: @itemize +@item +When this function fails, it returns 0 and stores an empty string as result +on some platforms: +Cygwin 2.9. @end itemize Note: Portable programs should expect to find the error code as the -- 2.11.4.GIT