h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Stat h2. Socket_Stat h5. (SWI &41215) |_<^{width:4em}. Entry | | |<^. R0 |<^. Socket descriptor | |<^. R0 |<^. Pointer to a status structure buffer | |_<^{width:4em}. Exit | | |<^. R0 |<^. Corrupted | h4. Use The purpose of this call is to read status information about a socket descriptor. h4. Berkeley sockets equivalence This SWI directly corresponds to the function "fstat":https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html and would ordinarily be called from C using the <code>socketstat()</code> function in <code>socklib.h</code>. h4. Notes 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 <code>fstat()</code> 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. h4. See also * [[Internet]] * [[Socket_Creat]]