/PHP-7.4/ext/fileinfo/libmagic/ |
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 | compress.c | 172 { RCAST(const void *, zlibcmp), 0, zlib_args, NULL }, /* zlib */ 240 zm = (RCAST(int (*)(const unsigned char *), in file_zmagic() 566 strlcpy(RCAST(char *, *newch), z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib() 567 *n = strlen(RCAST(char *, *newch)); in uncompresszlib() 587 *buf = RCAST(unsigned char *, msg); in makeerror() 654 buf = RCAST(char *, ubuf); in filter_error() 754 RCAST(char *const *, RCAST(intptr_t, compr[method].argv))); in uncompressbuf()
|
H A D | cdf.c | 105 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2() 106 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2() 119 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4() 120 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4() 135 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8() 136 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8() 312 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset() 313 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset() 408 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector() 409 RCAST(const char *, sst->sst_tab) + pos, len); in cdf_read_short_sector() [all …]
|
H A D | der.c | 230 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data() 246 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs() 280 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
|
H A D | softmagic.c | 788 cp = estrndup(RCAST(const char *, ms->search.s), in mprint() 1303 ms->search.s = RCAST(const char *, s) + offset; in mcopy() 1335 buf = RCAST(const char *, s) + offset; in mcopy() 1336 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy() 1411 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy() 1541 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1550 RCAST(const void *, s + offset + off)); in mget() 1689 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1836 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp() 1837 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
|
H A D | apprentice.c | 436 if (map == RCAST(struct magic_map *, -1)) in apprentice_1() 1185 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp() 3304 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); 3305 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); 3318 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); 3319 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); 3334 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); 3335 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); 3399 const unsigned char *s = RCAST(const unsigned char *, ss);
|
H A D | file.h | 383 #define RCAST(T, b) reinterpret_cast<T>(b) macro 387 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
|
H A D | funcs.c | 604 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
|
/PHP-7.4/ext/fileinfo/ |
H A D | libmagic.patch | 141 if (map == RCAST(struct magic_map *, -1)) 768 - rv = RCAST(struct magic_map *, -1); 1191 - return cdf_read(info, CAST(off_t, pos), RCAST(char *, buf) + offs, len); 2839 - return buffer_apprentice(ms, RCAST(struct magic **, bufs), 2987 - while ((r = sread(fd, RCAST(void *, &buf[nbytes]), 3009 - if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { 3367 - cp = strndup(RCAST(const char *, ms->search.s), 3368 + cp = estrndup(RCAST(const char *, ms->search.s), 3384 mdebug(offset, RCAST(char *, RCAST(void *, p)), 3403 mdebug(offset, RCAST(char *, RCAST(void *, p)), [all …]
|