]> granicus.if.org Git - strace/commit
Mpersify ioctl macros
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 2 May 2016 22:06:56 +0000 (22:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 5 May 2016 21:20:47 +0000 (21:20 +0000)
commit1822546133f017c0379d3fffa0797a26ae00387d
tree486d2c1841d1f966bdaef472335e318c78dd4c60
parent0a47ff79cae7476ed47bd74ec62eeee7224fa382
Mpersify ioctl macros

As values of some ioctl macros differ between personalities, these
personality specific ioctl macros should be properly defined for
mpersified code.  Implement this by redefining personality specific
ioctl macros from ioctlent*.h for each file that includes MPERS_DEFS.

* Makefile.am (ioctl_macros_h): New variable.
(ioctl_macros%.h): New rule.
(BUILT_SOURCES, CLEANFILES): Add $(ioctl_macros_h).
(m%_type_defs.h): #include MPERS_$(mpers_PREFIX)IOCTL_MACROS.
* defs.h [HAVE_M32_MPERS] (MPERS_m32_IOCTL_MACROS): New macro.
[HAVE_MX32_MPERS] (MPERS_mx32_IOCTL_MACROS): Likewise.

Acked-by: Elvira Khabirova <lineprinter0@gmail.com>
Makefile.am
defs.h