[unix-pc.general] More "/etc/magic" entries, and a question on them ...

lenny@icus.islp.ny.us (Lenny Tropiano) (09/22/88)

In article <847@vsi.UUCP>, friedl@vsi.UUCP (Stephen J. Friedl) writes:
...
| 0	short		0x1f9d		squeezed data
| >2	byte		0x90		- 16-bit mode
| >2	byte		0x8f		- 15-bit mode
| >2	byte		0x8e		- 14-bit mode
| >2	byte		0x8d		- 13-bit mode
| >2	byte		0x8c		- 12-bit mode
| >2	byte		0x8b		- 11-bit mode
| >2	byte		0x8a		- 10-bit mode
| >2	byte		0x89		- 9-bit mode

Why doesn't this work on a 3B1?  I tried it, and the compress'd files look
like:

$ od -x file.Z
0000000 1f9d 9067 c8bc 8153 c68d 8e04 08d9 a471
...
	^^^^ ^^
The magic # is the same, and the "bit-mode" is also the same... it just
doesn't work on the UNIX PC/3B1.

Also here's another entry .. (maybe I'm stretching things a bit much)

0	string		From 		mail file
                            ^ - note this is a "space" and then a tab.

-Lenny
-- 
Paper-net: Lenny Tropiano          | @-net:         lenny@icus.islp.ny.us
           ICUS Software Systems   | !-net:      ...sbcs   \
           PO Box 1                |                boulder \
           Islip Terrace, NY 11752 |                talcott  !icus!lenny
Vocal-net: (516) 582-5525 [work]   |                pacbell /
           (516) 968-8576 [home]   |                hombre /
Telex-net: 154232428 ICUS          | Another-net:   attmail!icus!lenny

ditto@cbmvax.UUCP (Michael "Ford" Ditto) (09/23/88)

In article <501@icus.islp.ny.us> lenny@icus.islp.ny.us (Lenny Tropiano) writes:
>| 0	short		0x1f9d		squeezed data
>| >2	byte		0x90		- 16-bit mode
>| >2	byte		0x8f		- 15-bit mode
>
>Why doesn't this work on a 3B1?

Because the Unix PC's file command sign-extends the numbers for some reason.
I forgot to mention this in my previous posting, but you can see I had to
discover it to do the "Ms.Dos file system" (I put "short 0xffffeb34").

This works fine:

>2	byte		0xffffff90	- 16-bit mode

-- 
					-=] Ford [=-

	.		.		(In Real Life: Mike Ditto)
.	    :	       ,		ford@kenobi.cts.com
This space under construction,		...!ucsd!elgar!ford
pardon our dust.			ditto@cbmvax.cbm.commodore.com