The functions basename() and dirname() are thread safe. Signed-off-by: Peng Haitao <penght@xxxxxxxxxxxxxx> --- man3/basename.3 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man3/basename.3 b/man3/basename.3 index bde1471..3894819 100644 --- a/man3/basename.3 +++ b/man3/basename.3 @@ -126,6 +126,13 @@ and return pointers to null-terminated strings. (Do not pass these pointers to .BR free (3).) +.SH ATTRIBUTES +.SS Multithreading (see pthreads(7)) +The +.BR basename () +and +.BR dirname () +functions are thread-safe. .SH CONFORMING TO POSIX.1-2001. .SH NOTES -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html