summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2016-09-03 10:58:04 +0000
committertedu <tedu@openbsd.org>2016-09-03 10:58:04 +0000
commit59217b44bec7fac5a34a70d64182b297da2d39dd (patch)
treea790507ce0e75ee2504d3e10b9023675e7a25041 /lib/libc
parentEnable a stripped down version of doas(1) on the install media. (diff)
downloadwireguard-openbsd-59217b44bec7fac5a34a70d64182b297da2d39dd.tar.xz
wireguard-openbsd-59217b44bec7fac5a34a70d64182b297da2d39dd.zip
note that getpass is obsolete. removed from posix in 2001.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getpass.313
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/gen/getpass.3 b/lib/libc/gen/getpass.3
index e4796be3d14..972ce24874e 100644
--- a/lib/libc/gen/getpass.3
+++ b/lib/libc/gen/getpass.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpass.3,v 1.16 2016/09/01 09:46:32 natano Exp $
+.\" $OpenBSD: getpass.3,v 1.17 2016/09/03 10:58:04 tedu Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 1 2016 $
+.Dd $Mdocdate: September 3 2016 $
.Dt GETPASS 3
.Os
.Sh NAME
@@ -39,6 +39,11 @@
.Ft char *
.Fn getpass "const char *prompt"
.Sh DESCRIPTION
+.Bf -symbolic
+This funtion is obsolete. Consider using
+.Xr readpassphrase 3 .
+.Ef
+.Pp
The
.Fn getpass
function displays a prompt to, and reads in a password from,
@@ -108,12 +113,14 @@ This contradicts
but the
.Ox
implementation is conformant in all other respects.
+Removed from
+.St -p1003.1-2001 .
.Sh HISTORY
A
.Fn getpass
function appeared in
.At v7 .
-.Sh BUGS
+.Sh CAVEATS
The
.Fn getpass
function leaves its result in an internal static object and returns