vfs: writev should return the partial write size

Signed-off-by: 丁欣童 <dingxintong@xiaomi.com>
Change-Id: Id7f161fa51a9ad66dad265cab125deb3323e6602
This commit is contained in:
丁欣童
2021-08-25 19:11:42 +08:00
committed by dingxintong
parent 95db8bb14f
commit 5738f26938
+1 -1
View File
@@ -123,7 +123,7 @@ ssize_t writev(int fildes, FAR const struct iovec *iov, int iovcnt)
set_errno(save);
}
return ERROR;
return ntotal ? ntotal : ERROR;
}
/* Update pointers and counts in order to handle partial