Lines Matching defs:iov
25 * @tc.desc : Writes iovcnt buffers of data described by iov to the file associated with fd
32 struct iovec iov[2];
34 iov[0].iov_base = str0;
35 iov[0].iov_len = strlen(str0) + 1;
36 iov[1].iov_base = str1;
37 iov[1].iov_len = strlen(str1) + 1;
39 ssize_t result = writev(STDOUT_FILENO, iov, 2);
40 if (result != (iov[0].iov_len + iov[1].iov_len)) {
47 * @tc.desc : When iovlen is equal to 0, the data in the structure iov will not be read
54 struct iovec iov[2];
56 iov[0].iov_base = str0;
57 iov[0].iov_len = 0;
58 iov[1].iov_base = str1;
59 iov[1].iov_len = strlen(str1) + 1;
61 ssize_t result = writev(STDOUT_FILENO, iov, 2);
62 if (result != (iov[0].iov_len + iov[1].iov_len)) {