/* Copyright (C) 2015 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 2004 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #include #include #include #include extern char **_environ; int spawnlp(int mode, const char *path, const char *argv0, ...) { return spawnvpe(mode, path, unconst(&argv0,char * const *), (char * const *)_environ); }