diff options
author | Martin Kühl <martin.kuehl@gmail.com> | 2018-02-08 14:00:46 +0100 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2018-11-15 22:12:48 -0500 |
commit | 3ebbb99ce3b13357f4dfb0156877c6e5892de5aa (patch) | |
tree | 669a6afb76091db65b9e0cc9e90138d9f13eb4b4 | |
parent | 3ae09bee86485f1aaa517f68ed2823ae9b960524 (diff) | |
download | plan9port-3ebbb99ce3b13357f4dfb0156877c6e5892de5aa.tar.gz plan9port-3ebbb99ce3b13357f4dfb0156877c6e5892de5aa.tar.bz2 plan9port-3ebbb99ce3b13357f4dfb0156877c6e5892de5aa.zip |
file: recognize Mach-O binaries and Java class files
-rw-r--r-- | src/cmd/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/file.c b/src/cmd/file.c index 232c1b30..32d580cd 100644 --- a/src/cmd/file.c +++ b/src/cmd/file.c @@ -523,6 +523,9 @@ Filemagic long0tab[] = { 070707, 0xFFFF, "cpio archive\n", OCTET, 0x2F7, 0xFFFF, "tex dvi\n", "application/dvi\n", 0xfffa0000, 0xfffe0000, "mp3 audio\n", "audio/mpeg\n", + 0xcafebabe, 0xFFFFFFFF, "Mach-O fat executable\n", "application/x-mach-binary\n", + 0xfeedface, 0xFFFFFFFE, "Mach-O executable\n", "application/x-mach-binary\n", + 0xbebafeca, 0xFFFFFFFF, "Java class\n", "application/x-java-applet\n", }; int |