1 // SPDX-License-Identifier: CDDL-1.0 2 /* 3 * This file and its contents are supplied under the terms of the 4 * Common Development and Distribution License ("CDDL"), version 1.0. 5 * You may only use this file in accordance with the terms of version 6 * 1.0 of the CDDL. 7 * 8 * A full copy of the text of the CDDL should have accompanied this 9 * source. A copy of the CDDL is also available via the Internet at 10 * https://opensource.org/license/CDDL-1.0. 11 */ 12 /* 13 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 14 */ 15 16 #ifndef _ZFS_UTIL_H 17 #define _ZFS_UTIL_H 18 19 #include <libzfs.h> 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 void *safe_malloc(size_t size); 26 void nomem(void); 27 extern libzfs_handle_t *g_zfs; 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif /* _ZFS_UTIL_H */ 34