/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...] |
/vbox/src/VBox/ValidationKit/testanalysis/ |
H A D | tst-a1.py | 62 iArg = 1; 63 while iArg < len(asArgs): 64 if asArgs[iArg] == '--filter': 65 iArg += 1; 66 asFilters.append(asArgs[iArg]); 67 elif asArgs[iArg].startswith('--help'): 69 elif asArgs[iArg].startswith('--'): 70 print 'syntax error: unknown option "%s"' % (asArgs[iArg]); 73 sTestFile = asArgs[iArg]; 75 sBaseFile = asArgs[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/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/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/Frontends/VBoxAutostart/ |
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...] |
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.h | 274 * @param iArg The argument index. 277 DECLHIDDEN(RTEXITCODE) autostartSvcLogGetOptError(const char *pszAction, int rc, int argc, char **argv, int iArg, PCRTGETOPTUNION pValue); 286 * @param iArg The argument index. 288 DECLHIDDEN(RTEXITCODE) autostartSvcLogTooManyArgsError(const char *pszAction, int argc, char **argv, int iArg); 314 * @param iArg The argument index. 317 DECLHIDDEN(RTEXITCODE) autostartSvcDisplayGetOptError(const char *pszAction, int rc, int argc, char **argv, int iArg, PCRTGETOPTUNION pValue); 326 * @param iArg The argument index. 328 DECLHIDDEN(RTEXITCODE) autostartSvcDisplayTooManyArgsError(const char *pszAction, int argc, char **argv, int iArg);
|
/vbox/src/VBox/ValidationKit/tests/selftests/ |
H A D | tdSelfTest4.py | 60 def parseOption(self, asArgs, iArg): 61 if asArgs[iArg] == '--test': 62 iArg = self.requireMoreArgs(1, asArgs, iArg); 63 if asArgs[iArg] not in self.kasValidTests: 65 % (asArgs[iArg], ', '.join(self.kasValidTests),)); 66 self.sOptWhich = asArgs[iArg]; 68 return TestDriverBase.parseOption(self, asArgs, iArg); 69 return iArg + 1;
|
/vbox/src/VBox/ValidationKit/tests/shutdown/ |
H A D | tdGuestOsShutdown1.py | 122 def parseOption(self, asArgs, iArg): 126 if asArgs[iArg] == '--boot-hdd': 127 iArg += 1 128 if iArg >= len(asArgs): raise base.InvalidOption('The "--boot-hdd" option requires an argument') 129 self.sHddName = asArgs[iArg] 131 elif asArgs[iArg] == '--cpus': 132 iArg += 1 133 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpus" option requires an argument') 134 self.cCpus = int(asArgs[iArg]) 135 elif asArgs[iArg] [all...] |
/vbox/src/VBox/ValidationKit/tests/installation/ |
H A D | tdGuestOsInstOs2.py | 111 def parseOption(self, asArgs, iArg): 115 if asArgs[iArg] == '--install-iso': 116 iArg += 1 117 if iArg >= len(asArgs): raise base.InvalidOption('The "--install-iso" option requires an argument') 118 self.sIso = asArgs[iArg] 119 elif asArgs[iArg] == '--cpus': 120 iArg += 1 121 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpus" option requires an argument') 122 self.cCpus = int(asArgs[iArg]) 123 elif asArgs[iArg] [all...] |
H A D | tdGuestOsInstTest1.py | 318 def parseOption(self, asArgs, iArg): 325 elif asArgs[iArg] == '--ioapic': 328 elif asArgs[iArg] == '--no-ioapic': 331 elif asArgs[iArg] == '--pae': 334 elif asArgs[iArg] == '--no-pae': 337 elif asArgs[iArg] == '--ram-adjust': 338 iArg = self.requireMoreArgs(1, asArgs, iArg); 340 oTestVm.iOptRamAdjust = int(asArgs[iArg]); 341 elif asArgs[iArg] [all...] |
/vbox/src/VBox/ValidationKit/tests/storage/ |
H A D | tdStorageStress1.py | 127 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 128 if asArgs[iArg] == '--virt-modes': 129 iArg += 1; 130 if iArg >= len(asArgs): raise base.InvalidOption('The "--virt-modes" takes a colon separated list of modes'); 131 self.asVirtModes = asArgs[iArg].split(':'); 136 elif asArgs[iArg] == '--cpu-counts': 137 iArg += 1; 138 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpu-counts" takes a colon separated list of cpu counts'); 140 for s in asArgs[iArg].split(':'): 145 elif asArgs[iArg] [all...] |
H A D | tdStorageBenchmark1.py | 295 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 296 if asArgs[iArg] == '--virt-modes': 297 iArg += 1; 298 if iArg >= len(asArgs): raise base.InvalidOption('The "--virt-modes" takes a colon separated list of modes'); 299 self.asVirtModes = asArgs[iArg].split(':'); 304 elif asArgs[iArg] == '--cpu-counts': 305 iArg += 1; 306 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpu-counts" takes a colon separated list of cpu counts'); 308 for s in asArgs[iArg].split(':'): 313 elif asArgs[iArg] [all...] |
H A D | tdStorageSnapshotMerging1.py | 103 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 104 if asArgs[iArg] == '--storage-ctrls': 105 iArg += 1; 106 if iArg >= len(asArgs): 108 self.asStorageCtrls = asArgs[iArg].split(':'); 109 elif asArgs[iArg] == '--disk-formats': 110 iArg += 1; 111 if iArg >= len(asArgs): raise base.InvalidOption('The "--disk-formats" takes a colon separated list of disk formats'); 112 self.asDiskFormats = asArgs[iArg].split(':'); 113 elif asArgs[iArg] [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 | SUPSvcInternal.h | 42 int supSvcLogGetOptError(const char *pszAction, int rc, int argc, char **argv, int iArg, PCRTOPTIONUNION pValue); 43 int supSvcLogTooManyArgsError(const char *pszAction, int argc, char **argv, int iArg); 46 int supSvcDisplayGetOptError(const char *pszAction, int rc, int argc, char **argv, int iArg, PCRTOPTIONUNION pValue); 47 int supSvcDisplayTooManyArgsError(const char *pszAction, int argc, char **argv, int iArg);
|
/vbox/src/VBox/ValidationKit/tests/usb/ |
H A D | tdUsb1.py | 124 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 125 if asArgs[iArg] == '--virt-modes': 126 iArg += 1; 127 if iArg >= len(asArgs): raise base.InvalidOption('The "--virt-modes" takes a colon separated list of modes'); 128 self.asVirtModes = asArgs[iArg].split(':'); 133 elif asArgs[iArg] == '--cpu-counts': 134 iArg += 1; 135 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpu-counts" takes a colon separated list of cpu counts'); 137 for s in asArgs[iArg].split(':'): 142 elif asArgs[iArg] [all...] |
/vbox/src/VBox/ValidationKit/tests/network/ |
H A D | tdNetBenchmark1.py | 132 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 133 if asArgs[iArg] == '--remote-host': 134 iArg += 1; 135 if iArg >= len(asArgs): raise base.InvalidOption('The "--remote-host" takes an IP address or a hostname'); 136 self.sRemoteName = asArgs[iArg]; 137 elif asArgs[iArg] == '--local-host': 138 iArg += 1; 139 if iArg >= len(asArgs): raise base.InvalidOption('The "--local-host" takes an IP address or a hostname'); 140 self.sLocalName = asArgs[iArg]; 141 elif asArgs[iArg] [all...] |
/vbox/src/VBox/ValidationKit/tests/smoketests/ |
H A D | tdSmokeTest1.py | 76 def parseOption(self, asArgs, iArg): 77 if asArgs[iArg] == '--nic-attachment': 78 iArg += 1; 79 if iArg >= len(asArgs): raise base.InvalidOption('The "--nic-attachment" takes an argument'); 80 self.sNicAttachment = asArgs[iArg]; 84 elif asArgs[iArg] == '--quick': 105 return vbox.TestDriver.parseOption(self, asArgs, iArg); 106 return iArg + 1;
|
/vbox/src/VBox/ValidationKit/tests/cpu/ |
H A D | tdCpuPae1.py | 107 def parseOption(self, asArgs, iArg): 108 if asArgs[iArg] == '--virt-modes': 109 iArg += 1; 110 if iArg >= len(asArgs): raise base.InvalidOption('The "--virt-modes" takes a colon separated list of modes'); 111 self.asVirtModes = asArgs[iArg].split(':'); 116 elif asArgs[iArg] == '--cpu-counts': 117 iArg += 1; 118 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpu-counts" takes a colon separated list of cpu counts'); 120 for s in asArgs[iArg].split(':'): 125 elif asArgs[iArg] [all...] |
/vbox/src/VBox/ValidationKit/tests/additions/ |
H A D | tdAddBasic1.py | 83 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 84 if asArgs[iArg] == '--tests': 85 iArg += 1; 86 if iArg >= len(asArgs): raise base.InvalidOption('The "--tests" takes a colon separated list of tests'); 87 self.asTests = asArgs[iArg].split(':'); 93 elif asArgs[iArg] == '--quick': 98 return vbox.TestDriver.parseOption(self, asArgs, iArg); 99 return iArg + 1;
|
/vbox/src/VBox/Debugger/ |
H A D | DBGCCommands.cpp | 758 for (unsigned iArg = 0; iArg < cArgs; iArg++) 760 AssertReturn(paArgs[iArg].enmType == DBGCVAR_TYPE_STRING, VERR_DBGC_PARSE_BUG); 761 const char *pszPattern = paArgs[iArg].u.pszString; 814 if (cHits == cPrevHits && strlen(paArgs[iArg].u.pszString) < sizeof(g_aDbgcOps[0].szName)) 829 paArgs[iArg].u.pszString); 1243 for (unsigned iArg = 0; iArg < cArgs; iArg [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/VBox/ValidationKit/tests/teleportation/ |
H A D | tdTeleportLocal1.py | 96 def parseOption(self, asArgs, iArg): 97 if asArgs[iArg] == '--virt-modes': 98 iArg += 1; 99 if iArg >= len(asArgs): raise base.InvalidOption('The "--virt-modes" takes a colon separated list of modes'); 100 self.asVirtModes = asArgs[iArg].split(':'); 105 elif asArgs[iArg] == '--cpu-counts': 106 iArg += 1; 107 if iArg >= len(asArgs): raise base.InvalidOption('The "--cpu-counts" takes a colon separated list of cpu counts'); 109 for s in asArgs[iArg].split(':'): 114 elif asArgs[iArg] [all...] |