diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/wrapfuncs.h | 2 | ||||
-rw-r--r-- | templates/wrapper_table | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/wrapfuncs.h b/templates/wrapfuncs.h index 665da14..8088d09 100644 --- a/templates/wrapfuncs.h +++ b/templates/wrapfuncs.h @@ -14,3 +14,5 @@ static ${type} (*real_${name})(${decl_args}); /* 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, ...); diff --git a/templates/wrapper_table b/templates/wrapper_table index 2419c7d..f1a3220 100644 --- a/templates/wrapper_table +++ b/templates/wrapper_table @@ -22,5 +22,10 @@ static struct { (int (**)(void)) &real_fork, (int (*)(void)) wrap_fork }, + { /* int clone(int (*fn)(void *), void *, int, void, ...); */ + "clone", + (int (**)(void)) &real_clone, + (int (*)(void)) wrap_clone + }, { NULL, NULL, NULL }, }; |