xref: /freebsd/sys/contrib/openzfs/cmd/zstream/zstream.h (revision dbd5678dca91abcefe8d046aa2f9b66497a95ffb)
1eda14cbcSMatt Macy /*
2eda14cbcSMatt Macy  * CDDL HEADER START
3eda14cbcSMatt Macy  *
4eda14cbcSMatt Macy  * This file and its contents are supplied under the terms of the
5eda14cbcSMatt Macy  * Common Development and Distribution License ("CDDL"), version 1.0.
6eda14cbcSMatt Macy  * You may only use this file in accordance with the terms of version
7eda14cbcSMatt Macy  * 1.0 of the CDDL.
8eda14cbcSMatt Macy  *
9eda14cbcSMatt Macy  * A full copy of the text of the CDDL should have accompanied this
10eda14cbcSMatt Macy  * source.  A copy of the CDDL is also available via the Internet at
11eda14cbcSMatt Macy  * http://www.illumos.org/license/CDDL.
12eda14cbcSMatt Macy  *
13eda14cbcSMatt Macy  * CDDL HEADER END
14eda14cbcSMatt Macy  */
15eda14cbcSMatt Macy 
16eda14cbcSMatt Macy /*
17eda14cbcSMatt Macy  * Copyright (c) 2020 by Delphix. All rights reserved.
18eda14cbcSMatt Macy  */
19eda14cbcSMatt Macy 
20eda14cbcSMatt Macy #ifndef	_ZSTREAM_H
21eda14cbcSMatt Macy #define	_ZSTREAM_H
22eda14cbcSMatt Macy 
23eda14cbcSMatt Macy #ifdef	__cplusplus
24eda14cbcSMatt Macy extern "C" {
25eda14cbcSMatt Macy #endif
26eda14cbcSMatt Macy 
27a0b956f5SMartin Matuska extern void *safe_calloc(size_t n);
28a0b956f5SMartin Matuska extern int sfread(void *buf, size_t size, FILE *fp);
29a0b956f5SMartin Matuska extern void *safe_malloc(size_t size);
30eda14cbcSMatt Macy extern int zstream_do_redup(int, char *[]);
31eda14cbcSMatt Macy extern int zstream_do_dump(int, char *[]);
32a0b956f5SMartin Matuska extern int zstream_do_decompress(int argc, char *argv[]);
33*dbd5678dSMartin Matuska extern int zstream_do_recompress(int argc, char *argv[]);
34eda14cbcSMatt Macy extern int zstream_do_token(int, char *[]);
35eda14cbcSMatt Macy extern void zstream_usage(void);
36eda14cbcSMatt Macy 
37eda14cbcSMatt Macy #ifdef	__cplusplus
38eda14cbcSMatt Macy }
39eda14cbcSMatt Macy #endif
40eda14cbcSMatt Macy 
41eda14cbcSMatt Macy #endif	/* _ZSTREAM_H */
42