folly::pwritevNoInt

Gather-writes to a file descriptor at an offset, retrying on EINTR.

Synopsis

Declared in <folly/FileUtil.h>

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

Return Value

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

Parameters

NameDescription
fdThe file descriptor to write to.
iovArray of buffers to write.
countNumber of entries in iov.
offsetFile offset to write at.