1789Sahrens /* 2789Sahrens * CDDL HEADER START 3789Sahrens * 4789Sahrens * The contents of this file are subject to the terms of the 52082Seschrock * Common Development and Distribution License (the "License"). 62082Seschrock * 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*12446SMark.Musante@Sun.COM * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23789Sahrens */ 24789Sahrens 25789Sahrens #ifndef _ZFS_UTIL_H 26789Sahrens #define _ZFS_UTIL_H 27789Sahrens 282082Seschrock #include <libzfs.h> 292082Seschrock 30789Sahrens #ifdef __cplusplus 31789Sahrens extern "C" { 32789Sahrens #endif 33789Sahrens 34789Sahrens void * safe_malloc(size_t size); 35*12446SMark.Musante@Sun.COM void nomem(void); 362082Seschrock libzfs_handle_t *g_zfs; 37789Sahrens 38789Sahrens #ifdef __cplusplus 39789Sahrens } 40789Sahrens #endif 41789Sahrens 42789Sahrens #endif /* _ZFS_UTIL_H */ 43