Lines Matching defs:Bufsize

488 int	Bufsize = BUFSZ;	/* Default block size */
747 if (Buffr.b_cnt > Bufsize)
748 Blocks -= (u_longlong_t)(Buffr.b_cnt / Bufsize);
827 Blocks = (u_longlong_t)(Blocks * Bufsize + SBlocks + 0x1FF) >> 9;
901 * (converted to a multiple of Bufsize).
911 while ((Buffr.b_end_p - Buffr.b_in_p) >= Bufsize) {
913 if ((rv = g_read(Device, Archive, Buffr.b_in_p, Bufsize)) < 0) {
914 if (((Buffr.b_end_p - Buffr.b_in_p) >= Bufsize) &&
928 if (lseek(Archive, Bufsize, SEEK_REL) < 0)
937 if (Hdr_type != BAR || rv == Bufsize) {
941 if (rv == Bufsize) {
966 } /* (Buffr.b_end_p - Buffr.b_in_p) <= Bufsize */
970 if ((rv = g_read(Device, Archive, Buffr.b_in_p, Bufsize)) < 0) {
975 if (rv == Bufsize) {
1002 while (Buffr.b_cnt >= Bufsize) {
1005 Bufsize)) < 0) {
1013 if (rv == Bufsize)
1103 Bufsize)) == Bufsize)
1286 if (Bufsize <= 0) {
1429 Bufsize = (PageSize > 8192) ? PageSize : 8192;
1465 have = (lcnt < Bufsize) ? lcnt : Bufsize;
2332 Blocks += (u_longlong_t)((cnt + (Bufsize - 1)) / Bufsize);
3285 G_p->g_filesz, Bufsize, data_in_info, holes);
3291 G_p->g_filesz, Bufsize, data_in_info);
6350 off2 = Bufsize - (Buffr.b_cnt % Bufsize);
6355 if ((rv = g_read(Device, Archive, Buffr.b_in_p, Bufsize)) < 0)
6490 Bufsize = 5120;
6497 Bufsize = atoi(optarg);
6677 if ((Bufsize = g_init(&Device, &Archive)) < 0)
6683 blk_cnt_max = _20K / Bufsize;
6691 Buffr.b_size = (size_t)(Bufsize * blk_cnt);
6707 * Now that Bufsize has stabilized, we can allocate our i/o buffer
6709 Buf_p = e_valloc(E_EXIT, Bufsize);
7368 * and bwrite the trailer. Pad the buffer with nulls out to the next Bufsize
7423 need = Bufsize - (Buffr.b_cnt % Bufsize);
7424 if (need == Bufsize)
7720 buff = e_zalloc(E_EXIT, (uint_t)Bufsize);
7722 if (g_read(Device, Archive, buff, Bufsize) < 0) {
7763 (void) memcpy(Buffr.b_in_p, &buff[512], (Bufsize - 512));
7764 Buffr.b_in_p += (Bufsize - 512);
7765 Buffr.b_cnt += (long)(Bufsize - 512);