summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2004-03-30 15:56:15 +0000
committernectar <nectar@FreeBSD.org>2004-03-30 15:56:15 +0000
commit7ec3e333012ba329299be5ca10738792b75cac89 (patch)
tree6dc88cfd8956062abed823d14f63a72bf26ad661 /lib/libc/include
parentb3ec818746c286dc776ca38f929c2a1feed43c79 (diff)
downloadFreeBSD-src-7ec3e333012ba329299be5ca10738792b75cac89.zip
FreeBSD-src-7ec3e333012ba329299be5ca10738792b75cac89.tar.gz
When a dynamic NSS module is built and linked against a thread
library, it may pull in that thread library at run time. If the process started out single-threaded, this could cause attempts to release locks that do not exist. Guard against this possibility by checking __isthreaded before invoking thread primitives. A similar problem remains if the process is linked against one thread library, but the NSS module is linked against another. This can only be avoided by careful design of the NSS module. Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine)
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/nss_tls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/include/nss_tls.h b/lib/libc/include/nss_tls.h
index 999d198..13ab367 100644
--- a/lib/libc/include/nss_tls.h
+++ b/lib/libc/include/nss_tls.h
@@ -75,6 +75,6 @@ name##_getstate(struct name##_state **p) \
return (rv); \
} \
/* allow the macro invocation to end with a semicolon */ \
-typedef int _##name##_bmVjdGFy
+struct _clashproof_bmVjdGFy
#endif /* _NSS_TLS_H_ */
OpenPOWER on IntegriCloud