Add (bogus) support for ioctls CDROM_DRIVE_STATUS and CDROM_CLEAR_OPTIONS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1323 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c
index 6845709..4d3ea43 100644
--- a/coregrind/vg_syscalls.c
+++ b/coregrind/vg_syscalls.c
@@ -2334,6 +2334,13 @@
sizeof(struct cdrom_msf));
KERNEL_DO_SYSCALL(tid,res);
break;
+ /* The following two are probably bogus (should check args
+ for readability). JRS 20021117 */
+ case CDROM_DRIVE_STATUS: /* 0x5326 */
+ case CDROM_CLEAR_OPTIONS: /* 0x5321 */
+ KERNEL_DO_SYSCALL(tid,res);
+ break;
+
/* We don't have any specific information on it, so
try to do something reasonable based on direction and
size bits. The encoding scheme is described in