Lines Matching refs:argc
35 static int HandleCmd(BShellHandle shell, const char *cmdName, int argc, char **argv) in HandleCmd() argument
38 BSH_LOGI("initCmd %s argc %d", cmdName, argc); in HandleCmd()
40 if (argc == 0) { in HandleCmd()
46 for (int i = 0; i < argc; i++) { in HandleCmd()
55 static int SetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in SetInitLogLevelFromParam() argument
57 if (argc != 2) { // 2 is set log level parameter number in SetInitLogLevelFromParam()
70 int ret = HandleCmd(shell, "setloglevel", argc - 1, &argv[1]); in SetInitLogLevelFromParam()
82 static int32_t GetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in GetInitLogLevelFromParam() argument
92 static int32_t GetUidByName(BShellHandle shell, int argc, char **argv) in GetUidByName() argument
94 if (argc != 2) { // 2 is dac get uid parameter number in GetUidByName()
129 static int32_t GetGidByName(BShellHandle shell, int argc, char **argv) in GetGidByName() argument
131 if (argc != 2) { // 2 is dac get gid parameter number in GetGidByName()