diff options
author | Julian Elischer <julian@FreeBSD.org> | 1996-01-22 00:02:33 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 1996-01-22 00:02:33 +0000 |
commit | f70177e76e605ec6e6cd5b938fa77ade5d380e87 (patch) | |
tree | a89c7f50ec371cef4418259b9dccdd31ebb2f61f /lib/libc/sys/listen.2 | |
parent | 61de51cad66df0d565233915f856932159d33a4a (diff) | |
download | src-f70177e76e605ec6e6cd5b938fa77ade5d380e87.tar.gz src-f70177e76e605ec6e6cd5b938fa77ade5d380e87.zip |
Reviewed by: julian and (hsu?)
Submitted by: John Birrel(L?)
changes for threadsafe operations
Notes
Notes:
svn path=/head/; revision=13545
Diffstat (limited to 'lib/libc/sys/listen.2')
-rw-r--r-- | lib/libc/sys/listen.2 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2 index eaa9522d5ee5..6d2a64f14522 100644 --- a/lib/libc/sys/listen.2 +++ b/lib/libc/sys/listen.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)listen.2 8.2 (Berkeley) 12/11/93 -.\" $Id$ +.\" $Id: listen.2,v 1.3 1995/11/03 18:34:38 wollman Exp $ .\" .Dd November 3, 1995 .Dt LISTEN 2 @@ -82,6 +82,28 @@ or less than zero is specified, .Fa backlog is silently forced to .Li kern.somaxconn . +.Sh IMPLEMENTATION NOTES +.Pp +In the non-threaded library +.Fn listen +is implemented as the +.Va listen +syscall. +.Pp +In the threaded library, the +.Va listen +syscall is assembled to +.Fn _thread_sys_listen +and +.Fn listen +is implemented as a function which locks +.Va s +for read and write, then calls +.Fn _thread_sys_listen . +Before returning, +.Fn listen +unlocks +.Va s . .Sh RETURN VALUES A 0 return value indicates success; -1 indicates an error. .Sh ERRORS |