]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
linux: support EVIOCGRAB ioctl
authorMark Wielaard <mark@klomp.org>
Wed, 8 Jan 2025 15:52:03 +0000 (16:52 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 8 Jan 2025 15:54:06 +0000 (16:54 +0100)
EVIOCGRAB just takes an int argument.

https://bugs.kde.org/show_bug.cgi?id=498143

NEWS
coregrind/m_syswrap/syswrap-linux.c
include/vki/vki-linux.h

diff --git a/NEWS b/NEWS
index 118961a034c33cb6fe611f1ab81df082899d8dfb..e25d1d8b81cdcafc763479452aa169cef70cf961 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -40,6 +40,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
         overloaded functions and procedures
 498317  FdBadUse is not a valid CoreError type in a suppression
         even though it's generated by --gen-suppressions=yes
+498143  False positive on EVIOCGRAB ioctl
 
 To see details of a given bug, visit
   https://bugs.kde.org/show_bug.cgi?id=XXXXXX
index 60e05a46c42237094409e199fa8b1608e7369413..e8978b5bc1c5c9d84336996da43b3dff93512aaa 100644 (file)
@@ -10397,6 +10397,10 @@ PRE(sys_ioctl)
       break;
    }
 
+   case VKI_EVIOCGRAB:
+       /* This just takes an int argument. */
+       break;
+
    default:
       /* EVIOC* are variable length and return size written on success */
       switch (ARG2 & ~(_VKI_IOC_SIZEMASK << _VKI_IOC_SIZESHIFT)) {
index 006f16d9220196744ca5df959b38f4b656d23d34..d4e1908e1e9c46dfe5aa863b5052f3d0ca9428d3 100644 (file)
@@ -3226,6 +3226,9 @@ struct vki_getcpu_cache {
 
 #define VKI_EVIOCGBIT(ev,len)  _VKI_IOC(_VKI_IOC_READ, 'E', 0x20 + ev, len)    /* get event bits */
 
+#define VKI_EVIOCGRAB          _VKI_IOW('E', 0x90, int)
+/* grab device */
+
 /*
  * Event types
  */