summaryrefslogtreecommitdiff
path: root/usr.bin/file/magic-test.c
AgeCommit message (Expand)Author
2019-01-15Regex flags should include REG_NEWLINE and REG_ICASE should actually beNicholas Marriott
2018-06-14Return from magic_test does not need to be copied because the callerNicholas Marriott
2017-04-18Style nits; no binary change.Nicholas Marriott
2016-08-26Pull in <time.h> for ctime_r, gmtime, etcPhilip Guenther
2016-05-01Use the right size (include the length byte) when working out if aNicholas Marriott
2016-05-01Add support for 'name' and 'use' which allows more of the latest magicNicholas Marriott
2016-05-01Remove __unused that are now lies.Nicholas Marriott
2016-05-01Add support for 'clear' test, and fix 'default' to expand the resultNicholas Marriott
2016-04-30magic_test_type_default parameter is no longer __unused.Nicholas Marriott
2016-04-30Fix the default type to work properly, that is to only match if noNicholas Marriott
2016-04-30Replace regex match string in results (some new magic entries use this).Nicholas Marriott
2016-02-20Fix the C type used for 32-bit float/lefloat/befloat, it should be floatNicholas Marriott
2015-10-06Log the matched offset (and the new offset) instead of just of the newNicholas Marriott
2015-10-05Offset into the file can be size_t and add some casts to remove warnings.Nicholas Marriott
2015-08-12Support + and - for dates.Nicholas Marriott
2015-08-12Fix adjustment of the offset when string, pstring or search match.Nicholas Marriott
2015-08-12Add string/Ww as aliases for string/Bb, and ignore t. (The latestNicholas Marriott
2015-08-11When an exact string match is found, only print the test string, not upNicholas Marriott
2015-08-11Any type can be prefixed with "u", even where it makes no sense. AlsoNicholas Marriott
2015-08-11Extend accepted operators to +-&/%* for integer tests.Nicholas Marriott
2015-08-11Support = test for floats and doubles.Nicholas Marriott
2015-05-29Use gmtime not localtime when we want UTC, I got it right in one placeNicholas Marriott
2015-05-29Don't stop at the first successful test unless it has generated someNicholas Marriott
2015-05-29The case-insensitive flag (c) for string and search tests doesn't makeNicholas Marriott
2015-04-25Switch to using the POSIX endian macros, i.e: be64toh vs. betoh64.Bryan Steele
2015-04-24move an ugly spaceTheo de Raadt
2015-04-24New implementation of the file(1) utility. This is a simplified,Nicholas Marriott