Page MenuHomeFreeBSD

unix/dgram: cleanup uipc_send of PF_UNIX/SOCK_DGRAM, step 2
ClosedPublic

Authored by glebius on May 23 2022, 9:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 4, 1:26 AM
Unknown Object (File)
Wed, Oct 29, 1:15 PM
Unknown Object (File)
Wed, Oct 29, 1:14 PM
Unknown Object (File)
Wed, Oct 29, 1:10 PM
Unknown Object (File)
Fri, Oct 24, 3:12 PM
Unknown Object (File)
Fri, Oct 17, 9:53 PM
Unknown Object (File)
Sep 17 2025, 12:29 AM
Unknown Object (File)
Aug 14 2025, 10:14 PM
Subscribers

Details

Summary

Just remove one level of indentation as the case clause always match.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningsys/kern/uipc_usrreq.c:1012SPELL1Possible Spelling Mistake
Warningsys/kern/uipc_usrreq.c:1013SPELL1Possible Spelling Mistake
Unit
No Test Coverage
Build Status
Buildable 45676
Build 42564: arc lint + arc unit

Event Timeline

Note: this patch is a step towards D35303.

markj added inline comments.
sys/kern/uipc_usrreq.c
1103

Seems weird that we honour PRUS_EOF even in the error case. I'm not sure if it's a bug or not.

This revision is now accepted and ready to land.May 24 2022, 2:26 PM
glebius added a subscriber: tuexen.
glebius added inline comments.
sys/kern/uipc_usrreq.c
1103

Oh, I noticed that, too. :)

There is no real use of MSG_EOF. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261699 Notice that all failed programs aren't real applications, but tools that want to exercise all possible socket APIs. In the base system there inetd(8), that would use MSG_EOF on TCP sockets for its builtins. Nobody in the world uses inetd builtins. There are no test cases for MSG_EOF.

MSG_EOF exist only in FreeBSD and Mac OS X.

My first intent was to remove it. But @tuexen thinks it is a cool feature and promised to cover it with tests :)

Anyway, fixing MSG_EOF for PF_UNIX/SOCK_STREAM|SEQPACKET is out of scope of my work.

sys/kern/uipc_usrreq.c
1103

Fair enough!

This revision was landed with ongoing or failed builds.Jun 24 2022, 4:10 PM
This revision was automatically updated to reflect the committed changes.
glebius marked an inline comment as done.