qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: dillona@dillona.com
To: qemu-devel@nongnu.org
Cc: riku.voipio@iki.fi, Dillon Amburgey <dillona@dillona.com>
Subject: [Qemu-devel] [PATCH] linux-user: Add support for oldumount
Date: Thu,  3 Jan 2013 21:59:28 -0500	[thread overview]
Message-ID: <1357268368-3692-1-git-send-email-dillona@dillona.com> (raw)

From: Dillon Amburgey <dillona@dillona.com>

This is used at least on the Alpha architecture

Signed-off-by: Dillon Amburgey <dillona@dillona.com>
---
 linux-user/syscall.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e99adab..0cd54f3 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5497,6 +5497,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
                         unlock_user(p3, arg3, 0);
 			break;
 		}
+#ifdef TARGET_NR_oldumount
+    case TARGET_NR_oldumount:
+        if (!(p = lock_user_string(arg1)))
+            goto efault;
+        ret = get_errno(umount(p));
+        unlock_user(p, arg1, 0);
+        break;
+#endif
 #ifdef TARGET_NR_umount
     case TARGET_NR_umount:
         if (!(p = lock_user_string(arg1)))
-- 
1.7.5.4

             reply	other threads:[~2013-01-04  3:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-04  2:59 dillona [this message]
2013-01-04 18:54 ` [Qemu-devel] [PATCH] linux-user: Add support for oldumount Richard Henderson

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=1357268368-3692-1-git-send-email-dillona@dillona.com \
    --to=dillona@dillona.com \
    --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).