getlogin.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Peng Haitao 2014-10-17 11:59:18 +08:00 committed by Michael Kerrisk
parent 93f0f90878
commit edb60ed010
1 changed files with 14 additions and 10 deletions

View File

@ -138,19 +138,23 @@ password database file
(traditionally \fI/etc/utmp\fP;
some libc versions used \fI/var/adm/utmp\fP)
.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 getlogin ()
function is not thread-safe.
.LP
The
T} Thread safety MT-Unsafe locale
T{
.BR getlogin_r ()
function is thread-safe.
.LP
The
T} Thread safety MT-Safe locale
T{
.BR cuserid ()
function is thread-safe with exceptions.
It is not thread-safe if called with a NULL parameter.
T} Thread safety MT-Unsafe race:cuserid/!string locale
.TE
.SH CONFORMING TO
.BR getlogin ()
and