skalibs

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

gmspawn_afn.c (460B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/env.h>
      4 #include <skalibs/cspawn.h>
      5 
      6 pid_t gmspawn_afn (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen, size_t modifn, uint16_t flags, cspawn_fileaction const *fa, size_t n)
      7 {
      8   char const *newenvp[envlen + modifn + 1] ;
      9   env_merge(newenvp, envlen + modifn + 1, envp, envlen, modif, modiflen) ;
     10   return gcspawn(file, argv, newenvp, flags, fa, n) ;
     11 }