README 4.3 KB

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