Searched refs:RCAST (Results 1 – 9 of 9) sorted by relevance
/PHP-8.1/ext/fileinfo/libmagic/ |
H A D | compress.c | 598 *n = strlen(RCAST(char *, *newch)); in uncompresszlib() 619 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib() 621 bz.next_out = RCAST(char *, *newch); in uncompressbzlib() 640 snprintf(RCAST(char *, *newch), bytes_max, "bunzip error %d", rc); in uncompressbzlib() 641 *n = strlen(RCAST(char *, *newch)); in uncompressbzlib() 664 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib() 680 snprintf(RCAST(char *, *newch), bytes_max, "unxz error %d", rc); in uncompressxzlib() 681 *n = strlen(RCAST(char *, *newch)); in uncompressxzlib() 702 *buf = RCAST(unsigned char *, msg); in makeerror() 769 buf = RCAST(char *, ubuf); in filter_error() [all …]
|
H A D | is_tar.c | 101 const union record *header = RCAST(const union record *, in is_tar() 102 RCAST(const void *, buf)); in is_tar()
|
H A D | cdf.c | 109 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2() 110 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2() 123 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4() 124 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4() 139 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8() 140 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8() 316 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset() 317 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset() 424 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector() 425 RCAST(const char *, sst->sst_tab) + pos, len); in cdf_read_short_sector() [all …]
|
H A D | der.c | 245 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data() 267 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs() 305 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
|
H A D | softmagic.c | 780 cp = strndup(RCAST(const char *, ms->search.s), in mprint() 1322 ms->search.s = RCAST(const char *, s) + offset; in mcopy() 1354 buf = RCAST(const char *, s) + offset; in mcopy() 1355 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy() 1436 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy() 1589 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1601 RCAST(const void *, s + offset + off)); in mget() 1751 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1924 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp() 1925 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
|
H A D | apprentice.c | 1225 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp() 3298 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); 3299 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); 3312 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); 3313 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); 3328 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); 3329 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); 3396 const unsigned char *s = RCAST(const unsigned char *, ss);
|
H A D | file.h | 398 #define RCAST(T, b) reinterpret_cast<T>(b) macro 402 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
|
H A D | funcs.c | 732 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
|
/PHP-8.1/ext/fileinfo/ |
H A D | libmagic.patch | 2640 - return buffer_apprentice(ms, RCAST(struct magic **, bufs), 2808 - while ((r = sread(fd, RCAST(void *, &buf[nbytes]), 2830 - if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { 3466 - rc = file_regexec(&rx, RCAST(const char *, search),
|
Completed in 42 milliseconds