[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 4/6] linux-user: fix conversion of flock/floc
From: |
Max Filippov |
Subject: |
Re: [Qemu-devel] [PATCH v2 4/6] linux-user: fix conversion of flock/flock64 l_type field |
Date: |
Wed, 9 May 2018 20:28:19 -0700 |
On Wed, May 9, 2018 at 4:11 PM, Laurent Vivier <address@hidden> wrote:
> As l_type values (F_RDLCK, F_WRLCK, F_UNLCK, F_EXLCK, F_SHLCK)
> are not bitmasks, we can't use target_to_host_bitmask() and
> host_to_target_bitmask() to convert them.
>
> Introduce target_to_host_flock() and host_to_target_flock()
> to convert values between host and target.
>
> Signed-off-by: Laurent Vivier <address@hidden>
> ---
>
> Notes:
> v2:
> - add common switch macro to convert to/from target to/from host
> - return -TARGET_EINVAL is l_type cannot be converted
>
> linux-user/syscall.c | 66
> ++++++++++++++++++++++++++++++++++++++--------------
> 1 file changed, 48 insertions(+), 18 deletions(-)
Reviewed-by: Max Filippov <address@hidden>
--
Thanks.
-- Max
- [Qemu-devel] [PATCH v2 0/6] linux-user: fix sparc32plus, Laurent Vivier, 2018/05/09
- [Qemu-devel] [PATCH v2 4/6] linux-user: fix conversion of flock/flock64 l_type field, Laurent Vivier, 2018/05/09
- Re: [Qemu-devel] [PATCH v2 4/6] linux-user: fix conversion of flock/flock64 l_type field,
Max Filippov <=
- [Qemu-devel] [PATCH v2 3/6] linux-user: update sparc/syscall_nr.h to linux header 4.16, Laurent Vivier, 2018/05/09
- [Qemu-devel] [PATCH v2 5/6] linux-user: add sparc/sparc64 specific errno, Laurent Vivier, 2018/05/09
- [Qemu-devel] [PATCH v2 1/6] linux-user: define correct fcntl() values for sparc, Laurent Vivier, 2018/05/09
- [Qemu-devel] [PATCH v2 2/6] linux-user: fix flock/flock64 padding, Laurent Vivier, 2018/05/09
- [Qemu-devel] [PATCH v2 6/6] linux-user: fix UNAME_MACHINE for sparc/sparc64, Laurent Vivier, 2018/05/09