Home
last modified time | relevance | path

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

/dflybsd-src/contrib/file/src/
H A Dcompress.c611 strlcpy(RCAST(char *, *newch), z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib()
612 *n = strlen(RCAST(char *, *newch)); in uncompresszlib()
633 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib()
635 bz.next_out = RCAST(char *, *newch); in uncompressbzlib()
654 snprintf(RCAST(char *, *newch), bytes_max, "bunzip error %d", rc); in uncompressbzlib()
655 *n = strlen(RCAST(char *, *newch)); in uncompressbzlib()
678 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib()
694 snprintf(RCAST(char *, *newch), bytes_max, "unxz error %d", rc); in uncompressxzlib()
695 *n = strlen(RCAST(char *, *newch)); in uncompressxzlib()
716 *buf = RCAST(unsigned char *, msg); in makeerror()
[all …]
H A Dcdf.c149 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2()
150 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2()
163 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4()
164 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4()
179 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8()
180 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8()
355 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset()
356 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset()
439 return cdf_read(info, CAST(off_t, pos), RCAST(char *, buf) + offs, len); in cdf_read_sector()
460 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector()
[all …]
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 Dreadelf.c553 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "GNU") == 0 && in do_bid_note()
581 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "Go") == 0 && in do_bid_note()
586 RCAST(const char *, &nbuf[doff]))) == -1) in do_bid_note()
598 const char *name = RCAST(const char *, &nbuf[noff]); in do_os_note()
697 const char *name = RCAST(const char *, &nbuf[noff]); in do_pax_note()
739 const char *name = RCAST(const char *, &nbuf[noff]); in do_core_note()
789 RCAST(char *, pi.cpi_name), sizeof(pi.cpi_name)), in do_core_note()
818 elf_getu32(swap, *RCAST(uint32_t *, (nbuf + in do_core_note()
929 RCAST(char *, cname))) == -1) in do_core_note()
1256 if (namesz == 7 && strcmp(RCAST(char *, &nbuf[noff]), "NetBSD") == 0) { in donote()
[all …]
H A Dsoftmagic.c767 cp = strndup(RCAST(const char *, ms->search.s), in mprint()
1333 ms->search.s = RCAST(const char *, s) + offset; in mcopy()
1365 buf = RCAST(const char *, s) + offset; in mcopy()
1366 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy()
1447 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1604 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1616 RCAST(const void *, s + offset + off)); in mget()
1777 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1959 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp()
1960 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
[all …]
H A Dder.c244 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data()
266 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 Dapprentice.c611 char *b = RCAST(char *, map->magic[i]); in apprentice_unmap()
1402 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp()
3513 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap2()
3514 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap2()
3527 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap4()
3528 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap4()
3543 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap8()
3544 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap8()
3642 const unsigned char *s = RCAST(const unsigned char *, ss); in file_pstring_get_length()
H A Dmagic.c334 return buffer_apprentice(ms, RCAST(struct magic **, bufs), in magic_load_buffers()
500 while ((r = sread(fd, RCAST(void *, &buf[nbytes]), in file_or_fd()
522 if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { in file_or_fd()
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.c772 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()