radare2/libr/magic
2013-06-15 02:56:25 +02:00
..
d * Distribute magic files with w32dist 2011-11-29 18:31:26 +01:00
apprentice.c Add initial Haiku support 2013-06-06 00:21:52 +02:00
ascmagic.c * Bump 0.8.8, but still not release 2011-10-18 09:38:20 +02:00
config.h * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +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 * Implement raw get_main analysis for MACH0 binaries (x86-32/64) 2011-10-10 16:55:39 +02:00
fsmagic.c * Distribute magic files with w32dist 2011-11-29 18:31:26 +01:00
funcs.c * Distribute magic files with w32dist 2011-11-29 18:31:26 +01:00
is_tar.c * Bump 0.8.8, but still not release 2011-10-18 09:38:20 +02:00
magic.c More R_LIB_VERSION and initial r_asm_set_cpu() dummy api 2013-06-15 02:56:25 +02:00
Makefile Add cfg.sandbox functionality 2012-10-20 00:31:18 +02: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 * Fix some warnings related to alloca(), %llx and O_BINARY for w32 2011-11-29 12:28:02 +01:00
README * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
softmagic.c * Fix some warnings related to alloca(), %llx and O_BINARY for w32 2011-11-29 12:28:02 +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