Lines Matching defs:Bufsize

490 int	Bufsize = BUFSZ;	/* Default block size */
749 if (Buffr.b_cnt > Bufsize)
750 Blocks -= (u_longlong_t)(Buffr.b_cnt / Bufsize);
830 Blocks = (u_longlong_t)(Blocks * Bufsize + SBlocks +
906 * (converted to a multiple of Bufsize).
916 while ((Buffr.b_end_p - Buffr.b_in_p) >= Bufsize) {
918 if ((rv = g_read(Device, Archive, Buffr.b_in_p, Bufsize)) < 0) {
919 if (((Buffr.b_end_p - Buffr.b_in_p) >= Bufsize) &&
933 if (lseek(Archive, Bufsize, SEEK_REL) < 0)
942 if (Hdr_type != BAR || rv == Bufsize) {
946 if (rv == Bufsize) {
971 } /* (Buffr.b_end_p - Buffr.b_in_p) <= Bufsize */
975 if ((rv = g_read(Device, Archive, Buffr.b_in_p, Bufsize)) < 0) {
980 if (rv == Bufsize) {
1007 while (Buffr.b_cnt >= Bufsize) {
1010 Bufsize)) < 0) {
1018 if (rv == Bufsize)
1108 Bufsize)) == Bufsize)
1291 if (Bufsize <= 0) {
1434 Bufsize = (PageSize > 8192) ? PageSize : 8192;
1470 have = (lcnt < Bufsize) ? lcnt : Bufsize;
2337 Blocks += (u_longlong_t)((cnt + (Bufsize - 1)) / Bufsize);
3290 G_p->g_filesz, Bufsize, data_in_info, holes);
3296 G_p->g_filesz, Bufsize, data_in_info);
6355 off2 = Bufsize - (Buffr.b_cnt % Bufsize);
6360 if ((rv = g_read(Device, Archive, Buffr.b_in_p, Bufsize)) < 0)
6498 Bufsize = 5120;
6505 Bufsize = atoi(optarg);
6685 if ((Bufsize = g_init(&Device, &Archive)) < 0)
6691 blk_cnt_max = _20K / Bufsize;
6699 Buffr.b_size = (size_t)(Bufsize * blk_cnt);
6715 * Now that Bufsize has stabilized, we can allocate our i/o buffer
6717 Buf_p = e_valloc(E_EXIT, Bufsize);
7376 * and bwrite the trailer. Pad the buffer with nulls out to the next Bufsize
7431 need = Bufsize - (Buffr.b_cnt % Bufsize);
7432 if (need == Bufsize)
7728 buff = e_zalloc(E_EXIT, (uint_t)Bufsize);
7730 if (g_read(Device, Archive, buff, Bufsize) < 0) {
7771 (void) memcpy(Buffr.b_in_p, &buff[512], (Bufsize - 512));
7772 Buffr.b_in_p += (Bufsize - 512);
7773 Buffr.b_cnt += (long)(Bufsize - 512);