diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2020-12-22 13:07:55 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2020-12-22 13:07:55 +0000 |
commit | 3249d958c533111055c2e9719c36c307b370f253 (patch) | |
tree | 5efa3f63ecf5acff05dcbb2c30943ba4bdf51d7b /distrib/special/libstubs/pthread_mutex.c | |
parent | 093e29265006792ecaf0031e50479e6b4bae6944 (diff) |
Destroy the mutex in tls_config objects when tls_config_free is called.
Add a stub for pthread_mutex_destroy() for installers.
ok tb@
Diffstat (limited to 'distrib/special/libstubs/pthread_mutex.c')
-rw-r--r-- | distrib/special/libstubs/pthread_mutex.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/distrib/special/libstubs/pthread_mutex.c b/distrib/special/libstubs/pthread_mutex.c index b4693dc9911..c6a9178bcc1 100644 --- a/distrib/special/libstubs/pthread_mutex.c +++ b/distrib/special/libstubs/pthread_mutex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_mutex.c,v 1.1 2018/11/11 06:41:28 bcook Exp $ */ +/* $OpenBSD: pthread_mutex.c,v 1.2 2020/12/22 13:07:54 bcook Exp $ */ /* * Copyright (c) 2018 Brent Cook <bcook@openbsd.org> * @@ -26,6 +26,13 @@ pthread_mutex_init(pthread_mutex_t *mutex, DEF_STRONG(pthread_mutex_init); int +pthread_mutex_destroy(pthread_mutex_t *mutex) +{ + return (0); +} +DEF_STRONG(pthread_mutex_destroy); + +int pthread_mutex_lock(pthread_mutex_t *mutex) { return (0); |