process-posix.cpp revision c98fb3e16fcd571a790eab772c0c66173d225205
919N/A * available from http://www.virtualbox.org. This file is free software;
137N/A#ifdef HAVE_POSIX_SPAWN
911N/A#ifdef RT_OS_DARWIN
137N/ARTR3DECL(int) RTProcCreate(const char *pszExec, const char * const *papszArgs, const char * const *papszEnv, unsigned fFlags, PRTPROCESS pProcess)
493N/A return VERR_INVALID_PARAMETER;
137N/A return VERR_INVALID_PARAMETER;
return rc;
unsigned cArgs = 0;
cArgs++;
#ifdef HAVE_POSIX_SPAWN
if (!rc)
if (pProcess)
return VINF_SUCCESS;
if (!pid)
int rc;
if (papszEnv)
if (pid > 0)
if (pProcess)
return VINF_SUCCESS;
int rc;
return rc;
if (Process <= 0)
return VERR_INVALID_PARAMETER;
return VERR_INVALID_PARAMETER;
int iStatus = 0;
if (rc > 0)
if (pProcStatus)
return VINF_SUCCESS;
if (!rc)
return VERR_PROCESS_RUNNING;
return VERR_PROCESS_NOT_FOUND;
return VINF_SUCCESS;
# ifdef RT_OS_LINUX
return pszExecName;
return pszExecName;
if (pszImageName)
return NULL;