From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Boyd Roberts Message-ID: <9ao5m1$18m2$1@news6.isdnet.net> References: <200104041459.f34Exta37937@pali.cps.cmich.edu>, Subject: Re: [9fans] Plan9 updates.. Date: Mon, 9 Apr 2001 08:36:55 +0000 Topicbox-Message-UUID: 7bb7ba86-eac9-11e9-9e20-41e7f4b1d025 ----- Original Message ----- From: "cLIeNUX user" Newsgroups: comp.os.plan9 Sent: Thursday, April 05, 2001 10:31 AM Subject: Re: [9fans] Plan9 updates.. > humbubba@smart.net > > > >Is there a tool (for UNIX) to look at the contents of wrap bundles? > >It seems that 9e (did work once some time ago, no more) and unwrap > >(perl script, never worked except printing file names and creating > >directories). > > > >- ishwar > > ftp://linux01.gwdg.de/pub/cLIeNUX/interim/p9unpack.c > > is for the main Plan9 50 meg package, on Linux. Is that "wrap" ? from the code: /* The following array declarations and backreferenced #defines is one way to fake Forth's VARIABLE ALLOT in C. */ byte path[TOKENSIZE], perms[TOKENSIZE], capes[TOKENSIZE], owner[TOKENSIZE], size[TOKENSIZE], spam[TOKENSIZE]; byte buffer[READSIZE]; #define path (int) & path #define perms (int) & perms #define capes (int) & capes #define owner (int) & owner #define size (int) & size #define spam (int) & spam #define buffer (int) & buffer this code casts a pointer to an integer -- never do this. just how portable will the cast be? take the alpha for example: it has 32 bit ints and 64 bit pointers IIRC. -- Boyd Roberts http://www.insultant.net boyd@insultant.net What do you know about surfing, Major? You're from goddamn New Jersey.