Deleted Added
full compact
imgact_gzip.c (6579) imgact_gzip.c (7090)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $Id: imgact_gzip.c,v 1.11 1995/02/13 07:40:33 phk Exp $
9 * $Id: imgact_gzip.c,v 1.12 1995/02/20 22:23:07 davidg Exp $
10 *
11 * This module handles execution of a.out files which have been run through
12 * "gzip". This saves diskspace, but wastes cpu-cycles and VM.
13 *
14 * TODO:
15 * text-segments should be made R/O after being filled
16 * is the vm-stuff safe ?
17 * should handle the entire header of gzip'ed stuff.

--- 29 unchanged lines hidden (view full) ---

47 int idx;
48 u_long virtual_offset, file_offset, file_end, bss_size;
49};
50
51static int NextByte __P((void *vp));
52static int do_aout_hdr __P((struct imgact_gzip *));
53static int Flush __P((void *vp, u_char *, u_long siz));
54
10 *
11 * This module handles execution of a.out files which have been run through
12 * "gzip". This saves diskspace, but wastes cpu-cycles and VM.
13 *
14 * TODO:
15 * text-segments should be made R/O after being filled
16 * is the vm-stuff safe ?
17 * should handle the entire header of gzip'ed stuff.

--- 29 unchanged lines hidden (view full) ---

47 int idx;
48 u_long virtual_offset, file_offset, file_end, bss_size;
49};
50
51static int NextByte __P((void *vp));
52static int do_aout_hdr __P((struct imgact_gzip *));
53static int Flush __P((void *vp, u_char *, u_long siz));
54
55extern struct sysentvec aout_sysvec;
56
57int
58exec_gzip_imgact(iparams)
59 struct image_params *iparams;
60{
61 int error, error2 = 0;
62 u_char *p = (u_char *) iparams->image_header;
63 struct imgact_gzip igz;
64 struct inflate infl;

--- 310 unchanged lines hidden ---
55int
56exec_gzip_imgact(iparams)
57 struct image_params *iparams;
58{
59 int error, error2 = 0;
60 u_char *p = (u_char *) iparams->image_header;
61 struct imgact_gzip igz;
62 struct inflate infl;

--- 310 unchanged lines hidden ---