vfs: writev should return the partial write size.
Signed-off-by: buyuer <dingddding@163.com>
This commit is contained in:
parent
ec99e11f5e
commit
33320329ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue