Re: [PATCH v2 2/3] linux-user: Fix accept4(SOCK_NONBLOCK) syscall

2023-07-09 Thread Michael Tokarev
08.07.2023 08:42, Helge Deller wrote: The Linux accept4() syscall allows two flags only: SOCK_NONBLOCK and SOCK_CLOEXEC, and returns -EINVAL if any other bits have been set. Change the qemu implementation accordingly, which means we can not use the fcntl_flags_tbl[] translation table which allow

Re: [PATCH v2 2/3] linux-user: Fix accept4(SOCK_NONBLOCK) syscall

2023-07-07 Thread Richard Henderson
On 7/8/23 06:42, Helge Deller wrote: The Linux accept4() syscall allows two flags only: SOCK_NONBLOCK and SOCK_CLOEXEC, and returns -EINVAL if any other bits have been set. Change the qemu implementation accordingly, which means we can not use the fcntl_flags_tbl[] translation table which allows

[PATCH v2 2/3] linux-user: Fix accept4(SOCK_NONBLOCK) syscall

2023-07-07 Thread Helge Deller
The Linux accept4() syscall allows two flags only: SOCK_NONBLOCK and SOCK_CLOEXEC, and returns -EINVAL if any other bits have been set. Change the qemu implementation accordingly, which means we can not use the fcntl_flags_tbl[] translation table which allows too many other values. Beside the cor