summaryrefslogtreecommitdiff
path: root/src/libstddjb/xexecvep.c
blob: 294f95946f24b1daa49b28eddf2b459f1523f15b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <errno.h>
#include <skalibs/djbunix.h>
#include <skalibs/strerr2.h>

void xexecvep (char const *file, char const *const *argv, char const *const *envp, char const *path)
{
  execvep(file, argv, envp, path) ;
  strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}