Lines Matching refs:bytes_max

293 		urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz);  in file_zmagic()
545 size_t bytes_max, size_t *n) in uncompressgzipped() argument
573 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped()
580 size_t bytes_max, size_t *n, int zlib) in uncompresszlib() argument
585 if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL) in uncompresszlib()
591 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib()
615 strlcpy(RCAST(char *, *newch), z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib()
624 size_t bytes_max, size_t *n) in uncompressbzlib() argument
634 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressbzlib()
640 bz.avail_out = CAST(unsigned int, bytes_max); in uncompressbzlib()
658 snprintf(RCAST(char *, *newch), bytes_max, "bunzip error %d", rc); in uncompressbzlib()
667 size_t bytes_max, size_t *n) in uncompressxzlib() argument
677 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressxzlib()
683 xz.avail_out = CAST(unsigned int, bytes_max); in uncompressxzlib()
698 snprintf(RCAST(char *, *newch), bytes_max, "unxz error %d", rc); in uncompressxzlib()
877 uncompressbuf(int fd, size_t bytes_max, size_t method, const unsigned char *old, in uncompressbuf() argument
894 return uncompressgzipped(old, newch, bytes_max, n); in uncompressbuf()
896 return uncompresszlib(old, newch, bytes_max, n, 1); in uncompressbuf()
900 return uncompressbzlib(old, newch, bytes_max, n); in uncompressbuf()
905 return uncompressxzlib(old, newch, bytes_max, n); in uncompressbuf()
989 *newch = CAST(unsigned char *, malloc(bytes_max + 1)); in uncompressbuf()
997 r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0); in uncompressbuf()
1006 (r = sread(fdp[STDERR_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf()