qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: Add support for oldumount
@ 2013-01-04  2:59 dillona
  2013-01-04 18:54 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: dillona @ 2013-01-04  2:59 UTC (permalink / raw)
  To: qemu-devel; +Cc: riku.voipio, Dillon Amburgey

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] linux-user: Add support for oldumount
  2013-01-04  2:59 [Qemu-devel] [PATCH] linux-user: Add support for oldumount dillona
@ 2013-01-04 18:54 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2013-01-04 18:54 UTC (permalink / raw)
  To: dillona; +Cc: riku.voipio, qemu-devel

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~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-04 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04  2:59 [Qemu-devel] [PATCH] linux-user: Add support for oldumount dillona
2013-01-04 18:54 ` Richard Henderson

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).