summaryrefslogtreecommitdiff
path: root/src/libenvexec/xmexec_af.c
blob: 8c737f1178113444e3ffc2e6497ec4ef27b41548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <errno.h>

#include <skalibs/exec.h>
#include <skalibs/strerr2.h>

void xmexec_af (char const *file, char const *const *argv, char const *const *envp, size_t envlen)
{
  mexec_af(file, argv, envp, envlen) ;
  strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}