13.118.19 getpass
Documentation:
Gnulib module: getpass or getpass-gnu
Portability problems fixed by either Gnulib module getpass
or getpass-gnu
:
- This function is missing on some platforms:
mingw, MSVC 14, Android 9.0.
- This function cannot be called from plain inline or extern inline functions
on some platforms:
Android 13.
Portability problems fixed by Gnulib module getpass-gnu
:
- The returned password is truncated to PASS_MAX characters on some platforms:
uClibc (256), musl (128), macOS 14 (128), FreeBSD 14.0 (128), NetBSD 3.0 (128), OpenBSD 4.0 (128), AIX 5.1 (32), HP-UX 11 (8), Solaris 11 2010-11 (8, even less than PASS_MAX), Cygwin (128).
The gnulib implementation returns the password untruncated.
Portability problems not fixed by Gnulib: