From owner-freebsd-hackers Tue Jan 16 10:52:27 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA02962 for hackers-outgoing; Tue, 16 Jan 1996 10:52:27 -0800 (PST) Received: from argus.flash.net (root@[206.149.24.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA02951 for ; Tue, 16 Jan 1996 10:52:21 -0800 (PST) Received: (from lists@localhost) by argus.flash.net (8.6.12/8.6.12) id MAA00494; Tue, 16 Jan 1996 12:50:47 -0600 From: mailing list account Message-Id: <199601161850.MAA00494@argus.flash.net> Subject: Re: FBSD 2.1 To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Tue, 16 Jan 1996 12:50:46 -0600 (CST) Cc: freebsd-hackers@freebsd.org In-Reply-To: <11038.821817289@time.cdrom.com> from "Jordan K. Hubbard" at Jan 16, 96 10:34:49 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > >>i did that several years ago. i hacked up the hacked up version of info-zip >>library routines that were used in the early pgp packages. this is plain and > > What did the API look like? Anything along the lines of what I suggested? > > Jordan [from memory, but i think correct]: u_long zip(char *filename); returns: finished file size. int unzip(char *filename); returns: i forget... i had the bargraph code hardwired in to interface to a third-party screen package. here would be a good hack of the above: u_long zip(char *filename, int (*stat_func)(int *blk_cnt)); int unzip(char *filename, int (*stat_func)(int *blk_cnt)); in order to let the user do his own status display, and not doing status if stat_func == NULL I also think I reduced some table sizes in order to fit it nicely in the DOG limitations... I don't really remember any signifigant speed reductions in the reduction of the table sizes, and that was on a 10MHz 286. Jim -- All opinions expressed are mine, if you | "I will not be pushed, stamped, think otherwise, then go jump into turbid | briefed, debriefed, indexed, or radioactive waters and yell WAHOO !!! | numbered!" - #1, "The Prisoner" jbryant@argus.flash.net - FlashNet Communications - Ft. Worth, Texas