FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/inflate.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
Go to the source code of this file.
Data Structures | |
struct | huft |
Macros | |
#define | uch u_char |
#define | ush u_short |
#define | ulg u_long |
#define | memzero(dest, len) bzero(dest,len) |
#define | NOMEMCPY |
#define | FPRINTF printf |
#define | FLUSH(x, y) |
#define | PKZIP_BUG_WORKAROUND /* PKZIP 1.93a problem--live with it */ |
#define | INFMOD |
#define | NEEDBITS(glbl, n) |
#define | DUMPBITS(n) {b>>=(n);k-=(n);} |
#define | BMAX |
#define | N_MAX 288 /* maximum number of codes in any set */ |
Functions | |
__FBSDID ("$BSDSUniX$") | |
static | MALLOC_DEFINE (M_GZIP,"gzip_trees","Gzip trees") |
static int | huft_build (struct inflate *, unsigned *, unsigned, unsigned, const ush *, const ush *, struct huft **, int *) |
static int | huft_free (struct inflate *, struct huft *) |
static int | inflate_codes (struct inflate *, struct huft *, struct huft *, int, int) |
static int | inflate_stored (struct inflate *) |
static int | xinflate (struct inflate *) |
static int | inflate_fixed (struct inflate *) |
static int | inflate_dynamic (struct inflate *) |
static int | inflate_block (struct inflate *, int *) |
static int | huft_build (struct inflate *glbl, unsigned *b, unsigned n, unsigned s, const ush *d, const ush *e, struct huft **t, int *m) |
static int | huft_free (struct inflate *glbl, struct huft *t) |
static int | inflate_codes (struct inflate *glbl, struct huft *tl, struct huft *td, int bl, int bd) |
static int | inflate_block (struct inflate *glbl, int *e) |
int | inflate (struct inflate *glbl) |
Variables | |
static const int | qflag = 0 |
static const unsigned | border [] |
static const ush | cplens [] |
static const ush | cplext [] |
static const ush | cpdist [] |
static const ush | cpdext [] |
static const ush | mask [] |
static const int | lbits = 9 |
static const int | dbits = 6 |
#define BMAX |
Definition at line 402 of file inflate.c.
Referenced by huft_build().
#define DUMPBITS | ( | n | ) | {b>>=(n);k-=(n);} |
Definition at line 363 of file inflate.c.
Referenced by inflate_block(), inflate_codes(), inflate_dynamic(), and inflate_stored().
#define FLUSH | ( | x, | |
y | |||
) |
Definition at line 43 of file inflate.c.
Referenced by inflate_codes(), inflate_stored(), and xinflate().
#define FPRINTF printf |
Definition at line 37 of file inflate.c.
Referenced by inflate_dynamic().
#define INFMOD |
#define memzero | ( | dest, | |
len | |||
) | bzero(dest,len) |
Definition at line 33 of file inflate.c.
Referenced by huft_build().
#define N_MAX 288 /* maximum number of codes in any set */ |
Definition at line 404 of file inflate.c.
Referenced by huft_build().
#define NEEDBITS | ( | glbl, | |
n | |||
) |
Definition at line 353 of file inflate.c.
Referenced by inflate_block(), inflate_codes(), inflate_dynamic(), and inflate_stored().
#define PKZIP_BUG_WORKAROUND /* PKZIP 1.93a problem--live with it */ |
#define uch u_char |
Definition at line 27 of file inflate.c.
Referenced by huft_build(), inflate_codes(), and inflate_stored().
#define ulg u_long |
Definition at line 29 of file inflate.c.
Referenced by inflate_block(), inflate_codes(), inflate_dynamic(), and inflate_stored().
__FBSDID | ( | "$BSDSUniX$" | ) |
Referenced by huft_build(), inflate(), inflate_dynamic(), and inflate_fixed().
int inflate | ( | struct inflate * | glbl | ) |
Definition at line 1043 of file inflate.c.
References free(), huft_free(), malloc(), and xinflate().
Referenced by exec_gzip_imgact(), and link_elf_ctf_get().
|
static |
|
static |
Definition at line 971 of file inflate.c.
References huft::b, DUMPBITS, inflate_dynamic(), inflate_fixed(), inflate_stored(), NEEDBITS, huft::t, and ulg.
|
static |
Definition at line 825 of file inflate.c.
References huft::b, border, cpdext, cpdist, cplens, cplext, dbits, DUMPBITS, FPRINTF, huft_build(), huft_free(), lbits, mask, huft::n, NEEDBITS, qflag, ulg, and huft::v.
Referenced by inflate_block().
|
static |
Definition at line 783 of file inflate.c.
References cpdext, cpdist, cplens, cplext, huft_build(), huft_free(), and inflate_codes().
Referenced by inflate_block().
|
static |
|
static |
|
static |
|
static |
Definition at line 298 of file inflate.c.
Referenced by inflate_dynamic().
|
static |
Definition at line 315 of file inflate.c.
Referenced by inflate_dynamic(), and inflate_fixed().
|
static |
Definition at line 310 of file inflate.c.
Referenced by inflate_dynamic(), and inflate_fixed().
|
static |
Definition at line 301 of file inflate.c.
Referenced by inflate_dynamic(), and inflate_fixed().
|
static |
Definition at line 306 of file inflate.c.
Referenced by inflate_dynamic(), and inflate_fixed().
|
static |
Definition at line 398 of file inflate.c.
Referenced by inflate_dynamic().
|
static |
Definition at line 397 of file inflate.c.
Referenced by inflate_dynamic().
|
static |
Definition at line 321 of file inflate.c.
Referenced by inflate_codes(), and inflate_dynamic().
|
static |
Definition at line 49 of file inflate.c.
Referenced by inflate_dynamic(), and kvprintf().