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

#include <errno.h>
#include <skalibs/posixplz.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) ;
}