Home
last modified time | relevance | path

Searched refs:cmd_bufidx (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_cmdbuf.c51 bcopy(&cmd->cmd_buf[cmd->cmd_bufidx], in cmdbuf_shiftr()
52 &cmd->cmd_buf[cmd->cmd_bufidx + nbytes], in cmdbuf_shiftr()
53 cmd->cmd_buflen - cmd->cmd_bufidx); in cmdbuf_shiftr()
93 cmd->cmd_bufidx = 0; in mdb_cmdbuf_create()
121 return (cmd->cmd_bufidx == 0); in mdb_cmdbuf_atstart()
127 return (cmd->cmd_bufidx == cmd->cmd_buflen); in mdb_cmdbuf_atend()
137 if (cmd->cmd_buflen != cmd->cmd_bufidx) in mdb_cmdbuf_insert()
141 cmd->cmd_buf[cmd->cmd_bufidx++] = ' '; in mdb_cmdbuf_insert()
154 if (cmd->cmd_buflen != cmd->cmd_bufidx) in mdb_cmdbuf_insert()
157 cmd->cmd_buf[cmd->cmd_bufidx++] = (char)c; in mdb_cmdbuf_insert()
[all …]
H A Dmdb_cmdbuf.h45 size_t cmd_bufidx; /* Byte position in current line buffer */ member
H A Dmdb_termio.c1016 size_t tipos = td->tio_cmdbuf.cmd_bufidx + td->tio_promptlen; in termio_mvcur()
1642 buf = mdb_alloc(td->tio_cmdbuf.cmd_bufidx + 1, UM_SLEEP | UM_GC); in termio_tab()
1643 (void) strncpy(buf, td->tio_cmdbuf.cmd_buf, td->tio_cmdbuf.cmd_bufidx); in termio_tab()
1644 buf[td->tio_cmdbuf.cmd_bufidx] = '\0'; in termio_tab()