Lines Matching refs:tbufsiz
81 static int tp, ntarf, tbufsiz;
335 if (tp + n >= tbufsiz) {
338 diff=tbufsiz-tp;
340 fail=fail && (1+write(f, tarbuf, tbufsiz));
345 while (n >= tbufsiz) {
346 fail=fail && (1 + write(f, b, tbufsiz));
347 n-=tbufsiz;
348 b+=tbufsiz;
373 if (n+tp >= tbufsiz) {
374 memset(tarbuf+tp, 0, tbufsiz-tp);
375 write(f, tarbuf, tbufsiz);
376 memset(tarbuf, 0, (tp+=n-tbufsiz));
390 tbufsiz=blocksize*TBLOCK;
391 tarbuf=(char *)SMB_MALLOC(tbufsiz); /* FIXME: We might not get the buffer */
420 write(f, tarbuf, S_ISREG(stbuf.st_mode) ? tp : tbufsiz);
946 if (next_block(tarbuf, &buffer_p, tbufsiz) <= 0) {
982 dsize = MIN(tbufsiz - (buffer_p - tarbuf) - bpos, 65520); /* Calculate the size to write */
1005 if (next_block(tarbuf, &buffer_p, tbufsiz) <=0) { /* and skip the block */
1022 if (next_block(tarbuf, &buffer_p, tbufsiz) <=0) {
1100 if (next_block(tarbuf, &buffer_p, tbufsiz) <= 0) {
1128 buffer_p = tarbuf + tbufsiz; /* init this to force first read */
1133 if (next_block(tarbuf, &buffer_p, tbufsiz) <= 0) {
1144 if ((next_block(tarbuf, &buffer_p, tbufsiz) <= 0) && !skip_file(finfo.size)) {
1191 if ((finfo.size != 0) && next_block(tarbuf, &buffer_p, tbufsiz) <=0) {