Decode mtd ioctls

I got tired of figuring out mtd structures (which show up a lot
in the embedded space), so add decoders for those ioctls.

* defs.h (mtd_ioctl): New prototype.
(print_loff_t): Likewise.
* io.c (print_loff_t): Delete static keyword
* ioctl.c (ioctl_decode): Call mtd_ioctl when code is 'M'.
* Makefile.am (strace_SOURCES): Add mtd.c.
(EXTRA_DIST): Add linux/mtd-abi.h.
* mtd.c: New file.
* linux/mtd-abi.h: New file.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
diff --git a/Makefile.am b/Makefile.am
index c775801..8edcf89 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,7 +17,7 @@
 strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
 		 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
 		 resource.c signal.c sock.c system.c term.c time.c \
-		 scsi.c stream.c block.c pathtrace.c
+		 scsi.c stream.c block.c pathtrace.c mtd.c
 noinst_HEADERS = defs.h
 
 EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
@@ -32,7 +32,7 @@
 	     README-linux README-linux-ptrace \
 	     linux/ioctlsort.c linux/ioctlent.sh \
 	     linux/ioctlent.h.in linux/errnoent.h linux/signalent.h \
-	     linux/syscall.h linux/dummy.h \
+	     linux/syscall.h linux/dummy.h linux/mtd-abi.h \
 	     linux/i386/ioctlent.h.in linux/i386/syscallent.h \
 	     linux/alpha/errnoent.h linux/alpha/ioctlent.h.in \
 	     linux/alpha/signalent.h linux/alpha/syscallent.h \