mirror of
https://github.com/git/git.git
synced 2026-03-14 10:53:25 +01:00
Windows does not have fork(), but something called spawn() that is roughly equivalent to a fork()/exec() pair, factor out the Unix style code into a function that does it more similarly to spawn(). Now the Windows style spawn() can more easily be employed to achieve the same that the Unix style code does.
5 lines
221 B
C
5 lines
221 B
C
int spawnvpe_pipe(const char *cmd, const char **argv, const char **env, int pin[], int pout[]);
|
|
const char **copy_environ();
|
|
const char **copy_env(const char **env);
|
|
void env_unsetenv(const char **env, const char *name);
|