1156090Sdeischen/*
2156103Sdelphij * Copyright (C) 2006 The FreeBSD Project. All rights reserved.
3156090Sdeischen *
4156090Sdeischen * Redistribution and use in source and binary forms, with or without
5156090Sdeischen * modification, are permitted provided that the following conditions
6156090Sdeischen * are met:
7156090Sdeischen * 1. Redistributions of source code must retain the above copyright
8156090Sdeischen *    notice, this list of conditions and the following disclaimer.
9156090Sdeischen * 2. Redistributions in binary form must reproduce the above copyright
10156090Sdeischen *    notice, this list of conditions and the following disclaimer in the
11156090Sdeischen *    documentation and/or other materials provided with the distribution.
12156090Sdeischen *
13156090Sdeischen * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14156090Sdeischen * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15156090Sdeischen * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16156090Sdeischen * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17156090Sdeischen * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18156090Sdeischen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19156090Sdeischen * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20156090Sdeischen * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21156090Sdeischen * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22156090Sdeischen * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23156090Sdeischen * SUCH DAMAGE.
24156090Sdeischen *
25156090Sdeischen * $FreeBSD$
26156090Sdeischen */
27156090Sdeischen#ifndef _MT_MISC_H
28156090Sdeischen#define	_MT_MISC_H
29156090Sdeischen
30156090Sdeischen/* Take these locks out of the application namespace. */
31156090Sdeischen#define	svc_lock		__svc_lock
32156090Sdeischen#define	svc_fd_lock		__svc_fd_lock
33156090Sdeischen#define	rpcbaddr_cache_lock	__rpcbaddr_cache_lock
34156090Sdeischen#define	authdes_ops_lock	__authdes_ops_lock
35156090Sdeischen#define	authnone_lock		__authnone_lock
36156090Sdeischen#define	authsvc_lock		__authsvc_lock
37156090Sdeischen#define	clnt_fd_lock		__clnt_fd_lock
38156090Sdeischen#define	clntraw_lock		__clntraw_lock
39156090Sdeischen#define	dupreq_lock		__dupreq_lock
40156090Sdeischen#define	loopnconf_lock		__loopnconf_lock
41156090Sdeischen#define	ops_lock		__ops_lock
42156090Sdeischen#define	proglst_lock		__proglst_lock
43156090Sdeischen#define	rpcsoc_lock		__rpcsoc_lock
44156090Sdeischen#define	svcraw_lock		__svcraw_lock
45156090Sdeischen#define	xprtlist_lock		__xprtlist_lock
46156090Sdeischen
47156090Sdeischenextern pthread_rwlock_t	svc_lock;
48156090Sdeischenextern pthread_rwlock_t	svc_fd_lock;
49156090Sdeischenextern pthread_rwlock_t	rpcbaddr_cache_lock;
50156090Sdeischenextern pthread_mutex_t	authdes_ops_lock;
51156090Sdeischenextern pthread_mutex_t	svcauthdesstats_lock;
52156090Sdeischenextern pthread_mutex_t	authnone_lock;
53156090Sdeischenextern pthread_mutex_t	authsvc_lock;
54156090Sdeischenextern pthread_mutex_t	clnt_fd_lock;
55156090Sdeischenextern pthread_mutex_t	clntraw_lock;
56156090Sdeischenextern pthread_mutex_t	dupreq_lock;
57156090Sdeischenextern pthread_mutex_t	loopnconf_lock;
58156090Sdeischenextern pthread_mutex_t	ops_lock;
59156090Sdeischenextern pthread_mutex_t	proglst_lock;
60156090Sdeischenextern pthread_mutex_t	rpcsoc_lock;
61156090Sdeischenextern pthread_mutex_t	svcraw_lock;
62156090Sdeischenextern pthread_mutex_t	tsd_lock;
63156090Sdeischenextern pthread_mutex_t	xprtlist_lock;
64156090Sdeischen
65156090Sdeischen#endif
66