8 __weak_alias(pread
, _pread
)
11 ssize_t
pread(int fd
, void *buffer
, size_t nbytes
, off_t where
)
16 if((here
= lseek(fd
, 0, SEEK_CUR
)) < 0)
19 if(lseek(fd
, where
, SEEK_SET
) < 0)
22 if((r
=read(fd
, buffer
, nbytes
)) < 0) {
24 lseek(fd
, here
, SEEK_SET
);
29 if(lseek(fd
, here
, SEEK_SET
) < 0)