summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-04-22 11:59:27 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-04-22 11:59:27 +0000
commitde0c2c60393fd5a55f1c3061a579ae0f7fd902f1 (patch)
tree49636f6a10a7291e4c259820073125a87499875f /lib
parent8d25bab8671b0806e6ded1c09bd5cba62a9fcbab (diff)
Clarify SO_SPLICE semantics in setsockopt(2).
ok jmc@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getsockopt.217
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