Lines Matching defs:len
505 // If !len, write up to len bytes of data to buf. Otherwise write to out_fd.
506 // Returns len ? bytes written : 0. Notice all errors are negative #'s.
513 int out_fd, char *outbuf, int len)
542 if (len && bd->outbufPos >= len) goto dataus_interruptus;
584 if (len) {
586 memcpy(outbuf, bd->outbuf, len);
589 if ((len -= bd->outbufPos)<1) {
590 bd->outbufPos -= len;
591 if (bd->outbufPos) memmove(bd->outbuf, bd->outbuf+len, bd->outbufPos);
602 // Allocate the structure, read file header. If !len, src_fd contains
605 int len)
612 if (!len) i += IOBUF_SIZE;
616 if (len) {
618 bd->inbufCount = len;
678 int outfd = 1, rename = 0, len = strlen(name);
682 dotbz = name+len-3;
683 if ((len>3 && !strcmp(dotbz, ".bz")) || (len>4 && !strcmp(--dotbz, ".bz2")))