Home
last modified time | relevance | path

Searched refs:hist_ptr (Results 1 – 19 of 19) sorted by relevance

/titanic_44/usr/src/lib/libshell/common/edit/
H A Dhistory.c126 static History_t *hist_ptr; variable
239 if(shp->hist_ptr=hist_ptr) in sh_histinit()
256 shp->hist_ptr = hist_ptr = hp; in sh_histinit()
315 shp->hist_ptr = hist_ptr = hp; in sh_histinit()
423 hist_ptr = 0; in hist_close()
424 shp->hist_ptr = 0; in hist_close()
490 hist_ptr = 0; in hist_trim()
499 return hist_ptr = hist_old; in hist_trim()
501 hist_new = hist_ptr; in hist_trim()
502 hist_ptr = hist_old; in hist_trim()
[all …]
H A Dhexpand.c304 hl = hist_find(sh.hist_ptr, str,
305 sh.hist_ptr->histind,
313 n = sh.hist_ptr->histind + n;
315 if(n > 0 && hist_seek(sh.hist_ptr, n) != -1)
316 ref = sh.hist_ptr->histfp;
H A Dcompletion.c537 if(!sh.hist_ptr) in ed_fulledit()
548 sfwrite(sh.hist_ptr->histfp,(char*)ep->e_inbuf,ep->e_eol+1); in ed_fulledit()
550 hist_flush(sh.hist_ptr); in ed_fulledit()
H A Demacs.c264 location = hist_locate(sh.hist_ptr,location.hist_command,location.hist_line,1); in ed_emacsread()
646 location = hist_locate(sh.hist_ptr,hline,hloff,count); in ed_emacsread()
1244 location = hist_find(sh.hist_ptr,(char*)lstring,hline,1,direction); in search()
H A Dedit.c618 if(shp->hist_ptr) in ed_setup()
620 register History_t *hp = shp->hist_ptr; in ed_setup()
H A Dvi.c2188 location = hist_find(sh.hist_ptr,((char*)virtual)+1, curhline, 1, new_direction); in search()
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dmain.c441 hist_flush(shp->hist_ptr); in exfile()
527 if(shp->hist_ptr) in exfile()
528 hist_eof(shp->hist_ptr); in exfile()
572 if(sh_isstate(SH_INTERACTIVE) && shp->hist_ptr) in exfile()
575 hist_eof(shp->hist_ptr); in exfile()
586 if(sh_isstate(SH_INTERACTIVE) && shp->hist_ptr) in exfile()
587 hist_flush(shp->hist_ptr); in exfile()
H A Djobs.c911 hist_list(sh.hist_ptr,outfile,pw->p_name,0,";"); in job_list()
1056 if(!sh.hist_ptr) in job_byname()
1062 if(hist_match(sh.hist_ptr,pw->p_name,cp,flag)>=0) in job_byname()
1130 register History_t *hp = sh.hist_ptr; in job_post()
1209 pw->p_name=hist_tell(sh.hist_ptr,(int)hp->histind-1); in job_post()
1527 hist_list(sh.hist_ptr,outfile,pw->p_name,'&',";"); in job_switch()
H A Dpath.c1306 if(shp->hist_ptr && (path=nv_getval(HISTFILE)) && strcmp(path,shp->hist_ptr->histname)) in exscript()
1308 hist_close(shp->hist_ptr); in exscript()
H A Dxec.c505 if((mode&~SH_FUNEVAL) && shp->hist_ptr) in sh_eval()
507 hist_flush(shp->hist_ptr); in sh_eval()
1024 if(shp->hist_ptr && item->strm == shp->hist_ptr->histfp) in sh_exec()
1025 hist_close(shp->hist_ptr); in sh_exec()
H A Dio.c1902 sfprintf(sfstderr,"%d", sh.hist_ptr?(int)sh.hist_ptr->histind:++cmdno); in io_prompt()
2342 fd = sffileno(shp->hist_ptr->histfp); in sh_iogetiop()
H A Dinit.c236 void *histopen = shp->hist_ptr; in put_history()
244 hist_close(shp->hist_ptr); in put_history()
H A Dlex.c191 if(sh_isstate(SH_HISTORY) && shp->hist_ptr) in lex_advance()
192 log = shp->hist_ptr->histfp; in lex_advance()
H A Dparse.c754 if(sh_isstate(SH_HISTORY) && shp->hist_ptr) in funct()
755 t->funct.functloc = sfseek(shp->hist_ptr->histfp,(off_t)0,SEEK_CUR); in funct()
/titanic_44/usr/src/lib/libshell/common/bltins/
H A Dhist.c61 hp = shp->hist_ptr; in b_hist()
205 hist_list(shp->hist_ptr,outfile,hist_tell(shp->hist_ptr,range[flag]),0,arg); in b_hist()
H A Dread.c453 if((flags&S_FLAG) && !shp->hist_ptr) in sh_readline()
456 if(!shp->hist_ptr) in sh_readline()
469 sfwrite(shp->hist_ptr->histfp,(char*)cp,c); in sh_readline()
570 sfwrite(shp->hist_ptr->histfp,(char*)cp,c); in sh_readline()
724 hist_flush(shp->hist_ptr); in sh_readline()
H A Dprint.c184 fd = sffileno(shp->hist_ptr->histfp); in b_print()
200 …se if(!(sh.inuse_bits&(1<<fd)) && (sh_inuse(fd) || (shp->hist_ptr && fd==sffileno(shp->hist_ptr->h… in b_print()
322 hist_flush(shp->hist_ptr); in b_print()
H A Dtypeset.c1093 else if(tp->sh->hist_ptr) in print_namval()
1094 iop = (tp->sh->hist_ptr)->histfp; in print_namval()
/titanic_44/usr/src/lib/libshell/common/include/
H A Ddefs.h222 History_t *hist_ptr; \