BLK_SIZE
ds_headsize + BLK_SIZE)) == NULL)
if (read(ds_fd, ds_header + ds_headsize, BLK_SIZE) < BLK_SIZE)
ds_headsize += BLK_SIZE;
char buf[BLK_SIZE];
read(ds_fd, buf, BLK_SIZE) == BLK_SIZE &&
if ((ds_header = (char *)calloc(BLK_SIZE, 1)) == NULL) {
(void) memcpy(ds_header, buf, BLK_SIZE);
ds_headsize = BLK_SIZE;
int i, n, count = 0, header_size = BLK_SIZE;
if ((ds_header = (char *)calloc(BLK_SIZE, 1)) == NULL) {
if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) {
while (read(ds_fd, ds_header, BLK_SIZE) > 0)
if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) {
header_size + BLK_SIZE)) == NULL) {
BLK_SIZE);
if (read(ds_fd, ds_header + header_size, BLK_SIZE) !=
BLK_SIZE) {
header_size += BLK_SIZE; /* new size */
CPIOPROC, (int)BLK_SIZE);
"%s -ictD -C %d > /dev/null", CPIOPROC, (int)BLK_SIZE);
CPIOPROC, (int)BLK_SIZE);
ds_bufsize = BLK_SIZE;
if (ds_bufsize > BLK_SIZE) {
CPIOPROC, (int)BLK_SIZE);
buf_ctrl->allocation + BLK_SIZE)) == NULL) {
buf_ctrl->allocation, '\0', BLK_SIZE);
buf_ctrl->allocation += BLK_SIZE;
if ((hdrbuf.text_buffer = (char *)malloc(BLK_SIZE)) == NULL) {
(void) memset(hdrbuf.text_buffer, '\0', BLK_SIZE);
hdrbuf.allocation = BLK_SIZE;
totsize += statbuf.st_size/BLK_SIZE + 1;
block_cnt += BLK_SIZE) {
(void) write(ds_fd, (hdr->text_buffer + block_cnt), BLK_SIZE);
"%s -ocD -C %d", CPIOPROC, (int)BLK_SIZE);