summaryrefslogtreecommitdiff
path: root/src/libenvexec/xmexec0_afm.c
blob: a43cb496c074e144d35ae64e48468342c0f9cbba (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 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) ;
}