Lines Matching refs:newch

414 uncompressgzipped(const unsigned char *old, unsigned char **newch,  in uncompressgzipped()  argument
443 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped()
445 return makeerror(newch, n, "File too short"); in uncompressgzipped()
449 uncompresszlib(const unsigned char *old, unsigned char **newch, in uncompresszlib() argument
455 if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL) in uncompresszlib()
456 return makeerror(newch, n, "No buffer, %s", strerror(errno)); in uncompresszlib()
460 z.next_out = *newch; in uncompresszlib()
481 (*newch)[*n] = '\0'; in uncompresszlib()
485 strlcpy((char *)*newch, z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib()
486 *n = strlen((char *)*newch); in uncompresszlib()
617 unsigned char **newch, size_t* n) in uncompressbuf() argument
627 return uncompressgzipped(old, newch, bytes_max, n); in uncompressbuf()
629 return uncompresszlib(old, newch, bytes_max, n, 1); in uncompressbuf()
641 return makeerror(newch, n, "Cannot create pipe, %s", in uncompressbuf()
661 return makeerror(newch, n, "Cannot fork, %s", in uncompressbuf()
672 *newch = CAST(unsigned char *, emalloc(bytes_max + 1)); in uncompressbuf()
673 if (*newch == NULL) { in uncompressbuf()
674 rv = makeerror(newch, n, "No buffer, %s", in uncompressbuf()
679 if ((r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf()
686 (r = sread(fdp[STDERR_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf()
688 r = filter_error(*newch, r); in uncompressbuf()
691 efree(*newch); in uncompressbuf()
693 rv = makeerror(newch, n, "Read failed, %s", in uncompressbuf()
696 rv = makeerror(newch, n, "No data"); in uncompressbuf()