summaryrefslogtreecommitdiff
path: root/uts/common/sys/compress.h
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-07-01 14:55:35 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-07-01 14:55:35 +0000
commit5a27a66a81254f7b8eadd92ceac8ff50132e971c (patch)
treea7fdb0498552fa601ffec363d7a91a3095209b8e /uts/common/sys/compress.h
parentd661fdff24a3141883f5058d89a5f044c736ef56 (diff)
Notes
Diffstat (limited to 'uts/common/sys/compress.h')
-rw-r--r--uts/common/sys/compress.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/uts/common/sys/compress.h b/uts/common/sys/compress.h
new file mode 100644
index 000000000000..3d79d9511092
--- /dev/null
+++ b/uts/common/sys/compress.h
@@ -0,0 +1,46 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License, Version 1.0 only
+ * (the "License"). You may not use this file except in compliance
+ * with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright (c) 1998 by Sun Microsystems, Inc.
+ * All rights reserved.
+ */
+
+#ifndef _SYS_COMPRESS_H
+#define _SYS_COMPRESS_H
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include <sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern size_t compress(void *, void *, size_t);
+extern size_t decompress(void *, void *, size_t, size_t);
+extern uint32_t checksum32(void *, size_t);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SYS_COMPRESS_H */