radare2/libr/magic
Riccardo Schirone afae8b6e34
Prerelease travis release (#13189)
* Add additional tests for release/prereleases
* Test different plugins configurations
* Add some libraries to docker image
* Disable SYS_CAPSTONE for now because there is only 3.0.5
* Fix html magic file to respect libmagic's format too

< can be used with string so it should be escaped if we want to match
the exact string "<html>"

* Use plugin License when printing rasm2 plugins in JSON format
* Build with system capstone, but do not run tests because they would fail
* Fix tiny plugins file to use xtr_fatmach0 instead of just fatmach0
* Use clang to compile with ASAN
* Use b_lundef=false
* Just test if different plugins configuration build, no r2r
* Use sys openssl as well
2019-02-28 16:58:09 +01:00
..
d Prerelease travis release (#13189) 2019-02-28 16:58:09 +01:00
apprentice.c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
ascmagic.c Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
deps.mk Fix #10300 - Link issues --with-sysmagic 2018-06-11 03:36:45 +02:00
file_opts.h * Initial import of r_magic 2011-09-10 01:30:03 +02:00
file.1 * Initial import of r_magic 2011-09-10 01:30:03 +02:00
file.h Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
fsmagic.c Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
funcs.c Fix more clangs (#12399) 2018-12-04 16:09:18 +01:00
is_tar.c Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
magic.c remove random warnings when compiling (#11767) 2018-10-08 13:21:50 +02:00
Makefile Fix #10300 - Link issues --with-sysmagic 2018-06-11 03:36:45 +02:00
mconfig.h Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
meson.build Do not use reversed keyword of meson ##build 2019-01-10 14:15:50 +01:00
names.h * Initial import of r_magic 2011-09-10 01:30:03 +02:00
patchlevel.h * Initial import of r_magic 2011-09-10 01:30:03 +02:00
print.c Call to gmtime is potentially dangerous, replace with gmtime_r 2018-11-11 15:53:08 -08:00
README * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
softmagic.c Fix undefined behaviour in signed int with 24 bit shift in softmagic.c 2019-01-13 22:39:09 +01:00
tar.h * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00

This implementation of file(1) has been taken from OpenBSD,
I have removed the elf part which reduces more than 1KLOC.
I have also cleaned up the code in order to fix some warnings
and integrate with r2 syntax. magic_ api is now r_magic_

   --pancake

$ cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs get src/usr.bin/file

* understand and document how conditional works