[PATCH v2] decode mtd ioctls

Dmitry V. Levin ldv at altlinux.org
Tue Apr 3 23:11:32 UTC 2012


On Tue, Apr 03, 2012 at 02:24:33AM -0400, Mike Frysinger wrote:
> 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.
> * mtd.c: New file.

I've got a system where it doesn't compile because mtd/mtd-user.h
is not installed there:

mtd.c:30:26: fatal error: mtd/mtd-user.h: No such file or directory

One may argue that the system must provide this file, but I'd rather
like to have a traditional workaround for such cases. ;)


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120404/941cccc4/attachment.bin>


More information about the Strace-devel mailing list