18f8cb840SMaxim Sobolev /* 28f8cb840SMaxim Sobolev * Copyright (c) 2004-2016 Maxim Sobolev <sobomax@FreeBSD.org> 38f8cb840SMaxim Sobolev * Copyright (c) 2011 Aleksandr Rybalko <ray@ddteam.net> 48f8cb840SMaxim Sobolev * All rights reserved. 58f8cb840SMaxim Sobolev * 68f8cb840SMaxim Sobolev * Redistribution and use in source and binary forms, with or without 78f8cb840SMaxim Sobolev * modification, are permitted provided that the following conditions 88f8cb840SMaxim Sobolev * are met: 98f8cb840SMaxim Sobolev * 1. Redistributions of source code must retain the above copyright 108f8cb840SMaxim Sobolev * notice, this list of conditions and the following disclaimer. 118f8cb840SMaxim Sobolev * 2. Redistributions in binary form must reproduce the above copyright 128f8cb840SMaxim Sobolev * notice, this list of conditions and the following disclaimer in the 138f8cb840SMaxim Sobolev * documentation and/or other materials provided with the distribution. 148f8cb840SMaxim Sobolev * 158f8cb840SMaxim Sobolev * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 168f8cb840SMaxim Sobolev * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 178f8cb840SMaxim Sobolev * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 188f8cb840SMaxim Sobolev * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 198f8cb840SMaxim Sobolev * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 208f8cb840SMaxim Sobolev * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 218f8cb840SMaxim Sobolev * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 228f8cb840SMaxim Sobolev * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 238f8cb840SMaxim Sobolev * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 248f8cb840SMaxim Sobolev * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 258f8cb840SMaxim Sobolev * SUCH DAMAGE. 268f8cb840SMaxim Sobolev */ 278f8cb840SMaxim Sobolev 288f8cb840SMaxim Sobolev #define DEFAULT_SUFX_LZMA ".ulzma" 298f8cb840SMaxim Sobolev 30*525a177cSRobert Wing /* Format L3.0, since we move to XZ API */ 31*525a177cSRobert Wing #define CLOOP_MAGIC_LZMA "#!/bin/sh\n#L3.0\n" 32*525a177cSRobert Wing 33eefd8f96SConrad Meyer size_t mkuz_lzma_cbound(size_t); 34eefd8f96SConrad Meyer void *mkuz_lzma_init(int *); 35eefd8f96SConrad Meyer void mkuz_lzma_compress(void *, const struct mkuz_blk *, struct mkuz_blk *); 36