1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * Copyright (c) 2013 Spectra Logic Corporation. All rights reserved. 23 */ 24 25 /* 26 * This file's primary purpose is to build-time enforce C++ compatibility of 27 * the ZFS headers. However, if desired, it can also be used for utility 28 * functions to be used by ztest.c. 29 */ 30 31 /* Not sure why these are necessary? */ 32 #define B_TRUE _B_TRUE 33 #define B_FALSE _B_FALSE 34 35 /* from ztest.c */ 36 #include <sys/zfs_context.h> 37 #include <sys/spa.h> 38 #include <sys/dmu.h> 39 #include <sys/txg.h> 40 #include <sys/dbuf.h> 41 #include <sys/zap.h> 42 #include <sys/dmu_objset.h> 43 #include <sys/poll.h> 44 #include <sys/stat.h> 45 #include <sys/time.h> 46 #include <sys/wait.h> 47 #include <sys/mman.h> 48 #include <sys/resource.h> 49 #include <sys/zio.h> 50 #include <sys/zil.h> 51 #include <sys/zil_impl.h> 52 #include <sys/vdev_impl.h> 53 #include <sys/vdev_file.h> 54 #include <sys/spa_impl.h> 55 #include <sys/metaslab_impl.h> 56 #include <sys/dsl_prop.h> 57 #include <sys/dsl_dataset.h> 58 #include <sys/dsl_destroy.h> 59 #include <sys/dsl_scan.h> 60 #include <sys/zio_checksum.h> 61 #include <sys/refcount.h> 62 #include <sys/zfeature.h> 63 #include <sys/dsl_userhold.h> 64 #include <stdio.h> 65 #include <stdio_ext.h> 66 #include <stdlib.h> 67 #include <unistd.h> 68 #include <signal.h> 69 #include <umem.h> 70 #include <dlfcn.h> 71 #include <ctype.h> 72 #include <math.h> 73 #include <sys/fs/zfs.h> 74 #include <libnvpair.h>