Home
last modified time | relevance | path

Searched refs:readv (Results 1 - 25 of 49) sorted by relevance

12

/third_party/node/test/parallel/
H A Dtest-fs-readv-promises.js35 let { bytesRead, buffers } = await handle.readv([Buffer.from('')],
40 ({ bytesRead, buffers } = await handle.readv(bufferArr, null));
54 let { bytesRead, buffers } = await handle.readv([Buffer.from('')]);
58 ({ bytesRead, buffers } = await handle.readv(bufferArr));
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dreadv.c49 result = readv(fd, ios, sizeof(ios) / sizeof(struct iovec)); in readv_0100()
73 ssize_t result = readv(-1, NULL, -1); in readv_0200()
/third_party/rust/crates/rustix/tests/io/
H A Dread_write.rs73 use rustix::io::{readv, writev, SeekFrom}; in test_readwrite_v()
89 readv(&foo, &mut [IoSliceMut::new(&mut buf)]).unwrap(); in test_readwrite_v()
91 readv(&foo, &mut [IoSliceMut::new(&mut buf)]).unwrap(); in test_readwrite_v()
/third_party/musl/src/unistd/
H A Dreadv.c4 ssize_t readv(int fd, const struct iovec *iov, int count) in readv() function
/third_party/musl/src/linux/
H A Dpreadv2.c10 if (ofs==-1) return readv(fd, iov, count); in preadv2()
/third_party/musl/libc-test/src/api/
H A Dsys_uio.c13 {ssize_t(*p)(int,const struct iovec*,int) = readv;} in f()
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Duio.h26 ssize_t readv (int, const struct iovec *, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Duio.h26 ssize_t readv (int, const struct iovec *, int);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Duio.h26 ssize_t readv (int, const struct iovec *, int);
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Duio.h16 ssize_t readv (int, const struct iovec *, int);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Duio.h29 ssize_t readv (int, const struct iovec *, int);
/third_party/musl/include/sys/
H A Duio.h26 ssize_t readv (int, const struct iovec *, int);
/third_party/ltp/testcases/kernel/syscalls/readv/
H A Dreadv02.c12 * Tests readv() failures:
74 TST_EXP_FAIL2(readv(*tc->fd, tc->buf, tc->count), tc->exp_error, in verify_readv()
75 "readv(%d, %p, %d)", *tc->fd, tc->buf, tc->count); in verify_readv()
H A Dreadv01.c10 * Testcase to check the basic functionality of the readv(2) system call.
13 * Create a IO vector, and attempt to readv() various components of it.
35 {&rd_iovec, 0, 0, "readv() with 0 I/O vectors"},
36 {&rd_iovec, 3, CHUNK, "readv() with NULL I/O vectors"},
37 {&big_iovec, 2, CHUNK, "readv() with too big I/O vectors"},
38 {&multi_iovec, 2, 3*CHUNK/4, "readv() with multiple I/O vectors"},
39 {&lockup_iovec, 2, CHUNK, "readv() with zero-len buffer"},
58 TEST(readv(fd, vec, tc->iov_count)); in test_readv()
61 tst_res(TFAIL | TTERRNO, "readv() failed unexpectedly"); in test_readv()
63 tst_res(TFAIL | TTERRNO, "readv() returne in test_readv()
[all...]
/third_party/selinux/libselinux/src/
H A Dsetrans_client.c153 while (((count = readv(fd, resp_hdr, 3)) < 0) && (errno == EINTR)) ; in receive_response()
165 /* coveriety doesn't realize that data will be initialized in readv */ in receive_response()
171 while (((count = readv(fd, &resp_data, 1))) < 0 && (errno == EINTR)) ; in receive_response()
/third_party/ltp/testcases/kernel/sound/
H A Dsnd_timer01.c9 * The test performs several ioctl() parallel with readv() on the same
102 size = readv(snd_fd, &iov, 1); in run()
/third_party/rust/crates/rustix/src/io/
H A Dread_write.rs82 /// `readv(fd, bufs)`—Reads from a stream into multiple buffers.
89 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readv.html
90 /// [Linux]: https://man7.org/linux/man-pages/man2/readv.2.html
91 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/readv.2.html
93 pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { in readv() functions
94 backend::io::syscalls::readv(fd.as_fd(), bufs) in readv()
H A Dmod.rs82 pub use read_write::{pread, pwrite, read, readv, write, writev, IoSlice, IoSliceMut};
/third_party/rust/crates/nix/src/sys/
H A Duio.rs30 /// See also [readv(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/readv.html)
31 pub fn readv(fd: RawFd, iov: &mut [IoSliceMut<'_>]) -> Result<usize> { in readv() functions
34 libc::readv(fd, iov.as_ptr() as *const libc::iovec, iov.len() as c_int) in readv()
71 /// See also: [`readv`](fn.readv.html) and [`pread`](fn.pread.html)
82 // SAFETY: same as in readv() in preadv()
150 /// Vectored I/O methods like [`writev`] and [`readv`] use this structure for
/third_party/node/lib/internal/fs/
H A Dpromises.js172 readv(buffers, position) {
173 return fsCall(readv, this, buffers, position);
639 async function readv(handle, buffers, position) {
/third_party/FreeBSD/lib/libc/include/
H A Dnamespace.h212 #define readv _readv macro
/third_party/ltp/testcases/kernel/io/direct_io/
H A Ddiotest5.c26 * readv() and writev() calls.
28 * [1] Direct readv, Buffered writev
29 * [2] Direct writev, Buffered readv
30 * [3] Direct readv, Direct writev
31 * The bufsize should be in n*4k size for direct readv, writev. The offset
132 tst_resm(TFAIL, "lseek before readv failed: %s", in runtest()
136 if (readv(fd_r, iov2, nvector) < 0) { in runtest()
137 tst_resm(TFAIL, "readv failed: %s", strerror(errno)); in runtest()
141 tst_resm(TFAIL, "readv/writev comparision failed"); in runtest()
/third_party/lwip/src/include/lwip/
H A Dsockets.h563 #define lwip_readv readv
685 #define readv(s,iov,iovcnt) lwip_readv(s,iov,iovcnt) macro
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest08.c230 /* Stuff for the readv call */ in dotest()
339 if ((xfr = readv(fd, &r_iovec[0], MAXIOVCNT)) < 0) { in dotest()
341 NULL, "\tTest[%d]: readv fail at %" PRIx64 in dotest()
H A Dftest04.c217 /* Stuff for the readv call */ in dotest()
326 if ((xfr = readv(fd, &r_iovec[0], MAXIOVCNT)) < 0) { in dotest()
329 "\tTest[%d]: readv fail at %x, errno = %d.", in dotest()

Completed in 9 milliseconds

12