Generic framework for reading compressed files using standard I/O
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 Feb 2008 19:57:36 +0000 (11:57 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 Feb 2008 19:57:36 +0000 (11:57 -0800)
commita7504c1fc6c3f90d30197bf0ecfa23880a375697
treee71e3a60e48de143f90499602edb639c8dd82bdb
parentb89d1480c656a4f4642cb84ed18d9214faca1308
Generic framework for reading compressed files using standard I/O

Add zopen(), zfopen(), and zloadfile() to transparently open and
uncompress a gzip file (adding support for other formats is quite
trivial.

Once a file handle or file pointer is received, it can be treated like
any other one (fstat will report it as a socket, since the length is
unknown.)
com32/include/syslinux/loadfile.h
com32/lib/Makefile
com32/lib/sys/file.h
com32/lib/sys/fileread.c
com32/lib/sys/zfile.c [new file with mode: 0644]
com32/lib/sys/zfopen.c [new file with mode: 0644]
com32/lib/syslinux/floadfile.c [new file with mode: 0644]
com32/lib/syslinux/loadfile.c
com32/lib/syslinux/zloadfile.c [new file with mode: 0644]