Page MenuHomeFreeBSD

flua: lposix: Add Unix domain socket support
Needs ReviewPublic

Authored by dch on Wed, Oct 7, 7:23 AM.
Tags
None
Referenced Files
F175952148: D60433.id188944.diff
Wed, Oct 14, 6:07 PM
F175862847: D60433.id.diff
Wed, Oct 14, 12:06 AM
Unknown Object (File)
Mon, Oct 12, 9:51 PM
Unknown Object (File)
Mon, Oct 12, 1:15 AM
Unknown Object (File)
Sun, Oct 11, 5:39 AM
Unknown Object (File)
Sat, Oct 10, 6:44 PM
Unknown Object (File)
Sat, Oct 10, 6:31 AM
Unknown Object (File)
Sat, Oct 10, 3:23 AM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Add posix.sys.socket with socket() and connect(), along with the
AF_UNIX, SOCK_STREAM and SOCK_DGRAM constants. Only AF_UNIX addresses
are supported: connect() takes a sockaddr table with a path field and
an optional family. Errors follow the rest of lposix and return nil,
the error string and errno.

Sponsored by: SkunkWerks, GmbH

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77801
Build 74684: arc lint + arc unit