getsockopt.2: Add SO_SPLICE source socket read and socket close behavior

Add select(2), poll(2), or kqueue(2) source socket semantics and close
behavior.

Reported by:	Udip Pant <upant@netflix.com>
Reviewed by:	manpages (ziaee), markj
Obtained from:	OpenBSD
MFC after:	3 days
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D51547
This commit is contained in:
Kevin Bowling 2025-07-26 14:18:47 -07:00
parent ebc6ff8db1
commit 122b2a3530

View file

@ -593,6 +593,15 @@ specified amount of time has elapsed since the initial call to
If
.Fa sp_fd
is -1, the socket will be unspliced immediately.
A successful
.Xr select 2 ,
.Xr poll 2 ,
or
.Xr kqueue 2
operation testing the ability to read from the source socket indicates
that the splicing has terminated and at least one byte is available for
reading.
When one of the sockets gets closed, splicing ends.
.Pp
When passed to
.Fn getsockopt ,