qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] linux-user: Map signal numbers in fcntl


From: Laurent Vivier
Subject: Re: [PATCH] linux-user: Map signal numbers in fcntl
Date: Sat, 5 Sep 2020 23:01:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

Le 29/07/2020 à 22:06, Timothy Baldwin a écrit :
> Map signal numbers in fcntl F_SETSIG and F_GETSIG.
> 
> Signed-off-by: Timothy E Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
> ---
>  linux-user/syscall.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 945fc25279..8456bad109 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -6583,10 +6583,16 @@ static abi_long do_fcntl(int fd, int cmd,
> abi_ulong arg)
>          break;
>  #endif
> 
> -    case TARGET_F_SETOWN:
> -    case TARGET_F_GETOWN:
>      case TARGET_F_SETSIG:
> +        ret = get_errno(safe_fcntl(fd, host_cmd,
> target_to_host_signal(arg)));
> +        break;
> +
>      case TARGET_F_GETSIG:
> +        ret = host_to_target_signal(get_errno(safe_fcntl(fd, host_cmd,
> arg)));
> +        break;
> +
> +    case TARGET_F_SETOWN:
> +    case TARGET_F_GETOWN:
>      case TARGET_F_SETLEASE:
>      case TARGET_F_GETLEASE:
>      case TARGET_F_SETPIPE_SZ:

Reviewed-by: Laurent Vivier <laurent@vivier.eu>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]