diff options
| author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-03-02 09:14:21 +0000 |
|---|---|---|
| committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-03-02 09:14:21 +0000 |
| commit | c6ff3a1bf74d96278726113478b2c66884aab584 (patch) | |
| tree | 6fdc69d4aab26ec98c8573dbb7c07e9edbb0900a /lib/libc/sys/read.2 | |
| parent | 55609eba05d32edc56e3f69740099d4d9b095cef (diff) | |
Notes
Diffstat (limited to 'lib/libc/sys/read.2')
| -rw-r--r-- | lib/libc/sys/read.2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index b8c451d91068..16fe7284afb8 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -135,7 +135,8 @@ for read, then calls .Fn _thread_sys_read . If the call to .Fn _thread_sys_read -would block, a context switch is performed. Before returning, +would block, a context switch is performed. +Before returning, .Fn read unlocks .Va d . @@ -158,13 +159,15 @@ for read, then calls .Fn _thread_sys_readv . If the call to .Fn _thread_sys_readv -would block, a context switch is performed. Before returning, +would block, a context switch is performed. +Before returning, .Fn readv unlocks .Va d . .Sh RETURN VALUES If successful, the -number of bytes actually read is returned. Upon reading end-of-file, +number of bytes actually read is returned. +Upon reading end-of-file, zero is returned. Otherwise, a -1 is returned and the global variable .Va errno |
