Lines Matching refs:buffer
55 char buf[LABEL_MAX]; /* header buffer */
390 n = paxread(pax, ap, state.tmp.buffer, (off_t)0, (off_t)state.buffersize, 0);
397 n = paxread(pax, ap, state.tmp.buffer, (off_t)0, m, 1);
422 f->id = strcpy(state.tmp.buffer, f->id);
423 f->name = strcpy(state.tmp.buffer + NAME_SIZE + 1, f->name);
452 if ((k = ((unsigned char*)state.tmp.buffer)[0] << 8 | ((unsigned char*)state.tmp.buffer)[1]) != n)
461 if (state.tmp.buffer[i] == '^')
467 for (j = i; j < n && state.tmp.buffer[j] == '^'; j++);
484 if (sfsscanf(&state.tmp.buffer[i], "%4d", &k) != 1)
498 switch (state.tmp.buffer[i])
508 if (sfsscanf(&state.tmp.buffer[i + 1], "%4d", &k) != 1)
517 nl = !(state.tmp.buffer[i + 2] & 01);
518 k = ((unsigned char*)state.tmp.buffer)[i] << 8 | ((unsigned char*)state.tmp.buffer)[i + 1];
529 ccmapstr(slt->mapin, &state.tmp.buffer[j], m - j);
535 while (--m >= j && state.tmp.buffer[m] == ' ');
545 c = state.tmp.buffer[m];
546 state.tmp.buffer[m] = '\n';
548 if (sfwrite(wfp, &state.tmp.buffer[j], k) != k)
554 state.tmp.buffer[m] = c;
682 error(3, "record output from buffer not supported");
686 blk = state.tmp.buffer;
888 n = read(rfd, state.tmp.buffer, m);
894 else if (paxread(pax, f->ap, state.tmp.buffer, (off_t)0, (off_t)m, 1) <= 0)
903 memzero(state.tmp.buffer, state.record.size);
911 memzero(state.tmp.buffer + n, state.record.size - n);
914 paxwrite(pax, ap, state.tmp.buffer, n);