]> granicus.if.org Git - strace/commit
ioctl: add decoding for parametrized command names
authorGabriel Laskar <gabriel@lse.epita.fr>
Wed, 21 Jan 2015 22:35:27 +0000 (23:35 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Jan 2015 23:10:38 +0000 (23:10 +0000)
commit6f9a01c72121bc0b0fc760d9fea6879fb85f6f02
tree0ad16a0340e8a9f7f53aa02b469be2d9f7a39c41
parent63630746ef2d9e1949e3c03b6bc8e72ea10f8fe1
ioctl: add decoding for parametrized command names

Some ioctl commands from evdev, hiddev, mixer, uinput, spi, and joystick
are parametrized by a size or a number that are variable.  This change
implements printing of these parametrized ioctl command names.

* configure.ac (AC_CHECK_HEADERS): Add linux/input.h.
* defs.h (ioctl_decode_number): New prototype.
* io.c (sys_ioctl): Use ioctl_decode_number.
* ioctl.c (ioctl_decode_number): New function.
* xlat/evdev_abs.in: New file.
* xlat/evdev_ev.in: New file.

Signed-off-by: Gabriel Laskar <gabriel@lse.epita.fr>
configure.ac
defs.h
io.c
ioctl.c
xlat/evdev_abs.in [new file with mode: 0644]
xlat/evdev_ev.in [new file with mode: 0644]