From 6df1ca5c9dc7e1b4838a9724653f0dd3aa183893 Mon Sep 17 00:00:00 2001 From: Peng Haitao Date: Mon, 21 Jul 2014 16:57:09 +0800 Subject: [PATCH] getcwd.3: ATTRIBUTES: Note functions that are thread-safe The functions getcwd(), getwd() and get_current_dir_name() are thread safe. Signed-off-by: Peng Haitao Signed-off-by: Michael Kerrisk --- man3/getcwd.3 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/man3/getcwd.3 b/man3/getcwd.3 index 6cbee3510..976372a9b 100644 --- a/man3/getcwd.3 +++ b/man3/getcwd.3 @@ -205,6 +205,22 @@ The argument is less than the length of the absolute pathname of the working directory, including the terminating null byte. You need to allocate a bigger array and try again. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7). +.TS +allbox; +lbw22 lb lb +l l l. +Interface Attribute Value +T{ +.BR getcwd (), +.BR getwd () +T} Thread safety MT-Safe +T{ +.BR get_current_dir_name () +T} Thread safety MT-Safe env +.TE .SH CONFORMING TO .BR getcwd () conforms to POSIX.1-2001.