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
Unknown Object (File)
Sun, Nov 16, 8:36 AM
Unknown Object (File)
Wed, Oct 29, 11:24 AM
Unknown Object (File)
Wed, Oct 29, 11:22 AM
Unknown Object (File)
Oct 16 2025, 1:33 AM
Unknown Object (File)
Oct 12 2025, 12:20 AM
Unknown Object (File)
Oct 12 2025, 12:20 AM
Unknown Object (File)
Oct 12 2025, 12:20 AM
Unknown Object (File)
Oct 11 2025, 2:52 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.