/vbox/src/VBox/Runtime/r3/linux/ |
H A D | RTSystemShutdown-linux.cpp | 49 int iArg = 0; local 54 apszArgs[iArg++] = "/sbin/shutdown"; 58 apszArgs[iArg++] = "-h"; 59 apszArgs[iArg++] = "-H"; 62 apszArgs[iArg++] = "-r"; 66 apszArgs[iArg++] = "-h"; 67 apszArgs[iArg++] = "-P"; 76 apszArgs[iArg++] = szWhen; 78 apszArgs[iArg++] = pszLogMsg;
|
/vbox/src/VBox/Runtime/r3/solaris/ |
H A D | RTSystemShutdown-solaris.cpp | 49 int iArg = 0; local 54 apszArgs[iArg++] = "/usr/sbin/shutdown"; 55 apszArgs[iArg++] = "-y"; /* Pre-answer confirmation question. */ 56 apszArgs[iArg++] = "-i"; /* Change to the following state. */ 60 apszArgs[iArg++] = "0"; 63 apszArgs[iArg++] = "6"; 67 apszArgs[iArg++] = "5"; 71 apszArgs[iArg++] = "-g"; /* Grace period. */ 78 apszArgs[iArg++] = szWhen; 80 apszArgs[iArg [all...] |
/vbox/src/VBox/Debugger/ |
H A D | DBGCCmdWorkers.cpp | 210 unsigned iArg = pDbgc->iArg; local 223 pDbgc->iArg = iArg;
|
H A D | DBGCCmdHlp.cpp | 630 unsigned iArg = pDbgc->iArg; local 651 pDbgc->iArg = iArg; 727 static DECLCALLBACK(int) dbgcHlpParserError(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int iArg, const char *pszExpr, unsigned iLine) argument 735 RTStrFormat(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, "%s: parser error: iArg=%d iLine=%u pszExpr=%s\n", 736 pCmd->pszCmd, iArg, iLine, pszExpr);
|
H A D | DBGCEval.cpp | 430 unsigned iArg; local 434 pszArgs, &iArg, &cArgs); 436 rc = pFunc->pfnHandler(pFunc, &pDbgc->CmdHlp, pDbgc->pUVM, &pDbgc->aArgs[iArg], cArgs, pResult); 437 pDbgc->iArg = iArg; 1042 * DBGC::aArgs. Always set. Caller must restore DBGC::iArg 1058 *piArg = pDbgc->iArg; 1075 PDBGCVAR pArg = &pDbgc->aArgs[pDbgc->iArg]; 1088 if (pDbgc->iArg >= RT_ELEMENTS(pDbgc->aArgs)) 1282 pDbgc->iArg 1360 unsigned iArg; local [all...] |
H A D | DBGCInternal.h | 203 unsigned iArg; member in struct:DBGC
|
/vbox/src/VBox/Frontends/VBoxAutostart/ |
H A D | VBoxAutostartUtils.cpp | 188 DECLHIDDEN(RTEXITCODE) autostartSvcLogGetOptError(const char *pszAction, int rc, int argc, char **argv, int iArg, PCRTGETOPTUNION pValue) argument 192 pszAction, rc, rc, iArg < argc ? argv[iArg] : "<null>"); 196 DECLHIDDEN(RTEXITCODE) autostartSvcLogTooManyArgsError(const char *pszAction, int argc, char **argv, int iArg) argument 198 Assert(iArg < argc); 199 autostartSvcLogError("%s - Too many arguments: %s", pszAction, argv[iArg]); 200 for ( ; iArg < argc; iArg++) 201 LogRel(("arg#%i: %s\n", iArg, argv[iArg])); [all...] |
H A D | VBoxAutostart-win.cpp | 354 unsigned iArg = 0; local 366 return autostartSvcDisplayTooManyArgsError("delete", argc, argv, iArg); 368 return autostartSvcDisplayGetOptError("delete", ch, argc, argv, iArg, &Value); 371 iArg++; 425 int iArg = 0; local 444 return autostartSvcDisplayGetOptError("create", ch, argc, argv, iArg, &Value); 446 iArg++; 448 if (iArg != argc) 449 return autostartSvcDisplayTooManyArgsError("create", argc, argv, iArg); 743 int iArg local 800 int iArg = 0; local 905 int iArg = 1; local [all...] |
/vbox/src/VBox/Runtime/VBox/ |
H A D | log-vbox.cpp | 339 for (int iArg = 0; iArg < psi.pr_argc; iArg++) 340 RTLogLoggerEx(pLogger, 0, ~0U, "Arg[%d]: %s\n", iArg, argv[iArg]); 352 unsigned iArg = 0; local 359 RTLogLoggerEx(pLogger, 0, ~0U, "Arg[%u]: ", iArg++); 401 unsigned iArg = 0; local 406 RTLogLoggerEx(pLogger, 0, ~0U, "Arg[%u]: %s\n", iArg, &pszArgFileBuf[off]); 410 iArg [all...] |
/vbox/src/bldprogs/ |
H A D | bin2c.c | 71 int iArg; local 89 for (iArg = 1; iArg < argc; iArg++) 91 if (!strcmp(argv[iArg], "-min")) 93 if (++iArg >= argc) 95 cbMin = 1024 * strtoul(argv[iArg], NULL, 0); 97 else if (!strcmp(argv[iArg], "-max")) 99 if (++iArg >= argc) 101 cbMax = 1024 * strtoul(argv[iArg], NUL [all...] |
H A D | scmsubversion.cpp | 1045 int iArg = 3; local 1047 apszArgv[iArg++] = pState->paSvnPropChanges[i].pszValue; 1048 apszArgv[iArg++] = pState->pszFilename; 1049 apszArgv[iArg++] = NULL;
|
H A D | VBoxTpG.cpp | 261 unsigned iArg = 0; local 263 apszArgs[iArg++] = g_pszAssembler; 264 apszArgs[iArg++] = g_pszAssemblerFmtOpt; 265 apszArgs[iArg++] = g_pszAssemblerFmtVal; 266 apszArgs[iArg++] = g_pszAssemblerDefOpt; 268 apszArgs[iArg++] = "ASM_FORMAT_MACHO"; 270 apszArgs[iArg++] = "ASM_FORMAT_OMF"; 276 apszArgs[iArg++] = "ASM_FORMAT_PE"; 280 apszArgs[iArg++] = "ASM_FORMAT_ELF"; 283 apszArgs[iArg 1032 uint32_t iArg = 0; local [all...] |
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPSvc.cpp | 353 * @param iArg The argument index. 356 int supSvcLogGetOptError(const char *pszAction, int rc, int argc, char **argv, int iArg, PCRTOPTIONUNION pValue) argument 359 pszAction, rc, rc, iArg < argc ? argv[iArg] : "<null>"); 371 * @param iArg The argument index. 373 int supSvcLogTooManyArgsError(const char *pszAction, int argc, char **argv, int iArg) argument 375 Assert(iArg < argc); 376 supSvcLogError("%s - Too many arguments: %s", pszAction, argv[iArg]); 377 for ( ; iArg < argc; iArg [all...] |
H A D | SUPDrv-dtrace.cpp | 591 int iArg, int cFrames) 595 LOG_DTRACE(("%s: %p / %p - %#x / %p iArg=%d cFrames=%u\n", __FUNCTION__, pProv, pProv->TracerData.DTrace.idProvider, idProbe, pvProbe, iArg, cFrames)); 596 AssertReturn(iArg >= 5, UINT64_MAX); 615 if (iArg >= 20) 620 u64Ret = pData->u.ProbeFireKernel.pauStackArgs[iArg - 5]; 623 || iArg >= pArgList->cArgs) 624 u64Ret = pData->u.ProbeFireKernel.pauStackArgs[iArg - 5]; 629 for (int i = 5; i < iArg; i++) 630 if (VTG_TYPE_IS_LARGE(pArgList->aArgs[iArg] 590 vboxDtPOps_GetArgVal(void *pvProv, dtrace_id_t idProbe, void *pvProbe, int iArg, int cFrames) argument [all...] |
H A D | SUPDrvTracer.cpp | 552 unsigned iArg; local 587 iArg = pArgList->cArgs; 588 while (iArg-- > 0) 590 uint32_t const fType = pArgList->aArgs[iArg].fType; 593 SUPR0Printf("supdrvVtgValidate: VERR_SUPDRV_TRACER_BAD_ARG_FLAGS - fType=%#x iArg=%u iProbe=%u (#0)\n", fType, iArg, i); 597 switch (pArgList->aArgs[iArg].fType & VTG_TYPE_SIZE_MASK) 600 if (pArgList->aArgs[iArg].fType & VTG_TYPE_FIXED_SIZED) 602 SUPR0Printf("supdrvVtgValidate: VERR_SUPDRV_TRACER_BAD_ARG_FLAGS - fType=%#x iArg=%u iProbe=%u (#1)\n", fType, iArg, [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstTSC.cpp | 420 int iArg = 1; local
|
/vbox/src/VBox/Runtime/common/misc/ |
H A D | getoptargv.cpp | 241 unsigned iArg = 0; local 252 if ((iArg % 32) == 0) 254 void *pvNew = RTMemRealloc(papszArgs, (iArg + 33) * sizeof(char *)); 262 papszArgs[iArg++] = pszDst; 302 if (iArg == 0) 309 papszArgs[iArg] = NULL; 311 *pcArgs = iArg;
|
/vbox/src/VBox/Runtime/common/vfs/ |
H A D | vfschain.cpp | 264 uint32_t iArg = pElement->cArgs; local 265 if ((iArg % 32) == 0) 267 char **papszNew = (char **)RTMemTmpAlloc((iArg + 32 + 1) * sizeof(papszNew[0])); 270 memcpy(papszNew, pElement->papszArgs, iArg * sizeof(papszNew[0])); 276 pElement->papszArgs[iArg] = rtVfsChainSpecDupStrN(psz, cch, &rc); 277 pElement->papszArgs[iArg + 1] = NULL; 278 pElement->cArgs = iArg + 1; 291 uint32_t iArg = pSpec->paElements[i].cArgs; local 292 while (iArg-- > 0) 293 RTMemTmpFree(pSpec->paElements[i].papszArgs[iArg]); [all...] |
/vbox/src/VBox/HostDrivers/Support/win/ |
H A D | SUPSvc-win.cpp | 276 return supSvcDisplayTooManyArgsError("delete", argc, argv, iArg); 278 return supSvcDisplayGetOptError("delete", ch, argc, argv, iArg, &Value); 328 int iArg = 0; local 331 while ((ch = RTGetOpt(argc, argv, s_aOptions, RT_ELEMENTS(s_aOptions), &iArg, &Value))) 335 default: return supSvcDisplayGetOptError("create", ch, argc, argv, iArg, &Value); 337 if (iArg != argc) 338 return supSvcDisplayTooManyArgsError("create", argc, argv, iArg); 547 int iArg = 1; /* the first arg is the service name */ local 552 && (ch = RTGetOpt(cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), &iArg, &Value))) 555 default: rc = supSvcLogGetOptError("main", ch, cArgs, papszArgs, iArg, 646 int iArg = 0; local 701 int iArg = 0; local 807 int iArg = 1; local [all...] |
/vbox/src/VBox/Disassembler/testcase/ |
H A D | tstDisasm-2.cpp | 580 int iArg = GetState.iNext - 1; /** @todo Not pretty, add RTGetOptInit flag for this. */ local 581 if (iArg >= argc) 593 for ( ; iArg < argc; iArg++) 596 const char *psz = argv[iArg]; 653 for ( ; iArg < argc; iArg++) 660 rc = RTFileReadAllEx(argv[iArg], off, cbMax, RTFILE_RDALL_O_DENY_NONE, &pvFile, &cbFile); 663 RTStrmPrintf(g_pStdErr, "%s: %s: %Rrc\n", argv0, argv[iArg], rc);
|
/vbox/src/VBox/Devices/Network/testcase/ |
H A D | tstIntNet-1.cpp | 707 int iArg = 1; local
|
/vbox/src/VBox/Runtime/tools/ |
H A D | RTSignTool.cpp | 896 for (int iArg = 1; iArg < cArgs; iArg++) 897 if (RTStrSimplePatternMultiMatch(papszArgs[iArg], RTSTR_MAX, g_aCommands[iCmd].pszCmd, RTSTR_MAX, NULL)) 924 int iArg = 1; local 930 if (iArg < argc) 932 const char *pszCmd = argv[iArg]; 936 return g_aCommands[i].pfnHandler(argc - iArg, &argv[iArg]);
|
/vbox/src/VBox/ExtPacks/VBoxDTrace/ |
H A D | VBoxDTraceR0.cpp | 443 * Get argument number @a iArg @a cCallFrames call frames up the stack. 446 * @param iArg The argument to get. 449 uint64_t dtrace_getarg(int iArg, int cCallFrames) argument 452 AssertReturn(iArg >= 5, UINT64_MAX); 455 return pData->u.ProbeFireKernel.pauStackArgs[iArg - 5]; 1623 int iArg, int cFrames) 1627 LOG_DTRACE(("%s: %p / %p - %#x / %p iArg=%d cFrames=%u\n", __FUNCTION__, pProv, pProv->TracerData.DTrace.idProvider, idProbe, pvProbe, iArg, cFrames)); 1628 AssertReturn(iArg >= 5, UINT64_MAX); 1647 if (iArg > 1622 vboxDtPOps_GetArgVal(void *pvProv, dtrace_id_t idProbe, void *pvProbe, int iArg, int cFrames) argument [all...] |
/vbox/src/VBox/Additions/common/VBoxControl/ |
H A D | VBoxControl.cpp | 1932 int iArg = 1; local 1949 while (!done && (iArg < argc)) 1951 if ( !strcmp(argv[iArg], "-V") 1952 || !strcmp(argv[iArg], "-v") 1953 || !strcmp(argv[iArg], "--version") 1954 || !strcmp(argv[iArg], "-version") 1963 else if ( !strcmp(argv[iArg], "-nologo") 1964 || !strcmp(argv[iArg], "--nologo")) 1966 else if ( !strcmp(argv[iArg], "-help") 1967 || !strcmp(argv[iArg], " [all...] |
/vbox/include/VBox/ |
H A D | dbg.h | 563 * @param iArg The offending argument, -1 when lazy. 567 DECLCALLBACKMEMBER(int, pfnParserError)(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int iArg, const char *pszExpr, unsigned iLine); 803 DECLINLINE(int) DBGCCmdHlpParserError(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int iArg, const char *pszExpr, unsigned iLine) argument 805 return pCmdHlp->pfnParserError(pCmdHlp, pCmd, iArg, pszExpr, iLine); 810 #define DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, iArg, expr) \ 813 return DBGCCmdHlpParserError(pCmdHlp, pCmd, iArg, #expr, __LINE__); \
|