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>
This commit is contained in:
Stacey Son
2026-03-14 11:30:33 -06:00
committed by Warner Losh
parent ba4b26e626
commit 0dd51f251b

View File

@@ -241,3 +241,11 @@ static void log_unsupported_ioctl(unsigned long cmd)
gemu_log(" '%c' %3d %lu\n", (char)IOCGROUP(cmd), (int)(cmd & 0xff),
IOCPARM_LEN(cmd));
}
static abi_long do_ioctl_unsupported(__unused const IOCTLEntry *ie,
__unused uint8_t *buf_temp,
__unused int fd, __unused abi_long cmd,
__unused abi_long arg)
{
return -TARGET_ENXIO;
}