summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/write.2
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-10-26 17:38:20 +0000
committerru <ru@FreeBSD.org>2001-10-26 17:38:20 +0000
commit5cf7b5f41f4236d42751f1ffbb7c54d5160772ca (patch)
tree8aa1b798dafa0810da76835d9fb76f6cf3efa499 /lib/libc/sys/write.2
parentefc392e6af8312d69312f3d4ff5bc8e558301448 (diff)
downloadFreeBSD-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/write.2')
-rw-r--r--lib/libc/sys/write.248
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index 77fba35..d8a4177 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -124,54 +124,6 @@ and
may write fewer bytes than requested;
the return value must be noted,
and the remainder of the operation should be retried when possible.
-.Sh IMPLEMENTATION NOTES
-In the non-threaded library
-.Fn write
-is implemented as the
-.Va write
-syscall.
-.Pp
-In the threaded library, the
-.Va write
-syscall is assembled to
-.Fn _thread_sys_write
-and
-.Fn write
-is implemented as a function which locks
-.Fa d
-for read and write, then calls
-.Fn _thread_sys_write .
-If the call to
-.Fn _thread_sys_write
-would block, a context switch is performed.
-Before returning,
-.Fn write
-unlocks
-.Fa d .
-.Pp
-In the non-threaded library
-.Fn writev
-is implemented as the
-.Va writev
-syscall.
-.Pp
-In the threaded library, the
-.Va writev
-syscall is assembled to
-.Fn _thread_sys_writev
-and
-.Fn writev
-is implemented as a function which locks
-.Fa d
-for read and write, then calls
-.Fn _thread_sys_writev .
-If the call to
-.Fn _thread_sys_writev
-would block, a context switch is performed.
-Before returning,
-.Fn writev
-unlocks
-.Fa d .
.Sh RETURN VALUES
Upon successful completion the number of bytes which were written
is returned. Otherwise a -1 is returned and the global variable
OpenPOWER on IntegriCloud