Home
last modified time | relevance | path

Searched refs:RCAST (Results 1 – 9 of 9) sorted by relevance

/PHP-8.0/ext/fileinfo/libmagic/
H A Dcompress.c598 *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 Dis_tar.c101 const union record *header = RCAST(const union record *, in is_tar()
102 RCAST(const void *, buf)); in is_tar()
H A Dcdf.c109 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 Dder.c245 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data()
268 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs()
306 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
H A Dsoftmagic.c801 cp = estrndup(RCAST(const char *, ms->search.s), in mprint()
1336 ms->search.s = RCAST(const char *, s) + offset; in mcopy()
1368 buf = RCAST(const char *, s) + offset; in mcopy()
1369 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy()
1450 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1584 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1596 RCAST(const void *, s + offset + off)); in mget()
1746 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1902 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp()
1903 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
H A Dapprentice.c1225 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp()
3288 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv));
3289 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv));
3302 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv));
3303 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));
3386 const unsigned char *s = RCAST(const unsigned char *, ss);
H A Dfile.h389 #define RCAST(T, b) reinterpret_cast<T>(b) macro
393 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
H A Dfuncs.c691 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch2915 - return buffer_apprentice(ms, RCAST(struct magic **, bufs),
3080 - while ((r = sread(fd, RCAST(void *, &buf[nbytes]),
3102 - if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) {
3451 - cp = strndup(RCAST(const char *, ms->search.s),
3452 + cp = estrndup(RCAST(const char *, ms->search.s),
3663 - rc = file_regexec(&rx, RCAST(const char *, search),

Completed in 42 milliseconds