summaryrefslogtreecommitdiff
path: root/src/libposixplz/execvep.c
blob: 461f23828e16ba115c0d584b7de09869e6841361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <unistd.h>
#include <string.h>
#include <skalibs/posixplz.h>
#include "posixplz-internal.h"

void execvep (char const *file, char const *const *argv, char const *const *envp, char const *path)
{
  if (strchr(file, '/'))
    execve(file, (char *const *)argv, (char *const *)envp) ;
  else
    execvep_internal(file, argv, envp, path) ;
}