-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[libc] implement sys/uio/readv #124694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
@llvm/issue-subscribers-libc Author: Schrodinger ZHU Yifan (SchrodingerZhu)
We have added [writev](https://github.com//pull/122233), `readv` is still missing in `uio`.
|
Icohedron
pushed a commit
to Icohedron/llvm-project
that referenced
this issue
Feb 11, 2025
Closes llvm#124694. This patch adds the `sys/uio/readv` function. ref: https://pubs.opengroup.org/onlinepubs/009696699/functions/readv.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We have added writev,
readv
is still missing inuio
.see https://pubs.opengroup.org/onlinepubs/9799919799/functions/readv.html
NAME
readv — read a vector
SYNOPSIS
[XSI] [Option Start] #include <sys/uio.h>
DESCRIPTION
The readv() function shall be equivalent to read(), except as described below. The readv() function shall place the input data into the iovcnt buffers specified by the members of the iov array: iov[0], iov[1], ..., iov[iovcnt-1]. The iovcnt argument is valid if greater than 0 and less than or equal to {IOV_MAX}.
Each iovec entry specifies the base address and length of an area in memory where data should be placed. The readv() function shall always fill an area completely before proceeding to the next.
Upon successful completion, readv() shall mark for update the last data access timestamp of the file.
RETURN VALUE
Refer to read().
ERRORS
Refer to read().
In addition, the readv() function shall fail if:
The sum of the iov_len values in the iov array overflowed an ssize_t.
The readv() function may fail if:
The iovcnt argument was less than or equal to 0, or greater than {IOV_MAX}.
The text was updated successfully, but these errors were encountered: