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

Name

Description

fd

The file descriptor to write to.

buf

Source buffer.

count

Number of bytes to write.

offset

File offset to write at.

Created with MrDocs