Lines Matching refs:CAST

108 	unsigned char *s = CAST(unsigned char *, CAST(void *, &x));  in zlibcmp()
257 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_zmagic()
267 if (nbytes < CAST(size_t, abs(compr[i].maglen))) in file_zmagic()
273 CAST(size_t, compr[i].maglen)) == 0; in file_zmagic()
371 buf = CAST(const char *, buf) + rv; in swrite()
423 if (t > 0 && CAST(size_t, t) < n) { in sread()
440 buf = CAST(char *, CCAST(void *, buf)) + rv; in sread()
481 if (swrite(tfd, startbuf, nbytes) != CAST(ssize_t, nbytes)) in file_pipe2file()
485 if (swrite(tfd, buf, CAST(size_t, r)) != r) in file_pipe2file()
567 if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL) in uncompresszlib()
571 z.avail_in = CAST(uint32_t, *n); in uncompresszlib()
573 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib()
587 *n = CAST(size_t, z.total_out); in uncompresszlib()
616 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressbzlib()
620 bz.avail_in = CAST(uint32_t, *n); in uncompressbzlib()
622 bz.avail_out = CAST(unsigned int, bytes_max); in uncompressbzlib()
630 *n = CAST(size_t, bz.total_out_lo32); in uncompressbzlib()
659 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressxzlib()
663 xz.avail_in = CAST(uint32_t, *n); in uncompressxzlib()
665 xz.avail_out = CAST(unsigned int, bytes_max); in uncompressxzlib()
671 *n = CAST(size_t, xz.total_out); in uncompressxzlib()
752 if (swrite(fd, old, n) != CAST(ssize_t, n)) { in writechild()
770 while (isspace(CAST(unsigned char, *buf))) in filter_error()
773 if ((p = strchr(CAST(char *, buf), '\n')) != NULL) in filter_error()
775 if ((p = strchr(CAST(char *, buf), ';')) != NULL) in filter_error()
777 if ((p = strrchr(CAST(char *, buf), ':')) != NULL) { in filter_error()
779 while (isspace(CAST(unsigned char, *p))) in filter_error()
782 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
873 (void) lseek(fd, CAST(off_t, 0), SEEK_SET); in uncompressbuf()
910 *newch = CAST(unsigned char *, malloc(bytes_max + 1)); in uncompressbuf()