Skip to content
Snippets Groups Projects
Commit 59d11727 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Laurent Vivier
Browse files

linux-user: report ENOTTY for unknown ioctls


The correct error number for unknown ioctls is ENOTTY.

ENOSYS would mean that the ioctl() syscall itself is not implemented,
which is very improbable and unexpected for userspace.

ENOTTY means "Inappropriate ioctl for device". This is what the kernel
returns on unknown ioctls, what qemu is trying to express and what
userspace is prepared to handle.

Signed-off-by: default avatarThomas Weißschuh <thomas@t-8ch.de>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230426070659.80649-1-thomas@t-8ch.de>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 8ddc171b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment