diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:31:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:48 -0500 |
commit | c269f19617f508cc5c29c0b064c1a437d7011a46 (patch) | |
tree | da49abc09dcf573df0580b305dba647a70306ac8 /include/linux | |
parent | 032d82d9065dec0e26718eca376c2029e4bd0595 (diff) |
x86: compat_sys_ptrace
This adds a generic definition of compat_sys_ptrace that calls
compat_arch_ptrace, parallel to sys_ptrace/arch_ptrace. Some
machines needing this already define a function by that name.
The new generic function is defined only on machines that
put #define __ARCH_WANT_COMPAT_SYS_PTRACE into asm/ptrace.h.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index a907fbede6c3..d38655f2be70 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -247,6 +247,13 @@ extern int compat_ptrace_request(struct task_struct *child, | |||
247 | compat_long_t request, | 247 | compat_long_t request, |
248 | compat_ulong_t addr, compat_ulong_t data); | 248 | compat_ulong_t addr, compat_ulong_t data); |
249 | 249 | ||
250 | #ifdef __ARCH_WANT_COMPAT_SYS_PTRACE | ||
251 | extern long compat_arch_ptrace(struct task_struct *child, compat_long_t request, | ||
252 | compat_ulong_t addr, compat_ulong_t data); | ||
253 | asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid, | ||
254 | compat_long_t addr, compat_long_t data); | ||
255 | #endif /* __ARCH_WANT_COMPAT_SYS_PTRACE */ | ||
256 | |||
250 | /* | 257 | /* |
251 | * epoll (fs/eventpoll.c) compat bits follow ... | 258 | * epoll (fs/eventpoll.c) compat bits follow ... |
252 | */ | 259 | */ |