[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] linux-user: getpriority errno fix
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 2/5] linux-user: getpriority errno fix |
Date: |
Fri, 16 Oct 2009 17:02:28 +0300 |
From: Ulrich Hecht <address@hidden>
getpriority returned wrong errno; fixes LTP test getpriority02.
Signed-off-by: Ulrich Hecht <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/syscall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index d07c381..baf00e0 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5311,7 +5311,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
/* libc does special remapping of the return value of
* sys_getpriority() so it's just easiest to call
* sys_getpriority() directly rather than through libc. */
- ret = sys_getpriority(arg1, arg2);
+ ret = get_errno(sys_getpriority(arg1, arg2));
break;
case TARGET_NR_setpriority:
ret = get_errno(setpriority(arg1, arg2, arg3));
--
1.6.2.1
- [Qemu-devel] [PATCH 0/5] linux-user updates., riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 3/5] linux-user: fix ppc target_stat64 st_blocks layout, riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 1/5] implementations of dup3 and fallocate that are good enough to fool LTP, riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 4/5] linux-user: don't zero a buffer twice, riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 2/5] linux-user: getpriority errno fix,
riku . voipio <=
- [Qemu-devel] [PATCH 5/5] linux-user: Update ARM hwcaps, riku . voipio, 2009/10/16
- Re: [Qemu-devel] [PATCH 0/5] linux-user updates., Edgar E. Iglesias, 2009/10/17