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 20int 21pthread_mutex_init(pthread_mutex_t *mutex, 22 const pthread_mutexattr_t *attr) 23{ 24 return (0); 25} 26DEF_STRONG(pthread_mutex_init); 27 28int 29pthread_mutex_destroy(pthread_mutex_t *mutex) 30{ 31 return (0); 32} 33DEF_STRONG(pthread_mutex_destroy); 34 35int 36pthread_mutex_lock(pthread_mutex_t *mutex) 37{ 38 return (0); 39} 40DEF_STRONG(pthread_mutex_lock); 41 42int 43pthread_mutex_unlock(pthread_mutex_t *mutex) 44{ 45 return (0); 46} 47DEF_STRONG(pthread_mutex_unlock); 48