Lines Matching defs:pos
60 static u8 read_file(SOURCE *s, u8 pos, u8 len, void *buf);
64 static int check_position(int fd, u8 pos);
230 static u8 read_file(SOURCE *s, u8 pos, u8 len, void *buf)
239 result_seek = lseek(fd, pos, SEEK_SET);
240 if (result_seek != pos) {
241 errore("Seek to %llu failed", pos);
253 errore("Data read failed at position %llu", pos + got);
285 static int check_position(int fd, u8 pos)
290 printf(" Probing %llu\n", pos);
293 if (lseek(fd, pos, SEEK_SET) != pos)