Searched refs:hist_ptr (Results 1 - 23 of 23) sorted by relevance

/ast/src/cmd/ie/
H A Dhistory.c75 struct history *hist_ptr = 0; variable in typeref:struct:history
114 if(hist_ptr)
132 hist_ptr = fp;
174 hist_ptr = fp;
229 register struct history *fp = hist_ptr;
232 hist_ptr = 0;
310 struct history *hist_old = hist_ptr;
314 fdo= io_renumber(hist_ptr->fixfd,fcntl(hist_ptr->fixfd,F_DUPFD,USERIO));
315 hist_ptr
[all...]
H A Dhistory.h62 extern struct history *hist_ptr;
H A Deditlib.c199 if(fd==editfd && hist_ptr && (opt_flag&NOHIST)==0 && r>0)
205 p_setout(hist_ptr->fixfd);
H A Dedit.c574 if(hist_ptr)
576 register struct history *fp = hist_ptr;
916 if(!hist_ptr || (st.states&BUILTIN))
924 p_setout(hist_ptr->fixfd);
H A Demacs.c215 if (hist_ptr) /* hloff cleared by ed_setup, recalculate... */
/ast/src/cmd/ksh93/edit/
H A Dhistory.c126 static History_t *hist_ptr; variable
238 if(shgd->hist_ptr=hist_ptr)
255 shgd->hist_ptr = hist_ptr = hp;
314 shgd->hist_ptr = hist_ptr = hp;
423 hist_ptr = 0;
424 shgd->hist_ptr = 0;
493 hist_ptr
[all...]
H A Dcompletion.c555 if(!shgd->hist_ptr)
566 sfwrite(shgd->hist_ptr->histfp,(char*)ep->e_inbuf,ep->e_eol+1);
568 hist_flush(shgd->hist_ptr);
H A Dhexpand.c304 hl = hist_find(shgd->hist_ptr, str,
305 shgd->hist_ptr->histind,
313 n = shgd->hist_ptr->histind + n;
315 if(n > 0 && hist_seek(shgd->hist_ptr, n) != -1)
316 ref = shgd->hist_ptr->histfp;
H A Demacs.c265 location = hist_locate(shgd->hist_ptr,location.hist_command,location.hist_line,1);
676 location = hist_locate(shgd->hist_ptr,hline,hloff,count);
1306 location = hist_find(shgd->hist_ptr,(char*)lstring,hline,1,direction);
H A Dedit.c626 if(shp->gd->hist_ptr)
628 register History_t *hp = shp->gd->hist_ptr;
1666 if(!(hp=ep->sh->gd->hist_ptr) && (!nv_getval(HISTFILE) || !sh_histinit(ep->sh)))
1676 hp = ep->sh->gd->hist_ptr;
H A Dvi.c2277 location = hist_find(shgd->hist_ptr,((char*)virtual)+1, curhline, 1, new_direction);
/ast/src/cmd/ksh93/bltins/
H A Dhist.c61 hp = shp->gd->hist_ptr;
205 hist_list(shp->gd->hist_ptr,outfile,hist_tell(shp->gd->hist_ptr,range[flag]),0,arg);
H A Dprint.c218 fd = sffileno(shp->gd->hist_ptr->histfp);
234 else if(!(shp->inuse_bits&(1<<fd)) && (sh_inuse(shp,fd) || (shp->gd->hist_ptr && fd==sffileno(shp->gd->hist_ptr->histfp))))
356 hist_flush(shp->gd->hist_ptr);
H A Dread.c494 if((flags&S_FLAG) && !shp->gd->hist_ptr)
497 if(!shp->gd->hist_ptr)
510 sfwrite(shp->gd->hist_ptr->histfp,(char*)cp,c);
623 sfwrite(shp->gd->hist_ptr->histfp,(char*)cp,c);
811 hist_flush(shp->gd->hist_ptr);
H A Dtypeset.c1350 else if(tp->sh->gd->hist_ptr)
1351 iop = (tp->sh->gd->hist_ptr)->histfp;
/ast/src/cmd/ksh93/sh/
H A Dmain.c422 hist_flush(shp->gd->hist_ptr);
508 if(shp->gd->hist_ptr)
509 hist_eof(shp->gd->hist_ptr);
553 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr)
556 hist_eof(shp->gd->hist_ptr);
567 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr)
568 hist_flush(shp->gd->hist_ptr);
H A Djobs.c1072 hist_list(shgd->hist_ptr,outfile,pw->p_name,0,";");
1223 if(!shgd->hist_ptr)
1229 if(hist_match(shgd->hist_ptr,pw->p_name,cp,flag)>=0)
1298 register History_t *hp = shp->gd->hist_ptr;
1391 pw->p_name=hist_tell(shgd->hist_ptr,(int)hp->histind-1);
1718 hist_list(shgd->hist_ptr,outfile,pw->p_name,'&',";");
H A Dlex.c193 if(sh_isstate(SH_HISTORY) && shp->gd->hist_ptr)
194 log = shp->gd->hist_ptr->histfp;
H A Dpath.c1340 if(shp->gd->hist_ptr && (path=nv_getval(HISTFILE)) && strcmp(path,shp->gd->hist_ptr->histname))
1342 hist_close(shp->gd->hist_ptr);
H A Dxec.c611 if((mode&~SH_FUNEVAL) && shp->gd->hist_ptr)
613 hist_flush(shp->gd->hist_ptr);
1409 if(shp->gd->hist_ptr && item->strm == shp->gd->hist_ptr->histfp)
1410 hist_close(shp->gd->hist_ptr);
H A Dinit.c287 void *histopen = shp->gd->hist_ptr;
295 hist_close(shp->gd->hist_ptr);
H A Dnvtype.c1683 else if(shp->gd->hist_ptr)
1684 iop = (shp->gd->hist_ptr)->histfp;
/ast/src/cmd/ksh93/include/
H A Ddefs.h130 History_t *hist_ptr; member in struct:shared

Completed in 89 milliseconds