Searched defs:papszArgs (Results 1 - 25 of 29) sorted by relevance

12

/vbox/src/VBox/HostServices/SharedOpenGL/OpenGLTest/
H A DOpenGLTest.cpp41 const char *papszArgs[4] = { NULL, "-test", "3D", NULL}; local
53 papszArgs[0] = pszVBoxPath; /* argv[0] */
56 rc = RTProcCreate(pszVBoxPath, papszArgs, RTENV_DEFAULT, 0, &Process);
/vbox/src/VBox/Runtime/testcase/
H A DtstRTGetOptArgv.cpp121 char **papszArgs; local
123 rc = RTGetOptArgvFromString(&papszArgs, &cArgs, pszCmdLine, NULL);
127 while (papszArgs[j] && s_aBournShTests[i].apszArgs[j])
129 if (strcmp(papszArgs[j], s_aBournShTests[i].apszArgs[j]))
133 i, j, papszArgs[j], s_aBournShTests[i].apszArgs[j]);
138 RTTESTI_CHECK(papszArgs[j] == NULL);
141 RTGetOptArgvFree(papszArgs);
149 char **papszArgs = NULL; local
151 RTTESTI_CHECK_RC_RETV(RTGetOptArgvFromString(&papszArgs, &cArgs, "", NULL), VINF_SUCCESS);
153 RTTESTI_CHECK_RETV(papszArgs);
[all...]
H A DtstRTPipe.cpp107 const char *papszArgs[4] = { szPathSelf, "--child-5", szNative, NULL }; local
110 RTTESTI_CHECK_RC_RETV(RTProcCreate(szPathSelf, papszArgs, RTENV_DEFAULT, 0 /*fFlags*/, &hChild), VINF_SUCCESS);
170 const char *papszArgs[4] = { szPathSelf, "--child-4", szNative, NULL }; local
173 RTTESTI_CHECK_RC_RETV(RTProcCreate(szPathSelf, papszArgs, RTENV_DEFAULT, 0 /*fFlags*/, &hChild), VINF_SUCCESS);
/vbox/src/VBox/Runtime/generic/
H A DRTProcDaemonize-generic.cpp44 RTR3DECL(int) RTProcDaemonize(const char * const *papszArgs, const char *pszDaemonizedOpt) argument
57 while (papszArgs[cArgs])
64 papszNewArgs[i] = papszArgs[i];
/vbox/src/VBox/ExtPacks/VBoxDTrace/
H A DVBoxDTraceWrapper.cpp138 char **papszArgs = (char **)RTMemAlloc((argc + 3) * sizeof(char *)); local
139 if (!papszArgs)
143 papszArgs[0] = fIsNativeDTrace ? szDTraceCmd : argv[0];
146 papszArgs[cArgs++] = (char *)"-L";
147 papszArgs[cArgs++] = szDTraceLibDir;
150 papszArgs[cArgs++] = argv[i];
151 papszArgs[cArgs] = NULL;
162 rc = RTProcCreate(szDTraceCmd, papszArgs, RTENV_DEFAULT, 0, &hProc);
193 rcExit = (RTEXITCODE)pfnVBoxDTraceMain(cArgs, papszArgs);
/vbox/src/VBox/Runtime/tools/
H A DRTGzip.cpp420 * @param papszArgs The argument vector. (Note that this may be
423 RTEXITCODE RTZipGzipCmd(unsigned cArgs, char **papszArgs) argument
478 int rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1,
H A DRTDbgSymCache.cpp1175 * @param papszArgs The argument vector, starting after 'add'.
1177 static RTEXITCODE rtDbgSymCacheCmdAdd(const char *pszArg0, int cArgs, char **papszArgs) argument
1194 int rc = RTGetOptInit(&State, cArgs, papszArgs, &s_aOptions[0], RT_ELEMENTS(s_aOptions), 0, RTGETOPTINIT_FLAGS_OPTS_FIRST);
H A DRTSignTool.cpp65 static RTEXITCODE HandleHelp(int cArgs, char **papszArgs);
67 static RTEXITCODE HandleVersion(int cArgs, char **papszArgs);
81 static RTEXITCODE HandleExtractExeSignerCert(int cArgs, char **papszArgs) argument
101 int rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1, RTGETOPTINIT_FLAGS_OPTS_FIRST);
114 case 'V': return HandleVersion(cArgs, papszArgs);
452 static RTEXITCODE HandleVerifyExe(int cArgs, char **papszArgs) argument
489 rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1, RTGETOPTINIT_FLAGS_OPTS_FIRST);
517 case 'V': return HandleVersion(cArgs, papszArgs);
634 static RTEXITCODE HandleMakeTaInfo(int cArgs, char **papszArgs) argument
651 int rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOption
827 HandleVersion(int cArgs, char **papszArgs) argument
883 HandleHelp(int cArgs, char **papszArgs) argument
[all...]
/vbox/src/VBox/Runtime/common/misc/
H A Dgetoptargv.cpp240 char **papszArgs = NULL; local
254 void *pvNew = RTMemRealloc(papszArgs, (iArg + 33) * sizeof(char *));
260 papszArgs = (char **)pvNew;
262 papszArgs[iArg++] = pszDst;
294 RTMemFree(papszArgs);
305 papszArgs = (char **)RTMemAlloc(1 * sizeof(char *));
306 if (!papszArgs)
309 papszArgs[iArg] = NULL;
312 *ppapszArgv = papszArgs;
/vbox/src/VBox/Runtime/common/path/
H A DRTPathRmCmd.cpp475 RTDECL(RTEXITCODE) RTPathRmCmd(unsigned cArgs, char **papszArgs) argument
502 int rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1,
/vbox/src/VBox/Runtime/common/zip/
H A Dunzipcmd.cpp379 RTDECL(RTEXITCODE) RTZipUnzipCmd(unsigned cArgs, char **papszArgs) argument
402 int rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1,
452 Opts.pszFile = papszArgs[GetState.iNext - 1];
455 Opts.papszFiles = (const char * const *)&papszArgs[GetState.iNext];
/vbox/src/VBox/HostDrivers/Support/win/
H A DSUPSvc-win.cpp524 * @param papszArgs Argument vector.
526 static VOID WINAPI supSvcWinServiceMain(DWORD cArgs, LPSTR *papszArgs) argument
552 && (ch = RTGetOpt(cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), &iArg, &Value)))
555 default: rc = supSvcLogGetOptError("main", ch, cArgs, papszArgs, iArg, &Value); break;
558 rc = supSvcLogTooManyArgsError("main", cArgs, papszArgs, iArg);
/vbox/src/VBox/Frontends/VirtualBox/src/
H A DVBoxGLSupportInfo.cpp610 const char *papszArgs[] = { NULL, "-test", "2D", NULL}; local
622 papszArgs[0] = pszVBoxPath; /* argv[0] */
625 rc = RTProcCreate(pszVBoxPath, papszArgs, RTENV_DEFAULT, 0, &Process);
/vbox/src/VBox/Runtime/r3/posix/
H A Dprocess-creation-posix.cpp267 RTR3DECL(int) RTProcCreate(const char *pszExec, const char * const *papszArgs, RTENV Env, unsigned fFlags, PRTPROCESS pProcess) argument
269 return RTProcCreateEx(pszExec, papszArgs, Env, fFlags,
295 RTR3DECL(int) RTProcCreateEx(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags, argument
311 AssertPtrReturn(papszArgs, VERR_INVALID_PARAMETER);
542 rc = posix_spawn(&pid, pszExec, pFileActions, &Attr, (char * const *)papszArgs,
670 rc = execve(pszExec, (char * const *)papszArgs, (char * const *)papszEnv);
/vbox/src/VBox/Frontends/VBoxAutostart/
H A DVBoxAutostart-win.cpp643 * @param papszArgs Argument vector.
645 static VOID WINAPI autostartSvcWinServiceMain(DWORD cArgs, LPTSTR *papszArgs) argument
/vbox/src/VBox/Additions/common/VBoxService/
H A DVBoxServicePageSharing.cpp674 char const *papszArgs[3]; local
675 papszArgs[0] = pszExeName;
676 papszArgs[1] = "pagefusion";
677 papszArgs[2] = NULL;
678 rc = RTProcCreate(pszExeName, papszArgs, RTENV_DEFAULT, 0 /* normal child */, &hProcess);
H A DVBoxServiceControlProcess.cpp1066 * @param papszArgs Original argv command line from the host, starting at argv[1].
1071 const char * const *papszArgs,
1076 VBoxServiceVerbose(3, "GstCntlProcessPrepareArgv: pszArgv0=%p, papszArgs=%p, fExpandArgs=%RTbool, ppapszArgv=%p\n",
1077 pszArgv0, papszArgs, fExpandArgs, ppapszArgv);
1081 for (cArgs = 0; papszArgs[cArgs]; cArgs++)
1113 if (!ExpandEnvironmentStrings(papszArgs[i], szExpanded, sizeof(szExpanded)))
1117 rc = RTStrCopy(papszArgs[i], sizeof(szExpanded), szExpanded);
1124 rc = RTStrDupEx(&pszArg, papszArgs[i]);
1219 * @param papszArgs Pointer to array of command line arguments.
1230 static int gstcntlProcessCreateProcess(const char *pszExec, const char * const *papszArgs, RTEN argument
1070 gstcntlProcessAllocateArgv(const char *pszArgv0, const char * const *papszArgs, bool fExpandArgs, char ***ppapszArgv) argument
1470 char **papszArgs; local
[all...]
H A DVBoxServiceControlSession.cpp1890 char const *papszArgs[16]; local
1891 papszArgs[iOptIdx++] = pszExeName;
1892 papszArgs[iOptIdx++] = "guestsession";
1893 papszArgs[iOptIdx++] = szParmSessionID;
1894 papszArgs[iOptIdx++] = szParmSessionProto;
1896 papszArgs[iOptIdx++] = szParmThreadId;
1899 papszArgs[iOptIdx++] = szParmUserName;
1913 papszArgs[iOptIdx++] = szParmVerbose;
1969 papszArgs[iOptIdx++] = szParmLogFile;
1985 papszArgs[iOptId
[all...]
/vbox/include/iprt/
H A Dvfslowlevel.h1014 char **papszArgs; member in struct:RTVFSCHAINELEMSPEC
/vbox/src/bldprogs/
H A Dscmsubversion.cpp181 * @param papszArgs Pointer to an array of arguments to the child. The
197 int RTProcExecToString(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags, argument
291 papszArgs,
372 * @param papszArgs Pointer to an array of arguments to the child. The
378 int RTProcExec(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags, argument
428 papszArgs,
455 * @param papszArgs The SVN argument.
459 static int scmSvnRunAndGetOutput(PSCMRWSTATE pState, const char **papszArgs, bool fNormalFailureOk, char **ppszStdOut) argument
464 int rc = RTGetOptArgvToString(&pszCmdLine, papszArgs, RTGETOPTARGV_CNV_QUOTE_BOURNE_SH);
470 rc = RTProcExecToString(g_szSvnPath, papszArgs, RTENV_DEFAUL
515 scmSvnRun(PSCMRWSTATE pState, const char **papszArgs, bool fNormalFailureOk) argument
[all...]
H A Dscm.cpp483 char **papszArgs; local
484 int rc = RTGetOptArgvFromString(&papszArgs, &cArgs, pszLine, NULL);
489 rc = RTGetOptInit(&GetOptState, cArgs, papszArgs, &g_aScmOpts[0], RT_ELEMENTS(g_aScmOpts), 0, 0 /*fFlags*/);
499 RTGetOptArgvFree(papszArgs);
/vbox/src/VBox/Main/src-helper-apps/
H A DVBoxExtPackHelperApp.cpp1224 * @param papszArgs The arguments.
1226 * 'su' like programs at the start of papszArgs.
1232 static RTEXITCODE RelaunchElevatedNative(const char *pszExecPath, const char **papszArgs, int cSuArgs, int cMyArgs, argument
1253 rc = RTGetOptArgvToString(&pszCmdLine, &papszArgs[cSuArgs + 1], RTGETOPTARGV_CNV_QUOTE_MS_CRT);
1384 (char * const *)&papszArgs[cSuArgs + 3],
1420 int rc = RTGetOptArgvToString(&pszCmdLine, &papszArgs[cSuArgs], RTGETOPTARGV_CNV_QUOTE_BOURNE_SH);
1443 papszArgs[cSuArgs - 4] = szExecTool;
1444 papszArgs[cSuArgs - 3] = "--comment";
1445 papszArgs[cSuArgs - 2] = iCmd == CMD_INSTALL
1450 papszArgs[cSuArg
1612 char const **papszArgs = (char const **)RTMemTmpAllocZ((cSuArgs + cArgs + 1) * sizeof(const char *)); local
1939 char **papszArgs; local
[all...]
/vbox/src/VBox/HostDrivers/Support/
H A DSUPR3HardenedMain.cpp118 char **papszArgs, const char *pszProgramPath);
969 DECLHIDDEN(void) supR3HardenedOpenLog(int *pcArgs, char **papszArgs) argument
978 if (strncmp(papszArgs[iArg], s_szLogOption, sizeof(s_szLogOption) - 1) == 0)
980 const char *pszLogFile = &papszArgs[iArg][sizeof(s_szLogOption) - 1];
985 memmove(&papszArgs[iArg], &papszArgs[iArg + 1], (cArgs - iArg) * sizeof(papszArgs[0]));
1691 0 /*cArgs*/, NULL /*papszArgs*/, pszExePath);
/vbox/src/VBox/Runtime/r3/
H A Dtest.cpp429 RTR3DECL(RTEXITCODE) RTTestInitExAndCreate(int cArgs, char ***papszArgs, uint32_t fRtInit, const char *pszTest, PRTTEST phTest) argument
432 if (cArgs <= 0 && papszArgs == NULL)
435 rc = RTR3InitExe(cArgs, papszArgs, fRtInit);
/vbox/src/VBox/Runtime/r3/win/
H A Dprocess-win.cpp269 RTR3DECL(int) RTProcCreate(const char *pszExec, const char * const *papszArgs, RTENV Env, unsigned fFlags, PRTPROCESS pProcess) argument
271 return RTProcCreateEx(pszExec, papszArgs, Env, fFlags,
1077 RTR3DECL(int) RTProcCreateEx(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags, argument
1091 AssertPtrReturn(papszArgs, VERR_INVALID_PARAMETER);
1220 rc = RTGetOptArgvToUtf16String(&pwszCmdLine, papszArgs, RTGETOPTARGV_CNV_QUOTE_MS_CRT);

Completed in 105 milliseconds

12