aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wrapfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wrapfuncs.c')
-rw-r--r--templates/wrapfuncs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/wrapfuncs.c b/templates/wrapfuncs.c
index 0a90efd..61b52ff 100644
--- a/templates/wrapfuncs.c
+++ b/templates/wrapfuncs.c
@@ -13,7 +13,9 @@
* script if you want to modify this. */
@body
-static ${type} (*real_${name})(${decl_args}) = NULL;
+static ${type} (*real_${name})(${decl_args}) = ${real_init};
+
+${maybe_skip}
${type}
${name}(${decl_args}) {
@@ -58,7 +60,7 @@ ${name}(${decl_args}) {
save_errno = errno;
pseudo_droplock();
sigprocmask(SIG_SETMASK, &saved, NULL);
- pseudo_debug(4, "completed: $name\n");
+ pseudo_debug(4, "completed: $name (maybe: %s)\n", strerror(save_errno));
errno = save_errno;
${rc_return}
}
@@ -69,8 +71,9 @@ wrap_${name}(${wrap_args}) {
${maybe_variadic_decl}
${maybe_variadic_start}
-#include "guts/${name}.c"
+#include "ports/${port}/guts/${name}.c"
${rc_return}
}
+${end_maybe_skip}