3 FILE_RCSID("@(#)$File: pread.c,v 1.3 2014/09/15 19:11:25 christos Exp $")
9 pread(int fd
, void *buf
, size_t len
, off_t off
) {
13 if ((old
= lseek(fd
, off
, SEEK_SET
)) == -1)
16 if ((rv
= read(fd
, buf
, len
)) == -1)
19 if (lseek(fd
, old
, SEEK_SET
) == -1)