Lines Matching refs:CAST
111 unsigned char *s = CAST(unsigned char *, CAST(void *, &x)); in zlibcmp()
261 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_zmagic()
271 if (nbytes < CAST(size_t, abs(compr[i].maglen))) in file_zmagic()
277 CAST(size_t, compr[i].maglen)) == 0; in file_zmagic()
375 buf = CAST(const char *, buf) + rv; in swrite()
427 if (t > 0 && CAST(size_t, t) < n) { in sread()
444 buf = CAST(char *, CCAST(void *, buf)) + rv; in sread()
499 if (swrite(tfd, startbuf, nbytes) != CAST(ssize_t, nbytes)) in file_pipe2file()
503 if (swrite(tfd, buf, CAST(size_t, r)) != r) in file_pipe2file()
585 if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL) in uncompresszlib()
589 z.avail_in = CAST(uint32_t, *n); in uncompresszlib()
591 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib()
605 *n = CAST(size_t, z.total_out); in uncompresszlib()
634 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressbzlib()
638 bz.avail_in = CAST(uint32_t, *n); in uncompressbzlib()
640 bz.avail_out = CAST(unsigned int, bytes_max); in uncompressbzlib()
648 *n = CAST(size_t, bz.total_out_lo32); in uncompressbzlib()
677 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressxzlib()
681 xz.avail_in = CAST(uint32_t, *n); in uncompressxzlib()
683 xz.avail_out = CAST(unsigned int, bytes_max); in uncompressxzlib()
689 *n = CAST(size_t, xz.total_out); in uncompressxzlib()
775 (void) lseek(fd, CAST(off_t, 0), SEEK_SET); in handledesc()
815 if (swrite(fd, old, n) != CAST(ssize_t, n)) { in writechild()
833 while (isspace(CAST(unsigned char, *buf))) in filter_error()
836 if ((p = strchr(CAST(char *, buf), '\n')) != NULL) in filter_error()
838 if ((p = strchr(CAST(char *, buf), ';')) != NULL) in filter_error()
840 if ((p = strrchr(CAST(char *, buf), ':')) != NULL) { in filter_error()
842 while (isspace(CAST(unsigned char, *p))) in filter_error()
845 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
989 *newch = CAST(unsigned char *, malloc(bytes_max + 1)); in uncompressbuf()