pwrite64

Name

pwrite64 -- write on a file (Large File Support)

Synopsis

#include <unistd.h>

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

Description

pwrite64() shall write count bytes from buf to the file associated with the open file descriptor fd, at the position specified by offset, without changing the file position.

pwrite64() is a large-file version of the pwrite() function as defined in POSIX 1003.1-2008 (ISO/IEC 9945-2009). It differs from pwrite() in that the offset parameter is an off64_t instead of an off_t

Return Value

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

Errors

See pwrite() for possible error values.