Searched defs:bufsize (Results 1 - 10 of 10) sorted by relevance

/ast/src/cmd/pzip/
H A Dpzip.c75 "[B:bufsize?Set the output buffer size to \asize\a -- for debugging.]#[size]"
204 ssize_t bufsize = 0; local
273 bufsize = opt_info.num;
344 if (bufsize)
347 sfsetbuf(sfstdout, NiL, bufsize);
H A Dpcmp.c119 size_t bufsize; local
172 bufsize = 4 * datsize;
173 if (!(buf = newof(0, unsigned char, bufsize, 0)))
192 d = dif(dat, datsize, buf, bufsize, cols);
193 z = zip(dat, datsize, buf, bufsize);
H A Dpin.c382 static int bufsize; local
385 if (bufsize < safe)
387 bufsize = safe;
388 if (!(buf = newof(buf, unsigned char, bufsize, 0)))
393 dest = bufsize;
400 used = bufsize;
/ast/src/lib/libast/disc/
H A Dsfdcdio.c157 int sfdcdio(Sfio_t* f, size_t bufsize) argument
159 int sfdcdio(f, bufsize)
161 size_t bufsize;
187 if(bufsize > 0)
188 bufsize = (bufsize/dio.d_miniosz)*dio.d_miniosz;
189 if(bufsize <= 0)
190 bufsize = dio.d_miniosz*64;
191 if(bufsize > dio.d_maxiosz)
192 bufsize
[all...]
/ast/src/lib/libast/sfio/
H A Dsfsetbuf.c114 ssize_t bufsize, blksz; local
183 bufsize = 0;
243 bufsize = 64 * 1024;
279 bufsize = SF_GRAIN;
332 { if(bufsize > _Sfpage)
333 size = bufsize * SF_NMAP;
355 else if((ssize_t)(size = _Sfpage) < bufsize)
356 size = bufsize;
/ast/src/cmd/vczip/
H A Dvczip.c240 apply(int action, const char* vt, Vcsfdata_t* vcodexdisc, const char* ct, Codexdisc_t* codexdisc, const char* input, const char* source, const char* output, void* buf, size_t bufsize, Sfoff_t donez, Sfoff_t lastz) argument
324 if ((n = sfread(ip, buf, bufsize)) <= 0)
332 if (donez >= lastz + 64 * (bufsize > 1024*1024 ? bufsize : 1024*1024))
366 size_t bufsize; local
480 for (bufsize = 1024*1024; bufsize > 0; bufsize /= 2)
481 if (buf = malloc(bufsize))
489 apply(action, vt, &vcodexdisc, ct, &codexdisc, NiL, *argv, NiL, buf, bufsize, done
[all...]
/ast/src/cmd/paxlib/calib/
H A Dcalib.c74 size_t bufsize; member in struct:Ar_s
306 ar->bufsize = casize2(&hdr[24]);
312 n = j * ar->bufsize;
479 (*pax->errorf)(NiL, pax, 2, "%s: overbyte (bits=%d offset=%I*u+%I*u block=%I*u)", ap->name, bits, sizeof(off_t), paxseek(pax, ap, (off_t)0, SEEK_CUR, 0) - ar->bufsize, sizeof(index), index, sizeof(block), block);
515 (*pax->errorf)(NiL, pax, 1, "%s: keyword %s (bits=%d offset=%I*u+%I*u block=%I*u)", ap->name, s, bits, sizeof(off_t), paxseek(pax, ap, (off_t)0, SEEK_CUR, 0) - ar->bufsize, sizeof(index), index, sizeof(block), block);
524 (*pax->errorf)(NiL, pax, 2, "%s: key overbyte (bits=%d offset=%I*u+%I*u block=%I*u)", ap->name, bits, sizeof(off_t), paxseek(pax, ap, (off_t)0, SEEK_CUR, 0) - ar->bufsize, sizeof(index), index, sizeof(block), block);
704 n = casize2(ar->buffer + ar->blocksize + (block != 1)) * ar->bufsize;
708 if (!(ar->buffer = (unsigned char*)paxget(pax, ap, (off_t)ar->bufsize, NiL)))
752 n = ar->bufsize * ar->dir->offset;
756 if (!(ar->buffer = (unsigned char*)paxget(pax, ap, (off_t)ar->bufsize, Ni
[all...]
/ast/src/cmd/sort/
H A Dmain.c298 size_t bufsize; /* input reserve buffer size */ member in struct:Sort_s
584 sp->bufsize = z;
1335 if (sp->bufsize)
1336 sfsetbuf(ip, NiL, sp->bufsize);
/ast/src/cmd/ksh93/edit/
H A Dedit.c1564 static int keytrap(Edit_t *ep,char *inbuff,register int insize, int bufsize, int mode) argument
1593 else if(bufsize>0)
1595 strncpy(inbuff,cp,bufsize);
1596 inbuff[bufsize-1]='\0';
/ast/src/cmd/ksh93/sh/
H A Dmacro.c2032 int newlines,bufsize,nextnewlines; local
2156 bufsize = sfvalue(sp);
2167 while((str=(char*)sfreserve(sp,SF_UNBOUND,0)) && (c=bufsize=sfvalue(sp))>0)
2216 if(++c < bufsize)

Completed in 37 milliseconds