diff options
author | ru <ru@FreeBSD.org> | 2001-10-26 17:38:20 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-10-26 17:38:20 +0000 |
commit | 5cf7b5f41f4236d42751f1ffbb7c54d5160772ca (patch) | |
tree | 8aa1b798dafa0810da76835d9fb76f6cf3efa499 /lib/libc/sys/read.2 | |
parent | efc392e6af8312d69312f3d4ff5bc8e558301448 (diff) | |
download | FreeBSD-src-5cf7b5f41f4236d42751f1ffbb7c54d5160772ca.zip FreeBSD-src-5cf7b5f41f4236d42751f1ffbb7c54d5160772ca.tar.gz |
Remove the internal implementation details of wrapping syscalls,
which do not match the reality anyway.
Approved by: deischen, bde
Diffstat (limited to 'lib/libc/sys/read.2')
-rw-r--r-- | lib/libc/sys/read.2 | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index e4f330a..42d04ce 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -116,54 +116,6 @@ return the number of bytes actually read and placed in the buffer. The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but in no other case. -.Sh IMPLEMENTATION NOTES -In the non-threaded library -.Fn read -is implemented as the -.Va read -syscall. -.Pp -In the threaded library, the -.Va read -syscall is assembled to -.Fn _thread_sys_read -and -.Fn read -is implemented as a function which locks -.Fa d -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, -.Fn read -unlocks -.Fa d . -.Pp -In the non-threaded library -.Fn readv -is implemented as the -.Va readv -syscall. -.Pp -In the threaded library, the -.Va readv -syscall is assembled to -.Fn _thread_sys_readv -and -.Fn readv -is implemented as a function which locks -.Fa d -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, -.Fn readv -unlocks -.Fa d . .Sh RETURN VALUES If successful, the number of bytes actually read is returned. |