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

/ast/src/cmd/std/
H A Ddu.c50 "[b:blocksize?Set the block size to \asize\a. If omitted, \asize\a defaults"
81 #define BLOCKS(n) (Count_t)((blocksize==LS_BLOCKSIZE)?(n):(((n)*LS_BLOCKSIZE+blocksize-1)/blocksize))
140 unsigned long blocksize = 0; local
145 blocksize = 0;
155 blocksize = (opt_info.num <= 0) ? 512 : opt_info.num;
162 blocksize = 0;
166 blocksize = 0;
169 blocksize
[all...]
H A Dls.c206 "[101:block-size?Use \ablocksize\a blocks.]#[blocksize]"
299 #define BLOCKS(st) ((state.blocksize==LS_BLOCKSIZE)?iblocks(st):(state.blocksize>LS_BLOCKSIZE)?(iblocks(st)+state.blocksize/LS_BLOCKSIZE-1)/(state.blocksize/LS_BLOCKSIZE):iblocks(st)*(LS_BLOCKSIZE/state.blocksize))
301 #define BLOCKS(st) ((state.blocksize==LS_BLOCKSIZE)?iblocks(st):(iblocks(st)*LS_BLOCKSIZE+state.blocksize-1)/state.blocksize)
336 long blocksize; /* fil member in struct:__anon232
[all...]
/ast/src/cmd/pax/
H A Dcpio.sh35 blocksize=1b
86 B) blocksize=5k ;;
89 *[0-9]) blocksize=${OPTARG}c ;;
90 *) blocksize=${OPTARG} ;;
114 options="$options -b $blocksize"
127 options="$options -x $format -b $blocksize"
H A Dpax-saveset.c56 long blocksize; /* max block size */ member in struct:Saveset_s
86 while (ss->bp >= ss->block + state.blocksize)
90 if (paxread(pax, ap, ss->bp, (off_t)0, (off_t)state.blocksize, 0) <= 0)
100 ss->bp += state.blocksize;
101 else if (n != state.blocksize)
102 error(3, "invalid %s format blocksize=%ld", ap->format->name, n);
118 if (p + FILHDR_data + i > ss->block + state.blocksize)
146 if ((p += FILHDR_SIZE + (long)swapget(1, s, 2)) > ss->block + state.blocksize)
157 if ((p += FILHDR_SIZE + (long)swapget(1, s, 2)) > ss->block + state.blocksize)
H A Dpax.c612 state.blocksize = n;
613 if (state.blocksize < MINBLOCK)
615 if (state.blocksize & (BLOCKSIZE - 1))
619 state.blocksize = DEFBLOCKS * BLOCKSIZE;
1523 unsigned long blocksize; local
1665 blocksize = state.blocksize;
1695 if (!state.blocksize)
1702 state.blocksize = ap->format->regular;
1706 state.blocksize
[all...]
H A Dbio.c704 ap->io->last = ap->io->buffer + ap->io->unread + state.blocksize;
877 if ((c = ap->io->buffer + ap->io->unread + state.blocksize - ap->io->next) <= n)
886 while ((c = write(ap->io->fd, ap->io->next, state.blocksize)) != state.blocksize)
892 memcpy(state.tmp.buffer, ap->io->buffer + ap->io->unread + c, state.blocksize - c);
893 memcpy(ap->io->buffer + ap->io->unread, state.tmp.buffer, state.blocksize - c);
894 ap->io->next = ap->io->buffer + ap->io->unread + state.blocksize - c;
927 if ((ap->io->next += n) > ap->io->buffer + ap->io->unread + state.blocksize)
929 n = (ap->io->next - (ap->io->buffer + ap->io->unread)) - state.blocksize;
937 bwrite(ap, ap->io->next = ap->io->buffer + ap->io->unread + state.blocksize,
[all...]
H A Dpax-slt.c167 sfsprintf(slt->buf, sizeof(slt->buf), "%s2%c%05d%05d%010d%s%c 00 ", type, state.record.format, state.blocksize, state.record.size, f->st->st_size, type, '2');
346 state.blocksize = getlabnum(slt->buf, 6, 5, 10);
750 else if (p >= &blk[state.blocksize])
766 if (!f->record.partial && !(f->record.partial = newof(0, char, state.blocksize, 0)))
820 if (p >= &blk[state.blocksize] || state.record.format == 'U')
830 memset(p, '^', state.blocksize - (p - blk));
831 p = blk + state.blocksize;
H A Dpax.h484 long blocksize; /* explicit buffer size */ \
H A Dpax-cpio.c474 return ap->io->unblocked ? BLOCKSIZE : state.blocksize;
H A Dformat.c702 sfsprintf(s, state.tmp.buffersize, " [%c,%d,%d]", f->record.format, state.blocksize, state.record.size);
H A Dpax-tar.c905 return ap->io->unblocked ? BLOCKSIZE : state.blocksize;
/ast/src/cmd/codexlib/lzh/
H A Dlzh.c75 ui2 blocksize; member in struct:State_s
787 state->blocksize = 0;
801 if (state->blocksize == 0) /* read block head */
803 /* read block blocksize */
804 state->blocksize = GETBITS(state, BUFBITS);
814 state->blocksize--;
866 state->blocksize = 0;
876 if (!state->blocksize && (!(state->blocksize = GETBITS(state, 16)) || get_p_len(state, NT, TBIT, 3) || get_c_len(state) || get_p_len(state, state->snp, state->pbit, -1)))
878 state->blocksize
[all...]
/ast/src/cmd/paxlib/calib/
H A Dcalib.c75 size_t blocksize; member in struct:Ar_s
420 while (ar->line <= ar->blocksize - ar->headsize + 1)
704 n = casize2(ar->buffer + ar->blocksize + (block != 1)) * ar->bufsize;
710 ar->blocksize = casize2(ar->buffer);
758 ar->blocksize = casize2(&ar->buffer[0]) + 1;

Completed in 31 milliseconds