Differences between version 3 and previous revision of pread(2).
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Sunday, March 16, 2003 6:40:08 pm | by PerryLorier | Revert |
Older page: | version 2 | Last edited on Sunday, March 16, 2003 6:39:46 pm | by PerryLorier | Revert |
@@ -16,9 +16,9 @@
The file referenced by ''fd'' must be capable of seeking.
!!RETURN VALUE
-On success, the number of bytes read or written is returned (zero indicates that nothing was written, in the case of __pwrite__, or end of file, in the case of _pread__),
+On success, the number of bytes read or written is returned (zero indicates that nothing was written, in the case of __pwrite__, or end of file, in the case of _
_pread__),
or -1 on error, in which case ''errno'' is set to indicate the error.
!!ERRORS
__pread__ can fail and set ''errno'' to any error specified for read(2) or lseek(2). __pwrite__ can fail and set ''errno'' to any error specified for write(2) or lseek(2).