Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R1 | Pointer to an array of buffer descriptors |
R2 | Number of buffer descriptors |
Exit | |
---|---|
R0 | Number of bytes sent |
The purpose of this call is to write data to a socket from a vector of buffer descriptors. It is equivalent to calling write() except in the way the buffers need not be contiguous.
This SWI directly corresponds to the function writev and would ordinarily be called from C using the socketwritev()
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 writev()
function serves to write to either type.