patch-2.4.23 linux-2.4.23/include/linux/ptrace.h
Next file: linux-2.4.23/include/linux/quota.h
Previous file: linux-2.4.23/include/linux/proc_fs.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/include/linux/ptrace.h
- Orig date:
2001-09-14 15:55:17.000000000 -0700
diff -urN linux-2.4.22/include/linux/ptrace.h linux-2.4.23/include/linux/ptrace.h
@@ -23,4 +23,22 @@
#include <asm/ptrace.h>
+#ifdef __KERNEL__
+
+#ifndef force_successful_syscall_return
+/*
+ * System call handlers that, upon successful completion, need to return a
+ * negative value should call force_successful_syscall_return() right before
+ * returning. On architectures where the syscall convention provides for a
+ * separate error flag (e.g., alpha, ia64, ppc{,64}, sparc{,64}, possibly
+ * others), this macro can be used to ensure that the error flag will not get
+ * set. On architectures which do not support a separate error flag, the macro
+ * 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).
+ */
+#define force_successful_syscall_return() do { } while (0)
+#endif
+#endif
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)