qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user, alpha: l_type of fcntl() flock diff


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH] linux-user, alpha: l_type of fcntl() flock differs
Date: Tue, 8 Jan 2013 10:18:51 +0100 (CET)


Le 8 janvier 2013 à 00:06, Richard Henderson <address@hidden> a écrit :
> On 01/07/2013 02:24 PM, Laurent Vivier wrote:
> > +static short target_to_host_flock_type(short type)
> > +{
> > + switch (type) {
> > + case TARGET_F_RDLCK:
> > + return F_RDLCK;
> > + case TARGET_F_WRLCK:
> > + return F_WRLCK;
> > + case TARGET_F_UNLCK:
> > + return F_UNLCK;
> > + case TARGET_F_EXLCK:
> > + return F_EXLCK;
> > + case TARGET_F_SHLCK:
> > + return F_SHLCK;
> > + default:
> > + return type;
> > + }
> > +}
> > +
> > +static short host_to_target_flock_type(short type)
> > +{
> > + switch (type) {
> > + case F_RDLCK:
> > + return TARGET_F_RDLCK;
> > + case F_WRLCK:
> > + return TARGET_F_WRLCK;
> > + case F_UNLCK:
> > + return TARGET_F_UNLCK;
> > + case F_EXLCK:
> > + return TARGET_F_EXLCK;
> > + case F_SHLCK:
> > + return TARGET_F_SHLCK;
> > + default:
> > + return type;
> > + }
> > +}
>
> Any reason not to use the bitmask_transtbl method of translation?
>
No reason. I correct this.
 
Regards,
Laurent

reply via email to

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