summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-12-21 03:53:29 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-12-21 03:53:29 +0000
commit5ac55e9c46dd4537eb0fb8e97d111abb52caf51d (patch)
tree40103d9fe57776e7c1088d3e131a4882552b7356 /lib/libthr
parent8d9e23fb510c75acac991ea36bb56446e708fed9 (diff)
downloadFreeBSD-src-5ac55e9c46dd4537eb0fb8e97d111abb52caf51d.zip
FreeBSD-src-5ac55e9c46dd4537eb0fb8e97d111abb52caf51d.tar.gz
Hide umtx API symbols as well.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_private.h5
-rw-r--r--lib/libthr/thread/thr_umtx.h10
2 files changed, 9 insertions, 6 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index f4b2616..ddd75dc 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -51,11 +51,14 @@
#include <sys/thr.h>
#include <pthread.h>
+#ifndef __hidden
+#define __hidden __attribute__((visibility("hidden")))
+#endif
+
#include "pthread_md.h"
#include "thr_umtx.h"
#include "thread_db.h"
-#define __hidden __attribute__((visibility("hidden")))
typedef TAILQ_HEAD(pthreadlist, pthread) pthreadlist;
typedef TAILQ_HEAD(atfork_head, pthread_atfork) atfork_head;
diff --git a/lib/libthr/thread/thr_umtx.h b/lib/libthr/thread/thr_umtx.h
index 8d2718d..1fbf534 100644
--- a/lib/libthr/thread/thr_umtx.h
+++ b/lib/libthr/thread/thr_umtx.h
@@ -33,10 +33,10 @@
typedef long umtx_t;
-int __thr_umtx_lock(volatile umtx_t *mtx, long id);
+int __thr_umtx_lock(volatile umtx_t *mtx, long id) __hidden;
int __thr_umtx_timedlock(volatile umtx_t *mtx, long id,
- const struct timespec *timeout);
-int __thr_umtx_unlock(volatile umtx_t *mtx, long id);
+ const struct timespec *timeout) __hidden;
+int __thr_umtx_unlock(volatile umtx_t *mtx, long id) __hidden;
static inline void
_thr_umtx_init(volatile umtx_t *mtx)
@@ -82,6 +82,6 @@ _thr_umtx_unlock(volatile umtx_t *mtx, long id)
}
int _thr_umtx_wait(volatile umtx_t *mtx, umtx_t exp,
- const struct timespec *timeout);
-int _thr_umtx_wake(volatile umtx_t *mtx, int count);
+ const struct timespec *timeout) __hidden;
+int _thr_umtx_wake(volatile umtx_t *mtx, int count) __hidden;
#endif
OpenPOWER on IntegriCloud