radare2/libr/magic
pancake 989fdb3dc8 * Implement raw get_main analysis for MACH0 binaries (x86-32/64)
* Remove main() from libr/magic .. was using non-portable strlcpy/strlcat
2011-10-10 16:55:39 +02:00
..
d * More work on the OpenBSD file(1) 2011-09-11 03:59:24 +02:00
apprentice.c * Implement raw get_main analysis for MACH0 binaries (x86-32/64) 2011-10-10 16:55:39 +02:00
ascmagic.c * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
compress.c * Fix ~40 off-by-one strncpy's 2011-09-18 20:41:36 +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.c * Implement raw get_main analysis for MACH0 binaries (x86-32/64) 2011-10-10 16:55:39 +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 * Implement raw get_main analysis for MACH0 binaries (x86-32/64) 2011-10-10 16:55:39 +02:00
funcs.c * Fix offbyone in asm.brainbuck bug 2011-10-07 01:16:45 +02:00
is_tar.c * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
magic.c * Fix offbyone in asm.brainbuck bug 2011-10-07 01:16:45 +02:00
Makefile * Import the r_regex api in libr/util/regex from OpenBSD source 2011-09-14 02:07:06 +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 * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
README * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
softmagic.c * Fix offbyone in asm.brainbuck bug 2011-10-07 01:16:45 +02: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