Lines Matching refs:CAST

64 #define SIZE_UNKNOWN	CAST(off_t, -1)
148 ? CAST(void *, &sh32) \
149 : CAST(void *, &sh64))
153 #define xsh_size CAST(size_t, (clazz == ELFCLASS32 \
156 #define xsh_offset CAST(off_t, (clazz == ELFCLASS32 \
167 ? CAST(void *, &ph32) \
168 : CAST(void *, &ph64))
175 #define xph_offset CAST(off_t, (clazz == ELFCLASS32 \
178 #define xph_align CAST(size_t, (clazz == ELFCLASS32 \
179 ? CAST(off_t, (ph32.p_align ? \
181 : CAST(off_t, (ph64.p_align ? \
183 #define xph_vaddr CAST(size_t, (clazz == ELFCLASS32 \
184 ? CAST(off_t, (ph32.p_vaddr ? \
186 : CAST(off_t, (ph64.p_vaddr ? \
188 #define xph_filesz CAST(size_t, (clazz == ELFCLASS32 \
191 #define xph_memsz CAST(size_t, ((clazz == ELFCLASS32 \
195 ? CAST(void *, &nh32) \
196 : CAST(void *, &nh64))
211 ? CAST(void *, &dh32) \
212 : CAST(void *, &dh64))
224 ? CAST(void *, &cap32) \
225 : CAST(void *, &cap64))
237 ? CAST(void *, &auxv32) \
238 : CAST(void *, &auxv64))
381 CAST(ssize_t, xph_sizeof)) { in dophn_core()
412 if (offset >= CAST(size_t, bufsize)) in dophn_core()
414 offset = donote(ms, nbuf, offset, CAST(size_t, bufsize), in dophn_core()
742 if (((1 << CAST(int, i)) & desc) == 0) in do_pax_note()
781 if (((1 << CAST(int, i)) & desc) == 0) in do_memtag_note()
849 elf_getu32(swap, CAST(uint32_t, pi.cpi_pid)), in do_core_note()
853 elf_getu32(swap, CAST(uint32_t, pi.cpi_siglwp)), in do_core_note()
974 cname = CAST(unsigned char *, in do_core_note()
987 CAST(size_t, cp - cname), in do_core_note()
1016 CAST(ssize_t, xph_sizeof)) { in get_offset_from_virtaddr()
1051 (buflen = pread(fd, buf, CAST(size_t, buflen), offset)) <= 0) { in get_string_on_virtaddr()
1061 for (bptr = buf; *bptr && isprint(CAST(unsigned char, *bptr)); bptr++) in get_string_on_virtaddr()
1168 CAST(int, xauxv_val)) == -1) in do_auxv_note()
1184 unsigned char *dbuf = CAST(unsigned char *, vbuf); in dodynamic()
1224 unsigned char *nbuf = CAST(unsigned char *, vbuf); in donote()
1255 CAST(unsigned long, namesz)); in donote()
1261 CAST(unsigned long, descsz)); in donote()
1352 descw = CAST(int, descsz); in donote()
1443 offs = CAST(off_t, (off + size * strtab)); in doshn()
1444 if (pread(fd, xsh_addr, xsh_sizeof, offs) < CAST(ssize_t, xsh_sizeof)) { in doshn()
1477 CAST(ssize_t, xsh_sizeof)) { in doshn()
1505 if (CAST(uintmax_t, (xsh_size + xsh_offset)) > in doshn()
1506 CAST(uintmax_t, fsize)) { in doshn()
1511 CAST(uintmax_t, xsh_offset), in doshn()
1512 CAST(uintmax_t, xsh_size), in doshn()
1513 CAST(uintmax_t, fsize)) == -1) in doshn()
1530 CAST(ssize_t, xsh_size)) { in doshn()
1541 if (noff >= CAST(off_t, xsh_size)) in doshn()
1543 noff = donote(ms, nbuf, CAST(size_t, noff), in doshn()
1566 == CAST(off_t, -1)) { in doshn()
1579 CAST(off_t, xsh_size)) in doshn()
1581 if (read(fd, cbuf, CAST(size_t, xcap_sizeof)) != in doshn()
1582 CAST(ssize_t, xcap_sizeof)) { in doshn()
1631 CAST(unsigned long long, xcap_tag), in doshn()
1632 CAST(unsigned long long, xcap_val)) in doshn()
1686 CAST(unsigned long long, cap_hw1)) == -1) in doshn()
1691 CAST(unsigned long long, cap_hw1)) == -1) in doshn()
1708 CAST(unsigned long long, cap_sf1)) == -1) in doshn()
1749 CAST(ssize_t, xph_sizeof)) { in dophn_exec()
1773 CAST(unsigned long, align)) == -1) in dophn_exec()
1812 if (offset >= CAST(size_t, bufsize)) in dophn_exec()
1815 CAST(size_t, bufsize), clazz, swap, in dophn_exec()
1830 memcpy(interp, nbuf, CAST(size_t, bufsize)); in dophn_exec()
1843 if (offset >= CAST(size_t, bufsize)) in dophn_exec()
1846 CAST(size_t, bufsize), clazz, swap, align, in dophn_exec()
1872 CAST(char *, nbuf), sizeof(nbuf), in dophn_exec()
1883 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_tryelf()
1917 if((lseek(fd, CAST(off_t, 0), SEEK_SET) == CAST(off_t, -1)) in file_tryelf()