/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (C) 2006 The FreeBSD Project. All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8* 1. Redistributions of source code must retain the above copyright9* notice, this list of conditions and the following disclaimer.10* 2. Redistributions in binary form must reproduce the above copyright11* notice, this list of conditions and the following disclaimer in the12* documentation and/or other materials provided with the distribution.13*14* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND15* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE16* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE17* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE18* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL19* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS20* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)21* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT22* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY23* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF24* SUCH DAMAGE.25*/26#ifndef _MT_MISC_H27#define _MT_MISC_H2829/* Take these locks out of the application namespace. */30#define svc_lock __svc_lock31#define svc_fd_lock __svc_fd_lock32#define rpcbaddr_cache_lock __rpcbaddr_cache_lock33#define authdes_ops_lock __authdes_ops_lock34#define authnone_lock __authnone_lock35#define authsvc_lock __authsvc_lock36#define clnt_fd_lock __clnt_fd_lock37#define clntraw_lock __clntraw_lock38#define dupreq_lock __dupreq_lock39#define loopnconf_lock __loopnconf_lock40#define ops_lock __ops_lock41#define proglst_lock __proglst_lock42#define rpcsoc_lock __rpcsoc_lock43#define svcraw_lock __svcraw_lock44#define xprtlist_lock __xprtlist_lock4546extern pthread_rwlock_t svc_lock;47extern pthread_rwlock_t svc_fd_lock;48extern pthread_rwlock_t rpcbaddr_cache_lock;49extern pthread_mutex_t authdes_ops_lock;50extern pthread_mutex_t svcauthdesstats_lock;51extern pthread_mutex_t authnone_lock;52extern pthread_mutex_t authsvc_lock;53extern pthread_mutex_t clnt_fd_lock;54extern pthread_mutex_t clntraw_lock;55extern pthread_mutex_t dupreq_lock;56extern pthread_mutex_t loopnconf_lock;57extern pthread_mutex_t ops_lock;58extern pthread_mutex_t proglst_lock;59extern pthread_mutex_t rpcsoc_lock;60extern pthread_mutex_t svcraw_lock;61extern pthread_mutex_t tsd_lock;62extern pthread_mutex_t xprtlist_lock;6364#endif656667