.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
-.TH GETPASS 3 2013-06-21 "Linux" "Linux Programmer's Manual"
+.TH GETPASS 3 2016-03-15 "Linux" "Linux Programmer's Manual"
.SH NAME
getpass \- get a password
.SH SYNOPSIS
.B #include <unistd.h>
.sp
-.BI "char *getpass( const char *" prompt );
+.BI "char *getpass(const char *" prompt );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.TP 4
Since glibc 2.2.2:
.nf
-_BSD_SOURCE ||
- (_XOPEN_SOURCE\ >=\ 500 ||
- _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) &&
- !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600)
+_XOPEN_SOURCE && ! (_POSIX_C_SOURCE\ >=\ 200112L)
+ || /* Glibc since 2.19: */ _DEFAULT_SOURCE
+ || /* Glibc versions <= 2.19: */ _BSD_SOURCE
.fi
.TP 4
Before glibc 2.2.2:
.\" .BR getpass ()
.\" function appeared in Version 7 AT&T UNIX.
.SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
.BR getpass ()
-function is not thread-safe.
+T} Thread safety MT-Unsafe term
+.TE
.SH CONFORMING TO
Present in SUSv2, but marked LEGACY.
Removed in POSIX.1-2001.
.BR _SC_PASS_MAX ,
and the function
.BR getpass ().
-Libc4 and libc5 have never supported
-.B PASS_MAX
-or
-.BR _SC_PASS_MAX .
-Glibc2 accepts
+.\" Libc4 and libc5 have never supported
+.\" .B PASS_MAX
+.\" or
+.\" .BR _SC_PASS_MAX .
+The glibc version accepts
.B _SC_PASS_MAX
and returns
.B BUFSIZ