folly::preadvNoInt

Scatter-reads from a file descriptor at an offset, retrying on EINTR.

Synopsis

Declared in <folly/FileUtil.h>

ssize_t
preadvNoInt(
    int fd,
    iovec const* iov,
    int count,
    off_t offset);

Return Value

The number of bytes read, or -1 on error.

Parameters

NameDescription
fdThe file descriptor to read from.
iovArray of buffers to fill.
countNumber of entries in iov.
offsetFile offset to read from.