Searched defs:cArgs (Results 1 - 25 of 55) sorted by relevance

123

/vbox/src/VBox/Runtime/testcase/
H A DtstRTGetOptArgv.cpp122 int cArgs; local
123 rc = RTGetOptArgvFromString(&papszArgs, &cArgs, pszCmdLine, NULL);
150 int cArgs = -1; local
151 RTTESTI_CHECK_RC_RETV(RTGetOptArgvFromString(&papszArgs, &cArgs, "", NULL), VINF_SUCCESS);
152 RTTESTI_CHECK_RETV(cArgs == 0);
157 RTTESTI_CHECK_RC_RETV(RTGetOptArgvFromString(&papszArgs, &cArgs, "0 1 \"\"2'' '3' 4 5 '''''6' 7 8 9 10 11", NULL), VINF_SUCCESS);
158 RTTESTI_CHECK_RETV(cArgs == 12);
174 RTTESTI_CHECK_RC_RETV(RTGetOptArgvFromString(&papszArgs, &cArgs, "\t\" asdf \" '\"'xyz \"\t\" '\n' '\"' \"'\"\n\r ", NULL), VINF_SUCCESS);
175 RTTESTI_CHECK_RETV(cArgs == 6);
185 RTTESTI_CHECK_RC_RETV(RTGetOptArgvFromString(&papszArgs, &cArgs, "
[all...]
/vbox/src/VBox/VMM/VMMR3/
H A DEMR3Dbg.cpp30 static DECLCALLBACK(int) enmR3DbgCmdAllIem(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) argument
35 if (cArgs == 0)
H A DPGMPool.cpp952 static DECLCALLBACK(int) pgmR3PoolCmdCheck(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) argument
957 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, -1, cArgs == 0);
H A DPGMSharedPage.cpp324 DECLCALLBACK(int) pgmR3CmdCheckDuplicatePages(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) argument
333 NOREF(pCmd); NOREF(paArgs); NOREF(cArgs);
411 DECLCALLBACK(int) pgmR3CmdShowSharedModules(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) argument
413 NOREF(pCmd); NOREF(paArgs); NOREF(cArgs);
H A DVMReq.cpp62 * @param cArgs Number of arguments following in the ellipsis.
68 VMMR3_INT_DECL(int) VMR3ReqCallWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
72 va_start(va, cArgs);
74 pfnFunction, cArgs, va);
99 * @param cArgs Number of arguments following in the ellipsis.
105 VMMR3DECL(int) VMR3ReqCallWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
109 va_start(va, cArgs);
111 pfnFunction, cArgs, va);
133 * @param cArgs Number of arguments following in the ellipsis.
139 VMMR3DECL(int) VMR3ReqCallNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, argument
168 VMR3ReqCallNoWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
198 VMR3ReqCallVoidWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
229 VMR3ReqCallVoidWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
261 VMR3ReqCallVoidNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
297 VMR3ReqPriorityCallWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
334 VMR3ReqPriorityCallWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
368 VMR3ReqPriorityCallVoidWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...) argument
410 VMR3ReqCallU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, RTMSINTERVAL cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, ...) argument
458 VMR3ReqCallVU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, RTMSINTERVAL cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args) argument
476 ("cArg=%d\\n", cArgs), local
[all...]
/vbox/src/VBox/Runtime/generic/
H A DRTProcDaemonize-generic.cpp56 unsigned cArgs = 0; local
57 while (papszArgs[cArgs])
58 cArgs++;
60 char const **papszNewArgs = (char const **)RTMemAlloc(sizeof(const char *) * (cArgs + 2));
63 for (unsigned i = 0; i < cArgs; i++)
65 papszNewArgs[cArgs] = pszDaemonizedOpt;
66 papszNewArgs[cArgs + 1] = NULL;
/vbox/src/VBox/VMM/testcase/
H A DtstVMMFork.cpp80 int cArgs = argc - 1; local
83 int cArgs = 2; local
110 for (int i = 0; i < cArgs; i++)
/vbox/src/VBox/Debugger/
H A DDBGCFunctions.cpp47 static DECLCALLBACK(int) dbgcFuncRandU32(PCDBGCFUNC pFunc, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, uint32_t cArgs, argument
50 AssertReturn(cArgs == 0, VERR_DBGC_PARSE_BUG);
H A DDBGCEval.cpp429 unsigned cArgs; local
434 pszArgs, &iArg, &cArgs);
436 rc = pFunc->pfnHandler(pFunc, &pDbgc->CmdHlp, pDbgc->pUVM, &pDbgc->aArgs[iArg], cArgs, pResult);
1361 unsigned cArgs; local
1364 pszArgs, &iArg, &cArgs);
1373 rc = pCmd->pfnHandler(pCmd, &pDbgc->CmdHlp, pDbgc->pUVM, &pDbgc->aArgs[iArg], cArgs);
1401 "Syntax error: Unbalanced quote (argument %d).\n", cArgs);
1405 "Syntax error: Unbalanced parenthesis (argument %d).\n", cArgs);
1409 "Syntax error: An argument or subargument contains nothing useful (argument %d).\n", cArgs);
1413 "Syntax error: Invalid operator usage (argument %d).\n", cArgs);
[all...]
/vbox/src/VBox/ExtPacks/VBoxDTrace/
H A DVBoxDTraceWrapper.cpp142 int cArgs = 1; local
146 papszArgs[cArgs++] = (char *)"-L";
147 papszArgs[cArgs++] = szDTraceLibDir;
150 papszArgs[cArgs++] = argv[i];
151 papszArgs[cArgs] = NULL;
152 Assert(cArgs <= argc + 3);
193 rcExit = (RTEXITCODE)pfnVBoxDTraceMain(cArgs, papszArgs);
/vbox/src/VBox/Storage/testcase/
H A DVDScriptInternal.h56 unsigned cArgs; member in struct:VDSCRIPTFN
98 * @param cArgs Number of arguments.
104 PVDSCRIPTARG paArgs, unsigned cArgs,
H A DVDScript.h97 unsigned cArgs; member in struct:VDSCRIPTCALLBACK
187 * @param cArgs Number of arguments.
190 PVDSCRIPTARG paArgs, unsigned cArgs);
H A DVDScriptInterp.cpp772 for (unsigned i = 0; i < pAstFn->cArgs; i++)
815 if (pFn->cArgs)
817 PVDSCRIPTARG paArgs = (PVDSCRIPTARG)RTMemAllocZ(pFn->cArgs * sizeof(VDSCRIPTARG));
820 for (unsigned i = 0; i < pFn->cArgs; i++)
1002 PVDSCRIPTARG paArgs, unsigned cArgs,
1011 AssertReturn( (!cArgs && !paArgs)
1012 || (cArgs && paArgs), VERR_INVALID_PARAMETER);
1022 if (cArgs == pFn->cArgs)
1026 for (unsigned i = 0; i < cArgs;
1001 vdScriptCtxInterprete(PVDSCRIPTCTXINT pThis, const char *pszFn, PVDSCRIPTARG paArgs, unsigned cArgs, PVDSCRIPTARG pRet) argument
[all...]
/vbox/src/VBox/Runtime/common/misc/
H A Dreqqueue.cpp177 RTDECL(int) RTReqQueueCall(RTREQQUEUE hQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, PFNRT pfnFunction, unsigned cArgs, ...) argument
180 va_start(va, cArgs);
181 int rc = RTReqQueueCallV(hQueue, ppReq, cMillies, RTREQFLAGS_IPRT_STATUS, pfnFunction, cArgs, va);
188 RTDECL(int) RTReqQueueCallVoid(RTREQQUEUE hQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, PFNRT pfnFunction, unsigned cArgs, ...) argument
191 va_start(va, cArgs);
192 int rc = RTReqQueueCallV(hQueue, ppReq, cMillies, RTREQFLAGS_VOID, pfnFunction, cArgs, va);
199 RTDECL(int) RTReqQueueCallEx(RTREQQUEUE hQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) argument
202 va_start(va, cArgs);
203 int rc = RTReqQueueCallV(hQueue, ppReq, cMillies, fFlags, pfnFunction, cArgs, va);
210 RTDECL(int) RTReqQueueCallV(RTREQQUEUE hQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_lis argument
230 AssertMsgReturn(cArgs * sizeof(uintptr_t) <= sizeof(pReq->u.Internal.aArgs), ("cArgs=%u\\n", cArgs), VERR_TOO_MUCH_DATA); local
[all...]
/vbox/src/VBox/Runtime/tools/
H A DRTGzip.cpp419 * @param cArgs The number of arguments.
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.cpp1174 * @param cArgs The number of arguments to the 'add' command.
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, papszArg
827 HandleVersion(int cArgs, char **papszArgs) argument
883 HandleHelp(int cArgs, char **papszArgs) argument
[all...]
/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,
451 Assert((unsigned)GetState.iNext - 1 <= cArgs);
453 if ((unsigned)GetState.iNext <= cArgs)
456 Opts.cFiles = cArgs - GetState.iNext;
/vbox/src/VBox/Runtime/include/internal/
H A Dreq.h111 uint32_t cArgs; member in struct:RTREQ::RTREQ_U::__anon16660
/vbox/src/VBox/HostDrivers/Support/win/
H A DSUPSvc-win.cpp523 * @param cArgs Argument count.
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;
557 if (iArg != cArgs)
558 rc = supSvcLogTooManyArgsError("main", cArgs, papszArgs, iArg);
/vbox/src/VBox/Installer/linux/install_service/
H A Dgenerate_service_file.cpp215 int main(int cArgs, char **apszArgs) argument
217 int rc = RTR3InitExe(cArgs, &apszArgs, 0);
263 RTGetOptInit(&GetState, cArgs, apszArgs, s_aOptions,
/vbox/src/VBox/Frontends/VBoxAutostart/
H A DVBoxAutostart-win.cpp642 * @param cArgs Argument count.
645 static VOID WINAPI autostartSvcWinServiceMain(DWORD cArgs, LPTSTR *papszArgs) argument
659 if (cArgs == 1)
704 autostartSvcLogTooManyArgsError("main", cArgs, NULL, 0);
/vbox/include/iprt/
H A Dvfslowlevel.h1012 uint32_t cArgs; member in struct:RTVFSCHAINELEMSPEC
/vbox/include/VBox/vmm/
H A Dvmapi.h290 unsigned cArgs; member in struct:VMREQ::VMREQ_U::__anon414
447 VMMR3DECL(int) VMR3ReqCallU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, RTMSINTERVAL cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
448 VMMR3DECL(int) VMR3ReqCallVU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, RTMSINTERVAL cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args);
449 VMMR3_INT_DECL(int) VMR3ReqCallWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
450 VMMR3DECL(int) VMR3ReqCallWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
451 VMMR3DECL(int) VMR3ReqCallNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
452 VMMR3DECL(int) VMR3ReqCallNoWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
453 VMMR3_INT_DECL(int) VMR3ReqCallVoidWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
454 VMMR3DECL(int) VMR3ReqCallVoidWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
455 VMMR3DECL(int) VMR3ReqCallVoidNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs,
[all...]

Completed in 3185 milliseconds

123