Lines Matching refs:argc
29 static void ServiceControlUsage(BShellHandle shell, int argc, char **argv)
31 BShellCmdHelp(shell, argc, argv);
35 static int main_cmd(BShellHandle shell, int argc, char **argv)
37 if (argc < SERVICE_START_NUMBER) {
38 ServiceControlUsage(shell, argc, argv);
42 ServiceControlWithExtra(argv[1], 0, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_START_NUMBER);
44 ServiceControlWithExtra(argv[1], 1, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_START_NUMBER);
46 ServiceControlWithExtra(argv[1], 0, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_START_NUMBER);
48 ServiceControlWithExtra(argv[1], 1, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_START_NUMBER);
50 if (argc <= SERVICE_START_NUMBER) {
51 ServiceControlUsage(shell, argc, argv);
64 ServiceControlUsage(shell, argc, argv);