diff options
Diffstat (limited to 'src/libenvexec/xmexec0_afn.c')
-rw-r--r-- | src/libenvexec/xmexec0_afn.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libenvexec/xmexec0_afn.c b/src/libenvexec/xmexec0_afn.c new file mode 100644 index 0000000..73eeb04 --- /dev/null +++ b/src/libenvexec/xmexec0_afn.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <errno.h> + +#include <skalibs/exec.h> +#include <skalibs/strerr2.h> + +void xmexec0_afn (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen, size_t modifn) +{ + mexec0_afn(file, argv, envp, envlen, modif, modiflen, modifn) ; + strerr_dieexec(errno == ENOENT ? 127 : 126, file) ; +} |