diff options
Diffstat (limited to 'usr.bin/file/Magdir')
-rw-r--r-- | usr.bin/file/Magdir/freebsd | 16 | ||||
-rw-r--r-- | usr.bin/file/Magdir/java | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/usr.bin/file/Magdir/freebsd b/usr.bin/file/Magdir/freebsd new file mode 100644 index 0000000..28ad615 --- /dev/null +++ b/usr.bin/file/Magdir/freebsd @@ -0,0 +1,16 @@ +# the following are for 386BSD/FreeBSD + +0 lelong 0410 pure executable +0 lelong 0413 demand paged executable +0 lelong&077777777 041400314 FreeBSD/i386 demand paged +>3 byte &0x80 +>>20 lelong <4096 shared library +>>20 lelong =4096 dynamically linked executable +>>20 lelong >4096 dynamically linked executable +>3 byte ^0x80 executable +>16 lelong >0 not stripped + +# This covers object files, and is better than "PDP-11 executable" +0 lelong 000000407 impure format +>16 lelong >0 not stripped + diff --git a/usr.bin/file/Magdir/java b/usr.bin/file/Magdir/java new file mode 100644 index 0000000..c717f88 --- /dev/null +++ b/usr.bin/file/Magdir/java @@ -0,0 +1,8 @@ +#------------------------------------------------------------------------------ +# java: file(1) magic for java compiled classes +# + +0 belong 0xCafeBabe compiled java class data, +>4 beshort x version %d. +>6 beshort x \b%d + |