Path: utzoo!attcan!uunet!munnari!otc!metro!pta!teti!nswitgould!nick From: nick@nswitgould.OZ (Nick Andrew) Newsgroups: comp.os.minix Subject: Re: New program: file.c Message-ID: <8550@nswitgould.OZ> Date: 12 May 88 02:18:14 GMT References: <707@ast.cs.vu.nl> Organization: Comp Sci, NSWIT, Australia Lines: 24 in article <707@ast.cs.vu.nl>, ast@cs.vu.nl (Andy Tanenbaum) says: > > Here is a primitive file.c If anyone thinks he or she can tell the > difference between French and English, here's your big chance. I knocked > this off in an hour, so it's not real smart. Improvements are welcome. > ... primitive file.c follows ... Some weeks ago, I ported the public domain file(1) from the comp.sources.unix distribution (v13i027 and v13i028). It works very well, though I didn't take the time to add definitions for Minix a.out files or archives. I seem to recall a few changes required in the Minix /usr/include files, most notably sys/types.h and sys/stat.h. I had already made these and some other changes to the library (eg adding John Gilmore's pd Getopt). The location of the "magic" file was changed to /usr/lib/magic, because my hard disk partition 1 is mounted on /usr (helps with portability) and /etc is still on the ramdisk. If there is demand, I'll post my changes to the net. Nick.