From bad52bdf9a37380acce04c65bda77ab478ac5d4f Mon Sep 17 00:00:00 2001 From: Zeng Linggang Date: Wed, 13 May 2015 14:53:43 +0800 Subject: [PATCH] getifaddrs.3: ATTRIBUTES: Note functions that are thread-safe After research, We think getifaddrs() and freeifaddrs() are not thread-safe. But, there is not markings of getifaddrs() and freeifaddrs() in glibc document. - getifaddrs: MT-Safe - freeifaddrs: MT-Safe Signed-off-by: Zeng Linggang Signed-off-by: Michael Kerrisk --- man3/getifaddrs.3 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man3/getifaddrs.3 b/man3/getifaddrs.3 index ae6ac8ecf..bc336c61d 100644 --- a/man3/getifaddrs.3 +++ b/man3/getifaddrs.3 @@ -167,6 +167,20 @@ the implementation supported only IPv4 addresses; IPv6 support was added in glibc 2.3.3. Support of address families other than IPv4 is available only on kernels that support netlink. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7). +.TS +allbox; +lbw27 lb lb +l l l. +Interface Attribute Value +T{ +.BR getifaddrs (), +.BR freeifaddrs () +T} Thread safety MT-Safe +.TE + .SH CONFORMING TO Not in POSIX.1-2001. This function first appeared in BSDi and is