Lines Matching refs:bytes_max
289 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic()
527 size_t bytes_max, size_t *n) in uncompressgzipped() argument
555 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped()
562 size_t bytes_max, size_t *n, int zlib) in uncompresszlib() argument
567 if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL) in uncompresszlib()
573 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib()
597 strlcpy(RCAST(char *, *newch), z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib()
606 size_t bytes_max, size_t *n) in uncompressbzlib() argument
616 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressbzlib()
622 bz.avail_out = CAST(unsigned int, bytes_max); in uncompressbzlib()
640 snprintf(RCAST(char *, *newch), bytes_max, "bunzip error %d", rc); in uncompressbzlib()
649 size_t bytes_max, size_t *n) in uncompressxzlib() argument
659 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressxzlib()
665 xz.avail_out = CAST(unsigned int, bytes_max); in uncompressxzlib()
680 snprintf(RCAST(char *, *newch), bytes_max, "unxz error %d", rc); in uncompressxzlib()
814 uncompressbuf(int fd, size_t bytes_max, size_t method, const unsigned char *old, in uncompressbuf() argument
827 return uncompressgzipped(old, newch, bytes_max, n); in uncompressbuf()
829 return uncompresszlib(old, newch, bytes_max, n, 1); in uncompressbuf()
833 return uncompressbzlib(old, newch, bytes_max, n); in uncompressbuf()
838 return uncompressxzlib(old, newch, bytes_max, n); in uncompressbuf()
929 *newch = CAST(unsigned char *, malloc(bytes_max + 1)); in uncompressbuf()
936 r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0); in uncompressbuf()
943 (r = sread(fdp[STDERR_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf()