mirror of https://github.com/mkerrisk/man-pages
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:
parent
76474a15cb
commit
6df1ca5c9d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue