README 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ** README for file(1) Command **
  2. @(#) $Id: README,v 1.20 1993/09/23 21:47:01 christos Exp $
  3. This is Release 3.x of Ian Darwin's (copyright but distributable)
  4. file(1) command. Release 3.x is scheduled for inclusion in the
  5. 4.4 BSD (Berkeley Software Distribution) of UNIX-like
  6. software, and is the standard "file" command for Linux, 386bsd,
  7. and other systems. (See "patchlevel.h" for the exact release number).
  8. UNIX is a trademark of UNIX System Laboratories.
  9. The prime contributor to Release 3.8 was Guy Harris, who put in megachanges
  10. including byte-order independance.
  11. The prime contributor to Release 3.0 was Christos Zoulas, who put
  12. in hundreds of lines of source code changes, including his own
  13. ANSIfication of the code (I liked my own ANSIfication better, but
  14. his (__P()) is the "Berkeley standard" way of doing it, and I wanted UCB
  15. to include the code...), his HP-like "indirection" (a feature of
  16. the HP file command, I think), and his mods that finally got the
  17. uncompress (-z) mode finished and working.
  18. This release has compiled in numerous environments; see PORTING
  19. for a list and problems.
  20. This fine freeware file(1) follows the USG (System V) model of the file
  21. command, rather than the Research (V7) version or the V7-derived 4.[23]
  22. Berkeley one. That is, the file /etc/magic contains much of the ritual
  23. information that is the source of this program's power. My version
  24. knows a little more magic (including tar archives) than System V; the
  25. /etc/magic parsing seems to be compatible with the (poorly documented)
  26. System V /etc/magic format (with one exception; see the man page).
  27. In addition, the /etc/magic file is built from a subdirectory
  28. for easier(?) maintenance. I will act as a clearinghouse for
  29. magic numbers assigned to all sorts of data files that
  30. are in reasonable circulation. Send your magic numbers,
  31. in magic(4) format please, to the maintainer, Christos Zoulas.
  32. LEGAL.NOTICE - read this first.
  33. README - read this second (you are currently reading this file).
  34. PORTING - read this only if the program won't compile.
  35. Makefile - read this next, adapt it as needed (particularly
  36. the location of the old existing file command and
  37. the man page layouts), type "make" to compile,
  38. "make try" to try it out against your old version.
  39. Expect some diffs, particularly since your original
  40. file(1) may not grok the imbedded-space ("\ ") in
  41. the current magic file, or may even not use the
  42. magic file.
  43. apprentice.c - parses /etc/magic to learn magic
  44. ascmagic.c - third & last set of tests, based on hardwired assumptions.
  45. core - not included in distribution due to mailer limitations.
  46. debug.c - includes -c printout routine
  47. file.1 - man page for the command
  48. magic.4 - man page for the magic file, courtesy Guy Harris.
  49. Install as magic.4 on USG and magic.5 on V7 or Berkeley; cf Makefile.
  50. file.c - main program
  51. file.h - header file
  52. fsmagic.c - first set of tests the program runs, based on filesystem info
  53. is_tar.c - knows about tarchives (courtesy John Gilmore).
  54. magdir - directory of /etc/magic pieces
  55. magdir/Makefile - ADJUST THIS FOR YOUR CONFIGURATION
  56. names.h - header file for ascmagic.c
  57. softmagic.c - 2nd set of tests, based on /etc/magic
  58. strtok.c, getopt.c - in case you them (courtesy of Henry Spencer).
  59. strtol.c, strchr.c - in case you need them - public domain.
  60. tst - simple test suite, built from tst/Makefile
  61. E-mail: christos@deshaw.com, moraes@deshaw.com
  62. Phone: Do not even think of telephoning me about this program. Send cash first!
  63. Parts of this software were developed at SoftQuad Inc., 56 Aberfoyle
  64. Cres, # 810, Toronto, Ontario CANADA M8X 2W4. Phone: 416-239-4801 or
  65. 800-387-2777. Email: mail@sq.com. Call for information on SGML editing
  66. and browsing, Unix text processing, and customised products on Unix,
  67. DOS and Mac.