Page MenuHomeFreeBSD

Make linux(4) use kern_socketpair(9)
ClosedPublic

Authored by trasz on Dec 14 2019, 1:03 PM.
Tags
None
Referenced Files
F171009673: D22814.diff
Tue, Sep 8, 4:18 AM
Unknown Object (File)
Mon, Sep 7, 10:14 PM
Unknown Object (File)
Mon, Sep 7, 7:54 PM
Unknown Object (File)
Mon, Sep 7, 7:53 PM
Unknown Object (File)
Mon, Sep 7, 7:52 PM
Unknown Object (File)
Mon, Sep 7, 7:34 PM
Unknown Object (File)
Sun, Aug 23, 11:49 PM
Unknown Object (File)
Sat, Aug 22, 6:21 PM
Subscribers

Details

Summary

Make linux(4) use kern_socketpair(9) instead of going through
sys_socketpair(). It's a cleanup; no functional changes.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/compat/linux/linux_socket.c
758 ↗(On Diff #65655)

Wrong indent.

770 ↗(On Diff #65655)

else is not needed. Is this correct, in fact ?

776 ↗(On Diff #65655)

Extra empty line.

782 ↗(On Diff #65655)

Same.

Fix things pointed out by kib@.

kib added inline comments.
sys/compat/linux/linux_socket.c
766 ↗(On Diff #66737)

Does this sentence in comment still makes sense ?

While there, remove the blank line before the comment.

774 ↗(On Diff #66737)

sizeof(sv) is better IMO.

This revision is now accepted and ready to land.Jan 14 2020, 7:45 PM