bsd-user: Add do_ioctl_unsupported function
Add handler function for unsupported ioctl commands that returns TARGET_ENXIO. Signed-off-by: Stacey Son <sson@FreeBSD.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Signed-off-by: Warner Losh <imp@bsdimp.com>
Stacey Son committed
Mar 14, 2026 at 11:30 UTC
0dd51f251bae28b6a6f9dd37025c4564e31b7c81
1 file changed
+8
bsd-user/bsd-ioctl.c
+8
@@ -241,3 +241,11 @@ static void log_unsupported_ioctl(unsigned long cmd)
241
gemu_log(" '%c' %3d %lu\n", (char)IOCGROUP(cmd), (int)(cmd & 0xff),
242
IOCPARM_LEN(cmd));
243
}
244
+
245
+static abi_long do_ioctl_unsupported(__unused const IOCTLEntry *ie,
246
+ __unused uint8_t *buf_temp,
247
+ __unused int fd, __unused abi_long cmd,
248
+ __unused abi_long arg)
249
+{
250
+ return -TARGET_ENXIO;
251
+}