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 <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Peng Haitao 2014-07-21 16:57:09 +08:00 committed by Michael Kerrisk
parent 76474a15cb
commit 6df1ca5c9d
1 changed files with 16 additions and 0 deletions

View File

@ -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.