alpha-linux-user: Fix the getpriority syscall
authorRichard Henderson <rth@twiddle.net>
Thu, 7 Jun 2012 22:14:50 +0000 (15:14 -0700)
committerRichard Henderson <rth@twiddle.net>
Sat, 4 Aug 2012 16:37:50 +0000 (09:37 -0700)
commit95c098286bd5e8397ef25deee15477e0398979b9
treecf4266f81bcd8b1373eb382b7005084188b04301
parent0229f5a30efa7af51ac750fa0720a2e37978644e
alpha-linux-user: Fix the getpriority syscall

Alpha uses unbiased priority values in the syscall, with the a3
return value signaling error conditions.  Therefore, properly
interpret the libc getpriority as needed for the guest rather
than passing the host value through unchanged.

Signed-off-by: Richard Henderson <rth@twiddle.net>
linux-user/syscall.c