Searched refs:cmd_halloc (Results 1 – 2 of 2) sorted by relevance
59 ssize_t newhalloc = cmd->cmd_halloc + MDB_DEF_HISTLEN; in mdb_cmdbuf_allocchunk()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()66 for (i = cmd->cmd_halloc; i < newhalloc; i++) in mdb_cmdbuf_allocchunk()69 cmd->cmd_halloc = newhalloc; in mdb_cmdbuf_allocchunk()77 cmd->cmd_halloc = MDB_DEF_HISTLEN < mdb.m_histlen ? in mdb_cmdbuf_create()80 cmd->cmd_history = mdb_alloc(cmd->cmd_halloc * sizeof (char *), in mdb_cmdbuf_create()84 for (i = 0; i < cmd->cmd_halloc; i++) in mdb_cmdbuf_create()103 for (i = 0; i < cmd->cmd_halloc; i++) in mdb_cmdbuf_destroy()107 mdb_free(cmd->cmd_history, cmd->cmd_halloc * sizeof (char *)); in mdb_cmdbuf_destroy()[all …]
41 size_t cmd_halloc; /* Number of allocated history entries */ member