Re: [PATCH] linux-user: report ENOTTY for unknown ioctls

2023-05-01 Thread Laurent Vivier
Le 26/04/2023 à 09:06, Thomas Weißschuh a écrit : 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 k

Re: [PATCH] linux-user: report ENOTTY for unknown ioctls

2023-04-26 Thread Philippe Mathieu-Daudé
On 26/4/23 09:06, Thomas Weißschuh wrote: 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 re