Skip to content

Commit 36d9788

Browse files
committed
Import zoo v2.10 from ibiblio, nee SunSITE/MetaLab
http://www.ibiblio.org/pub/packages/ccic/software/unix/utils/ Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
0 parents  commit 36d9788

84 files changed

Lines changed: 18597 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Checksums

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Whole file CRCs generated by Brik v2.0. Use "brik -C" to verify them.
2+
3+
# CRC-32 filename
4+
# ------ --------
5+
6+
1667442549 Copyright
7+
359392938 Install
8+
630248997 List
9+
325879421 addbfcrc.c
10+
669949366 addbftcc.c
11+
4137570368 addfname.c
12+
260075838 ar.h
13+
3176247825 asmconst.ai
14+
1968829781 assert.h
15+
2774589019 basename.c
16+
1418550454 bilf.c
17+
3571167278 bsd.c
18+
1744985930 comment.c
19+
1095290529 crcdefs.c
20+
1757282176 debug.h
21+
3021583345 decode.c
22+
73743136 descrip.mms
23+
489796322 encode.c
24+
4075798129 errors.i
25+
3490413857 file.fix
26+
3485210749 fiz.1
27+
3600565988 fiz.c
28+
1774024002 fiz.man
29+
4182972025 generic.c
30+
4010994345 getfile.c
31+
955564271 huf.c
32+
2264840036 io.c
33+
75805716 lzc.asm
34+
3570919889 lzc.c
35+
2349470583 lzconst.h
36+
1707878509 lzd.asm
37+
2897597557 lzd.c
38+
3828693743 lzh.c
39+
2429644475 lzh.h
40+
3979315416 machine.c
41+
182740816 machine.h
42+
535357786 macros.ai
43+
2011785281 makefile
44+
2589398917 makefile.tcc
45+
2126848007 makelist.c
46+
3525602735 maketbl.c
47+
876325461 maketree.c
48+
2551733860 misc.c
49+
2137143154 misc2.c
50+
3638187888 msdos.c
51+
3448357770 mstime.i
52+
31631311 needed.c
53+
1766157868 nextfile.c
54+
199542926 nixmode.i
55+
4077222384 nixtime.i
56+
538776329 options.c
57+
1046541896 options.doc
58+
180668707 options.h
59+
900930479 options.opt
60+
736653532 parse.c
61+
574404514 parse.h
62+
1002254917 portable.c
63+
2748395706 portable.h
64+
2801811069 prterror.c
65+
3802884050 sysv.c
66+
2806576319 turboc.c
67+
3251857396 turboc.cfg
68+
3963527820 various.h
69+
1396445097 version.c
70+
2692606938 vms.c
71+
1336602147 vmsbugs.doc
72+
2881095287 vmsbuild.com
73+
3049809232 vmstime.c
74+
3500434419 zoo.1
75+
2239462961 zoo.c
76+
2894729456 zoo.h
77+
2869866215 zoo.man
78+
2959104574 zooadd.c
79+
3729120263 zooadd2.c
80+
367556730 zoodel.c
81+
3847646036 zooext.c
82+
987202888 zoofilt.c
83+
2253746453 zoofns.h
84+
778874820 zooio.h
85+
1037042734 zoolist.c
86+
879931512 zoomem.h
87+
3513827030 zoopack.c

