[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 9/9] linux-user: getpriority errno fix
From: |
Ulrich Hecht |
Subject: |
[Qemu-devel] [PATCH 9/9] linux-user: getpriority errno fix |
Date: |
Fri, 16 Oct 2009 14:38:55 +0200 |
getpriority returned wrong errno; fixes LTP test getpriority02.
Signed-off-by: Ulrich Hecht <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 da6f2e1..455c3fd 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5314,7 +5314,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/9] S/390 support updated, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 1/9] TCG "sync" op, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 2/9] S/390 CPU emulation, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 3/9] S/390 host/target build system support, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 4/9] S/390 host support for TCG, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 5/9] linux-user: S/390 64-bit (s390x) support, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 6/9] linux-user: don't do locking in single-threaded processes, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 7/9] linux-user: dup3, fallocate syscalls, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 8/9] linux-user: define a couple of syscalls for non-uid16 targets, Ulrich Hecht, 2009/10/16
- [Qemu-devel] [PATCH 9/9] linux-user: getpriority errno fix,
Ulrich Hecht <=
- Re: [Qemu-devel] [PATCH 3/9] S/390 host/target build system support, Aurelien Jarno, 2009/10/17
- Re: [Qemu-devel] [PATCH 2/9] S/390 CPU emulation, Aurelien Jarno, 2009/10/17
- Re: [Qemu-devel] [PATCH 2/9] S/390 CPU emulation, Ulrich Hecht, 2009/10/19
- Re: [Qemu-devel] [PATCH 2/9] S/390 CPU emulation, Aurelien Jarno, 2009/10/22
Re: [Qemu-devel] [PATCH 1/9] TCG "sync" op, Aurelien Jarno, 2009/10/16
Re: [Qemu-devel] [PATCH 1/9] TCG "sync" op, Edgar E. Iglesias, 2009/10/17
Re: [Qemu-devel] [PATCH 1/9] TCG "sync" op, Ulrich Hecht, 2009/10/19