Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R0 | Pointer to a status structure buffer |
Exit | |
---|---|
R0 | Corrupted |
The purpose of this call is to read status information about a socket descriptor.
This SWI directly corresponds to the function fstat and would ordinarily be called from C using the socketstat()
function in socklib.h
.
The different function name is needed because in RISC OS file descriptors and socket descriptors come from two different number spaces, while under Unix they share the same number space so a single fstat()
function serves to query either type.
There aren’t direct parallels in RISC OS to all of the members of the status descriptor that might be returned under Unix, therefore some values may be dummy placeholders. For example the inode number has no meaning.