]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/getpass.3
locale.1, localedef.1, _exit.2, accept.2, access.2, acct.2, adjtimex.2, bdflush.2...
[thirdparty/man-pages.git] / man3 / getpass.3
index 58ff7206875697cb64f28d28c9ae7a44cf9e2ac7..8c7705b50007cd91bf7b976ac7c8c0418af164bb 100644 (file)
 .\" <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
@@ -41,10 +41,9 @@ 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:
@@ -94,10 +93,17 @@ The process does not have a controlling terminal.
 .\" .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.
@@ -144,11 +150,11 @@ and
 .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