Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R1 | Operation to perform |
R2 | Pointer to buffer containing the value (writes) or to return the value into (reads) |
Exit | |
---|---|
R0 | Corrupted |
The purpose of this call is to perform miscellaneous I/O control operations on a socket.
This SWI directly corresponds to the function ioctl and would ordinarily be called from C using the socketioctl()
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 ioctl()
function serves to manipulate either type.