From owner-freebsd-hackers Tue Jan 16 19:28:31 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA10040 for hackers-outgoing; Tue, 16 Jan 1996 19:28:31 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id TAA10031 for ; Tue, 16 Jan 1996 19:28:22 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id OAA01317; Wed, 17 Jan 1996 14:01:38 +1030 From: Michael Smith Message-Id: <199601170331.OAA01317@genesis.atrad.adelaide.edu.au> Subject: Re: FBSD 2.1 To: nate@sri.MT.net (Nate Williams) Date: Wed, 17 Jan 1996 14:01:37 +1030 (CST) Cc: jkh@time.cdrom.com, nate@sri.MT.net, msmith@atrad.adelaide.edu.au, tnaggs@cddotdot.mikom.csir.co.za, Hackers@freebsd.org In-Reply-To: <199601161724.KAA04736@rocky.sri.MT.net> from "Nate Williams" at Jan 16, 96 10:24:21 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk Nate Williams stands accused of saying: > > Add file fname to zip file (which must be writable). > > If fname is a link and link is true, the link will be stored > > as a link, otherwise what it points to will be stored. > > Since the ZIP format doesn't have a concept of links, it will only store > filenames. Unfortunately, this means that we can't do symlinks inside > of zip files. :( *mumble* format extension 8( > > int zip_fdopen(ZIP_t zp, char *fname) > > > > Return a file descriptor for an entry in a zip file. When a read from > > the new fd returns EOF, a zip_close() on the fd should be done to > > clean up any state lying around. > > Returns new fd on success or -1 if entry not found/open failed. > > > > > > int zip_fdclose(ZIP_t zp, int fd) > > > > Close a file descriptor previously returned by zip_open(). > > Returns 0 on success, -1 on error. > > Hmm, the above 2 could get interesting. I'm not sure how you'd do that, > in the same way I'm not sure how you'd do that with files inside a tar > file. Look at funopen(3). > Nate -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[