summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2017-03-12 22:57:44 +0000
committerChristos Zoulas <christos@zoulas.com>2017-03-12 22:57:44 +0000
commitda7bb64e7f81ee33b33a84fc0dfd21b153f6b227 (patch)
treef945a4bc2a8c7be35a19f5fd364a6e4668995378
parent616b6a7a503de36d379c152b308cfd5bf558320a (diff)
downloadfile-git-da7bb64e7f81ee33b33a84fc0dfd21b153f6b227.tar.gz
Add webassembly
-rw-r--r--magic/Magdir/webassembly14
-rw-r--r--magic/Makefile.am3
2 files changed, 16 insertions, 1 deletions
diff --git a/magic/Magdir/webassembly b/magic/Magdir/webassembly
new file mode 100644
index 00000000..4284efb1
--- /dev/null
+++ b/magic/Magdir/webassembly
@@ -0,0 +1,14 @@
+#------------------------------------------------------------------------------
+# $File: webassembly,v 1.1 2017/03/12 22:57:44 christos Exp $
+# webassembly: file(1) magic for WebAssembly modules
+#
+# WebAssembly is a virtual architecture developed by a W3C Community
+# Group at http://webassembly.org/. The file extension is .wasm, and
+# the MIME type is application/wasm.
+#
+# http://webassembly.org/docs/binary-encoding/ is the main
+# document describing the binary format.
+# From: Pip Cet <pipcet@gmail.com>
+
+0 lelong 0x6d736100 WebAssembly module
+>4 lelong x \b, version %d
diff --git a/magic/Makefile.am b/magic/Makefile.am
index 92584f32..e39ebeaa 100644
--- a/magic/Makefile.am
+++ b/magic/Makefile.am
@@ -1,5 +1,5 @@
#
-# $File: Makefile.am,v 1.122 2016/11/09 18:20:53 christos Exp $
+# $File: Makefile.am,v 1.123 2017/03/12 22:57:44 christos Exp $
#
MAGIC_FRAGMENT_BASE = Magdir
MAGIC_DIR = $(top_srcdir)/magic
@@ -276,6 +276,7 @@ $(MAGIC_FRAGMENT_DIR)/vorbis \
$(MAGIC_FRAGMENT_DIR)/vxl \
$(MAGIC_FRAGMENT_DIR)/warc \
$(MAGIC_FRAGMENT_DIR)/weak \
+$(MAGIC_FRAGMENT_DIR)/webassembly \
$(MAGIC_FRAGMENT_DIR)/windows \
$(MAGIC_FRAGMENT_DIR)/wireless \
$(MAGIC_FRAGMENT_DIR)/wordprocessors \