1 /* $OpenBSD: pthread_mutex.c,v 1.2 2020/12/22 13:07:54 bcook Exp $ */
2 /*
3 * Copyright (c) 2018 Brent Cook <bcook@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */
17
18 #include <pthread.h>
19
20 int
pthread_mutex_init(pthread_mutex_t * mutex,const pthread_mutexattr_t * attr)21 pthread_mutex_init(pthread_mutex_t *mutex,
22 const pthread_mutexattr_t *attr)
23 {
24 return (0);
25 }
26 DEF_STRONG(pthread_mutex_init);
27
28 int
pthread_mutex_destroy(pthread_mutex_t * mutex)29 pthread_mutex_destroy(pthread_mutex_t *mutex)
30 {
31 return (0);
32 }
33 DEF_STRONG(pthread_mutex_destroy);
34
35 int
pthread_mutex_lock(pthread_mutex_t * mutex)36 pthread_mutex_lock(pthread_mutex_t *mutex)
37 {
38 return (0);
39 }
40 DEF_STRONG(pthread_mutex_lock);
41
42 int
pthread_mutex_unlock(pthread_mutex_t * mutex)43 pthread_mutex_unlock(pthread_mutex_t *mutex)
44 {
45 return (0);
46 }
47 DEF_STRONG(pthread_mutex_unlock);
48