/netbsd-src/external/bsd/file/dist/src/ |
H A D | cdf.c | 155 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2() 156 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2() 169 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4() 170 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4() 185 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8() 186 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8() 361 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset() 362 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset() 445 return cdf_read(info, CAST(off_t, pos), RCAST(char *, buf) + offs, len); in cdf_read_sector() 466 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector() [all …]
|
H A D | compress.c | 665 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib() 667 bz.next_out = RCAST(char *, *newch); in uncompressbzlib() 708 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib() 753 out.dst = RCAST(void *, *newch); in uncompresszstd() 857 *buf = RCAST(unsigned char *, msg); in makeerror() 885 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in movedesc() 901 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in closedesc() 969 buf = RCAST(char *, ubuf); in filter_error() 1112 args = RCAST(char *const *, RCAST(intptr_t, compr[method].argv)); in uncompressbuf()
|
H A D | readelf.c | 559 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "GNU") == 0 && in do_bid_note() 587 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "Go") == 0 && in do_bid_note() 592 RCAST(const char *, &nbuf[doff]))) == -1) in do_bid_note() 604 const char *name = RCAST(const char *, &nbuf[noff]); in do_os_note() 703 const char *name = RCAST(const char *, &nbuf[noff]); in do_pax_note() 745 const char *name = RCAST(const char *, &nbuf[noff]); in do_core_note() 795 RCAST(char *, pi.cpi_name), sizeof(pi.cpi_name)), in do_core_note() 824 elf_getu32(swap, *RCAST(uint32_t *, (nbuf + in do_core_note() 935 RCAST(char *, cname))) == -1) in do_core_note() 1262 if (namesz == 7 && strcmp(RCAST(char *, &nbuf[noff]), "NetBSD") == 0) { in donote() [all …]
|
H A D | is_tar.c | 109 const union record *header = RCAST(const union record *, in is_tar() 110 RCAST(const void *, buf)); in is_tar()
|
H A D | softmagic.c | 776 cp = strndup(RCAST(const char *, ms->search.s), in mprint() 1343 ms->search.s = RCAST(const char *, s) + offset; in mcopy() 1375 buf = RCAST(const char *, s) + offset; in mcopy() 1376 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy() 1460 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy() 1631 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1643 RCAST(const void *, s + offset + off)); in mget() 1815 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 2000 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp() 2001 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp() [all …]
|
H A D | der.c | 250 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data() 272 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs() 311 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
|
H A D | apprentice.c | 616 char *b = RCAST(char *, map->magic[i]); in apprentice_unmap() 1412 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp() 3538 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap2() 3539 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap2() 3552 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap4() 3553 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap4() 3568 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap8() 3569 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap8() 3667 const unsigned char *s = RCAST(const unsigned char *, ss); in file_pstring_get_length()
|
H A D | magic.c | 340 return buffer_apprentice(ms, RCAST(struct magic **, bufs), in magic_load_buffers() 506 while ((r = sread(fd, RCAST(void *, &buf[nbytes]), in file_or_fd() 528 if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { in file_or_fd()
|
H A D | file.h | 433 #define RCAST(T, b) reinterpret_cast<T>(b) macro 437 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
|
H A D | funcs.c | 824 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
|