From 6d682990cdf9fbd67335623ca21b94d6744f2318 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Wed, 31 Dec 2014 13:22:35 +0800 Subject: [PATCH] setenv.3: ATTRIBUTES: Note functions that are thread-unsafe The function setenv() and unsetenv() are thread unsafe. Signed-off-by: Ma Shimiao Signed-off-by: Michael Kerrisk --- man3/setenv.3 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man3/setenv.3 b/man3/setenv.3 index 6683d5977..e28bf0d78 100644 --- a/man3/setenv.3 +++ b/man3/setenv.3 @@ -125,6 +125,19 @@ or contains an \(aq=\(aq character. .TP .B ENOMEM Insufficient memory to add a new variable to the environment. +.SH ATTRIBUTES +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 setenv (), +.BR unsetenv () +T} Thread safety MT-Unsafe const:env +.TE .SH CONFORMING TO 4.3BSD, POSIX.1-2001. .SH NOTES