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.
5 files changed
tree: 014551f01e5f5bf8db00fe76208fadc7331da8a2
  1. .gitignore
  2. .mailmap
  3. .travis.yml
  4. AUTHORS
  5. COPYING
  6. CREDITS.in
  7. ChangeLog-CVS
  8. HACKING-scripts
  9. INSTALL
  10. Makefile.am
  11. NEWS
  12. README
  13. README-hacking
  14. README-linux-ptrace
  15. README-mpers
  16. README.md
  17. access.c
  18. affinity.c
  19. aio.c
  20. alpha.c
  21. bjm.c
  22. block.c
  23. bootstrap
  24. bpf.c
  25. btrfs.c
  26. build_static_example.sh
  27. cacheflush.c
  28. capability.c
  29. caps0.h
  30. caps1.h
  31. chdir.c
  32. chmod.c
  33. clone.c
  34. configure.ac
  35. copy_file_range.c
  36. count.c
  37. debian/
  38. defs.h
  39. desc.c
  40. dirent.c
  41. dirent64.c
  42. empty.h
  43. epoll.c
  44. errnoent.sh
  45. evdev.c
  46. eventfd.c
  47. execve.c
  48. exit.c
  49. fadvise.c
  50. fallocate.c
  51. fanotify.c
  52. fchownat.c
  53. fcntl.c
  54. fetch_seccomp_fprog.c
  55. fetch_struct_flock.c
  56. fetch_struct_statfs.c
  57. file.c
  58. file_handle.c
  59. file_ioctl.c
  60. flock.c
  61. flock.h
  62. fstatfs.c
  63. fstatfs64.c
  64. futex.c
  65. gcc_compat.h
  66. generate_mpers_am.sh
  67. generate_sen.sh
  68. generate_xlat_in.sh
  69. get_robust_list.c
  70. getcpu.c
  71. getcwd.c
  72. getrandom.c
  73. git-set-file-times
  74. git-version-gen
  75. gitlog-to-changelog
  76. hdio.c
  77. hostname.c
  78. inotify.c
  79. io.c
  80. ioctl.c
  81. ioctlsort.c
  82. ioperm.c
  83. iopl.c
  84. ioprio.c
  85. ipc_defs.h
  86. ipc_msg.c
  87. ipc_msgctl.c
  88. ipc_sem.c
  89. ipc_shm.c
  90. ipc_shmctl.c
  91. kcmp.c
  92. kernel_types.h
  93. kexec.c
  94. keyctl.c
  95. ldt.c
  96. link.c
  97. linux/
  98. lookup_dcookie.c
  99. loop.c
  100. lseek.c
  101. m4/
  102. maint/
  103. make-dist
  104. mem.c
  105. membarrier.c
  106. memfd_create.c
  107. mknod.c
  108. mount.c
  109. mpers.awk
  110. mpers.sh
  111. mpers_test.sh
  112. mpers_type.h
  113. mq.c
  114. mtd.c
  115. native_defs.h
  116. net.c
  117. numa.c
  118. open.c
  119. or1k_atomic.c
  120. pathtrace.c
  121. perf.c
  122. personality.c
  123. poll.c
  124. prctl.c
  125. print_mq_attr.c
  126. print_msgbuf.c
  127. print_sigevent.c
  128. print_statfs.c
  129. print_time.c
  130. print_timex.c
  131. printmode.c
  132. printrusage.c
  133. printsiginfo.c
  134. printsiginfo.h
  135. printstat.h
  136. process.c
  137. process_vm.c
  138. ptp.c
  139. ptrace.h
  140. qemu_multiarch_testing/
  141. quota.c
  142. readahead.c
  143. readlink.c
  144. reboot.c
  145. regs.h
  146. renameat.c
  147. resource.c
  148. rtc.c
  149. sched.c
  150. scsi.c
  151. seccomp.c
  152. seccomp_fprog.h
  153. sendfile.c
  154. sigaltstack.c
  155. sigevent.h
  156. signal.c
  157. signalent.sh
  158. signalfd.c
  159. sigreturn.c
  160. sock.c
  161. socketutils.c
  162. sram_alloc.c
  163. statfs.c
  164. statfs.h
  165. statfs64.c
  166. strace-graph
  167. strace-log-merge
  168. strace.1
  169. strace.c
  170. strace.spec
  171. swapon.c
  172. sync_file_range.c
  173. sync_file_range2.c
  174. syscall.c
  175. syscallent.sh
  176. sysctl.c
  177. sysinfo.c
  178. syslog.c
  179. sysmips.c
  180. term.c
  181. test/
  182. tests/
  183. time.c
  184. times.c
  185. travis-ci.sh
  186. truncate.c
  187. uid.c
  188. uid16.c
  189. umask.c
  190. umount.c
  191. uname.c
  192. unwind.c
  193. upeek.c
  194. userfaultfd.c
  195. util.c
  196. utime.c
  197. utimes.c
  198. v4l2.c
  199. vsprintf.c
  200. wait.c
  201. xattr.c
  202. xlat.h
  203. xlat/
  204. xlate.el
  205. xmalloc.c
README.md

This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.

strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.

See the file NEWS for information on what has changed in recent versions.

Please send bug reports and enhancements to the strace mailing list.

Build Status Code Coverage