Lines Matching refs:off_t
45 private int dophn_core(struct magic_set *, int, int, int, off_t, int, size_t,
46 off_t, int *);
48 private int dophn_exec(struct magic_set *, int, int, int, off_t, int, size_t,
49 off_t, int *, int);
50 private int doshn(struct magic_set *, int, int, int, off_t, int, size_t,
51 off_t, int *, int);
147 #define xsh_offset (off_t)(clazz == ELFCLASS32 \
162 #define xph_offset (off_t)(clazz == ELFCLASS32 \
166 ? (off_t) (ph32.p_align ? \
168 : (off_t) (ph64.p_align ? \
293 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, in dophn_core()
294 int num, size_t size, off_t fsize, int *flags) in dophn_core()
312 if (FINFO_LSEEK_FUNC(fd, off, SEEK_SET) == (off_t)-1) { in dophn_core()
334 if (FINFO_LSEEK_FUNC(fd, xph_offset, SEEK_SET) == (off_t)-1) { in dophn_core()
843 doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, in doshn()
844 size_t size, off_t fsize, int *flags, int mach) in doshn()
850 off_t noff, coff; in doshn()
861 if (FINFO_LSEEK_FUNC(fd, off, SEEK_SET) == (off_t)-1) { in doshn()
891 if ((noff = FINFO_LSEEK_FUNC(fd, (off_t)xsh_offset, SEEK_SET)) == in doshn()
892 (off_t)-1) { in doshn()
906 if (noff >= (off_t)xsh_size) in doshn()
917 if (FINFO_LSEEK_FUNC(fd, (off_t)xsh_offset, SEEK_SET) == in doshn()
918 (off_t)-1) { in doshn()
928 if ((coff += xcap_sizeof) > (off_t)xsh_size) in doshn()
1031 dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off, in dophn_exec()
1032 int num, size_t size, off_t fsize, int *flags, int sh_num) in dophn_exec()
1049 if (FINFO_LSEEK_FUNC(fd, off, SEEK_SET) == (off_t)-1) { in dophn_exec()
1093 if (FINFO_LSEEK_FUNC(fd, xph_offset, SEEK_SET) == (off_t)-1) { in dophn_exec()
1136 off_t fsize; in file_tryelf()
1159 if((FINFO_LSEEK_FUNC(fd, (off_t)0, SEEK_SET) == (off_t)-1) && (errno == ESPIPE)) in file_tryelf()