Path: blob/main/sys/contrib/openzfs/cmd/zstream/zstream.h
48383 views
// SPDX-License-Identifier: CDDL-1.01/*2* CDDL HEADER START3*4* This file and its contents are supplied under the terms of the5* Common Development and Distribution License ("CDDL"), version 1.0.6* You may only use this file in accordance with the terms of version7* 1.0 of the CDDL.8*9* A full copy of the text of the CDDL should have accompanied this10* source. A copy of the CDDL is also available via the Internet at11* http://www.illumos.org/license/CDDL.12*13* CDDL HEADER END14*/1516/*17* Copyright (c) 2020 by Delphix. All rights reserved.18*/1920#ifndef _ZSTREAM_H21#define _ZSTREAM_H2223#ifdef __cplusplus24extern "C" {25#endif2627extern void *safe_calloc(size_t n);28extern int sfread(void *buf, size_t size, FILE *fp);29extern void *safe_malloc(size_t size);30extern int zstream_do_redup(int, char *[]);31extern int zstream_do_dump(int, char *[]);32extern int zstream_do_decompress(int argc, char *argv[]);33extern int zstream_do_recompress(int argc, char *argv[]);34extern int zstream_do_token(int, char *[]);35extern void zstream_usage(void);3637#ifdef __cplusplus38}39#endif4041#endif /* _ZSTREAM_H */424344