/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 126 static History_t *hist_ptr; variable 238 if(shgd->hist_ptr=hist_ptr) in sh_histinit() 255 shgd->hist_ptr = hist_ptr = hp; in sh_histinit() 314 shgd->hist_ptr = hist_ptr = hp; in sh_histinit() 423 hist_ptr = 0; in hist_close() 424 shgd->hist_ptr = 0; in hist_close() 493 hist_ptr = 0; in hist_trim() 502 return hist_ptr = hist_old; in hist_trim() 504 hist_new = hist_ptr; in hist_trim() 505 hist_ptr = hist_old; in hist_trim() [all …]
|
H A D | hexpand.c | 306 hl = hist_find(shgd->hist_ptr, str, 307 shgd->hist_ptr->histind, 315 n = shgd->hist_ptr->histind + n; 317 if(n > 0 && hist_seek(shgd->hist_ptr, n) != -1) 318 ref = shgd->hist_ptr->histfp;
|
H A D | completion.c | 555 if(!shgd->hist_ptr) in ed_fulledit() 566 sfwrite(shgd->hist_ptr->histfp,(char*)ep->e_inbuf,ep->e_eol+1); in ed_fulledit() 568 hist_flush(shgd->hist_ptr); in ed_fulledit()
|
H A D | edit.c | 626 if(shp->gd->hist_ptr) in ed_setup() 628 register History_t *hp = shp->gd->hist_ptr; in ed_setup() 1667 if(!(hp=ep->sh->gd->hist_ptr) && (!nv_getval(HISTFILE) || !sh_histinit(ep->sh))) 1677 hp = ep->sh->gd->hist_ptr;
|
H A D | emacs.c | 267 location = hist_locate(shgd->hist_ptr,location.hist_command,location.hist_line,1); in ed_emacsread() 680 location = hist_locate(shgd->hist_ptr,hline,hloff,count); in ed_emacsread() 1312 location = hist_find(shgd->hist_ptr,(char*)lstring,hline,1,direction); in search()
|
H A D | vi.c | 2283 location = hist_find(shgd->hist_ptr,((char*)virtual)+1, curhline, 1, new_direction); in search()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 429 hist_flush(shp->gd->hist_ptr); in exfile() 518 if(shp->gd->hist_ptr) in exfile() 519 hist_eof(shp->gd->hist_ptr); in exfile() 563 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 566 hist_eof(shp->gd->hist_ptr); in exfile() 577 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 578 hist_flush(shp->gd->hist_ptr); in exfile()
|
H A D | jobs.c | 1071 hist_list(shgd->hist_ptr,outfile,pw->p_name,0,";"); in job_list() 1278 if(!shgd->hist_ptr) in job_byname() 1284 if(hist_match(shgd->hist_ptr,pw->p_name,cp,flag)>=0) in job_byname() 1353 register History_t *hp = shp->gd->hist_ptr; in job_post() 1446 pw->p_name=hist_tell(shgd->hist_ptr,(int)hp->histind-1); in job_post() 1773 hist_list(shgd->hist_ptr,outfile,pw->p_name,'&',";"); in job_switch()
|
H A D | path.c | 1347 if(shp->gd->hist_ptr && (path=nv_getval(HISTFILE)) && strcmp(path,shp->gd->hist_ptr->histname)) in exscript() 1349 hist_close(shp->gd->hist_ptr); in exscript()
|
H A D | io.c | 2194 sfprintf(sfstderr,"%d", shp->gd->hist_ptr?(int)shp->gd->hist_ptr->histind:++cmdno); in io_prompt() 2661 fd = sffileno(shp->gd->hist_ptr->histfp); in sh_iogetiop()
|
H A D | xec.c | 614 if((mode&~SH_FUNEVAL) && shp->gd->hist_ptr) in sh_eval() 616 hist_flush(shp->gd->hist_ptr); in sh_eval() 1418 if(shp->gd->hist_ptr && item->strm == shp->gd->hist_ptr->histfp) in sh_exec() 1419 hist_close(shp->gd->hist_ptr); in sh_exec()
|
H A D | nvtype.c | 1681 else if(shp->gd->hist_ptr) in sh_outtype() 1682 iop = (shp->gd->hist_ptr)->histfp; in sh_outtype()
|
H A D | init.c | 290 histopen = shp->gd->hist_ptr; in put_history() 298 hist_close(shp->gd->hist_ptr); in put_history()
|
H A D | lex.c | 196 if(sh_isstate(SH_HISTORY) && shp->gd->hist_ptr) in lex_advance() 197 log = shp->gd->hist_ptr->histfp; in lex_advance()
|
H A D | parse.c | 786 if(sh_isstate(SH_HISTORY) && shp->gd->hist_ptr) in funct() 787 t->funct.functloc = sfseek(shp->gd->hist_ptr->histfp,(off_t)0,SEEK_CUR); in funct()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | hist.c | 61 hp = shp->gd->hist_ptr; in b_hist() 206 hist_list(shp->gd->hist_ptr,outfile,hist_tell(shp->gd->hist_ptr,range[flag]),0,arg); in b_hist()
|
H A D | read.c | 494 if((flags&S_FLAG) && !shp->gd->hist_ptr) in sh_readline() 497 if(!shp->gd->hist_ptr) in sh_readline() 510 sfwrite(shp->gd->hist_ptr->histfp,(char*)cp,c); in sh_readline() 624 sfwrite(shp->gd->hist_ptr->histfp,(char*)cp,c); in sh_readline() 812 hist_flush(shp->gd->hist_ptr); in sh_readline()
|
H A D | print.c | 227 fd = sffileno(shp->gd->hist_ptr->histfp); in b_print() 243 …>inuse_bits&(1<<fd)) && (sh_inuse(shp,fd) || (shp->gd->hist_ptr && fd==sffileno(shp->gd->hist_ptr-… in b_print() 366 hist_flush(shp->gd->hist_ptr); in b_print()
|
H A D | typeset.c | 1352 else if(tp->sh->gd->hist_ptr) in print_namval() 1353 iop = (tp->sh->gd->hist_ptr)->histfp; in print_namval()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | defs.h | 132 History_t *hist_ptr; member
|