Home
last modified time | relevance | path

Searched refs:zstd (Results 1 – 25 of 130) sorted by relevance

123456

/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_zstd.c58 struct zstd { struct
106 struct zstd *, int, const void *, size_t);
108 static void free_data(struct zstd *);
118 struct zstd *zstd; in archive_write_add_filter_zstd() local
124 zstd = calloc(1, sizeof(*zstd)); in archive_write_add_filter_zstd()
125 if (zstd == NULL) in archive_write_add_filter_zstd()
127 zstd->compression_level = CLEVEL_DEFAULT; in archive_write_add_filter_zstd()
128 zstd->threads = 0; in archive_write_add_filter_zstd()
129 zstd->long_distance = 0; in archive_write_add_filter_zstd()
131 zstd->frame_per_file = 0; in archive_write_add_filter_zstd()
[all …]
H A Darchive_read_support_filter_zstd.c57 struct zstd { struct
236 struct zstd *zstd; in zstd_bidder_init() local
244 zstd = calloc(1, sizeof(*zstd)); in zstd_bidder_init()
248 if (zstd == NULL || out_block == NULL || dstream == NULL) { in zstd_bidder_init()
250 free(zstd); in zstd_bidder_init()
257 f->data = zstd; in zstd_bidder_init()
259 zstd->out_block_size = out_block_size; in zstd_bidder_init()
260 zstd->out_block = out_block; in zstd_bidder_init()
261 zstd->dstream = dstream; in zstd_bidder_init()
264 zstd->eof = 0; in zstd_bidder_init()
[all …]
H A Darchive_write_set_format_zip.c217 } zstd; member
1412 zip->stream.zstd.context = ZSTD_createCStream(); in archive_write_zip_header()
1413 size_t zret = ZSTD_initCStream(zip->stream.zstd.context, zstd_compression_level); in archive_write_zip_header()
1421 ZSTD_CCtx_setParameter(zip->stream.zstd.context, ZSTD_c_nbWorkers, zip->threads); in archive_write_zip_header()
1422 zip->stream.zstd.out.dst = zip->buf; in archive_write_zip_header()
1423 zip->stream.zstd.out.size = zip->len_buf; in archive_write_zip_header()
1424 zip->stream.zstd.out.pos = 0; in archive_write_zip_header()
1642 zip->stream.zstd.in.src = buff; in archive_write_zip_data()
1643 zip->stream.zstd.in.size = s; in archive_write_zip_data()
1644 zip->stream.zstd.in.pos = 0; in archive_write_zip_data()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzstd/
H A DMakefile.am12 module/zstd/lib/common/entropy_common.c \
13 module/zstd/lib/common/error_private.c \
14 module/zstd/lib/common/fse_decompress.c \
15 module/zstd/lib/common/pool.c \
16 module/zstd/lib/common/zstd_common.c \
17 module/zstd/lib/compress/fse_compress.c \
18 module/zstd/lib/compress/hist.c \
19 module/zstd/lib/compress/huf_compress.c \
20 module/zstd/lib/compress/zstd_compress_literals.c \
21 module/zstd/lib/compress/zstd_compress_sequences.c \
[all …]
/freebsd/contrib/file/tests/
H A DMakefile.am164 zstd-3-skippable-frames.result \
165 zstd-dictionary-0.result \
166 zstd-dictionary-1.result \
167 zstd-dictionary-2.result \
168 zstd-skippable-frame-0.result \
169 zstd-skippable-frame-4.result \
170 zstd-skippable-frame-8.result \
171 zstd-skippable-frame-C.result \
172 zstd-v0.2-FF.result \
173 zstd-v0.2-FF.testfile \
[all …]
H A DMakefile.in462 zstd-3-skippable-frames.result \
463 zstd-dictionary-0.result \
464 zstd-dictionary-1.result \
465 zstd-dictionary-2.result \
466 zstd-skippable-frame-0.result \
467 zstd-skippable-frame-4.result \
468 zstd-skippable-frame-8.result \
469 zstd-skippable-frame-C.result \
470 zstd-v0.2-FF.result \
471 zstd-v0.2-FF.testfile \
[all …]
/freebsd/usr.bin/zstd/
H A DMakefile1 PACKAGE= zstd
3 PROG= zstd
17 CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/programs \
18 -I${SRCTOP}/sys/contrib/zstd/lib/common \
19 -I${SRCTOP}/sys/contrib/zstd/lib/compress \
20 -I${SRCTOP}/sys/contrib/zstd/lib/dictBuilder \
21 -I${SRCTOP}/sys/contrib/zstd/lib \
25 LINKS= ${BINDIR}/zstd ${BINDIR}/unzstd \
26 ${BINDIR}/zstd ${BINDIR}/zstdcat \
27 ${BINDIR}/zstd ${BINDIR}/zstdmt
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_feature_activation.ksh48 if poolexists $TESTPOOL-zstd ; then
49 destroy_pool $TESTPOOL-zstd
57 log_must zpool create $TESTPOOL-zstd $VDEV_ZSTD
70 log_must zfs create -o compress=zstd-$random_level $TESTPOOL-zstd/$TESTFS-zstd
79 log_must zfs destroy $TESTPOOL-zstd/$TESTFS-zstd
/freebsd/sys/contrib/zstd/programs/
H A DREADME.md6 - `zstd` : default CLI supporting gzip-like arguments; includes dictionary builder, benchmark, and …
7 - `zstd_nolegacy` : Same as `zstd` but without support for legacy zstd formats
8 - `zstd-small` : CLI optimized for minimal size; no dictionary builder, no benchmark, and no suppor…
9 - `zstd-compress` : version of CLI which can only compress into zstd format
10 - `zstd-decompress` : version of CLI which can only decompress zstd format
14 `zstd` scope can be altered by modifying the following `make` variables :
18 Example : `make zstd HAVE_THREAD=0`
23 - __ZSTD_LEGACY_SUPPORT__ : `zstd` can decompress files compressed by older versions of `zstd`.
24 …Starting v0.8.0, all versions of `zstd` produce frames compliant with the [specification](../doc/z…
26 By default, `zstd` supports decoding legacy formats >= v0.4.0 (`ZSTD_LEGACY_SUPPORT=4`).
[all …]
H A Dzstd.1.md1 zstd(1) -- zstd, zstdmt, unzstd, zstdcat - Compress or decompress .zst files
7 `zstd` [<OPTIONS>] [-|<INPUT-FILE>] [-o <OUTPUT-FILE>]
9 `zstdmt` is equivalent to `zstd -T0`
11 `unzstd` is equivalent to `zstd -d`
13 `zstdcat` is equivalent to `zstd -dcf`
18 `zstd` is a fast lossless compression algorithm and data compression tool,
21 `zstd` offers highly configurable compression speed,
27 `zstd` command line syntax is generally similar to gzip,
32 - When compressing a single file, `zstd` displays progress notifications
35 - `zstd` displays a short help page when command line is an error.
[all …]
H A Dzstdless3 zstd=${ZSTD:-zstd}
7 export LESSOPEN="|-${zstd} -cdfq %s"
/freebsd/sys/contrib/zstd/
H A DREADME.md1 <p align="center"><img src="https://raw.githubusercontent.com/facebook/zstd/dev/doc/images/zstd_log…
3 __Zstandard__, or `zstd` as short version, is a fast lossless compression algorithm,
11 …and bindings is provided on [Zstandard homepage](https://facebook.github.io/zstd/#other-languages).
20 [travisDevBadge]: https://api.travis-ci.com/facebook/zstd.svg?branch=dev "Continuous Integration te…
21 [travisLink]: https://travis-ci.com/facebook/zstd
22 [CircleDevBadge]: https://circleci.com/gh/facebook/zstd/tree/dev.svg?style=shield "Short test suite"
23 [CircleLink]: https://circleci.com/gh/facebook/zstd
24 [CirrusDevBadge]: https://api.cirrus-ci.com/github/facebook/zstd.svg?branch=dev
25 [CirrusLink]: https://cirrus-ci.com/github/facebook/zstd
26 [OSSFuzzBadge]: https://oss-fuzz-build-logs.storage.googleapis.com/badges/zstd.svg
[all …]
/freebsd/sys/contrib/zstd/zlibWrapper/
H A DREADME.md4 … main objective of creating a zstd wrapper for [zlib](https://zlib.net/) is to allow a quick and s…
8 To build the zstd wrapper for zlib the following files are required:
15 - a static or dynamic zstd library
17 The first two files are required by all projects using zlib and they are not included with the zstd
18 The further files are supplied with the zstd distribution.
21 #### Embedding the zstd wrapper within your project
26 To compile the zstd wrapper with your project you have to do the following:
28 - compile your project with `zstd_zlibwrapper.c`, `gz*.c` and a static or dynamic zstd library
34 #### Enabling zstd compression within your project
36 After embedding the zstd wrapper within your project the zstd library is turned off by default.
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DCompression.cpp38 if (zstd::isAvailable()) in getReasonIfUnsupported()
53 zstd::compress(Input, Output, P.level, P.zstdEnableLdm); in compress()
64 return zstd::decompress(Input, Output, UncompressedSize); in decompress()
76 return zstd::decompress(Input, Output, UncompressedSize); in decompress()
164 bool zstd::isAvailable() { return true; } in isAvailable()
168 void zstd::compress(ArrayRef<uint8_t> Input, in compress()
204 Error zstd::decompress(ArrayRef<uint8_t> Input, uint8_t *Output, in decompress()
218 Error zstd::decompress(ArrayRef<uint8_t> Input, in decompress()
222 Error E = zstd::decompress(Input, Output.data(), UncompressedSize); in decompress()
229 bool zstd::isAvailable() { return false; } in isAvailable()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh79 compression zstd compression zstd-$((RANDOM%9 + 1))
80 compression zstd-fast copies $((RANDOM%3 + 1))
81 compression zstd-fast-$((RANDOM%9 + 1)) xattr sa
107 compression zstd compression zstd-$((RANDOM%9 + 1))
108 compression zstd-fast copies $((RANDOM%3 + 1))
109 compression zstd-fast-$((RANDOM%9 + 1)) acltype off
/freebsd/sys/contrib/openzfs/module/
H A DMakefile.in88 …efix $(KMODDIR)/$(INSTALL_MOD_DIR)/,spl/ avl/ icp/ $(lua_dir) nvpair/ unicode/ zcommon/ zfs/ zstd/)
157 -i zstd/lib \
163 avl icp $(lua_dir) nvpair unicode zcommon zfs zstd os/linux
175 gen-zstd-symbols:
176zstd/,$(ZSTD_UPSTREAM_OBJS)); do echo; echo "/* $${obj#zstd/}: */"; @OBJDUMP@ -t $$obj | awk '$$2 …
178 check-zstd-symbols:
179 …@OBJDUMP@ -t $(addprefix zstd/,$(ZSTD_UPSTREAM_OBJS)) | awk '/file format/ {print} $$2 == "g" && …
/freebsd/stand/libsa/zfs/
H A DMakefile.inc4 .PATH: ${ZFSTOP}/module/zstd
5 .PATH: ${ZFSTOP}/module/zstd/lib/common
6 .PATH: ${ZFSTOP}/module/zstd/lib/compress
7 .PATH: ${ZFSTOP}/module/zstd/lib/decompress
52 CFLAGS.xxhash.c+= -I${ZFSTOP}/module/zstd/lib/common
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zstream/
H A Dzstream_decompress_004_pos.ksh42 typeset -a zstd_records=(2,0,zstd 3,0,zstd 128,131072,zstd)
/freebsd/sys/contrib/openzfs/module/zstd/
H A DREADME.md7 intentionally unmodified. Please do not alter the file containing the zstd
14 * `zstd-in.c` is our template file for generating the single-file library
39 1. Grab the latest release of [Zstd](https://github.com/facebook/zstd/releases).
40 2. Copy the files output by the following script to `module/zstd/lib/`:
42 grep include [path to zstd]/build/single_file_libs/zstd-in.c | awk '{ print $2 }'
/freebsd/lib/libzstd/
H A DMakefile1 PACKAGE= zstd
4 LIB= zstd
39 INCS= zstd.h
51 ZSTDDIR= ${SRCTOP}/sys/contrib/zstd
/freebsd/sys/fs/tarfs/
H A Dtarfs_io.c324 struct tarfs_zstd *zstd = zio->zstd; in tarfs_zread_zstd() local
358 ZSTD_DCtx_reset(zstd->zds, ZSTD_reset_session_only); in tarfs_zread_zstd()
456 zerror = ZSTD_decompressStream(zstd->zds, &zob, &zib); in tarfs_zread_zstd()
514 ZSTD_DCtx_reset(zstd->zds, ZSTD_reset_session_only); in tarfs_zread_zstd()
540 if (zio->zstd != NULL) { in tarfs_zread()
673 zio->zstd = malloc(sizeof(*zio->zstd), M_TARFSZSTATE, M_WAITOK); in tarfs_io_init()
674 zio->zstd->zds = ZSTD_createDStream_advanced(tarfs_zstd_mem); in tarfs_io_init()
675 (void)ZSTD_initDStream(zio->zstd->zds); in tarfs_io_init()
709 if (zio->zstd != NULL) { in tarfs_zio_fini()
711 ZSTD_freeDStream(zio->zstd->zds); in tarfs_zio_fini()
[all …]
/freebsd/crypto/openssl/Configurations/
H A D00-base-templates.conf55 push @defs, "ZSTD" unless $disabled{zstd};
69 if !$disabled{zstd} && $withargs{zstd_include};
118 … push(@libs, "-lzstd") if !defined($disabled{zstd}) && defined($disabled{"zstd-dynamic"});
153 unless ($disabled{zstd}) {
/freebsd/sys/contrib/zstd/lib/
H A DREADME.md41 via the [advanced API defined in `lib/zstd.h`](https://github.com/facebook/zstd/blob/v1.4.3/lib/zst…
46 Zstandard's stable API is exposed within [lib/zstd.h](zstd.h).
56 - `ZSTD_STATIC_LINKING_ONLY` : if this macro is defined _before_ including `zstd.h`,
58 exposed in the second part of `zstd.h`.
82 - `lib/legacy` : makes it possible to decompress legacy zstd formats, starting from `v0.1.0`.
171 that zstd does not use. Not all unused functions are hidden, but they can be if needed.
185 can be overridden to control the visibility of zstd's API. Additionally,
187 of zstd's static API. Specifically, it can be set to `ZSTDLIB_HIDDEN` to hide the symbols
201 The header file `zstd.h` and the dynamic library `dll\libzstd.dll` are required to
237 Consider migrating code towards supported streaming API exposed in `zstd.h`.
[all …]
H A Dmodule.modulemap2 header "zstd.h"
5 /* zstd.h */ \
/freebsd/usr.bin/mkuzip/
H A DMakefile6 CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib
10 LIBADD= lzma md pthread z zstd

123456