Page MenuHomeFreeBSD

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

Authored by kbowling on Jul 25 2025, 10:58 PM.
Tags
None
Referenced Files
F147559924: D51547.diff
Wed, Mar 11, 10:11 PM
Unknown Object (File)
Sat, Mar 7, 9:52 AM
Unknown Object (File)
Fri, Mar 6, 1:14 AM
Unknown Object (File)
Tue, Mar 3, 1:48 PM
Unknown Object (File)
Fri, Feb 27, 9:18 PM
Unknown Object (File)
Feb 8 2026, 5:06 PM
Unknown Object (File)
Feb 2 2026, 5:22 PM
Unknown Object (File)
Feb 1 2026, 9:51 PM
Subscribers

Details

Summary

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

Reported by: Udip Pant <upant@netflix.com>
Obtained from: OpenBSD

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Ok from manpages@, thank you!

This revision is now accepted and ready to land.Jul 25 2025, 11:26 PM
markj added inline comments.
lib/libsys/getsockopt.2
602

A bit pedantic, but really it indicates that the splice has terminated _and_ that at least one byte is available for reading. Unsplicing itself doesn't cause an event to be raised.