folly::pwriteNoInt

Writes to a file descriptor at an offset, retrying on EINTR.

Synopsis

Declared in <folly/FileUtil.h>

ssize_t
pwriteNoInt(
    int fd,
    void const* buf,
    size_t count,
    off_t offset);

Return Value

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

Parameters

NameDescription
fdThe file descriptor to write to.
bufSource buffer.
countNumber of bytes to write.
offsetFile offset to write at.