1247882Smm/*
2247882Smm * CDDL HEADER SART
3247882Smm *
4247882Smm * The contents of this file are subject to the terms of the
5247882Smm * Common Development and Distribution License (the "License").
6247882Smm * You may not use this file except in compliance with the License.
7247882Smm *
8247882Smm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9247882Smm * or http://www.opensolaris.org/os/licensing.
10247882Smm * See the License for the specific language governing permissions
11247882Smm * and limitations under the License.
12247882Smm *
13247882Smm * When distributing Covered Code, include this CDDL HEADER in each
14247882Smm * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15247882Smm * If applicable, add the following below this CDDL HEADER, with the
16247882Smm * fields enclosed by brackets "[]" replaced with your own identifying
17247882Smm * information: Portions Copyright [yyyy] [name of copyright owner]
18247882Smm *
19247882Smm * CDDL HEADER END
20247882Smm */
21247882Smm
22247882Smm/*
23247882Smm * Copyright (c) 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
24247882Smm */
25247882Smm
26247882Smm#ifndef	_LIBZFS_COMPAT_H
27247882Smm#define	_LIBZFS_COMPAT_H
28247882Smm
29247882Smm#include <zfs_ioctl_compat.h>
30247882Smm
31247882Smm#ifdef	__cplusplus
32247882Smmextern "C" {
33247882Smm#endif
34247882Smm
35248461Smmint get_zfs_ioctl_version(void);
36248461Smmint zcmd_ioctl(int fd, int request, zfs_cmd_t *zc);
37247882Smm
38248421Smm#define	ioctl(fd, ioc, zc)	zcmd_ioctl((fd), (ioc), (zc))
39247882Smm
40247882Smm#ifdef	__cplusplus
41247882Smm}
42247882Smm#endif
43247882Smm
44247882Smm#endif	/* _LIBZFS_COMPAT_H */
45