Searched refs:cmd_halloc (Results 1 – 2 of 2) sorted by relevance
61 ssize_t newhalloc = cmd->cmd_halloc + MDB_DEF_HISTLEN; in mdb_cmdbuf_allocchunk()66 bcopy(cmd->cmd_history, newhistory, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_allocchunk()67 mdb_free(cmd->cmd_history, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_allocchunk()68 for (i = cmd->cmd_halloc; i < newhalloc; i++) in mdb_cmdbuf_allocchunk()71 cmd->cmd_halloc = newhalloc; in mdb_cmdbuf_allocchunk()79 cmd->cmd_halloc = MDB_DEF_HISTLEN < mdb.m_histlen ? in mdb_cmdbuf_create()82 cmd->cmd_history = mdb_alloc(cmd->cmd_halloc * sizeof (char *), in mdb_cmdbuf_create()86 for (i = 0; i < cmd->cmd_halloc; i++) in mdb_cmdbuf_create()105 for (i = 0; i < cmd->cmd_halloc; i++) in mdb_cmdbuf_destroy()109 mdb_free(cmd->cmd_history, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_destroy()[all …]
43 size_t cmd_halloc; /* Number of allocated history entries */ member