Searched refs:cmd_bufidx (Results 1 – 3 of 3) sorted by relevance
49 bcopy(&cmd->cmd_buf[cmd->cmd_bufidx], in cmdbuf_shiftr()50 &cmd->cmd_buf[cmd->cmd_bufidx + nbytes], in cmdbuf_shiftr()51 cmd->cmd_buflen - cmd->cmd_bufidx); in cmdbuf_shiftr()91 cmd->cmd_bufidx = 0; in mdb_cmdbuf_create()119 return (cmd->cmd_bufidx == 0); in mdb_cmdbuf_atstart()125 return (cmd->cmd_bufidx == cmd->cmd_buflen); in mdb_cmdbuf_atend()135 if (cmd->cmd_buflen != cmd->cmd_bufidx) in mdb_cmdbuf_insert()139 cmd->cmd_buf[cmd->cmd_bufidx++] = ' '; in mdb_cmdbuf_insert()152 if (cmd->cmd_buflen != cmd->cmd_bufidx) in mdb_cmdbuf_insert()155 cmd->cmd_buf[cmd->cmd_bufidx++] = (char)c; in mdb_cmdbuf_insert()[all …]
43 size_t cmd_bufidx; /* Byte position in current line buffer */ member
1083 size_t tipos = td->tio_cmdbuf.cmd_bufidx + td->tio_promptlen; in termio_mvcur()1792 buf = mdb_alloc(td->tio_cmdbuf.cmd_bufidx + 1, UM_SLEEP | UM_GC); in termio_tab()1793 (void) strncpy(buf, td->tio_cmdbuf.cmd_buf, td->tio_cmdbuf.cmd_bufidx); in termio_tab()1794 buf[td->tio_cmdbuf.cmd_bufidx] = '\0'; in termio_tab()