Messages in this thread Patch in this message | | | From | Roland McGrath <> | Subject | [PATCH 1/8] ptrace: forced_successful_syscall_return() macro | Date | Wed, 19 Mar 2008 14:17:14 -0700 (PDT) |
| |
This adds the forced_successful_syscall_return() macro, a mate to force_successful_syscall_return() to test rather than set the condition.
Signed-off-by: Roland McGrath <roland@redhat.com> --- include/linux/ptrace.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index ebe0c17..9272e63 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h @@ -124,8 +124,13 @@ int generic_ptrace_pokedata(struct task_struct *tsk, long addr, long data); * is a no-op and the spurious error condition needs to be filtered out by some * other means (e.g., in user-level, by passing an extra argument to the * syscall handler, or something along those lines). + * + * On architectures that define force_successful_syscall_return(), + * forced_successful_syscall_return() should also be defined. + * It returns nonzero if force_successful_syscall_return() was just used. */ #define force_successful_syscall_return() do { } while (0) +#define forced_successful_syscall_return() 0 #endif /*
| |