Lines Matching refs:cmdline
213 static void readline_hist_add(ReadLineState *rs, const char *cmdline)
218 if (cmdline[0] == '\0')
225 if (strcmp(hist_entry, cmdline) == 0) {
229 /* Search cmdline in history buffers */
234 if (strcmp(hist_entry, cmdline) == 0) {
257 new_entry = strdup(cmdline);
280 char *cmdline;
284 cmdline = qemu_malloc(rs->cmd_buf_index + 1);
285 memcpy(cmdline, rs->cmd_buf, rs->cmd_buf_index);
286 cmdline[rs->cmd_buf_index] = '\0';
287 rs->completion_finder(cmdline);
288 qemu_free(cmdline);