pread64

Name

pread64 -- read from a file (Large File Support)

Synopsis

#include <unistd.h>

ssize_t pread64(int fd, void * buf, size_t count, off64_t offset);

Description

pread64() shall read count bytes into buf from the file associated with the open file descriptor fd, at the position specified by offset, without changing the file position.

pread64() is a large-file version of the pread() function as defined in POSIX 1003.1-2001 (ISO/IEC 9945-2003). It differs from pread() in that the offset parameter is an off64_t instead of an off_t

Return Value

On success, pread64() shall return the number of bytes actually read. Otherwise pread64() shall return -1 and set errno to indicate the error.

Errors

See pread() for possible error values.