Searched defs:glh (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c118 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line,
201 static int _glh_cant_load_history(GlHistory *glh, const char *filename,
203 static int _glh_cant_save_history(GlHistory *glh, const char *message,
208 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node);
209 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id);
210 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line,
212 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode);
213 static int _glh_prepare_for_recall(GlHistory *glh, char *line);
252 GlHistory *glh; /* The object to be returned */ local
257 glh
348 _del_GlHistory(GlHistory *glh) argument
403 _glh_add_history(GlHistory *glh, const char *line, int force) argument
530 _glh_find_backwards(GlHistory *glh, char *line, size_t dim) argument
618 _glh_find_forwards(GlHistory *glh, char *line, size_t dim) argument
703 _glh_cancel_search(GlHistory *glh) argument
741 _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len) argument
792 _glh_oldest_line(GlHistory *glh, char *line, size_t dim) argument
865 _glh_current_line(GlHistory *glh, char *line, size_t dim) argument
917 _glh_line_id(GlHistory *glh, int offset) argument
956 _glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim) argument
1009 _glh_save_history(GlHistory *glh, const char *filename, const char *comment, int max_lines) argument
1097 _glh_cant_save_history(GlHistory *glh, const char *message, const char *filename, FILE *fp) argument
1155 _glh_load_history(GlHistory *glh, const char *filename, const char *comment, char *line, size_t dim) argument
1277 _glh_cant_load_history(GlHistory *glh, const char *filename, int lineno, const char *message, FILE *fp) argument
1389 _glh_set_group(GlHistory *glh, unsigned group) argument
1425 _glh_get_group(GlHistory *glh) argument
1458 _glh_show_history(GlHistory *glh, GlWriteFn *write_fn, void *data, const char *fmt, int all_groups, int max_lines) argument
1629 _glh_resize_history(GlHistory *glh, size_t bufsize) argument
1756 _glh_limit_history(GlHistory *glh, int max_lines) argument
1803 _glh_clear_history(GlHistory *glh, int all_groups) argument
1881 _glh_toggle_history(GlHistory *glh, int enable) argument
1896 _glh_discard_line(GlHistory *glh, GlhLineNode *node) argument
1955 _glh_lookup_history(GlHistory *glh, GlhLineID id, const char **line, unsigned *group, time_t *timestamp) argument
2022 _glh_find_id(GlHistory *glh, GlhLineID id) argument
2073 _glh_state_of_history(GlHistory *glh, int *enabled, unsigned *group, int *max_lines) argument
2103 _glh_range_of_history(GlHistory *glh, unsigned long *oldest, unsigned long *newest, int *nlines) argument
2127 _glh_size_of_history(GlHistory *glh, size_t *buff_size, size_t *buff_used) argument
2151 _glh_last_error(GlHistory *glh) argument
2169 _glh_acquire_copy(GlHistory *glh, const char *line, size_t n) argument
2261 _glh_discard_copy(GlHistory *glh, GlhHashNode *hnode) argument
2331 glh_find_bucket(GlHistory *glh, const char *line, size_t n) argument
2497 _glh_prepare_for_recall(GlHistory *glh, char *line) argument
2538 _glh_search_active(GlHistory *glh) argument
[all...]
H A Dgetline.c367 GlHistory *glh; /* The line-history buffer */ member in struct:GetLine
1749 gl->glh = NULL;
1887 gl->glh = _new_GlHistory(histlen);
1888 if(!gl->glh)
2055 gl->glh = _del_GlHistory(gl->glh);
5246 if(_glh_search_prefix(gl->glh, gl->line, 0)) {
5247 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
5255 if(_glh_find_backwards(gl->glh, gl->line, gl->linelen+1) == NULL)
5257 while(--count && _glh_find_backwards(gl->glh, g
[all...]

Completed in 115 milliseconds