gzFile
int ZEXPORT gzclose(gzFile file) {
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int);
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile);
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);
return (gzFile)state;
gzFile ZEXPORT gzopen(const char *path, const char *mode) {
gzFile ZEXPORT gzopen64(const char *path, const char *mode) {
gzFile ZEXPORT gzdopen(int fd, const char *mode) {
gzFile gz;
gzFile ZEXPORT gzopen_w(const wchar_t *path, const char *mode) {
int ZEXPORT gzbuffer(gzFile file, unsigned size) {
int ZEXPORT gzrewind(gzFile file) {
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence) {
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence) {
z_off64_t ZEXPORT gztell64(gzFile file) {
z_off_t ZEXPORT gztell(gzFile file) {
z_off64_t ZEXPORT gzoffset64(gzFile file) {
z_off_t ZEXPORT gzoffset(gzFile file) {
int ZEXPORT gzeof(gzFile file) {
const char * ZEXPORT gzerror(gzFile file, int *errnum) {
void ZEXPORT gzclearerr(gzFile file) {
local gzFile gz_open(const void *path, int fd, const char *mode) {
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len) {
gzFile file) {
int ZEXPORT gzgetc(gzFile file) {
int ZEXPORT gzgetc_(gzFile file) {
int ZEXPORT gzungetc(int c, gzFile file) {
char * ZEXPORT gzgets(gzFile file, char *buf, int len) {
int ZEXPORT gzdirect(gzFile file) {
int ZEXPORT gzclose_r(gzFile file) {
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len) {
gzFile file) {
int ZEXPORT gzputc(gzFile file, int c) {
int ZEXPORT gzputs(gzFile file, const char *s) {
int ZEXPORTVA gzvprintf(gzFile file, const char *format, va_list va) {
int ZEXPORTVA gzprintf(gzFile file, const char *format, ...) {
int ZEXPORTVA gzprintf(gzFile file, const char *format, int a1, int a2, int a3,
int ZEXPORT gzflush(gzFile file, int flush) {
int ZEXPORT gzsetparams(gzFile file, int level, int strategy) {
int ZEXPORT gzclose_w(gzFile file) {
ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode);
ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size);
ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy);
ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len);
gzFile file);
ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len);
z_size_t nitems, gzFile file);
ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format, ...);
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s);
ZEXTERN char * ZEXPORT gzgets(gzFile file, char *buf, int len);
ZEXTERN int ZEXPORT gzputc(gzFile file, int c);
ZEXTERN int ZEXPORT gzgetc(gzFile file);
ZEXTERN int ZEXPORT gzungetc(int c, gzFile file);
ZEXTERN int ZEXPORT gzflush(gzFile file, int flush);
ZEXTERN int ZEXPORT gzrewind(gzFile file);
ZEXTERN int ZEXPORT gzeof(gzFile file);
ZEXTERN int ZEXPORT gzdirect(gzFile file);
ZEXTERN int ZEXPORT gzclose(gzFile file);
ZEXTERN int ZEXPORT gzclose_r(gzFile file);
ZEXTERN int ZEXPORT gzclose_w(gzFile file);
ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum);
ZEXTERN void ZEXPORT gzclearerr(gzFile file);
ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int);
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile);
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int);
ZEXTERN z_off_t ZEXPORT gztell64(gzFile);
ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile);
ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *);
ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int);
ZEXTERN z_off_t ZEXPORT gztell(gzFile);
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile);
ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path,
ZEXTERN int ZEXPORTVA gzvprintf(gzFile file,
add_blacklist(struct bl *bl, size_t *blc, size_t *bls, gzFile gzf, int white)
gzFile gzf;
struct bl *add_blacklist(struct bl *, size_t *, size_t *, gzFile, int);
gzFile file;
static gzFile gz_open(const char *path, int fd, const char *mode) {
gzFile gz;
static gzFile gzopen(const char *path, const char *mode) {
static gzFile gzdopen(int fd, const char *mode) {
static int gzwrite(gzFile gz, const void *buf, unsigned len) {
static int gzread(gzFile gz, void *buf, unsigned len) {
static int gzclose(gzFile gz) {
static const char *gzerror(gzFile gz, int *err) {
static int gz_compress_mmap(FILE *in, gzFile out) {
static void gz_compress(FILE *in, gzFile out) {
static void gz_uncompress(gzFile in, FILE *out) {
gzFile out;
gzFile in;
gzFile file;
gzFile gzfd = NULL;
ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode);
ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size);
ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy);
ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len);
gzFile file);
ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len);
z_size_t nitems, gzFile file);
ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format, ...);
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s);
ZEXTERN char * ZEXPORT gzgets(gzFile file, char *buf, int len);
ZEXTERN int ZEXPORT gzputc(gzFile file, int c);
ZEXTERN int ZEXPORT gzgetc(gzFile file);
ZEXTERN int ZEXPORT gzungetc(int c, gzFile file);
ZEXTERN int ZEXPORT gzflush(gzFile file, int flush);
ZEXTERN int ZEXPORT gzrewind(gzFile file);
ZEXTERN int ZEXPORT gzeof(gzFile file);
ZEXTERN int ZEXPORT gzdirect(gzFile file);
ZEXTERN int ZEXPORT gzclose(gzFile file);
ZEXTERN int ZEXPORT gzclose_r(gzFile file);
ZEXTERN int ZEXPORT gzclose_w(gzFile file);
ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum);
ZEXTERN void ZEXPORT gzclearerr(gzFile file);
ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int);
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile);
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int);
ZEXTERN z_off_t ZEXPORT gztell64(gzFile);
ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile);
ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *);
ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int);
ZEXTERN z_off_t ZEXPORT gztell(gzFile);
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile);
ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path,
ZEXTERN int ZEXPORTVA gzvprintf(gzFile file,
gzbin_file(gzFile f)
gzFile gzf;
gzfgetln(gzFile f, size_t *len)
int gzbin_file(gzFile f);
gzFile gz;
gzFile gzf;
gzFile gzf;
int loadfile_elf(gzFile, struct vmd_vm *, struct vcpu_reg_state *,
size_t mread(gzFile, paddr_t, size_t);
static int elf32_exec(gzFile, Elf32_Ehdr *, u_long *, int);
static int elf64_exec(gzFile, Elf64_Ehdr *, u_long *, int);
loadfile_elf(gzFile fp, struct vmd_vm *vm, struct vcpu_reg_state *vrs,
mread(gzFile fp, paddr_t addr, size_t sz)
elf64_exec(gzFile fp, Elf64_Ehdr *elf, u_long *marks, int flags)
elf32_exec(gzFile fp, Elf32_Ehdr *elf, u_long *marks, int flags)
gzFile fp;
loadfile_bios(gzFile fp, off_t size, struct vcpu_reg_state *vrs)
static int loadfile_bios(gzFile, off_t, struct vcpu_reg_state *);