[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] getpass.h
From: |
Simon Josefsson |
Subject: |
[Bug-gnulib] getpass.h |
Date: |
Sat, 07 Aug 2004 23:53:22 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
?
2004-08-07 Simon Josefsson <address@hidden>
* getpass.h: Add.
2004-08-07 Simon Josefsson <address@hidden>
* modules/getpass-gnu (Files): Add getpass.h.
(Depends-on): Add stdbool.
* modules/getpass (Files): Add getpass.h.
2004-08-07 Simon Josefsson <address@hidden>
* getpass.m4: Check getpass declaration.
Index: lib/getpass.h
===================================================================
RCS file: lib/getpass.h
diff -N lib/getpass.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lib/getpass.h 7 Aug 2004 21:48:40 -0000
@@ -0,0 +1,31 @@
+/* getpass.h -- Read a password of arbitrary length from /dev/tty or stdin.
+ Copyright (C) 2004 Free Software Foundation, Inc.
+ Contributed by Simon Josefsson <address@hidden>, 2004.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#ifndef GETPASS_H
+#define GETPASS_H
+
+/* Get getpass declaration, if available. */
+#include <unistd.h>
+
+#if defined HAVE_DECL_GETPASS && !HAVE_DECL_GETPASS
+/* Read a password of arbitrary length from /dev/tty or stdin. */
+extern char *getpass (const char *prompt)
+
+#endif
+
+#endif /* GETPASS_H */
Index: m4/getpass.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getpass.m4,v
retrieving revision 1.5
diff -u -p -r1.5 getpass.m4
--- m4/getpass.m4 16 Jan 2004 08:30:10 -0000 1.5
+++ m4/getpass.m4 7 Aug 2004 21:48:40 -0000
@@ -1,4 +1,4 @@
-# getpass.m4 serial 3
+# getpass.m4 serial 4
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -10,6 +10,7 @@ dnl the same distribution terms as the r
AC_DEFUN([gl_FUNC_GETPASS],
[
AC_REPLACE_FUNCS(getpass)
+ AC_CHECK_DECLS_ONCE(getpass)
if test $ac_cv_func_getpass = no; then
gl_PREREQ_GETPASS
fi
@@ -19,6 +20,7 @@ AC_DEFUN([gl_FUNC_GETPASS],
# arbitrary length (not just 8 bytes as on HP-UX).
AC_DEFUN([gl_FUNC_GETPASS_GNU],
[
+ AC_CHECK_DECLS_ONCE(getpass)
dnl TODO: Detect when GNU getpass() is already found in glibc.
AC_LIBOBJ(getpass)
gl_PREREQ_GETPASS
Index: modules/getpass
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/getpass,v
retrieving revision 1.4
diff -u -p -r1.4 getpass
--- modules/getpass 8 Oct 2003 20:34:55 -0000 1.4
+++ modules/getpass 7 Aug 2004 21:48:40 -0000
@@ -2,6 +2,7 @@ Description:
getpass() function: read a password from /dev/tty.
Files:
+lib/getpass.h
lib/getpass.c
m4/getpass.m4
Index: modules/getpass-gnu
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/getpass-gnu,v
retrieving revision 1.1
diff -u -p -r1.1 getpass-gnu
--- modules/getpass-gnu 31 Jul 2003 14:47:20 -0000 1.1
+++ modules/getpass-gnu 7 Aug 2004 21:48:40 -0000
@@ -2,12 +2,14 @@ Description:
getpass() function: read a password of arbitrary length from /dev/tty.
Files:
+lib/getpass.h
lib/getpass.c
m4/getpass.m4
Depends-on:
unlocked-io
getline
+stdbool
configure.ac:
gl_FUNC_GETPASS_GNU
- [Bug-gnulib] getpass.h,
Simon Josefsson <=