Lines Matching refs:histfp
319 hp->histfp= sfnew(NIL(Sfio_t*),hp->histbuff,HIST_BSIZE,fd,SF_READ|SF_WRITE|SF_APPENDWR|SF_SHARE);
329 sfwrite(hp->histfp,(char*)hist_stamp,2);
330 sfsync(hp->histfp);
337 hp->histind = first = hist_nearend(hp,hp->histfp,hsize-size);
345 first = hist_nearend(hp,hp->histfp,hsize-size);
352 sfseek(hp->histfp,hp->histcnt=hsize,SEEK_SET);
371 sfdisc(hp->histfp,&hp->histdisc);
413 sfclose(hp->histfp);
473 close(sffileno(hist_old->histfp));
486 sfsetfd(hist_old->histfp,fd);
491 if(fstat(sffileno(hist_old->histfp),&statb)>=0)
516 sfwrite(hist_new->histfp,locbuff,HIST_MARKSZ);
525 if(!(buff=(char*)sfreserve(hist_old->histfp,SF_UNBOUND,0)))
527 *(endbuff=(cp=buff)+sfvalue(hist_old->histfp)) = 0;
539 sfwrite(hist_new->histfp,buff,c);
542 sfclose(hist_old->histfp);
628 sfseek(hp->histfp,count,SEEK_SET);
629 while(cp=(char*)sfreserve(hp->histfp,SF_UNBOUND,0))
631 n = sfvalue(hp->histfp);
723 sfputc(hp->histfp,HIST_UNDO);
724 sfputc(hp->histfp,0);
725 sfsync(hp->histfp);
740 if(buff=(char*)sfreserve(hp->histfp,0,SF_LOCKR))
742 hp->histflush = sfvalue(hp->histfp)+1;
743 sfwrite(hp->histfp,buff,0);
747 if(sfsync(hp->histfp)<0)
880 return(sfseek(hp->histfp,hp->histcmds[hist_ind(hp,n)],SEEK_SET));
898 sfseek(hp->histfp,offset,SEEK_SET);
899 while((c = sfgetc(hp->histfp)) != EOF)
987 sfseek(hp->histfp,offset,SEEK_SET);
988 if(!(cp = first = (unsigned char*)sfgetr(hp->histfp,0,0)))
990 m = sfvalue(hp->histfp);
1034 while ((c = sfgetc(hp->histfp)) && c!=EOF)
1054 sfseek(hp->histfp,(off_t)0,SEEK_END);