Lines Matching refs:off_t
51 static int read_fd (int fd, const char *fname, off_t fdlen);
52 static int read_elf (Elf *elf, int fd, const char *fname, off_t fdlen);
139 static off_t elfmap_off;
191 off_t fdlen = (fstat_fail
193 if (fdlen > (off_t) min_len_bytes)
312 process_chunk_mb (const char *fname, const unsigned char *buf, off_t to,
389 process_chunk (const char *fname, const unsigned char *buf, off_t to,
453 map_file (int fd, off_t start_off, off_t fdlen, size_t *map_sizep)
466 size_t map_size = MIN ((off_t) mmap_max, fdlen);
501 read_block_no_mmap (int fd, const char *fname, off_t from, off_t fdlen)
563 read_block (int fd, const char *fname, off_t fdlen, off_t from, off_t to)
588 assert ((off_t) min_len_bytes < fdlen);
590 if (to < (off_t) elfmap_off || from > (off_t) (elfmap_off + elfmap_size))
608 if (from >= (off_t) elfmap_off
609 && from < (off_t) (elfmap_off + elfmap_size))
613 MIN (to, (off_t) (elfmap_off + elfmap_size)),
614 MIN (to, (off_t) (elfmap_off + elfmap_size)) - from,
617 if (to > (off_t) (elfmap_off + elfmap_size))
622 assert (from >= (off_t) elfmap_off
623 && from < (off_t) (elfmap_off + elfmap_size));
624 off_t handled_to = elfmap_off + elfmap_size;
686 read_fd (int fd, const char *fname, off_t fdlen)
693 read_elf (Elf *elf, int fd, const char *fname, off_t fdlen)