diff options
author | 2011-04-22 11:59:26 +0000 | |
---|---|---|
committer | 2011-04-22 11:59:26 +0000 | |
commit | f406366d144a0d17b3e5b112c163f9149d420024 (patch) | |
tree | 909240daa12303b1edfad0cf0f21f21a9de0abd8 | |
parent | Add support for PCH2 (Sandy Bridge) MAC with 82579 PHY. (diff) | |
download | wireguard-openbsd-f406366d144a0d17b3e5b112c163f9149d420024.tar.xz wireguard-openbsd-f406366d144a0d17b3e5b112c163f9149d420024.zip |
Clarify SO_SPLICE semantics in setsockopt(2).
ok jmc@
-rw-r--r-- | lib/libc/sys/getsockopt.2 | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index 36c7613fd09..a2ec874497e 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getsockopt.2,v 1.29 2011/03/08 00:13:41 bluhm Exp $ +.\" $OpenBSD: getsockopt.2,v 1.30 2011/04/22 11:59:26 bluhm Exp $ .\" $NetBSD: getsockopt.2,v 1.7 1995/02/27 12:33:29 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: March 8 2011 $ +.Dd $Mdocdate: April 22 2011 $ .Dt GETSOCKOPT 2 .Os .Sh NAME @@ -363,12 +363,15 @@ Otherwise the spliced data transfer continues within the kernel until the optional maximum is reached, one of the connections terminates or an error occurs. A successful -.Xr select 2 +.Xr select 2 , +.Xr poll 2 , or -.Xr poll 2 -operation testing the ability to read from the source socket, -indicates that the splicing has terminated. -In this case, the error status can be examined with +.Xr kqueue 2 +operation testing the ability to read from the source socket indicates +that the splicing has terminated. +After reaching the maximum, it becomes readable only when more data +is available. +The error status can be examined with .Dv SO_ERROR at the source socket. Note that if a maximum is given, it is only guaranteed that no more |