skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

execvep_loose.c (349B)


      1 /* ISC license. */
      2 
      3 #include <unistd.h>
      4 #include <skalibs/posixplz.h>
      5 #include "posixplz-internal.h"
      6 
      7 void execvep_loose (char const *file, char const *const *argv, char const *const *envp, char const *path)
      8 {
      9   if (file[0] == '/')
     10     execve(file, (char *const *)argv, (char *const *)envp) ;
     11   else
     12     execvep_internal(file, argv, envp, path) ;
     13 }