Lines Matching refs:cmdv
146 int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]) in var_complete() argument
154 return env_complete("", maxv, cmdv, sizeof(tmp_buf), tmp_buf); in var_complete()
157 return env_complete(argv[1], maxv, cmdv, sizeof(tmp_buf), tmp_buf); in var_complete()
164 static int complete_cmdv(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]) in complete_cmdv() argument
179 cmdv[0] = NULL; in complete_cmdv()
185 cmdv[n_found++] = "..."; in complete_cmdv()
188 cmdv[n_found++] = cmdtp->name; in complete_cmdv()
190 cmdv[n_found] = NULL; in complete_cmdv()
198 cmdv[0] = NULL; in complete_cmdv()
201 return (*cmdtp->complete)(argc, argv, last_char, maxv, cmdv); in complete_cmdv()
227 cmdv[n_found++] = "..."; in complete_cmdv()
231 cmdv[n_found++] = cmdtp->name; in complete_cmdv()
234 cmdv[n_found] = NULL; in complete_cmdv()
326 char *cmdv[20]; in cmd_auto_complete() local
350 sizeof(cmdv) / sizeof(cmdv[0]), cmdv); in cmd_auto_complete()
366 s = cmdv[0] + k; in cmd_auto_complete()
370 } else if (i > 1 && (j = find_common_prefix(cmdv)) != 0) { /* more */ in cmd_auto_complete()
374 s = cmdv[0] + k; in cmd_auto_complete()
402 print_argv(NULL, " ", " ", 78, cmdv); in cmd_auto_complete()