Home
last modified time | relevance | path

Searched refs:glh (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c116 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line,
199 static int _glh_cant_load_history(GlHistory *glh, const char *filename,
201 static int _glh_cant_save_history(GlHistory *glh, const char *message,
206 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node);
207 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id);
208 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line,
210 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode);
211 static int _glh_prepare_for_recall(GlHistory *glh, char *line);
250 GlHistory *glh; /* The object to be returned */ in _new_GlHistory() local
255 glh = (GlHistory *) malloc(sizeof(GlHistory)); in _new_GlHistory()
[all …]
H A Dhistory.h51 GlHistory *_del_GlHistory(GlHistory *glh);
53 int _glh_add_history(GlHistory *glh, const char *line, int force);
55 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len);
57 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim);
58 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim);
60 int _glh_cancel_search(GlHistory *glh);
62 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim);
63 char *_glh_current_line(GlHistory *glh, char *line, size_t dim);
77 GlhLineID _glh_line_id(GlHistory *glh, int offset);
83 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim);
[all …]
H A Dgetline.c366 GlHistory *glh; /* The line-history buffer */ member
1748 gl->glh = NULL; in new_GetLine()
1886 gl->glh = _new_GlHistory(histlen); in new_GetLine()
1887 if(!gl->glh) in new_GetLine()
2054 gl->glh = _del_GlHistory(gl->glh); in del_GetLine()
5245 if(_glh_search_prefix(gl->glh, gl->line, 0)) { in KT_KEY_FN()
5246 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG); in KT_KEY_FN()
5254 if(_glh_find_backwards(gl->glh, gl->line, gl->linelen+1) == NULL) in KT_KEY_FN()
5256 while(--count && _glh_find_backwards(gl->glh, gl->line, gl->linelen+1)) in KT_KEY_FN()
5292 if(_glh_line_id(gl->glh, 0) == 0 && gl->preload_id) { in KT_KEY_FN()
[all …]
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dmanifest-import123 glh=`/usr/bin/svcprop -p ${gln}/md5sum smf/manifest 2>/dev/null`
124 [ $? = 0 ] || glh=""
152 [ -n "$glh" ] && {
153 echo "Preserving generic_limited hash ($glh)."
156 opaque: $glh