1*b819cea2SGordon Ross /*
2*b819cea2SGordon Ross  * CDDL HEADER START
3*b819cea2SGordon Ross  *
4*b819cea2SGordon Ross  * The contents of this file are subject to the terms of the
5*b819cea2SGordon Ross  * Common Development and Distribution License, Version 1.0 only
6*b819cea2SGordon Ross  * (the "License").  You may not use this file except in compliance
7*b819cea2SGordon Ross  * with the License.
8*b819cea2SGordon Ross  *
9*b819cea2SGordon Ross  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*b819cea2SGordon Ross  * or http://www.opensolaris.org/os/licensing.
11*b819cea2SGordon Ross  * See the License for the specific language governing permissions
12*b819cea2SGordon Ross  * and limitations under the License.
13*b819cea2SGordon Ross  *
14*b819cea2SGordon Ross  * When distributing Covered Code, include this CDDL HEADER in each
15*b819cea2SGordon Ross  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*b819cea2SGordon Ross  * If applicable, add the following below this CDDL HEADER, with the
17*b819cea2SGordon Ross  * fields enclosed by brackets "[]" replaced with your own identifying
18*b819cea2SGordon Ross  * information: Portions Copyright [yyyy] [name of copyright owner]
19*b819cea2SGordon Ross  *
20*b819cea2SGordon Ross  * CDDL HEADER END
21*b819cea2SGordon Ross  */
22*b819cea2SGordon Ross /*
23*b819cea2SGordon Ross  * Copyright (c) 1991-1998 by Sun Microsystems, Inc.
24*b819cea2SGordon Ross  * All rights reserved.
25*b819cea2SGordon Ross  *
26*b819cea2SGordon Ross  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
27*b819cea2SGordon Ross  */
28*b819cea2SGordon Ross 
29*b819cea2SGordon Ross /*
30*b819cea2SGordon Ross  * t_lock.h:	Prototypes for disp_locks, plus include files
31*b819cea2SGordon Ross  *		that describe the interfaces to kernel synch.
32*b819cea2SGordon Ross  *		objects.
33*b819cea2SGordon Ross  */
34*b819cea2SGordon Ross 
35*b819cea2SGordon Ross #ifndef _SYS_T_LOCK_H
36*b819cea2SGordon Ross #define	_SYS_T_LOCK_H
37*b819cea2SGordon Ross 
38*b819cea2SGordon Ross /* these two are real */
39*b819cea2SGordon Ross #include <sys/machlock.h>
40*b819cea2SGordon Ross #include <sys/param.h>
41*b819cea2SGordon Ross 
42*b819cea2SGordon Ross /* the rest are fake */
43*b819cea2SGordon Ross #include <sys/mutex.h>
44*b819cea2SGordon Ross #include <sys/rwlock.h>
45*b819cea2SGordon Ross #include <sys/semaphore.h>
46*b819cea2SGordon Ross #include <sys/condvar.h>
47*b819cea2SGordon Ross 
48*b819cea2SGordon Ross /*
49*b819cea2SGordon Ross  * The real sys/semaphore.h pulls in sys/thread and some headers
50*b819cea2SGordon Ross  * using sys/t_lock.h rely on that, so let's pull it in here too.
51*b819cea2SGordon Ross  * Note that sys/thread.h includes sys/t_lock.h too (a cycle) but
52*b819cea2SGordon Ross  * that's OK thanks to the multi-include guards.
53*b819cea2SGordon Ross  */
54*b819cea2SGordon Ross #if defined(_KERNEL) || defined(_FAKE_KERNEL)
55*b819cea2SGordon Ross #include <sys/thread.h>
56*b819cea2SGordon Ross #endif
57*b819cea2SGordon Ross 
58*b819cea2SGordon Ross #endif	/* _SYS_T_LOCK_H */
59