003 File Manager
Current Path:
/usr/src/contrib/xz/src/xz
usr
/
src
/
contrib
/
xz
/
src
/
xz
/
📁
..
📄
args.c
(17.51 KB)
📄
args.h
(1.11 KB)
📄
coder.c
(25.4 KB)
📄
coder.h
(2.07 KB)
📄
file_io.c
(35.48 KB)
📄
file_io.h
(5.4 KB)
📄
hardware.c
(5.05 KB)
📄
hardware.h
(1.45 KB)
📄
list.c
(33.21 KB)
📄
list.h
(575 B)
📄
main.c
(9.34 KB)
📄
main.h
(972 B)
📄
message.c
(35.76 KB)
📄
message.h
(5.4 KB)
📄
mytime.c
(1.9 KB)
📄
mytime.h
(1.39 KB)
📄
options.c
(7.53 KB)
📄
options.h
(977 B)
📄
private.h
(1.31 KB)
📄
signals.c
(4.83 KB)
📄
signals.h
(1.44 KB)
📄
suffix.c
(10.12 KB)
📄
suffix.h
(1.08 KB)
📄
util.c
(6.98 KB)
📄
util.h
(4.35 KB)
📄
xz.1
(63.49 KB)
Editing: coder.h
/////////////////////////////////////////////////////////////////////////////// // /// \file coder.h /// \brief Compresses or uncompresses a file // // Author: Lasse Collin // // This file has been put into the public domain. // You can do whatever you want with this file. // /////////////////////////////////////////////////////////////////////////////// enum operation_mode { MODE_COMPRESS, MODE_DECOMPRESS, MODE_TEST, MODE_LIST, }; // NOTE: The order of these is significant in suffix.c. enum format_type { FORMAT_AUTO, FORMAT_XZ, FORMAT_LZMA, // HEADER_GZIP, FORMAT_RAW, }; /// Operation mode of the command line tool. This is set in args.c and read /// in several files. extern enum operation_mode opt_mode; /// File format to use when encoding or what format(s) to accept when /// decoding. This is a global because it's needed also in suffix.c. /// This is set in args.c. extern enum format_type opt_format; /// If true, the compression settings are automatically adjusted down if /// they exceed the memory usage limit. extern bool opt_auto_adjust; /// If true, stop after decoding the first stream. extern bool opt_single_stream; /// If non-zero, start a new .xz Block after every opt_block_size bytes /// of input. This has an effect only when compressing to the .xz format. extern uint64_t opt_block_size; /// This is non-NULL if --block-list was used. This contains the Block sizes /// as an array that is terminated with 0. extern uint64_t *opt_block_list; /// Set the integrity check type used when compressing extern void coder_set_check(lzma_check check); /// Set preset number extern void coder_set_preset(uint32_t new_preset); /// Enable extreme mode extern void coder_set_extreme(void); /// Add a filter to the custom filter chain extern void coder_add_filter(lzma_vli id, void *options); /// extern void coder_set_compression_settings(void); /// Compress or decompress the given file extern void coder_run(const char *filename); #ifndef NDEBUG /// Free the memory allocated for the coder and kill the worker threads. extern void coder_free(void); #endif
Upload File
Create Folder