Lines Matching refs:off_t
52 static int read_fd (int fd, const char *fname, off_t fdlen);
53 static int read_elf (Elf *elf, int fd, const char *fname, off_t fdlen);
140 static off_t elfmap_off;
192 off_t fdlen = (fstat_fail in main()
194 if (fdlen > (off_t) min_len_bytes) in main()
314 process_chunk_mb (const char *fname, const unsigned char *buf, off_t to, in process_chunk_mb()
391 process_chunk (const char *fname, const unsigned char *buf, off_t to, in process_chunk()
455 map_file (int fd, off_t start_off, off_t fdlen, size_t *map_sizep) in map_file()
468 size_t map_size = MIN ((off_t) mmap_max, fdlen); in map_file()
503 read_block_no_mmap (int fd, const char *fname, off_t from, off_t fdlen) in read_block_no_mmap()
565 read_block (int fd, const char *fname, off_t fdlen, off_t from, off_t to) in read_block()
590 assert ((off_t) min_len_bytes < fdlen); in read_block()
592 if (to < (off_t) elfmap_off || from > (off_t) (elfmap_off + elfmap_size)) in read_block()
610 if (from >= (off_t) elfmap_off in read_block()
611 && from < (off_t) (elfmap_off + elfmap_size)) in read_block()
615 MIN (to, (off_t) (elfmap_off + elfmap_size)), in read_block()
616 MIN (to, (off_t) (elfmap_off + elfmap_size)) - from, in read_block()
619 if (to > (off_t) (elfmap_off + elfmap_size)) in read_block()
624 assert (from >= (off_t) elfmap_off in read_block()
625 && from < (off_t) (elfmap_off + elfmap_size)); in read_block()
626 off_t handled_to = elfmap_off + elfmap_size; in read_block()
688 read_fd (int fd, const char *fname, off_t fdlen) in read_fd()
695 read_elf (Elf *elf, int fd, const char *fname, off_t fdlen) in read_elf()