This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 33320329ec326cd42a1dd12af65c1729f7522e52
Author: buyuer <[email protected]>
AuthorDate: Wed Aug 25 20:10:12 2021 +0800

    vfs: writev should return the partial write size.
    
    Signed-off-by: buyuer <[email protected]>
---
 libs/libc/uio/lib_writev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/uio/lib_writev.c b/libs/libc/uio/lib_writev.c
index f35561b..02b9fc0 100644
--- a/libs/libc/uio/lib_writev.c
+++ b/libs/libc/uio/lib_writev.c
@@ -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

Reply via email to