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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user