[PATCH] encrypt.3: ATTRIBUTES: Note functions that are not thread-safe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The functions encrypt() and setkey() are not thread safe.

Signed-off-by: Peng Haitao <penght@xxxxxxxxxxxxxx>
---
 man3/encrypt.3 | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/man3/encrypt.3 b/man3/encrypt.3
index 411cb22..50b0f15 100644
--- a/man3/encrypt.3
+++ b/man3/encrypt.3
@@ -121,6 +121,19 @@ On success, it is unchanged.
 .B ENOSYS
 The function is not provided.
 (For example because of former USA export restrictions.)
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The functions
+.BR encrypt ()
+and
+.BR setkey ()
+are not thread-safe.
+.LP
+The functions
+.BR encrypt_r ()
+and
+.BR setkey_r ()
+are thread-safe.
 .SH CONFORMING TO
 The functions
 .BR encrypt ()
-- 
1.8.1.4

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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux