Lines Matching refs:cmd_history
64 bcopy(cmd->cmd_history, newhistory, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_allocchunk()
65 mdb_free(cmd->cmd_history, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_allocchunk()
68 cmd->cmd_history = newhistory; in mdb_cmdbuf_allocchunk()
80 cmd->cmd_history = mdb_alloc(cmd->cmd_halloc * sizeof (char *), in mdb_cmdbuf_create()
85 cmd->cmd_history[i] = mdb_alloc(CMDBUF_LINELEN, UM_SLEEP); in mdb_cmdbuf_create()
87 cmd->cmd_buf = cmd->cmd_history[0]; in mdb_cmdbuf_create()
104 mdb_free(cmd->cmd_history[i], CMDBUF_LINELEN); in mdb_cmdbuf_destroy()
107 mdb_free(cmd->cmd_history, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_destroy()
178 cmd->cmd_history[lastidx]) == 0; in mdb_cmdbuf_accept()
190 cmd->cmd_buf = cmd->cmd_history[cmd->cmd_hnew]; in mdb_cmdbuf_accept()
447 (void) strcpy(cmd->cmd_buf, cmd->cmd_history[cmd->cmd_hcur]); in mdb_cmdbuf_prevhist()
468 cmd->cmd_history[cmd->cmd_hcur]); in mdb_cmdbuf_nexthist()
496 if (strstr(cmd->cmd_history[i], cmd->cmd_linebuf) != NULL) { in mdb_cmdbuf_findhist()
497 (void) strcpy(cmd->cmd_buf, cmd->cmd_history[i]); in mdb_cmdbuf_findhist()