http://linux.about.com/library/cmd/blcmdl2_pwrite.htm Linux / Unix Command: pwrite |
Command Library |
NAME
pread, pwrite - read from or write to a file descriptor at a given offsetSYNOPSIS
#define _XOPEN_SOURCE 500#include <unistd.h>
ssize_t pread(int fd, void *buf, size_t count, off_t offset);
ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
DESCRIPTION
pread() reads up to count bytes from file descriptor fd at offset offset (from the start of the file) into the buffer starting at buf . The file offset is not changed.pwrite() writes up to count bytes from the buffer starting at buf to the file descriptor fd at offset offset. The file offset is not changed.
The file referenced by fd must be capable of seeking.