Hash :
3d8634f1
Author :
Date :
2018-08-19T14:14:17
getpass: Move declaration to <unistd.h>. * lib/unistd.in.h (getpass): New declaration. * lib/getpass.h: Replace with a stub that just includes <unistd.h>. * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE. Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared. (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS. On glibc systems, don't set REPLACE_GETPASS to 1. * modules/getpass (Depends-on): Add 'unistd'. (configure.ac): Test also REPLACE_GETPASS. Define a module indicator. (Include): Specify <unistd.h> instead of "getpass.h". * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'. (configure.ac): Sync with the configure.ac section of modules/getpass. (Include): Specify <unistd.h> instead of "getpass.h". * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared. (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS, REPLACE_GETPASS. * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS, REPLACE_GETPASS. * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'. * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc and musl. * NEWS: Mention the change.
Description:
getpass() function: read a password of arbitrary length from /dev/tty.
Files:
lib/getpass.h
lib/getpass.c
m4/getpass.m4
Depends-on:
getpass
configure.ac:
gl_FUNC_GETPASS_GNU
if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then
AC_LIBOBJ([getpass])
gl_PREREQ_GETPASS
fi
gl_UNISTD_MODULE_INDICATOR([getpass])
Makefile.am:
Include:
<unistd.h>
License:
LGPL
Maintainer:
Jim Meyering, glibc