Home
last modified time | relevance | path

Searched refs:memlength (Results 1 – 2 of 2) sorted by relevance

/system/utest/fdio/
A Dfdio_socket.c96 const size_t memlength = 65536; in socket_sendmsg_nonblock_boundary_test() local
97 void* memchunk = malloc(memlength); in socket_sendmsg_nonblock_boundary_test()
101 iov[0].iov_len = memlength; in socket_sendmsg_nonblock_boundary_test()
103 iov[1].iov_len = memlength; in socket_sendmsg_nonblock_boundary_test()
127 zx_socket_read(s, 0, memchunk, memlength, &actual); in socket_sendmsg_nonblock_boundary_test()
128 EXPECT_EQ(memlength, actual, "Failed to read from a full socket"); in socket_sendmsg_nonblock_boundary_test()
131 EXPECT_EQ((ssize_t)memlength, sendmsg(fd, &msg, 0), in socket_sendmsg_nonblock_boundary_test()
A Dfdio_socketpair.c500 const ssize_t memlength = 65536; in socketpair_sendmsg_nonblock_boundary_test() local
501 void* memchunk = malloc(memlength); in socketpair_sendmsg_nonblock_boundary_test()
505 iov[0].iov_len = memlength; in socketpair_sendmsg_nonblock_boundary_test()
507 iov[1].iov_len = memlength; in socketpair_sendmsg_nonblock_boundary_test()
530 EXPECT_EQ(memlength, read(fds[1], memchunk, memlength), "Socket read failed."); in socketpair_sendmsg_nonblock_boundary_test()
533 EXPECT_EQ(memlength, sendmsg(fds[0], &msg, 0), in socketpair_sendmsg_nonblock_boundary_test()

Completed in 7 milliseconds