linux-user: Add support for oldumount
PATCH 1/1 linux-user: Add support for oldumount
From: Dillon Amburgey <[email protected]>
This is used at least on the Alpha architecture
Signed-off-by Dillon Amburgey <[email protected]>
--- linux-user/syscall.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
linux-user/syscall.c +8 -0
@@ -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_umountcase TARGET_NR_umount:if (!(p =lock_user_string (arg1)))
Signature · 1 line
1.7.5.4
Quoted 15 lines · On 01/03/2013 06:59 PM, [email protected] wrote:
From: Dillon Amburgey <[email protected]>
This is used at least on the Alpha architecture
Signed-off-by Dillon Amburgey <[email protected]>--- linux-user/syscall.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)linux-user/syscall.c +0
-0@@ -5497,6 +5497,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,unlock_user (p3, arg3,0 );
linux-user/syscall.c abi_long do_syscall(void *cpu_env, int num, abi_long arg1, · line 5507
Quoted 10 lines
linux-user/syscall.c +8
-0break ; } +#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~