Copyright

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
COPYRIGHT
3+
4+
5+
The following rules apply only to the zoo archiver itself.
6+
Currently, all extract-only programs, and all supporting utili-
7+
ties, are fully in the public domain and are expected to remain so
8+
for the forseeable future.
9+
10+
COPYRIGHT STATEMENT FOR ZOO ARCHIVE PROGRAM
11+
12+
1. "This software" refers separately to each existing version, and
13+
each existing authorized derivative work, of my zoo archive
14+
program as of the date at the bottom of this copyright statement.
15+
16+
2. DISTRIBUTION IN UNMODIFIED FORM: You may copy this software in
17+
unmodified form for any purpose, whether commercial or
18+
noncommercial, provided that you make no attempt to restrict
19+
distribution of it by others.
20+
21+
3. CREATION OF DERIVATIVE WORKS: You may create and distribute
22+
derivative works made from any source code files that are part of
23+
this software, provided that you (a) preserve all copyright
24+
notices and author attributions, (b) do not create, whether
25+
deliberately or through negligence, any derivative work that
26+
violates the compatibility goals describe in the reference manual
27+
for zoo 2.1, (c) do not attempt to restrict the distribution or
28+
use of the derivative work by others, (d) make the fully commented
29+
source code of the derivative work available to me at no cost if
30+
I so request, and make no attempt to restrict the distribution
31+
or use of this source code.
32+
33+
4. NO WARRANTY. I make no claim that this software is free of defects.
34+
I do not accept any legal obligation to provide any bug fixes or
35+
any other type of support whatsoever. I disclaim all liability
36+
for damages, whether direct or consequential.
37+
38+
5. EXCEPTIONS: Exceptions to the above conditions are probably
39+
possible. Please contact me to negotiate.
40+
41+
6. The prohibition against incompatible derivative works does not
42+
necessarily imply that the archiver and the archive format cannot
43+
be enhanced. However, if any incompatibility is created, it may
44+
be done only with my permission.
45+
46+
-- Rahul Dhesi 1991/07/07

Install

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
INSTALLATION
3+
4+
This is version 2.1 of the zoo archiver. It includes improved compression,
5+
better online help, VAX/VMS file timestamp preservation, faster
6+
uncompression, and other features that are described in the accompanying
7+
manual ("zoo.1" or "zoo.man").
8+
9+
The supplied makefile contains a number of targets for selected systems.
10+
Type "make help" for help from the makefile. Also, for VAX/VMS
11+
systems, see the file vmsbugs.doc for VMS-specific information.
12+
13+
The file ``options.h'' defines preprocessor symbols for the various sys-
14+
tems. In most cases, given a reasonably powerful C compiler and
15+
library, you will be able to find a combination of options that will
16+
work. Documentation for these options is in the file ``options.doc''.
17+
18+
Other machine-dependent code and definitions are in machine.h,
19+
machine.c, and portable.h. Also, the amount of memory used for some
20+
arrays can be customized by defining symbols that are described and used
21+
in zoomem.h.
22+
23+
The low-level input/output routines are in portable.c. In most cases
24+
these will not need to be modified.
25+
26+
On machines with older (Intel-style) architectures zoo requires the
27+
large memory model. Compiling with the small memory model will
28+
cause problems.
29+
30+
EXTRACT-ONLY VERSION. For a new system, your first concern should be
31+
the ability to extract and list zoo archives. For this purpose try com-
32+
piling booz (which stands for Barebones Ooz) (currently version 2.0),
33+
which is small and portable. It is distributed separately from zoo.
34+
35+
KNOWN BUGS
36+
37+
1. The filter mode of zoo 2.1 appears to compresses and uncompresses
38+
correctly, but often reports an "Uncompression error" even when
39+
uncompression was successful.
40+
41+
2. It is possible for zoo 2.1 to fail to detect an out of disk space
42+
situation when adding files to a zoo archive.
43+
44+
3. The MS-DOS version of zoo 2.1 may unnecessarily report an error
45+
when extracting a file to standard output. Normal file extraction
46+
to disk is not affected.
47+
48+
These bugs are expected to be fixed in the next release.
49+
50+
-- Rahul Dhesi 1991/07/07

