OpenBSD CVS

CVS log for src/usr.bin/file/magic.h


[BACK] Up to [local] / src / usr.bin / file

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Sun May 1 20:34:26 2016 UTC (8 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, HEAD
Changes since 1.14: +2 -5 lines
Diff to previous 1.14 (colored)

Tidy up some #include lines.

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 1 10:56:03 2016 UTC (8 years ago) by nicm
Branch: MAIN
Changes since 1.13: +13 -1 lines
Diff to previous 1.13 (colored)

Add support for 'name' and 'use' which allows more of the latest magic
files to work unchanged. (We are still missing 'indirect' and a few
other bits.)

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 1 08:48:39 2016 UTC (8 years ago) by nicm
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add support for 'clear' test, and fix 'default' to expand the result
string if any (used by, for example, rtf).

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 30 21:42:11 2016 UTC (8 years ago) by nicm
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Fix the default type to work properly, that is to only match if no
previous test at the same level has matched.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 5 20:05:52 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

Add support for !:strength modifier to adjust strength of a test.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 5 19:50:38 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Offset into the file can be size_t and add some casts to remove warnings.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 2 18:06:27 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

use limits.h instead of sys/param.h to get PATH_MAX

Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 11 22:12:48 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Support = test for floats and doubles.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Aug 11 21:42:16 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

Add another function for printing warnings before the magic_line is
created so all warnings go through the same fprintf.

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 29 14:15:41 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

I got confused and made the strength multiplier 20, it should be 10.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 24 16:24:11 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.4: +173 -76 lines
Diff to previous 1.4 (colored)

New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced set of
options.

ok deraadt

Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 24 18:54:34 2009 UTC (15 years ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.3: +18 -12 lines
Diff to previous 1.3 (colored)

file update to 4.24

The '-i' switch is now enabled so file(1) can output mime type strings.

ok ian@
builk ports build test on amd64 by jasper@

ok ray@ gilles@ on a almost identical diff
builk ports build test on sparc64 on this almost identical diff by ajacoutot@
also tested by landry@

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 8 01:40:56 2008 UTC (16 years ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.2: +21 -14 lines
Diff to previous 1.2 (colored)

Update file to 4.21.

tested by ian@ sthen@

OK ian@, "move ahead with it" deraadt@

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 19 02:36:26 2004 UTC (20 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

remove old file, rcsids

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 19 02:34:27 2004 UTC (20 years ago) by tedu
Branch: MAIN

file 4.09

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.