FreeBSD kernel kern code
imgact_gzip.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/exec.h>
#include <sys/imgact.h>
#include <sys/imgact_aout.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mman.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/racct.h>
#include <sys/resourcevar.h>
#include <sys/sysent.h>
#include <sys/systm.h>
#include <sys/vnode.h>
#include <sys/inflate.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/pmap.h>
#include <vm/vm_map.h>
#include <vm/vm_kern.h>
#include <vm/vm_extern.h>
Include dependency graph for imgact_gzip.c:

Go to the source code of this file.

Data Structures

struct  imgact_gzip
 

Functions

 __FBSDID ("$BSDSUniX$")
 
static int exec_gzip_imgact (struct image_params *imgp)
 
static int NextByte (void *vp)
 
static int do_aout_hdr (struct imgact_gzip *)
 
static int Flush (void *vp, u_char *, u_long siz)
 
 EXEC_SET (execgzip, gzip_execsw)
 

Variables

static struct execsw gzip_execsw = {exec_gzip_imgact, "gzip"}
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
static int do_aout_hdr ( struct imgact_gzip gz)
static

Definition at line 154 of file imgact_gzip.c.

References imgact_gzip::a_out, imgact_gzip::bss_size, exec_new_vmspace(), imgact_gzip::file_end, imgact_gzip::file_offset, imgact_gzip::ip, lim_cur(), maxtsiz, racct_set(), imgact_gzip::virtual_offset, and imgact_gzip::where.

Referenced by Flush().

Here is the call graph for this function:

Here is the caller graph for this function:

static int exec_gzip_imgact ( struct image_params *  imgp)
static

Definition at line 70 of file imgact_gzip.c.

References Flush(), inflate(), NextByte(), and printf().

Here is the call graph for this function:

EXEC_SET ( execgzip  ,
gzip_execsw   
)
static int Flush ( void *  vp,
u_char *  ptr,
u_long  siz 
)
static

Definition at line 334 of file imgact_gzip.c.

References imgact_gzip::a_out, do_aout_hdr(), imgact_gzip::error, imgact_gzip::file_end, imgact_gzip::file_offset, imgact_gzip::gotheader, imgact_gzip::output, imgact_gzip::virtual_offset, and imgact_gzip::where.

Referenced by exec_gzip_imgact().

Here is the call graph for this function:

Here is the caller graph for this function:

static int NextByte ( void *  vp)
static

Definition at line 300 of file imgact_gzip.c.

References imgact_gzip::error, imgact_gzip::idx, imgact_gzip::inbuf, imgact_gzip::ip, imgact_gzip::len, imgact_gzip::offset, and imgact_gzip::where.

Referenced by exec_gzip_imgact().

Here is the caller graph for this function:

Variable Documentation

struct execsw gzip_execsw = {exec_gzip_imgact, "gzip"}
static

Definition at line 392 of file imgact_gzip.c.