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
F159759496: D51547.id159160.diff
Wed, Jun 17, 10:43 PM
F159726330: D51547.id159203.diff
Wed, Jun 17, 1:40 PM
F159691296: D51547.diff
Wed, Jun 17, 3:00 AM
Unknown Object (File)
Tue, Jun 9, 3:22 PM
Unknown Object (File)
May 5 2026, 1:03 AM
Unknown Object (File)
Apr 29 2026, 2:23 PM
Unknown Object (File)
Apr 29 2026, 2:15 PM
Unknown Object (File)
Apr 29 2026, 1:04 AM
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.