From: kn Date: Wed, 15 Aug 2018 12:10:49 +0000 (+0000) Subject: Fix struct soplice usage X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=40493fdca8501a22cb125137c841c9edc8ff30fc;p=openbsd Fix struct soplice usage sys/sys/socketvar.h r1.57 (2014) moved various struct socket fields into a new struct sosplice field, this adapts usage accordingly. OK bluhm --- diff --git a/share/man/man9/sosplice.9 b/share/man/man9/sosplice.9 index d3df2fe83f0..7444281b6ba 100644 --- a/share/man/man9/sosplice.9 +++ b/share/man/man9/sosplice.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sosplice.9,v 1.8 2016/06/13 21:24:43 bluhm Exp $ +.\" $OpenBSD: sosplice.9,v 1.9 2018/08/15 12:10:49 kn Exp $ .\" .\" Copyright (c) 2011-2013 Alexander Bluhm .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 13 2016 $ +.Dd $Mdocdate: August 15 2018 $ .Dt SOSPLICE 9 .Os .Sh NAME @@ -59,28 +59,30 @@ See the .Sx ERRORS section for possible failures. The connection between both sockets is implemented by setting these -additional fields in +additional fields in the +.Vt struct sosplice Va *so_sp +field in .Vt struct socket : .Pp .Bl -dash -compact -offset indent .It -.Vt struct socket Fa *so_splice +.Vt struct socket Va *ssp_socket links from the source to the drain socket. .It -.Vt struct socket Fa *so_spliceback +.Vt struct socket Va *ssp_soback links back from the drain to the source socket. .It -.Vt off_t Fa so_splicelen +.Vt off_t Va ssp_len counts the number of bytes spliced so far from this socket. .It -.Vt off_t Fa so_splicemax +.Vt off_t Va ssp_max specifies the maximum number of bytes to splice from this socket if non-zero. .It -.Vt struct timeval Fa so_idletv +.Vt struct timeval Va ssp_idletv specifies the maximum idle time if non-zero. .It -.Vt struct timeout Fa so_idleto +.Vt struct timeout Va ssp_idleto provides storage for the kernel timeout if idle time is used. .El .Pp