]> granicus.if.org Git - strace/commit
loop: add fallback definitions for LOOP_* ioctl command constants
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 19 Dec 2016 00:11:18 +0000 (03:11 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 29 Dec 2016 00:36:05 +0000 (00:36 +0000)
commita4ef4a796e8c89d6aea8ac3762795d82ba3362b8
treea7028cb390a109943245b84763243ed2d8b81dda
parent6e0b6a6665fa10adcaeeb7ed561e3abd4f9b1628
loop: add fallback definitions for LOOP_* ioctl command constants

Since these are architecture-independent and have been added over the
kernel's lifetime, it makes sense to have these definitions in strace
itself.

* xlat/loop_cmds.in: New file.
* loop.c: Include "xlat/loop_cmds.h".
(loop_ioctl): Eliminate conditional compilation based on availability
of LOOP_* constant definitions.
loop.c
xlat/loop_cmds.in [new file with mode: 0644]