grub/grub-core/lib/posix_wrap
Vladimir 'phcoder' Serbinenko c029da8a89 Various squash4 fixes and LZO and XZ support.
* Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
	Add xzembed source files.
	* grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
	* grub-core/fs/squash4.c (grub_squash_super): New field compression.
	(grub_squash_inode): New subtype long_dir.
	(SQUASH_TYPE_LONG_DIR): New inode type.
	(COMPRESSION): New enum.
	(XZBUFSIZ): New const.
	(grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
	(read_chunk): Use data->decompress.
	(zlib_decompress): New function.
	(lzo_decompress): Likewise.
	(xz_decompress): Likewise.
	(squash_mount): Set new data fields.
	(grub_squash_iterate_dir): Handle long dir.
	(squash_unmount): Free xzdec and xzbuf.
	(grub_squash_open): Check ino type.
	(direct_read): Stylistic fixes. Use data->decompress.
	(grub_squash_read_data): Likewise.
	* grub-core/io/gzio.c (grub_gzio): Remove disk_input.
	(get_byte): Likewise.
	(grub_zlib_disk_read): Removed.
	* grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
	(GRUB_POSIX_BOOL_DEFINED): New define.
	* grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
	* grub-core/lib/xzembed/xz.h: Addmissing includes.
	[!GRUB_POSIX_BOOL_DEFINED]: Define bool.
	* include/grub/deflate.h (grub_zlib_disk_read): Removed.
2011-12-26 13:18:01 +01:00
..
sys Various squash4 fixes and LZO and XZ support. 2011-12-26 13:18:01 +01:00
assert.h automake commit without merge history 2010-05-06 11:34:04 +05:30
ctype.h Enable UTF8 in gnulib regexp. 2011-12-13 00:50:49 +01:00
errno.h automake commit without merge history 2010-05-06 11:34:04 +05:30
inttypes.h Satisfy some bison versions need for inttypes.h. 2011-01-08 00:34:23 +01:00
langinfo.h Add missing const qualifiers. 2011-11-30 16:20:13 +01:00
limits.h Import minilzo library for LZO decompression support. 2011-08-14 11:39:31 +02:00
localcharset.h Use gnulib-tool to create gnulib source files. 2010-09-20 12:35:33 +02:00
locale.h automake commit without merge history 2010-05-06 11:34:04 +05:30
stdint.h automake commit without merge history 2010-05-06 11:34:04 +05:30
stdio.h automake commit without merge history 2010-05-06 11:34:04 +05:30
stdlib.h Add noreturn attributes and remove unreachable code. 2011-12-13 15:13:51 +01:00
string.h * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]: 2011-10-23 23:28:23 +02:00
unistd.h Various squash4 fixes and LZO and XZ support. 2011-12-26 13:18:01 +01:00
wchar.h Enable UTF8 in gnulib regexp. 2011-12-13 00:50:49 +01:00
wctype.h Enable UTF8 in gnulib regexp. 2011-12-13 00:50:49 +01:00