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
F132340430: D51547.id159160.diff
Thu, Oct 16, 1:33 AM
Unknown Object (File)
Sun, Oct 12, 12:20 AM
Unknown Object (File)
Sun, Oct 12, 12:20 AM
Unknown Object (File)
Sun, Oct 12, 12:20 AM
Unknown Object (File)
Sat, Oct 11, 2:52 PM
Unknown Object (File)
Thu, Oct 9, 1:38 AM
Unknown Object (File)
Fri, Oct 3, 9:30 PM
Unknown Object (File)
Fri, Sep 26, 8:23 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.