PATH:
usr
/
include
/** * \file api/lzma.h * \brief The public API of liblzma data compression library * * liblzma is a public domain general-purpose data compression library with * a zlib-like API. The native file format is .xz, but also the old .lzma * format and raw (no headers) streams are supported. Multiple compression * algorithms (filters) are supported. Currently LZMA2 is the primary filter. * * liblzma is part of XZ Utils <http://tukaani.org/xz/>. XZ Utils includes * a gzip-like command line tool named xz and some other tools. XZ Utils * is developed and maintained by Lasse Collin. * * Major parts of liblzma are based on Igor Pavlov's public domain LZMA SDK * <http://7-zip.org/sdk.html>. * * The SHA-256 implementation is based on the public domain code found from * 7-Zip <http://7-zip.org/>, which has a modified version of the public * domain SHA-256 code found from Crypto++ <http://www.cryptopp.com/>. * The SHA-256 code in Crypto++ was written by Kevin Springle and Wei Dai. */ /* * Author: Lasse Collin * * This file has been put into the public domain. * You can do whatever you want with this file. */ #ifndef LZMA_H #define LZMA_H /***************************** * Required standard headers * *****************************/ /* * liblzma API headers need some standard types and macros. To allow * including lzma.h without requiring the application to include other * headers first, lzma.h includes the required standard headers unless * they already seem to be included already or if LZMA_MANUAL_HEADERS * has been defined. * * Here's what types and macros are needed and from which headers: * - stddef.h: size_t, NULL * - stdint.h: uint8_t, uint32_t, uint64_t, UINT32_C(n), uint64_C(n), * UINT32_MAX, UINT64_MAX * * However, inttypes.h is a little more portable than stdint.h, although * inttypes.h declares some unneeded things compared to plain stdint.h. * * The hacks below aren't perfect, specifically they assume that inttypes.h * exists and that it typedefs at least uint8_t, uint32_t, and uint64_t, * and that, in case of incomplete inttypes.h, unsigned int is 32-bit. * If the application already takes care of setting up all the types and * macros properly (for example by using gnulib's stdint.h or inttypes.h), * we try to detect that the macros are already defined and don't include * inttypes.h here again. However, you may define LZMA_MANUAL_HEADERS to * force this file to never include any system headers. * * Some could argue that liblzma API should provide all the required types, * for example lzma_uint64, LZMA_UINT64_C(n), and LZMA_UINT64_MAX. This was * seen as an unnecessary mess, since most systems already provide all the * necessary types and macros in the standard headers. * * Note that liblzma API still has lzma_bool, because using stdbool.h would * break C89 and C++ programs on many systems. sizeof(bool) in C99 isn't * necessarily the same as sizeof(bool) in C++. */ #ifndef LZMA_MANUAL_HEADERS /* * I suppose this works portably also in C++. Note that in C++, * we need to get size_t into the global namespace. */ # include <stddef.h> /* * Skip inttypes.h if we already have all the required macros. If we * have the macros, we assume that we have the matching typedefs too. */ # if !defined(UINT32_C) || !defined(UINT64_C) \ || !defined(UINT32_MAX) || !defined(UINT64_MAX) /* * MSVC versions older than 2013 have no C99 support, and * thus they cannot be used to compile liblzma. Using an * existing liblzma.dll with old MSVC can work though(*), * but we need to define the required standard integer * types here in a MSVC-specific way. * * (*) If you do this, the existing liblzma.dll probably uses * a different runtime library than your MSVC-built * application. Mixing runtimes is generally bad, but * in this case it should work as long as you avoid * the few rarely-needed liblzma functions that allocate * memory and expect the caller to free it using free(). */ # if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER < 1800 typedef unsigned __int8 uint8_t; typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; # else /* Use the standard inttypes.h. */ # ifdef __cplusplus /* * C99 sections 7.18.2 and 7.18.4 specify * that C++ implementations define the limit * and constant macros only if specifically * requested. Note that if you want the * format macros (PRIu64 etc.) too, you need * to define __STDC_FORMAT_MACROS before * including lzma.h, since re-including * inttypes.h with __STDC_FORMAT_MACROS * defined doesn't necessarily work. */ # ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 # endif # ifndef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS 1 # endif # endif # include <inttypes.h> # endif /* * Some old systems have only the typedefs in inttypes.h, and * lack all the macros. For those systems, we need a few more * hacks. We assume that unsigned int is 32-bit and unsigned * long is either 32-bit or 64-bit. If these hacks aren't * enough, the application has to setup the types manually * before including lzma.h. */ # ifndef UINT32_C # if defined(_WIN32) && defined(_MSC_VER) # define UINT32_C(n) n ## UI32 # else # define UINT32_C(n) n ## U # endif # endif # ifndef UINT64_C # if defined(_WIN32) && defined(_MSC_VER) # define UINT64_C(n) n ## UI64 # else /* Get ULONG_MAX. */ # include <limits.h> # if ULONG_MAX == 4294967295UL # define UINT64_C(n) n ## ULL # else # define UINT64_C(n) n ## UL # endif # endif # endif # ifndef UINT32_MAX # define UINT32_MAX (UINT32_C(4294967295)) # endif # ifndef UINT64_MAX # define UINT64_MAX (UINT64_C(18446744073709551615)) # endif # endif #endif /* ifdef LZMA_MANUAL_HEADERS */ /****************** * LZMA_API macro * ******************/ /* * Some systems require that the functions and function pointers are * declared specially in the headers. LZMA_API_IMPORT is for importing * symbols and LZMA_API_CALL is to specify the calling convention. * * By default it is assumed that the application will link dynamically * against liblzma. #define LZMA_API_STATIC in your application if you * want to link against static liblzma. If you don't care about portability * to operating systems like Windows, or at least don't care about linking * against static liblzma on them, don't worry about LZMA_API_STATIC. That * is, most developers will never need to use LZMA_API_STATIC. * * The GCC variants are a special case on Windows (Cygwin and MinGW). * We rely on GCC doing the right thing with its auto-import feature, * and thus don't use __declspec(dllimport). This way developers don't * need to worry about LZMA_API_STATIC. Also the calling convention is * omitted on Cygwin but not on MinGW. */ #ifndef LZMA_API_IMPORT # if !defined(LZMA_API_STATIC) && defined(_WIN32) && !defined(__GNUC__) # define LZMA_API_IMPORT __declspec(dllimport) # else # define LZMA_API_IMPORT # endif #endif #ifndef LZMA_API_CALL # if defined(_WIN32) && !defined(__CYGWIN__) # define LZMA_API_CALL __cdecl # else # define LZMA_API_CALL # endif #endif #ifndef LZMA_API # define LZMA_API(type) LZMA_API_IMPORT type LZMA_API_CALL #endif /*********** * nothrow * ***********/ /* * None of the functions in liblzma may throw an exception. Even * the functions that use callback functions won't throw exceptions, * because liblzma would break if a callback function threw an exception. */ #ifndef lzma_nothrow # if defined(__cplusplus) # define lzma_nothrow throw() # elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) # define lzma_nothrow __attribute__((__nothrow__)) # else # define lzma_nothrow # endif #endif /******************** * GNU C extensions * ********************/ /* * GNU C extensions are used conditionally in the public API. It doesn't * break anything if these are sometimes enabled and sometimes not, only * affects warnings and optimizations. */ #if __GNUC__ >= 3 # ifndef lzma_attribute # define lzma_attribute(attr) __attribute__(attr) # endif /* warn_unused_result was added in GCC 3.4. */ # ifndef lzma_attr_warn_unused_result # if __GNUC__ == 3 && __GNUC_MINOR__ < 4 # define lzma_attr_warn_unused_result # endif # endif #else # ifndef lzma_attribute # define lzma_attribute(attr) # endif #endif #ifndef lzma_attr_pure # define lzma_attr_pure lzma_attribute((__pure__)) #endif #ifndef lzma_attr_const # define lzma_attr_const lzma_attribute((__const__)) #endif #ifndef lzma_attr_warn_unused_result # define lzma_attr_warn_unused_result \ lzma_attribute((__warn_unused_result__)) #endif /************** * Subheaders * **************/ #ifdef __cplusplus extern "C" { #endif /* * Subheaders check that this is defined. It is to prevent including * them directly from applications. */ #define LZMA_H_INTERNAL 1 /* Basic features */ #include "lzma/version.h" #include "lzma/base.h" #include "lzma/vli.h" #include "lzma/check.h" /* Filters */ #include "lzma/filter.h" #include "lzma/bcj.h" #include "lzma/delta.h" #include "lzma/lzma12.h" /* Container formats */ #include "lzma/container.h" /* Advanced features */ #include "lzma/stream_flags.h" #include "lzma/block.h" #include "lzma/index.h" #include "lzma/index_hash.h" /* Hardware information */ #include "lzma/hardware.h" /* * All subheaders included. Undefine LZMA_H_INTERNAL to prevent applications * re-including the subheaders. */ #undef LZMA_H_INTERNAL #ifdef __cplusplus } #endif #endif /* ifndef LZMA_H */
[+]
..
[-] krb5.h
[edit]
[-] lauxlib.h
[edit]
[-] execinfo.h
[edit]
[-] zlib.h
[edit]
[+]
drm
[-] sched.h
[edit]
[-] netdb.h
[edit]
[-] fmtmsg.h
[edit]
[+]
mtd
[-] kdb.h
[edit]
[+]
libpng15
[-] ctype.h
[edit]
[-] xf86drm.h
[edit]
[-] gpg-error.h
[edit]
[-] gshadow.h
[edit]
[-] spawn.h
[edit]
[-] wchar.h
[edit]
[-] gdfontg.h
[edit]
[+]
rpc
[-] FlexLexer.h
[edit]
[-] cpufreq.h
[edit]
[-] monetary.h
[edit]
[-] autosprintf.h
[edit]
[-] ldap.h
[edit]
[-] punycode.h
[edit]
[-] db_185.h
[edit]
[+]
gtk-2.0
[+]
gnu
[+]
GL
[+]
pixman-1
[-] string.h
[edit]
[-] unistd.h
[edit]
[-] lber_types.h
[edit]
[-] pcreposix.h
[edit]
[-] endian.h
[edit]
[+]
libexslt
[+]
autotrace
[-] stdio_ext.h
[edit]
[+]
nfs
[-] pcre.h
[edit]
[-] locale.h
[edit]
[-] idn-free.h
[edit]
[+]
pango-1.0
[-] jmorecfg.h
[edit]
[+]
ImageMagick-6
[+]
libkms
[-] getopt.h
[edit]
[-] gcrypt.h
[edit]
[-] dirent.h
[edit]
[-] expat_external.h
[edit]
[-] xlocale.h
[edit]
[+]
ijs
[-] grp.h
[edit]
[-] gconv.h
[edit]
[-] tiffconf.h
[edit]
[-] jpeglib.h
[edit]
[-] unctrl.h
[edit]
[+]
gio-unix-2.0
[-] utime.h
[edit]
[+]
net
[+]
rdma
[-] bzlib.h
[edit]
[-] png.h
[edit]
[+]
netax25
[-] mntent.h
[edit]
[-] cursesp.h
[edit]
[+]
libltdl
[-] pwd.h
[edit]
[+]
libxslt
[+]
neteconet
[-] aio.h
[edit]
[+]
db4.7.25
[-] fenv.h
[edit]
[+]
libxml2
[+]
netash
[+]
gdbm
[+]
xen
[+]
openssl
[+]
sepol
[-] mcheck.h
[edit]
[-] syscall.h
[edit]
[-] nl_types.h
[edit]
[-] crypt.h
[edit]
[+]
protocols
[-] com_err.h
[edit]
[+]
selinux
[+]
rpcsvc
[-] errno.h
[edit]
[-] argp.h
[edit]
[-] regex.h
[edit]
[-] fcntl.h
[edit]
[-] stdc-predef.h
[edit]
[-] gssapi.h
[edit]
[-] cursesw.h
[edit]
[-] malloc.h
[edit]
[-] mqueue.h
[edit]
[-] pnglibconf.h
[edit]
[+]
scsi
[-] dbm.h
[edit]
[-] xf86drmMode.h
[edit]
[-] ndbm.h
[edit]
[-] math.h
[edit]
[-] cursslk.h
[edit]
[-] krad.h
[edit]
[+]
netrose
[-] ncurses_dll.h
[edit]
[+]
fontconfig
[-] libsync.h
[edit]
[-] err.h
[edit]
[-] termcap.h
[edit]
[-] jerror.h
[edit]
[-] semaphore.h
[edit]
[+]
glib-2.0
[-] gcrypt-module.h
[edit]
[-] obstack.h
[edit]
[-] _G_config.h
[edit]
[-] luaconf.h
[edit]
[-] cursesf.h
[edit]
[-] ldap_cdefs.h
[edit]
[-] sysexits.h
[edit]
[-] envz.h
[edit]
[+]
harfbuzz
[-] stdint.h
[edit]
[-] lber.h
[edit]
[+]
graphite2
[+]
gssrpc
[-] gnu-versions.h
[edit]
[+]
unicode
[-] cursesm.h
[edit]
[-] re_comp.h
[edit]
[+]
kadm5
[-] printf.h
[edit]
[-] gdfontl.h
[edit]
[+]
arpa
[-] pthread.h
[edit]
[-] pcre_scanner.h
[edit]
[-] gdfontt.h
[edit]
[-] slapi-plugin.h
[edit]
[+]
uapi
[+]
mysql
[+]
freetype2
[-] tld.h
[edit]
[-] ldif.h
[edit]
[-] lualib.h
[edit]
[+]
libwmf
[-] time.h
[edit]
[+]
X11
[-] pcrecpp.h
[edit]
[+]
quota
[+]
sys
[-] setjmp.h
[edit]
[-] regexp.h
[edit]
[-] features.h
[edit]
[-] libaio.h
[edit]
[-] eti.h
[edit]
[-] term.h
[edit]
[-] utmpx.h
[edit]
[+]
gdk-pixbuf-2.0
[-] ar.h
[edit]
[-] panel.h
[edit]
[-] iconv.h
[edit]
[+]
ncurses
[-] gd_io.h
[edit]
[-] gdbm.h
[edit]
[+]
uuid
[-] ncurses.h
[edit]
[+]
librsvg-2.0
[-] fnmatch.h
[edit]
[+]
c++
[-] stdlib.h
[edit]
[-] stringprep.h
[edit]
[-] gdcache.h
[edit]
[-] tiff.h
[edit]
[-] sgtty.h
[edit]
[-] pngconf.h
[edit]
[-] wctype.h
[edit]
[-] ldap_schema.h
[edit]
[-] syslog.h
[edit]
[-] cursesapp.h
[edit]
[-] complex.h
[edit]
[+]
asm
[-] ifaddrs.h
[edit]
[-] ieee754.h
[edit]
[-] limits.h
[edit]
[-] fstab.h
[edit]
[+]
krb5
[+]
netpacket
[-] libio.h
[edit]
[-] lua.h
[edit]
[+]
misc
[-] poll.h
[edit]
[-] values.h
[edit]
[+]
ghostscript
[+]
netipx
[+]
netrom
[-] stdio.h
[edit]
[-] tiffvers.h
[edit]
[+]
netiucv
[-] memory.h
[edit]
[+]
layout
[-] db.h
[edit]
[-] alloca.h
[edit]
[-] uchar.h
[edit]
[-] tiffio.hxx
[edit]
[-] tiffconf-64.h
[edit]
[-] nc_tparm.h
[edit]
[+]
netinet
[-] pcrecpparg.h
[edit]
[-] aliases.h
[edit]
[-] ulimit.h
[edit]
[-] verto.h
[edit]
[-] tic.h
[edit]
[+]
python3.6m
[-] lzma.h
[edit]
[-] paths.h
[edit]
[+]
et
[-] idna.h
[edit]
[+]
cairo
[-] term_entry.h
[edit]
[-] fpu_control.h
[edit]
[-] profile.h
[edit]
[+]
ncursesw
[+]
KHR
[-] jconfig.h
[edit]
[+]
sasl
[+]
sound
[-] search.h
[edit]
[-] fts.h
[edit]
[-] termios.h
[edit]
[-] ltdl.h
[edit]
[-] verto-module.h
[edit]
[+]
bits
[-] elf.h
[edit]
[-] expat.h
[edit]
[+]
atk-1.0
[-] termio.h
[edit]
[-] ustat.h
[edit]
[-] nss.h
[edit]
[+]
apache2
[-] wait.h
[edit]
[-] error.h
[edit]
[-] ttyent.h
[edit]
[-] inttypes.h
[edit]
[-] assert.h
[edit]
[+]
video
[+]
python2.7
[-] wordexp.h
[edit]
[-] a.out.h
[edit]
[-] tgmath.h
[edit]
[-] shadow.h
[edit]
[-] zconf.h
[edit]
[-] ftw.h
[edit]
[-] resolv.h
[edit]
[-] libintl.h
[edit]
[+]
fribidi
[-] ldap_features.h
[edit]
[-] glob.h
[edit]
[+]
xcb
[-] curses.h
[edit]
[-] gdfonts.h
[edit]
[-] tiffio.h
[edit]
[-] entities.h
[edit]
[+]
gtk-unix-print-2.0
[+]
asm-generic
[-] argz.h
[edit]
[-] lastlog.h
[edit]
[-] keyutils.h
[edit]
[-] tcpd.h
[edit]
[-] gd.h
[edit]
[-] ucontext.h
[edit]
[+]
linux
[-] menu.h
[edit]
[+]
ext2fs
[-] stab.h
[edit]
[-] form.h
[edit]
[-] idn-int.h
[edit]
[-] langinfo.h
[edit]
[+]
e2p
[-] libgen.h
[edit]
[-] thread_db.h
[edit]
[-] signal.h
[edit]
[+]
netatalk
[-] dlfcn.h
[edit]
[-] ldap_utf8.h
[edit]
[-] pcre_stringpiece.h
[edit]
[-] cpio.h
[edit]
[+]
glvnd
[+]
gail-1.0
[-] gdfx.h
[edit]
[-] pty.h
[edit]
[+]
bind9
[-] gdfontmb.h
[edit]
[-] utmp.h
[edit]
[+]
jasper
[+]
libdrm
[-] byteswap.h
[edit]
[+]
gssapi
[-] fam.h
[edit]
[-] pr29.h
[edit]
[-] tar.h
[edit]
[-] etip.h
[edit]
[+]
EGL
[+]
libdb
[+]
ffmpeg
[+]
security
[-] link.h
[edit]
[-] strings.h
[edit]
[-] gettext-po.h
[edit]
[+]
lzma
[-] lua.hpp
[edit]