radare2/libr/magic
2022-03-16 00:48:50 +01:00
..
d Add 'pFB' command to use the new BPLIST parser ##print 2022-01-30 22:30:10 +01:00
apprentice.c Dont use != NULL as its implicit in C, even for bool casts ##refactor 2022-03-15 19:54:04 +01:00
ascmagic.c Remove trailing spaces (#19460) 2021-12-02 17:39:59 +01:00
deps.mk Improve output for make -s and fix magic install with symlinks issue (#18781) 2021-05-30 23:46:58 +02:00
file_opts.h
file.h Remove trailing spaces (#19460) 2021-12-02 17:39:59 +01:00
fsmagic.c Dont use != NULL as its implicit in C, even for bool casts ##refactor 2022-03-15 19:54:04 +01:00
funcs.c Remove all the uses of %z as its not supported on Windows 2022-02-01 11:07:46 +01:00
is_tar.c Remove trailing spaces (#19460) 2021-12-02 17:39:59 +01:00
magic.c Dont use != NULL as its implicit in C, even for bool casts ##refactor 2022-03-15 19:54:04 +01:00
Makefile Improve output for make -s and fix magic install with symlinks issue (#18781) 2021-05-30 23:46:58 +02:00
mconfig.h
mdump.c Address latest covs and remove some %zu format warnings (#19647) 2022-02-01 08:19:38 +01:00
meson.build Fix meson -Dblob=true builds for static ##windows 2022-03-16 00:48:50 +01:00
names.h Remove trailing spaces (#19460) 2021-12-02 17:39:59 +01:00
patchlevel.h Introduce the r_magic_load_buffer() api and boolify a bit ##search (#15617) 2019-12-12 17:12:33 +01:00
README
softmagic.c Massage RRegex to fix codingstyle and a null deref. ##regexp 2021-01-08 04:42:07 +01:00
tar.h Remove trailing spaces (#19460) 2021-12-02 17:39:59 +01: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