Mercurial > gnulib
comparison doc/glibc-functions/ptsname_r.texi @ 40140:81f075eaa990
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 26 Jan 2019 15:23:19 +0100 |
parents | 73d60b1f9c96 |
children |
comparison
equal
deleted
inserted
replaced
40139:3bacbf659cc9 | 40140:81f075eaa990 |
---|---|
16 on some platforms: | 16 on some platforms: |
17 OSF/1 5.1. | 17 OSF/1 5.1. |
18 @item | 18 @item |
19 This function has an incompatible declaration on some platforms: | 19 This function has an incompatible declaration on some platforms: |
20 OSF/1 5.1. | 20 OSF/1 5.1. |
21 @item | |
22 When this functions fails, it returns -1 instead of the error code | |
23 on some platforms: | |
24 Android 4.3. | |
21 @end itemize | 25 @end itemize |
22 | 26 |
23 Portability problems not fixed by Gnulib: | 27 Portability problems not fixed by Gnulib: |
24 @itemize | 28 @itemize |
25 @item | |
26 When this functions fails, it provides the error code only as the | |
27 return value, without setting @code{errno}, on some platforms: | |
28 musl libc. | |
29 @end itemize | 29 @end itemize |
30 | |
31 Note: Portable programs should expect to find the error code as the | |
32 return value of this function, not as the value of @code{errno}. | |
33 This is needed for compatibility with musl libc and with the | |
34 forthcoming POSIX Issue 8. |