Deleted Added
full compact
imgact_gzip.c (3417) imgact_gzip.c (3507)
1/*
2 * Parts of this file are not covered by:
3 * ----------------------------------------------------------------------------
4 * "THE BEER-WARE LICENSE" (Revision 42):
5 * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
6 * can do whatever you want with this stuff. If we meet some day, and you think
7 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
8 * ----------------------------------------------------------------------------
9 *
1/*
2 * Parts of this file are not covered by:
3 * ----------------------------------------------------------------------------
4 * "THE BEER-WARE LICENSE" (Revision 42):
5 * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
6 * can do whatever you want with this stuff. If we meet some day, and you think
7 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
8 * ----------------------------------------------------------------------------
9 *
10 * $Id: imgact_gzip.c,v 1.4 1994/10/04 06:51:42 phk Exp $
10 * $Id: imgact_gzip.c,v 1.7 1994/10/07 22:26:51 csgr Exp $
11 *
12 * This module handles execution of a.out files which have been run through
13 * "gzip -9".
14 *
15 * For now you need to use exactly this command to compress the binaries:
16 *
17 * gzip -9 -v < /bin/sh > /tmp/sh
18 *
19 * TODO:
20 * text-segments should be made R/O after being filled
21 * is the vm-stuff safe ?
22 * should handle the entire header of gzip'ed stuff.
23 * inflate isn't quite reentrant yet...
24 * error-handling is a mess...
25 * so is the rest...
26 * tidy up unnecesary includes
27 */
28
11 *
12 * This module handles execution of a.out files which have been run through
13 * "gzip -9".
14 *
15 * For now you need to use exactly this command to compress the binaries:
16 *
17 * gzip -9 -v < /bin/sh > /tmp/sh
18 *
19 * TODO:
20 * text-segments should be made R/O after being filled
21 * is the vm-stuff safe ?
22 * should handle the entire header of gzip'ed stuff.
23 * inflate isn't quite reentrant yet...
24 * error-handling is a mess...
25 * so is the rest...
26 * tidy up unnecesary includes
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/resourcevar.h>
29
30#include <sys/param.h> /* some header file needs this first foo! */
31
32#include <sys/exec.h>
32#include <sys/exec.h>
33#include <sys/inflate.h>
34#include <sys/mman.h>
35#include <sys/malloc.h>
36#include <sys/imgact.h>
37#include <sys/imgact_aout.h>
33#include <sys/imgact.h>
34#include <sys/imgact_aout.h>
35#include <sys/inflate.h>
38#include <sys/kernel.h>
36#include <sys/kernel.h>
37#include <sys/malloc.h>
38#include <sys/mman.h>
39#include <sys/resourcevar.h>
39#include <sys/sysent.h>
40#include <sys/sysent.h>
41#include <sys/systm.h>
40
41#include <vm/vm.h>
42#include <vm/vm_kern.h>
43
44extern struct sysentvec aout_sysvec;
45
46int
47exec_gzip_imgact(iparams)

--- 241 unchanged lines hidden ---
42
43#include <vm/vm.h>
44#include <vm/vm_kern.h>
45
46extern struct sysentvec aout_sysvec;
47
48int
49exec_gzip_imgact(iparams)

--- 241 unchanged lines hidden ---