Re: [PATCH v2 1/2] linux-user: fix the errno value in print_syscall_err()

2020-07-13 Thread Laurent Vivier
Le 08/07/2020 à 17:24, Laurent Vivier a écrit : > errno of the target is returned as a negative value by the syscall, > not in the host errno variable. > > The emulation of the target syscall can return an error while the > host doesn't set an errno value. Target errnos and host errnos can > also

Re: [PATCH v2 1/2] linux-user: fix the errno value in print_syscall_err()

2020-07-10 Thread Filip Bozuta
On 8.7.20. 17:24, Laurent Vivier wrote: errno of the target is returned as a negative value by the syscall, not in the host errno variable. The emulation of the target syscall can return an error while the host doesn't set an errno value. Target errnos and host errnos can also differ in some c

Re: [PATCH v2 1/2] linux-user: fix the errno value in print_syscall_err()

2020-07-08 Thread Philippe Mathieu-Daudé
On 7/8/20 5:24 PM, Laurent Vivier wrote: > errno of the target is returned as a negative value by the syscall, > not in the host errno variable. > > The emulation of the target syscall can return an error while the > host doesn't set an errno value. Target errnos and host errnos can > also differ

Re: [PATCH v2 1/2] linux-user: fix the errno value in print_syscall_err()

2020-07-08 Thread Richard Henderson
On 7/8/20 8:24 AM, Laurent Vivier wrote: > errno of the target is returned as a negative value by the syscall, > not in the host errno variable. > > The emulation of the target syscall can return an error while the > host doesn't set an errno value. Target errnos and host errnos can > also differ

[PATCH v2 1/2] linux-user: fix the errno value in print_syscall_err()

2020-07-08 Thread Laurent Vivier
errno of the target is returned as a negative value by the syscall, not in the host errno variable. The emulation of the target syscall can return an error while the host doesn't set an errno value. Target errnos and host errnos can also differ in some cases. Fixes: c84be71f6854 ("linux-user: Ext