Page MenuHomeFreeBSD

flua: lposix: Add Unix domain socket support
Needs ReviewPublic

Authored by dch on Wed, Oct 7, 7:23 AM.
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