Also, execve/execvpe passes the environment as well. It should be cross-platform if I'm not mistaken.