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

#include <errno.h>

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

void xmexec0_afm (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen)
{
  mexec0_afm(file, argv, envp, envlen, modif, modiflen) ;
  strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}