Searched refs:glh (Results 1 – 4 of 4) sorted by relevance
/titanic_44/usr/src/lib/libtecla/common/ |
H A D | history.c | 118 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 */ in _new_GlHistory() local 257 glh = (GlHistory *) malloc(sizeof(GlHistory)); in _new_GlHistory() [all …]
|
H A D | history.h | 53 GlHistory *_del_GlHistory(GlHistory *glh); 55 int _glh_add_history(GlHistory *glh, const char *line, int force); 57 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len); 59 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim); 60 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim); 62 int _glh_cancel_search(GlHistory *glh); 64 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim); 65 char *_glh_current_line(GlHistory *glh, char *line, size_t dim); 79 GlhLineID _glh_line_id(GlHistory *glh, int offset); 85 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim); [all …]
|
H A D | getline.c | 367 GlHistory *glh; /* The line-history buffer */ member 1749 gl->glh = NULL; in new_GetLine() 1887 gl->glh = _new_GlHistory(histlen); in new_GetLine() 1888 if(!gl->glh) in new_GetLine() 2055 gl->glh = _del_GlHistory(gl->glh); in del_GetLine() 5246 if(_glh_search_prefix(gl->glh, gl->line, 0)) { in KT_KEY_FN() 5247 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG); in KT_KEY_FN() 5255 if(_glh_find_backwards(gl->glh, gl->line, gl->linelen+1) == NULL) in KT_KEY_FN() 5257 while(--count && _glh_find_backwards(gl->glh, gl->line, gl->linelen+1)) in KT_KEY_FN() 5293 if(_glh_line_id(gl->glh, 0) == 0 && gl->preload_id) { in KT_KEY_FN() [all …]
|
/titanic_44/usr/src/cmd/svc/milestone/ |
H A D | manifest-import | 126 glh=`/usr/bin/svcprop -p ${gln}/md5sum smf/manifest 2>/dev/null` 127 [ $? = 0 ] || glh="" 155 [ -n "$glh" ] && { 156 echo "Preserving generic_limited hash ($glh)." 159 opaque: $glh
|