aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Haitao <penght@cn.fujitsu.com>2013-05-24 09:08:09 +0800
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-06-19 03:31:02 +0200
commit1454246e942abdb97fcfe3b242d630d5b46f08d5 (patch)
tree69e8a169f2b61435a047c1aa2186615462e7552d
parentd50621129375fe782a2e9792110badc41a3b3175 (diff)
downloadman-pages-1454246e942abdb97fcfe3b242d630d5b46f08d5.tar.gz
getlogin.3: ATTRIBUTES: Note function that is not thread-safe
The function getlogin() is not thread safe. The function cuserid() is thread-safe with exceptions. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/getlogin.314
1 files changed, 14 insertions, 0 deletions
diff --git a/man3/getlogin.3 b/man3/getlogin.3
index d2e06d768c..a4517feedb 100644
--- a/man3/getlogin.3
+++ b/man3/getlogin.3
@@ -137,6 +137,20 @@ password database file
\fI/var/run/utmp\fP
(traditionally \fI/etc/utmp\fP;
some libc versions used \fI/var/adm/utmp\fP)
+.SH ATTRIBUTES
+.SS Multithreading(see pthreads(7))
+The
+.BR getlogin ()
+function is not thread-safe.
+.LP
+The
+.BR getlogin_r ()
+function is thread-safe.
+.LP
+The
+.BR cuserid ()
+function is thread-safe with exceptions.
+It is not thread-safe if called with a NULL parameter.
.SH CONFORMING TO
.BR getlogin ()
and