From db8caf03e5070781ee5109c88d8a79c1ba6e0c73 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 26 Oct 2001 17:38:20 +0000 Subject: Remove the internal implementation details of wrapping syscalls, which do not match the reality anyway. Approved by: deischen, bde --- lib/libc/sys/accept.2 | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'lib/libc/sys/accept.2') diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2 index 736d0681dfb2..badb2b113b49 100644 --- a/lib/libc/sys/accept.2 +++ b/lib/libc/sys/accept.2 @@ -132,30 +132,6 @@ by issuing a call providing only the control information, or by calling .Xr setsockopt 2 . -.Sh IMPLEMENTATION NOTES -In the non-threaded library -.Fn accept -is implemented as the -.Va accept -syscall. -.Pp -In the threaded library, the -.Va accept -syscall is assembled to -.Fn _thread_sys_accept -and -.Fn accept -is implemented as a function which locks -.Fa s -for read and write, then calls -.Fn _thread_sys_accept . -If the call to -.Fn _thread_sys_accept -would block, a context switch is performed. -Before returning, -.Fn accept -unlocks -.Fa s . .Sh RETURN VALUES The call returns \-1 on error. If it succeeds, it returns a non-negative integer that is a descriptor for the accepted socket. -- cgit v1.3