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)
Jan 17 2025, 3:05 PM
Unknown Object (File)
Jan 8 2025, 12:39 AM
Unknown Object (File)
Dec 28 2024, 7:17 AM
Unknown Object (File)
Dec 19 2024, 4:03 PM
Unknown Object (File)
Dec 19 2024, 4:02 PM
Unknown Object (File)
Dec 19 2024, 12:52 PM
Unknown Object (File)
Nov 5 2024, 12:47 PM
Unknown Object (File)
Nov 3 2024, 11:02 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 Not Applicable
Unit
Tests Not Applicable

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.