]> Savannah Git Hosting - gnulib.git/commit
getpass: Move declaration to <unistd.h>.
authorBruno Haible <bruno@clisp.org>
Sun, 19 Aug 2018 12:14:17 +0000 (14:14 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Aug 2018 12:14:17 +0000 (14:14 +0200)
commit3d8634f17142fd4b12440c79ed4226ba6199f7dc
tree796815780465fbc4e7f5ff8f82fd8574f856dc11
parent4021aac50de4c0c9a997f4ec60075fe9831af33c
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.
ChangeLog
NEWS
doc/glibc-functions/getpass.texi
lib/getpass.h
lib/unistd.in.h
m4/getpass.m4
m4/unistd_h.m4
modules/getpass
modules/getpass-gnu
modules/unistd
tests/test-unistd-c++.cc