diff options
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 b8c451d..16fe7284 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 |