mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
vfs: writev should return the partial write size.
Signed-off-by: buyuer <dingddding@163.com>
This commit is contained in:
@@ -123,7 +123,7 @@ ssize_t writev(int fildes, FAR const struct iovec *iov, int iovcnt)
|
|||||||
set_errno(save);
|
set_errno(save);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ERROR;
|
return ntotal ? ntotal : ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update pointers and counts in order to handle partial
|
/* Update pointers and counts in order to handle partial
|
||||||
|
|||||||
Reference in New Issue
Block a user