History log of /freebsd-10.0-release/usr.bin/file/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


234449 19-Apr-2012 obrien

Update file(1) to version 5.11.


191771 04-May-2009 obrien

Merge vendor/file/dist@191739, bringing FILE 5.00 to 8-CURRENT.


185777 08-Dec-2008 kib

Add strndup(3) prototype to string.h.

This change was erronously ommitted from the r185690, and attempt
to simply add the prototype to string.h has revealed that several
contributed programs defined local prototypes for strndup(), controlled
by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to
#define HAVE_STRNDUP 1. Next import of the corresponding program would
regenerate config.h, overriding the changes in this commit.

No objections from: kan


175820 30-Jan-2008 ru

Christos decided to keep the manpages in mdoc(7) format,
so stop using our own versions of these.


175299 13-Jan-2008 obrien

Update for the 'file' 4.23 import.


169977 25-May-2007 ru

Update for the 4.21 import (manuals didn't change).


169967 24-May-2007 obrien

FreeBSD has <limits.h>.


169965 24-May-2007 obrien

Update for the 'file' 4.21 import.


169946 24-May-2007 obrien

Update for the 'file' 4.19 import.


162792 29-Sep-2006 ru

Markup fixes.


162381 17-Sep-2006 ru

Update manpages for FILE 4.17.


159769 19-Jun-2006 obrien

Update for the 'file' 4.17 import.


159033 29-May-2006 jmg

remove comment about systems, I got confused which arch one of my systems
was...

Pointed out by: ru


159001 28-May-2006 jmg

document that even if magic is newer than magic.mgc, it isn't used

compiling mgc on a big endian system (specificly tested sparc64) breaks,
using one from a little endian system works


141851 13-Feb-2005 ru

Expand contractions.


141846 13-Feb-2005 ru

Expand *n't contractions.


139376 28-Dec-2004 ru

Update for FILE v4.12.


139375 28-Dec-2004 ru

Update for FILE v4.12.


139371 28-Dec-2004 obrien

Catch up with file 4.12 import.


137887 19-Nov-2004 obrien

Install the header for libmagic.

PR: 73647
Submitted by: Uranus <uranus@it.muds.net>


133370 09-Aug-2004 obrien

Don't try to programatically support running file(1) w/in /usr/obj or other
non-standard install path.

Agreed with: ru


133367 09-Aug-2004 obrien

Uncomment the real paths and remove the local debugging paths.

Noticed by: ru (who's faster than 'make world' on my stock src test machine)


133363 09-Aug-2004 obrien

The file consumer binary, which depends on the libmagic.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


125503 05-Feb-2004 ru

Fixed style of DPADD and LDADD assignments as per style.Makefile(5).


119893 08-Sep-2003 ru

mdoc(7): Use the new feature of the .In macro.


112147 12-Mar-2003 ru

Update for FILE v3.41.


111661 28-Feb-2003 obrien

Update for version 3.41.


110953 15-Feb-2003 obrien

Update for version 3.40.
* We have inttypes.h (yes, even in RELENG_4).
* We now have GNU getopt, so lets be the first thing in the tree to
acutally use it...


107788 12-Dec-2002 ru

Uniformly refer to a file system as "file system".

Approved by: re


103642 19-Sep-2002 ru

Update for FILE v3.39.


103632 19-Sep-2002 ru

Bootstrapping aid for systems without <stdint.h>.
(Needed to build mkmagic in build-tools.)


103378 16-Sep-2002 obrien

Update for version 3.39.


103377 16-Sep-2002 obrien

Update for 3.39.


95083 19-Apr-2002 charnier

Use `The .Nm utility'


88064 17-Dec-2001 ru

Install files via FILES.


87790 13-Dec-2001 ru

Fold example text into 80 column width display.

PR: docs/32676
Submitted by: Rich Morin <rdm@cfcl.com>


84709 09-Oct-2001 ru

Update for FILE v3.37.


84688 08-Oct-2001 obrien

Update for FILE v3.37.
FreeBSD no longer needs the daylight hack.
(we really should sync our timezone code up ...)


81845 17-Aug-2001 obrien

Use a build-tool to create the .mgc files.

Submitted by: ru (partial)
Obtained from: NetBSD (basic idea)
Reviewed by: bde, ru


81449 10-Aug-2001 ru

mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.


81354 09-Aug-2001 ru

Update for 3.36.


81353 09-Aug-2001 ru

Update for 3.36.
Reduce diffs to distributed, man(7) format, version.
Markup nits.


81293 08-Aug-2001 obrien

Clean up this thing a little.


81292 08-Aug-2001 obrien

Support the new "-i" (output MIME type strings) option by installing
the MIME files (both regular and precompiled).


81291 08-Aug-2001 obrien

Build and use the precompiled magic file. Precompiled magic files have
been supported since version 3.35, however it is just with version 3.36
that file has become verbose about it.


80595 30-Jul-2001 obrien

Update to version 3.36.


80594 30-Jul-2001 obrien

Update to version 3.36.
I had to hack print.c due to some new bits that only compile on NetBSD.
I could not figure what the analogous FreeBSD bits are.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


74848 27-Mar-2001 ru

MAN[1-9] -> MAN.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


69911 12-Dec-2000 ru

Remove hard-sentence breaks, canonify .Dd (no leading zero).


69861 11-Dec-2000 phantom

Re-add home born file(1) and magic(5) manual pages. Update them to
current file(1) version (3.33)

Approved by: obrien


69228 26-Nov-2000 obrien

Use the vendor's manpages (which are in old -man format) rather than
our modified one based on a much older version of the vendor's manpage.


69027 22-Nov-2000 ru

mdoc(7) police: do not split author names in the AUTHORS section.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


68352 05-Nov-2000 obrien

Switch over to using the Christos Zoulas maintained version in contrib/
This also gives use the same exact results as NetBSD, thus sharing more
code with our bretheren.


67189 16-Oct-2000 brian

Include sys/types.h


62429 03-Jul-2000 green

Add the RealMedia file format. Also, add the $FreeBSD$.


58078 14-Mar-2000 archie

Identify timezone data files by their ``TZif'' magic number.
Add $FreeBSD$ tag.


57670 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


56412 23-Jan-2000 mpp

Fxi various man pages to stop abusing the .Bx macro to generate
the string "FreeBSD". Use the .Fx macro instead. Also did some
minor re-wording/formatting to work around a deficiency with
the .Fx macro when it comes to puncuation characters other than
periods and commas.


51457 20-Sep-1999 phantom

Correct spelling : ascii -> ASCII

PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48970 22-Jul-1999 wes

Vastly improve the speed of the file command by making
the expected size of the magic(5) database agree with the
real world. Also, improve the behavior of the realloc
mechanism when the magic database does exceed expectations.

Reviewed by: Peter Jeremy, Matt Dillon
Obtained from: Peter Edwards <peter.edwards@isocor.ie>


46918 10-May-1999 phk

Don't go looking for weird #includes if major isn't a macro.


42416 09-Jan-1999 imp

Add Hitachi SH-3, SH-4, ARM, PPC, 68k PA-ARCH and a few others to PE
file types. Also add bit interpretation from NetBSD to give more
details about the file.


41159 15-Nov-1998 obrien

New file formats.

Obtained from: NetBSD-current/src/usr.bin/file/magdir


41158 15-Nov-1998 obrien

Additional file formats.
Obtained from: NetBSD-current/src/usr.bin/file/magdir/msdos


40563 22-Oct-1998 imp

Added Microsoft's PE formatted executables for mips, i386 and Alpha.
Also added entry for the debugger files as well. The PE format is
used for all Win32 platforms (Win95, Win98, WinNT and WinCE), so it is
nice to be able to tell what kind of thing the foo.dll.... Don't have
any data for powerpc formats, however...


40095 09-Oct-1998 jdp

Don't try to print out the signal number that caused core to be
dumped. It is not in a fixed location in the file, so at best,
garbage comes out. I don't think this code was ever valid.


39911 03-Oct-1998 jdp

Fix "file" so that it prints the program names from core files
correctly.


39495 19-Sep-1998 obrien

Remove useless `BINOWN=root' now that it is the default.


38912 07-Sep-1998 cracauer

Correct zsh shell script entry.
PR: bin/7657
Submitted by: Dom Mitchell dom@phmit.demon.co.uk


38152 07-Aug-1998 phk

This PR contains additional magic for file(1) describing
various adventure game data files.

from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998

PR: 7466
Reviewed by: phk
Submitted by: The Frobozz Magic Homing Pigeon Company


34801 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


33651 20-Feb-1998 jb

Can't use ~0L to compare against a uint32. Use ~((uint32) 0) instead.


33650 20-Feb-1998 jb

Add #include <string.h> to get prototypes.


33077 04-Feb-1998 charnier

Convert to mdoc. Move Id to the top.


32846 28-Jan-1998 charnier

Add rcsid. RU#. Use err(3) instead of local redefinition. Convert man page to
mdoc format. Add usage(). Remove rcs $ Log $ -> use cvs log instead.


30920 04-Nov-1997 steve

/etc/magic -> /usr/share/misc/magic

PR: docs/4872


30094 04-Oct-1997 ache

Check for invalid lower controls to not claim binary data with chars < 128 as
ASCII _text_
Cleanup names detection code


27052 29-Jun-1997 obrien

Add magic for FIGlet fonts and controlfiles

Obtained from: Figlet v2.2 release.


24607 04-Apr-1997 mpp

Remove the etc-magic target since we no longer install the
/etc/magic symlink.


24606 04-Apr-1997 mpp

The magic file now lives in /usr/share/misc.
Closes PR# 3187.

Submitted by: Ollivier Robert <roberto@keltia.freenix.fr>


24397 29-Mar-1997 jdp

Fix broken built-in ELF file handling, caused by missing prototypes
and use of off_t. Correct the types of Elf64_Addr and Elf64_Off.


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


24070 20-Mar-1997 mpp

I had to rename one additional file in the last file import, so
update this script to reflect that.


23996 18-Mar-1997 mpp

The author picked up this file from FreeBSD, but gave it a different name
in file v3.22, so this one is going away.


23995 18-Mar-1997 mpp

Merge to resolve conflicts with file 3.22 merge.


23989 18-Mar-1997 mpp

This commit was generated by cvs2svn to compensate for changes in r23988,
which included commits to RCS files with non-trunk default branches.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


23006 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22259 04-Feb-1997 phk

Add framemaker 5.0.
This file could be rationalized I belive.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20721 20-Dec-1996 joerg

Move the check for ASCIIness earlier. This avoids the following
misdetection:

j@uriah 307% file X.hga
X.hga: 80386 COFF executable not stripped
j@uriah 308% strings X.hga | head -3
~f&`i
.text
.data
j@uriah 309% strings X.hga | file -
standard input: assembler program text

New version:

j@uriah 310% strings X.hga | ./file -
standard input: International language text

Reviewed by: christos@deshaw.com (Christos Zoulas)


20394 13-Dec-1996 bde

Restored installation of /etc/magic. It's now a symlink instead of a
file (like /etc/termcap). /usr/src/etc/Makefile depends on there
being an etc-magic install rule here, and who-knows-what depends on
`magic' being in /etc.

Fixed some style bugs - don't use -c for installing files in the obj
directory...


20323 11-Dec-1996 joerg

Add another matching algorithhm to do heuristics for international
language text files.

Should finally close PR # bin/1925: file does not consider cyrillic
text..., though i've never got any response from the originator about
my suggestion.

While i was at it, also move out the `magic' file to /usr/share/misc,
there's nothing that magic with this file to justify its life under
/etc.


19836 17-Nov-1996 ache

Detect GUS patches now


19156 24-Oct-1996 erich

Teach file about:
1) our branded elf's
2) mpeg audio/video/system streams
3) compiled java classes


18524 27-Sep-1996 andreas

Added magic file for bzip in ./Magdir
Obtained from: bzip sources ;)


18048 05-Sep-1996 jdp

Make "file foo.core" print the program name properly again.


17639 17-Aug-1996 wosch

make install should not install any file in /etc.


16982 05-Jul-1996 jkh

New magic file with more politically correct identification of objects
and execs.
Submitted-By: Brent Nordquist <nordquis@winternet.com>


15297 18-Apr-1996 jdp

Update an offset field for i386 a.out core files, so that the program
name comes out right again.

Note: Don't bring this change directly into the -stable branch. The
appropriate offset for -stable is different.


15296 18-Apr-1996 jdp

Fix a typo in the syntax for indirect offsets.


14042 12-Feb-1996 mpp

Fixed some minor formatting problems to silence manck some more.
Corrected some bogus cross references to man pages that we don't/won't
have and either deleted them, or found a more appropriate man page
that we do have. Various other minor changes to silence manck.

Manck is currently down to about 200 lines of errors, down from
the 500 - 600+ when I started all this.


13958 07-Feb-1996 wollman

Recognize ld.so.hints file. Don't ask.


13835 02-Feb-1996 mpp

Correct some manual page cross reference errors. E.g. su is a section
one man page, not section eight. This is the first round of such changes
and only fixes man pages in manual section one.


13744 30-Jan-1996 mpp

Fix a bunch of spelling errors in a bunch of man pages.


13587 23-Jan-1996 mpp

Merged changes to resolve conflicts with file 3.19 import.


13585 23-Jan-1996 mpp

This commit was generated by cvs2svn to compensate for changes in r13584,
which included commits to RCS files with non-trunk default branches.


11566 19-Oct-1995 phk

Recognize Acrobat files too.


10945 21-Sep-1995 joerg

Implement a rather gross hack to identify i386 a.out core files.
Takes advantage of some bytes in our current tss structure that
reliably have particular values (due to our current architecture or
CPU requirements).


10859 17-Sep-1995 joerg

Add X11 XPM and BDF description strings. Alas, bitmaps do not have
anything usable as "magic string".


9876 03-Aug-1995 phk

Sanitize the PGP strings a bit.


9701 25-Jul-1995 bde

Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.


9677 24-Jul-1995 mpp

Add magic cookie for Zyxel modems ADPCM4 encoding.
Submitted by: Henrik Vestergaard Draboel <hvd@terry.ping.dk>


8874 30-May-1995 rgrimes

Remove trailing whitespace.


8717 24-May-1995 ache

Fix %d and others printing
Reviewed by: davidg
Submitted by: Bill Fenner <fenner@parc.xerox.com>


7307 24-Mar-1995 gibbs

Add recognition of HP Printer Job Language (PJL) commands.


2485 03-Sep-1994 csgr

Shell script containing the steps followed in importing file(1).
Reviewed by: Geoff.
Submitted by: Rod Grimes.


2482 03-Sep-1994 csgr

Changes to file(1) for FreeBSD:
- Makefile: bmake the sucker
- file.1, magic.5: replace __MAGIC__ and __SECTION__
- add Magdir/freebsd
- add file to usr.bin/Makefile

A note on the FreeBSD magic entry:
The magic number "000000407" is reported as "impure format". This
stops file(1) telling us that our object files are "PDP-11 executables".
(Saying anything more than "impure format" would probably be bogus.
Submitted by: Geoff.


2480 03-Sep-1994 csgr

This commit was generated by cvs2svn to compensate for changes in r2479,
which included commits to RCS files with non-trunk default branches.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.