]> Savannah Git Hosting - gnulib.git/commit
ptsname_r: Work around bug on Android 4.3.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Jan 2019 14:23:19 +0000 (15:23 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Jan 2019 14:23:19 +0000 (15:23 +0100)
commit8a2c831f16c5191070290e280c91cb425b2f59cd
tree90ccef87bca0fc5a3bf36025efa39e6a3e483b44
parent0c4342cb67e62f981c654c5fa830bd76cc3bd68f
ptsname_r: Work around bug on Android 4.3.

* m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
correct.
* lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
is defined, just fix the return value.
* doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
The behaviour of musl libc is nothing to be "fixed", since it is
compliant with the next POSIX standard.
ChangeLog
doc/glibc-functions/ptsname_r.texi
lib/ptsname_r.c
m4/ptsname_r.m4