Cancellable libc write replacement.
Code that intends to be portable to Win32 should call this function only on file descriptors returned from open , not on sockets.
| fd |
file descriptor |
| buf |
buffer to write |
| n |
number of bytes of |
| cancellable |
optional Cancellable object, or null |
|
number of bytes written or -1 on fail. On failure, errno will be set appropriately. |