Searched refs:bufsize (Results 1 - 13 of 13) sorted by relevance

/ast/src/cmd/cs/vcs_src/
H A Difs_network.c127 NetRead( nFile, buf, bufsize )
130 int bufsize;
142 if( len > bufsize )
143 len = bufsize;
148 if( len >= bufsize )
151 bufsize -= len;
164 NetGets( nFile, buf, bufsize )
167 int bufsize;
174 while( bufsize > 1 && NetRead( nFile, ptr, 1 ) == 1 ) {
175 bufsize
[all...]
H A Dmnt_vcs.c41 int vcs_read(buf, bufsize)
43 int bufsize;
61 ret = read(istate.fd, buf, bufsize);
H A Dvcs_replica.c25 char* getrdir(rp, buf, bufsize)
28 int bufsize;
33 if (!(s = pathcanon(buf, bufsize, PATH_PHYSICAL|PATH_EXISTS)))
/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/cmd/pzip/
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 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 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/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/lib/libtk/compat/
H A Dunistd.h73 extern int readlink _ANSI_ARGS_((CONST char *path, char *buf, int 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/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);

Completed in 95 milliseconds