Home | History | Annotate | Download | only in zfs
      1   789    ahrens /*
      2   789    ahrens  * CDDL HEADER START
      3   789    ahrens  *
      4   789    ahrens  * The contents of this file are subject to the terms of the
      5  2082  eschrock  * Common Development and Distribution License (the "License").
      6  2082  eschrock  * You may not use this file except in compliance with the License.
      7   789    ahrens  *
      8   789    ahrens  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9   789    ahrens  * or http://www.opensolaris.org/os/licensing.
     10   789    ahrens  * See the License for the specific language governing permissions
     11   789    ahrens  * and limitations under the License.
     12   789    ahrens  *
     13   789    ahrens  * When distributing Covered Code, include this CDDL HEADER in each
     14   789    ahrens  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15   789    ahrens  * If applicable, add the following below this CDDL HEADER, with the
     16   789    ahrens  * fields enclosed by brackets "[]" replaced with your own identifying
     17   789    ahrens  * information: Portions Copyright [yyyy] [name of copyright owner]
     18   789    ahrens  *
     19   789    ahrens  * CDDL HEADER END
     20   789    ahrens  */
     21   789    ahrens /*
     22  2082  eschrock  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
     23   789    ahrens  * Use is subject to license terms.
     24   789    ahrens  */
     25   789    ahrens 
     26   789    ahrens #ifndef	_ZFS_UTIL_H
     27   789    ahrens #define	_ZFS_UTIL_H
     28   789    ahrens 
     29   789    ahrens #pragma ident	"%Z%%M%	%I%	%E% SMI"
     30   789    ahrens 
     31  2082  eschrock #include <libzfs.h>
     32  2082  eschrock 
     33   789    ahrens #ifdef	__cplusplus
     34   789    ahrens extern "C" {
     35   789    ahrens #endif
     36   789    ahrens 
     37   789    ahrens void * safe_malloc(size_t size);
     38  2082  eschrock libzfs_handle_t *g_zfs;
     39   789    ahrens 
     40   789    ahrens #ifdef	__cplusplus
     41   789    ahrens }
     42   789    ahrens #endif
     43   789    ahrens 
     44   789    ahrens #endif	/* _ZFS_UTIL_H */
     45