qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ulrich Hecht <uli@suse.de>
To: qemu-devel@nongnu.org
Cc: riku.voipio@iki.fi
Subject: [Qemu-devel] [PATCH 5/7] linux-user: getpriority errno fix
Date: Fri, 24 Jul 2009 19:10:30 +0200	[thread overview]
Message-ID: <1248455432-12959-6-git-send-email-uli@suse.de> (raw)
In-Reply-To: <1248455432-12959-5-git-send-email-uli@suse.de>

getpriority returned wrong errno; fixes LTP test getpriority02.

Signed-off-by: Ulrich Hecht <uli@suse.de>
---
 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 6892880..6417cbb 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5298,7 +5298,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

  reply	other threads:[~2009-07-24 17:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 17:10 [Qemu-devel] [PATCH 0/7] linux-user syscall fixes Ulrich Hecht
2009-07-24 17:10 ` [Qemu-devel] [PATCH 1/7] linux-user: dup3, fallocate syscalls Ulrich Hecht
2009-07-24 17:10   ` [Qemu-devel] [PATCH 2/7] linux-user: fcntl fixes for LTP Ulrich Hecht
2009-07-24 17:10     ` [Qemu-devel] [PATCH 3/7] linux-user: enable getdents for > 32-bit systems Ulrich Hecht
2009-07-24 17:10       ` [Qemu-devel] [PATCH 4/7] linux-user: define a couple of syscalls for non-uid16 targets Ulrich Hecht
2009-07-24 17:10         ` Ulrich Hecht [this message]
2009-07-24 17:10           ` [Qemu-devel] [PATCH 6/7] linux-user: fadvise64 implementation Ulrich Hecht
2009-07-24 17:10             ` [Qemu-devel] [PATCH 7/7] linux-user: zero fstat buffer to initialize nsec fields Ulrich Hecht
2009-07-25 22:37   ` [Qemu-devel] [PATCH 1/7] linux-user: dup3, fallocate syscalls Jan-Simon Möller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1248455432-12959-6-git-send-email-uli@suse.de \
    --to=uli@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).