aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wrapfuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wrapfuncs.h')
-rw-r--r--templates/wrapfuncs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/wrapfuncs.h b/templates/wrapfuncs.h
index 63ba903..8088d09 100644
--- a/templates/wrapfuncs.h
+++ b/templates/wrapfuncs.h
@@ -8,3 +8,11 @@
/* ${comment} */
static ${type} wrap_${name}(${wrap_args});
static ${type} (*real_${name})(${decl_args});
+@footer
+/* special cases: functions with manually-written wrappers */
+
+/* int fork(void) */
+static int wrap_fork(void);
+static int (*real_fork)(void);
+static int wrap_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...);
+static int (*real_clone)(int (*fn)(void *), void *child_stack, int flags, void *arg, ...);