aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wrapfuncs.h
blob: 403d261148437b52cab3152f758702a0c08c6d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@name pseudo_wrapfuncs.h
@header
/* wrapper functions. generated automatically. */

/* This file is generated and should not be modified.  See the makewrappers
 * script if you want to modify this. */
@body
/* ${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);
/* int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...) */
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, ...);
/* int execv(const char *file, char *const *argv) */
static int wrap_execv(const char *file, char *const *argv);
static int (*real_execv)(const char *file, char *const *argv);
/* int execve(const char *file, char *const *argv, char *const *envp) */
static int wrap_execve(const char *file, char *const *argv, char *const *envp);
static int (*real_execve)(const char *file, char *const *argv, char *const *envp);
/* int execvp(const char *file, char *const *argv) */
static int wrap_execvp(const char *file, char *const *argv);
static int (*real_execvp)(const char *file, char *const *argv);