Page MenuHomeFreeBSD

Add the remaining pointer size independent CloudABI socket system calls.
ClosedPublic

Authored by ed on Jul 27 2015, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 4:03 PM
Unknown Object (File)
Thu, Dec 19, 4:02 PM
Unknown Object (File)
Thu, Dec 19, 12:52 PM
Unknown Object (File)
Nov 5 2024, 12:47 PM
Unknown Object (File)
Nov 3 2024, 11:02 PM
Unknown Object (File)
Oct 30 2024, 11:50 AM
Unknown Object (File)
Oct 10 2024, 7:50 PM
Unknown Object (File)
Oct 10 2024, 7:36 PM
Subscribers

Details

Summary

CloudABI uses a structure called cloudabi_sockstat_t. Think of it as
'struct stat' for sockets. It is used by functions such as
getsockname(), getpeername(), some of the getsockopt() values, etc.

This change implements the sock_stat_get() system call that returns a
copy of this structure. The accept() system call should also return a
full copy of this structure eventually, but for now we're only
interested in the peer address. Add a TODO() to make sure this is
patched up later on.

Test Plan

These system calls pass the cloudlibc test suite.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

ed retitled this revision from to Add the remaining pointer size independent CloudABI socket system calls..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: glebius, gnn.
This revision was automatically updated to reflect the committed changes.