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

2013-01-08 Thread Laurent Vivier
Le 8 janvier 2013 à 00:06, Richard Henderson r...@twiddle.net 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

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

2013-01-07 Thread Laurent Vivier
on alpha, F_RDLCK, F_WRLCK, F_UNLCK, F_EXLCK, F_SHLCK are not the standard ones. This patch allows to run dpkg (database lock). Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/syscall.c | 50 +++-- linux-user/syscall_defs.h | 18

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

2013-01-07 Thread Richard Henderson
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