From 5ac55e9c46dd4537eb0fb8e97d111abb52caf51d Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 21 Dec 2005 03:53:29 +0000 Subject: Hide umtx API symbols as well. --- lib/libthr/thread/thr_private.h | 5 ++++- lib/libthr/thread/thr_umtx.h | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'lib') 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 #include +#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 -- cgit v1.1