xref: /onnv-gate/usr/src/cmd/zfs/zfs_util.h (revision 2082:76b439ec3ac1)
1789Sahrens /*
2789Sahrens  * CDDL HEADER START
3789Sahrens  *
4789Sahrens  * The contents of this file are subject to the terms of the
5*2082Seschrock  * Common Development and Distribution License (the "License").
6*2082Seschrock  * You may not use this file except in compliance with the License.
7789Sahrens  *
8789Sahrens  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9789Sahrens  * or http://www.opensolaris.org/os/licensing.
10789Sahrens  * See the License for the specific language governing permissions
11789Sahrens  * and limitations under the License.
12789Sahrens  *
13789Sahrens  * When distributing Covered Code, include this CDDL HEADER in each
14789Sahrens  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15789Sahrens  * If applicable, add the following below this CDDL HEADER, with the
16789Sahrens  * fields enclosed by brackets "[]" replaced with your own identifying
17789Sahrens  * information: Portions Copyright [yyyy] [name of copyright owner]
18789Sahrens  *
19789Sahrens  * CDDL HEADER END
20789Sahrens  */
21789Sahrens /*
22*2082Seschrock  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23789Sahrens  * Use is subject to license terms.
24789Sahrens  */
25789Sahrens 
26789Sahrens #ifndef	_ZFS_UTIL_H
27789Sahrens #define	_ZFS_UTIL_H
28789Sahrens 
29789Sahrens #pragma ident	"%Z%%M%	%I%	%E% SMI"
30789Sahrens 
31*2082Seschrock #include <libzfs.h>
32*2082Seschrock 
33789Sahrens #ifdef	__cplusplus
34789Sahrens extern "C" {
35789Sahrens #endif
36789Sahrens 
37789Sahrens void * safe_malloc(size_t size);
38*2082Seschrock libzfs_handle_t *g_zfs;
39789Sahrens 
40789Sahrens #ifdef	__cplusplus
41789Sahrens }
42789Sahrens #endif
43789Sahrens 
44789Sahrens #endif	/* _ZFS_UTIL_H */
45