10.46.43 ptsname_r
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/ptsname_r.html
Documentation:
Gnulib module: ptsname_r
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
Mac OS X 10.12, FreeBSD 12.0, NetBSD 5.0, OpenBSD 7.5, Minix 3.1.8,
AIX 5.1, HP-UX 11, Solaris 11.4, Cygwin 1.7.9, mingw,
MSVC 14.
- When this function fails, it returns -1 instead of the error code
on some platforms:
macOS 14, FreeBSD 14.0, Android 4.3.
- When this function fails with ERANGE, it stores an empty string as result
on some platforms:
NetBSD 10.0.
Portability problems not fixed by Gnulib:
- When this function fails, it returns 0 and stores an empty string as result
on some platforms:
Cygwin 2.9.
Note: Portable programs should expect to find the error code as the
return value of this function, not as the value of errno
.
This is needed for compatibility with musl libc and with the
forthcoming POSIX Issue 8.