Home
last modified time | relevance | path

Searched refs:cmd_hcur (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_cmdbuf.c94 cmd->cmd_hcur = 0; in mdb_cmdbuf_create()
191 cmd->cmd_hcur = cmd->cmd_hnew; in mdb_cmdbuf_accept()
199 cmd->cmd_hcur = cmd->cmd_hnew; in mdb_cmdbuf_accept()
438 if (cmd->cmd_hcur != cmd->cmd_hold) { in mdb_cmdbuf_prevhist()
439 if (cmd->cmd_hcur-- == cmd->cmd_hnew) { in mdb_cmdbuf_prevhist()
444 if (cmd->cmd_hcur < 0) in mdb_cmdbuf_prevhist()
445 cmd->cmd_hcur = cmd->cmd_halloc - 1; in mdb_cmdbuf_prevhist()
447 (void) strcpy(cmd->cmd_buf, cmd->cmd_history[cmd->cmd_hcur]); in mdb_cmdbuf_prevhist()
461 if (cmd->cmd_hcur != cmd->cmd_hnew) { in mdb_cmdbuf_nexthist()
462 cmd->cmd_hcur = (cmd->cmd_hcur + 1) % cmd->cmd_halloc; in mdb_cmdbuf_nexthist()
[all …]
H A Dmdb_cmdbuf.h46 ssize_t cmd_hcur; /* Current history entry index */ member