summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-05-21 16:19:40 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-05-21 22:53:42 +0000
commit8c20d8926c0ec14d2b08acdf775050d4d99210d3 (patch)
tree4d1407419a25812a9ee9e619711d06802c397af4 /util.c
parentf95cf995567f419663ec052d39aef268e078b97d (diff)
downloadstrace-8c20d8926c0ec14d2b08acdf775050d4d99210d3.tar.gz
Fix ioctl entries on 32-bit architectures with 64-bit aligned structures
Some ioctl constants are defined to different values on those 32-bit architectures where structures containing a 64-bit field are aligned on a 8-byte boundary and have a size multiple of 8 bytes, and on other 32-bit architectures. * configure.ac: Check the size of a structure containing a 64-bit field. * linux/32/ioctls_inc.h: Rename to ... * linux/32/ioctls_inc_align32.h: ... this. * linux/32/ioctls_inc_align64.h: New file. * linux/32/ioctls_inc.h: Include either 32/ioctls_inc_align32.h or ioctls_inc_align64.h depending on SIZEOF_STRUCT_I64_I32. * Makefile.am (EXTRA_DIST): Add linux/32/ioctls_inc_align32.h and * linux/32/ioctls_inc_align64.h. * tests/ioctl.c (main): Test for VIDIOC_ENUMINPUT. * tests/ioctl.expected: Check VIDIOC_ENUMINPUT decoding. Reported-by: Philippe De Muyter <phdm@macqel.be>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions