Lines Matching defs:argc

207 static int32_t BShellParamCmdLs(BShellHandle shell, int32_t argc, char *argv[])
212 for (int32_t i = 1; i < argc; i++) {
254 static int32_t BShellParamCmdCat(BShellHandle shell, int32_t argc, char *argv[])
257 BSH_CHECK(argc >= 1, return BSH_CMD_PARAM_INVALID, "Invalid shell env");
267 static int32_t BShellParamCmdCd(BShellHandle shell, int32_t argc, char *argv[])
270 BSH_CHECK(argc >= 1, return BSH_CMD_PARAM_INVALID, "Invalid shell env");
287 static int32_t BShellParamCmdGet(BShellHandle shell, int32_t argc, char *argv[])
290 BSH_CHECK(argc >= 1, return BSH_CMD_PARAM_INVALID, "Invalid shell env");
294 char *realParameter = GetRealParameter(shell, (argc == 1) ? "" : argv[1], buffer, buffSize);
295 if ((argc == 1) || (realParameter == NULL) ||
315 static int32_t BShellParamCmdSet(BShellHandle shell, int32_t argc, char *argv[])
318 if (argc < 3) { // 3 min param
339 static int32_t BShellParamCmdSave(BShellHandle shell, int32_t argc, char *argv[])
342 BSH_CHECK(argc == 1, return BSH_CMD_PARAM_INVALID, "Invalid shell env");
353 static int32_t BShellParamCmdWait(BShellHandle shell, int32_t argc, char *argv[])
356 if (argc < 2) { // 2 min param
363 if (argc > 2) { // 2 value param
366 if (argc > 3) { // 3 timeout param
386 static int32_t BShellParamCmdDump(BShellHandle shell, int32_t argc, char *argv[])
389 if (argc >= 2) { // 2 min parameter
402 static int32_t BShellParamCmdPwd(BShellHandle shell, int32_t argc, char *argv[])
411 static void GetUserInfo(ParamShellExecArgs *execArg, int32_t argc, char *argv[])
415 while (i < argc) {
416 if (strcmp(argv[i], "-p") == 0 && ((i + 1) < argc)) {
419 } else if (strcmp(argv[i], "-u") == 0 && ((i + 1) < argc)) {
423 } else if (strcmp(argv[i], "-g") == 0 && ((i + 1) < argc)) {
441 if (execArg->parameter != NULL) { // 2 min argc
465 static int32_t BShellParamCmdShell(BShellHandle shell, int32_t argc, char *argv[])
475 GetUserInfo(&args, argc, argv);
476 BSH_LOGV("BShellParamCmdShell %s %d %d argc %d", args.parameter, args.uid, args.gid, argc);