|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH][v2] linux-user, alpha: l_type of fcntl() flock differs |
Date: | Thu, 10 Jan 2013 13:05:41 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 01/10/2013 12:42 PM, Laurent Vivier wrote:
+static const bitmask_transtbl flock_tbl[] = { + TRANSTBL_CONVERT(F_RDLCK), + TRANSTBL_CONVERT(F_WRLCK), + TRANSTBL_CONVERT(F_UNLCK), + TRANSTBL_CONVERT(F_EXLCK), + TRANSTBL_CONVERT(F_SHLCK), + { 0, 0, 0, 0 } +};
Oh, I forgot to mention that you'll need to protect against the case of F_RDLCK == 0 && TARGET_F_RDLCK == 0. The easiest way to handle this is place that entry last. r~
[Prev in Thread] | Current Thread | [Next in Thread] |