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
F107959043: D35295.diff
Sun, Jan 19, 11:13 PM
Unknown Object (File)
Nov 26 2024, 2:10 AM
Unknown Object (File)
Nov 25 2024, 1:17 PM
Unknown Object (File)
Nov 22 2024, 5:45 PM
Unknown Object (File)
Nov 12 2024, 3:00 AM
Unknown Object (File)
Nov 12 2024, 2:41 AM
Unknown Object (File)
Oct 22 2024, 6:54 PM
Unknown Object (File)
Oct 3 2024, 10:43 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.