From: Richard Henderson <rth@twiddle.net>
To: dillona@dillona.com
Cc: riku.voipio@iki.fi, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] linux-user: Add support for oldumount
Date: Fri, 04 Jan 2013 10:54:22 -0800 [thread overview]
Message-ID: <50E7255E.9020405@twiddle.net> (raw)
In-Reply-To: <1357268368-3692-1-git-send-email-dillona@dillona.com>
On 01/03/2013 06:59 PM, dillona@dillona.com wrote:
> 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
It's probably better to rename the Alpha TARGET_NR_{oldumount,umount}
syscall names to TARGET_NR_{umount,umount2}. Regardless of what the
names the kernel uses for these, it's the mapping to the implementations
in the syscall tables that matters.
r~
prev parent reply other threads:[~2013-01-04 18:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 2:59 [Qemu-devel] [PATCH] linux-user: Add support for oldumount dillona
2013-01-04 18:54 ` Richard Henderson [this message]
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=50E7255E.9020405@twiddle.net \
--to=rth@twiddle.net \
--cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.