[strace/strace] Add lirc ioctl decoding (PR #208)
    Dmitry V. Levin 
    notifications at github.com
       
    Thu Feb  3 00:33:00 UTC 2022
    
    
  
@ldv-alt commented on this pull request.
> +	value = 8;
+	do_ioctl(LIRC_SET_SEND_MODE, &value);
+	printf("ioctl(-1, %s, [LIRC_MODE_SCANCODE]) = %s\n",
+	       XLAT_STR(LIRC_SET_SEND_MODE), errstr);
+
+	value = 4;
+	do_ioctl(LIRC_SET_REC_MODE, &value);
+	printf("ioctl(-1, %s, [LIRC_MODE_MODE2]) = %s\n",
+	       XLAT_STR(LIRC_SET_REC_MODE), errstr);
+
+	value = 16;
+	do_ioctl(LIRC_SET_REC_MODE, &value);
+	printf("ioctl(-1, %s, [LIRC_MODE_LIRCCODE]) = %s\n",
+	       XLAT_STR(LIRC_SET_REC_MODE), errstr);
+
+	// read ioctl
OK, there is `ioctl(-1, LIRC_GET_FEATURES, 0)` in `INJECT_RETVAL` variant, it's probably enough.
At least the coverage test reports that all lines are covered.
-- 
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/208#discussion_r798125721
You are receiving this because you are subscribed to this thread.
Message ID: <strace/strace/pull/208/review/871256982 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220202/fd7fa20a/attachment.htm>
    
    
More information about the Strace-devel
mailing list