diff --git a/man2/pread.2 b/man2/pread.2 index 66c8a5375..de1e951b3 100644 --- a/man2/pread.2 +++ b/man2/pread.2 @@ -77,15 +77,17 @@ The file referenced by .I fd must be capable of seeking. .SH RETURN VALUE -On success, the number of bytes read or written is returned (zero -indicates that nothing was written, in the case of -.BR pwrite (), -or -end of file, in the case of -.BR pread ()), -or \-1 on error, in which case +On success, +.BR pread () +returns the number of bytes read +(a return of zero indicates end of file) +and +.BR pwrite () +returns the number of bytes written. + +On error, \-1 is returned and .I errno -is set to indicate the error. +is set to indicate the cause of the error. .SH ERRORS .BR pread () can fail and set