Home
last modified time | relevance | path

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

/php-src/ext/fileinfo/libmagic/
H A Dis_tar.c103 const union record *header = RCAST(const union record *, in is_tar()
104 RCAST(const void *, buf)); in is_tar()
H A Dcompress.c663 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib()
665 bz.next_out = RCAST(char *, *newch); in uncompressbzlib()
706 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib()
751 out.dst = RCAST(void *, *newch); in uncompresszstd()
855 *buf = RCAST(unsigned char *, msg); in makeerror()
883 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in movedesc()
899 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in closedesc()
967 buf = RCAST(char *, ubuf); in filter_error()
1110 args = RCAST(char *const *, RCAST(intptr_t, compr[method].argv)); in uncompressbuf()
H A Dcdf.c116 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2()
117 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2()
130 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4()
131 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4()
146 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8()
147 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8()
324 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset()
325 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset()
432 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector()
433 RCAST(const char *, sst->sst_tab) + pos, len); in cdf_read_short_sector()
[all …]
H A Dder.c246 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()
307 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
H A Dsoftmagic.c778 cp = estrndup(RCAST(const char *, ms->search.s), in mprint()
1345 ms->search.s = RCAST(const char *, s) + offset; in mcopy()
1377 buf = RCAST(const char *, s) + offset; in mcopy()
1378 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy()
1462 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1633 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1645 RCAST(const void *, s + offset + off)); in mget()
1817 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
2002 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp()
2003 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
H A Dapprentice.c1352 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp()
3473 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv));
3474 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv));
3487 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv));
3488 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv));
3503 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv));
3504 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv));
3602 const unsigned char *s = RCAST(const unsigned char *, ss);
H A Dfile.h423 #define RCAST(T, b) reinterpret_cast<T>(b) macro
427 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
H A Dfuncs.c742 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
/php-src/ext/fileinfo/
H A Dlibmagic.patch123 - char *b = RCAST(char *, map->magic[i]);
2469 - return buffer_apprentice(ms, RCAST(struct magic **, bufs),
2635 - while ((r = sread(fd, RCAST(void *, &buf[nbytes]),
2657 - if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) {
3078 - cp = strndup(RCAST(const char *, ms->search.s),
3079 + cp = estrndup(RCAST(const char *, ms->search.s),
3273 - rc = file_regexec(ms, rx, RCAST(const char *, search),

Completed in 39 milliseconds