Lines Matching refs:newsize
54 off_t newsize) {
57 for(i=0;(i<oldsize)&&(i<newsize);i++)
64 u_char *new_buf,off_t newsize,off_t st,off_t en,off_t *pos)
69 x=matchlen(old+I[st],oldsize-I[st],new_buf,newsize);
70 y=matchlen(old+I[en],oldsize-I[en],new_buf,newsize);
82 if(memcmp(old+I[x],new_buf,std::min(oldsize-I[x],newsize))<=0) {
83 return search(I,old,oldsize,new_buf,newsize,x,en,pos);
85 return search(I,old,oldsize,new_buf,newsize,st,x,pos);
111 off_t oldsize,newsize;
141 /* Allocate newsize+1 bytes instead of newsize bytes to ensure
144 ((newsize=lseek(fd,0,SEEK_END))==-1) ||
145 ((new_buf = static_cast<u_char*>(malloc(newsize+1)))==NULL) ||
147 (read(fd,new_buf,newsize)!=newsize) ||
150 if(((db=static_cast<u_char*>(malloc(newsize+1)))==NULL) ||
151 ((eb=static_cast<u_char*>(malloc(newsize+1)))==NULL)) err(1,NULL);
172 offtout(newsize, header + 24);
181 while(scan<newsize) {
190 for(scsc=scan+=len;scan<newsize;scan++) {
195 len=search(I,old_buf,oldsize,new_buf+scan,newsize-scan,
222 if((len!=oldscore) || (scan==newsize)) {
231 if(scan<newsize) {
302 if ((newsize = ftello(pf)) == -1)
304 offtout(newsize - len, header + 16);