List

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
## List of files for zoo 2.1
2+
##
3+
## Here is a list of all files that are part of the zoo 2.1 source
4+
## distribution.
5+
##
6+
## @all: for all systems
7+
## @bsd: BSD
8+
## @sysv: System V
9+
## @vms: VMS
10+
## @gen: Generic **IX systems
11+
## @tcc: Turbo C/MS-DOS
12+
## @doc: Documentation (not source code etc.)
13+
##
14+
## To select all files needed for a specific system, just do a search.
15+
## For example, to find all non-doc files needed for BSD:
16+
##
17+
## egrep '@bsd|@all' list.master | grep -v '@doc' | grep -v '^##'
18+
##
19+
Copyright @doc @all
20+
Install @doc @all
21+
List @doc @all
22+
addbfcrc.c @all -@tcc
23+
addbftcc.c @tcc
24+
addfname.c @all
25+
ar.h @all
26+
asmconst.ai @tcc
27+
assert.h @all
28+
basename.c @all
29+
bilf.c @vms
30+
bsd.c @bsd
31+
comment.c @all
32+
crcdefs.c @all
33+
debug.h @all
34+
decode.c @all
35+
descrip.mms @vms
36+
encode.c @all
37+
errors.i @all
38+
file.fix @doc @bsd @sysv
39+
fiz.1 @doc @all
40+
fiz.c @all
41+
fiz.man @doc @all
42+
generic.c @gen
43+
getfile.c @all
44+
huf.c @all
45+
io.c @all
46+
lzc.asm @tcc
47+
lzc.c @all
48+
lzconst.h @all
49+
lzd.asm @tcc
50+
lzd.c @all
51+
lzh.c @all
52+
lzh.h @all
53+
machine.c @all
54+
machine.h @all
55+
macros.ai @tcc
56+
makefile @bsd @sysv
57+
makefile.tcc @tcc
58+
makelist.c @all
59+
maketbl.c @all
60+
maketree.c @all
61+
misc.c @all
62+
misc2.c @all
63+
msdos.c @all
64+
mstime.i @all
65+
needed.c @all
66+
nextfile.c @all
67+
nixmode.i @bsd @sysv
68+
nixtime.i @bsd @sysv
69+
options.c @all
70+
options.doc @doc
71+
options.h @all
72+
options.opt @vms
73+
parse.c @all
74+
parse.h @all
75+
portable.c @all
76+
portable.h @all
77+
prterror.c @all
78+
sysv.c @sysv
79+
turboc.c @tcc
80+
turboc.cfg @tcc
81+
various.h @all
82+
version.c @all
83+
vms.c @vms
84+
vmsbugs.doc @doc
85+
vmsbuild.com @vms
86+
vmstime.c @vms
87+
zoo.1 @doc
88+
zoo.c @all
89+
zoo.h @all
90+
zoo.man @doc
91+
zooadd.c @all
92+
zooadd2.c @all
93+
zoodel.c @all
94+
zooext.c @all
95+
zoofilt.c @all
96+
zoofns.h @all
97+
zooio.h @all
98+
zoolist.c @all
99+
zoomem.h @all
100+
zoopack.c @all

addbfcrc.c

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#ifndef LINT
2+
static char sccsid[]="@(#) addbfcrc.c 2.2 88/01/29 17:04:31";
3+
#endif /* LINT */
4+
5+
#include "options.h"
6+
/*
7+
addbfcrc() accepts a buffer address and a count and adds the CRC for
8+
all bytes in the buffer to the global variable crccode using
9+
CRC-16.
10+
11+
CRC computation algorithm originally from an article by David Schwaderer
12+
in the April 1985 issue of PC Tech Journal.
13+
14+
Loop optimization done by J. Brian Waters.
15+
16+
I claim no copyright over the contents of this file.
17+
18+
-- Rahul Dhesi 1986/08/27
19+
20+
*/
21+
22+
extern unsigned int crccode;
23+
extern unsigned crctab[];
24+
25+
void addbfcrc(buffer,count)
26+
register char *buffer;
27+
register int count;
28+
29+
{
30+
register unsigned int localcrc;
31+
localcrc = crccode;
32+
33+
for (; count--; )
34+
localcrc = (localcrc>>8) ^ crctab[(localcrc ^ (*buffer++)) & 0x00ff];
35+
crccode = localcrc;
36+
}

0 commit comments

Comments
 (0)