]> granicus.if.org Git - strace/commit
Move parser of HDIO_* ioctls to a separate file
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 26 May 2016 00:07:17 +0000 (00:07 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 26 May 2016 14:44:13 +0000 (14:44 +0000)
commitb3f00403c30e2c268d4a7b8d8b37e26f32f41d78
tree014551f01e5f5bf8db00fe76208fadc7331da8a2
parent84a979c9eea59658aabc9b7d547e642b090922be
Move parser of HDIO_* ioctls to a separate file

* hdio.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* block.c: Do not include <linux/hdreg.h>.
(block_ioctl): Move parser of HDIO_GETGEO to hdio.c.
* defs.h (hdio_ioctl): New prototype.
* ioctl.c (ioctl_decode): Call hdio_ioctl for ioctl type 0x03.
Makefile.am
block.c
defs.h
hdio.c [new file with mode: 0644]
ioctl.c