Hide umtx API symbols as well.

This commit is contained in:
David Xu 2005-12-21 03:53:29 +00:00
parent cf905a1575
commit 8429e73473
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153594
2 changed files with 9 additions and 6 deletions

View file

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

View file

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